stock-analyzer

ZhuLinsen/daily_stock_analysis · Agent Skill

Analyzes stocks and markets, providing conclusions, technical data, insights, and trading plans for investment decisions.

Jump to install ↓

Overview

PublisherZhuLinsenCommunity
RepositoryZhuLinsen/daily_stock_analysis ↗
Skill folderstock-analyzer
Stars64,755
Bundled files5
LicenseMIT
Last updatedSeptember 5, 2026
LinksSkill source ↗

Mozgi check

What we found in the skill files. Details come with a subscription.

Security
medium risk · 1 point needs attention
Compatibility
needs extra software
Similar skills
28 similar skills found
Also with subscription

Installation

A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.

Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.

Install the “stock-analyzer” skill from mozgi.io (https://mozgi.io/skills/stock-analyzer/) for me.

1. Download the archive: https://mozgi.io/skills/stock-analyzer/download
   If it fails, take the skill folder from the source: https://github.com/ZhuLinsen/daily_stock_analysis
2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me.
3. Put the “stock-analyzer” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.).
4. Make sure <skills folder>/stock-analyzer/SKILL.md exists.
5. Briefly tell me what this skill does and offer to try it on my task.

If you cannot do a step yourself, tell me what to click or type.

Review the source files

5 files Download Zip

Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.

SKILL.md contents

Original author text · read-only

股票分析器

本技能基于 src/services/analyzer_service.py 的逻辑,提供分析股票和整体市场的功能。

输出结构 (AnalysisResult)

分析函数返回一个 AnalysisResult 对象(或其列表),该对象具有丰富的结构。以下是其关键组件的简要概述,并附有真实的输出示例:

dashboard 属性包含核心分析,分为四个主要部分:

1. core_conclusion: 一句话总结、信号类型和仓位建议。

2. data_perspective: 技术数据,包括趋势状态、价格位置、量能分析和筹码结构。

3. intelligence: 定性信息,如新闻、风险警报和积极催化剂。

4. battle_plan: 可操作的策略,包括狙击点(买/卖目标)、仓位策略和风险控制清单。

配置 (Config)

所有分析函数都可以接受一个可选的 config 对象。该对象包含应用程序的所有配置,例如 API 密钥、通知设置和分析参数。

如果未提供 config 对象,函数将自动使用从 .env 文件加载的全局单例实例。

参考: Config

函数

1. 分析单只股票

描述: 分析单只股票并返回分析结果。

何时使用: 当用户要求分析特定股票时。

输入:

  • stock_code (str): 要分析的股票代码。
  • config (Config, 可选): 配置对象。默认为 None。
  • full_report (bool, 可选): 是否生成完整报告。默认为 False。
  • notifier (NotificationService, 可选): 通知服务对象。默认为 None。

输出: Optional[AnalysisResult]

一个包含分析结果的 AnalysisResult 对象,如果分析失败则为 None。

示例:

from src.services.analyzer_service import analyze_stock

# 分析单只股票
result = analyze_stock("600989")
if result:
    print(f"股票: {result.name} ({result.code})")
    print(f"情绪得分: {result.sentiment_score}")
    print(f"操作建议: {result.operation_advice}")

参考: analyze_stock

2. 分析多只股票

描述: 分析一个股票列表并返回分析结果列表。

何时使用: 当用户想要一次分析多只股票时。

输入:

  • stock_codes (List[str]): 要分析的股票代码列表。
  • config (Config, 可选): 配置对象。默认为 None。
  • full_report (bool, 可选): 是否为每只股票生成完整报告。默认为 False。
  • notifier (NotificationService, 可选): 通知服务对象。默认为 None。

输出: List[AnalysisResult]

一个 AnalysisResult 对象列表。

示例:

from src.services.analyzer_service import analyze_stocks

# 分析多只股票
results = analyze_stocks(["600989", "000001"])
for result in results:
    print(f"股票: {result.name}, 操作建议: {result.operation_advice}")

参考: analyze_stocks

3. 执行大盘复盘

描述: 对整体市场进行复盘并返回一份报告。

何时使用: 当用户要求市场概览、摘要或复盘时。

输入:

  • config (Config, 可选): 配置对象。默认为 None。
  • notifier (NotificationService, 可选): 通知服务对象。默认为 None。

输出: Optional[str]

一个包含市场复盘报告的字符串,如果失败则为 None。

示例:

from src.services.analyzer_service import perform_market_review

# 执行大盘复盘
report = perform_market_review()
if report:
    print(report)

参考: perform_market_review

模型与外部 Bot

  • 若把 xAI Grok 当作 DSA 分析模型:配置 XAI_API_KEY + LITELLM_MODEL=xai/<官方模型ID>(LiteLLM 直连,非托管渠道),并用 python scripts/check_env.py --llm 验证。示例见 docs/LLM_CONFIG_GUIDE.md。
  • 2026-08-11 上线的 Grok Bot ↗ 是另一条路径:它是带 Skills / Routines / MCP / computer use 的 AI teammate,应通过 HTTP 调用本仓库的 analyze_stock / REST API,而不是把 Bot 本身配成 LiteLLM provider。对接说明见 docs/grok-bot-integration.md。

Frequently asked questions

What does the stock-analyzer skill do?

Analyzes stocks and markets, providing conclusions, technical data, insights, and trading plans for investment decisions.

How do I install stock-analyzer?

Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.

Which AI models work with stock-analyzer?

Skills are plain Markdown instructions (the Agent Skills format), so stock-analyzer works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.

Is stock-analyzer free?

The skill is published openly by ZhuLinsen under the MIT license. The skill itself costs nothing — you only pay your AI provider for the tokens you use.

Is it safe to install skills?

A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.

How is a skill different from an MCP server or a plugin?

An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.

Related skills

All skills →