Agent skill

Market Analysis

by qusong0627 in qusong0627/QuantMind

市场分析报告(大盘快照版)— 复用市场分析页面全部数据能力:核心指数、市场广度与情绪温度、行业板块/热门概念热力图、行业多日涨跌幅对比(1/3/5日)、板块资金流(1日/5日/10日)、个股主力资金 Top20、标签体系统计。用户说「市场分析」「大盘分析」「行情分析」「今天市场怎么样」「市场报告」时使用:跑取数脚本(marketanalysis.py)→ AI 基于 facts 撰写解读 →…

AGPL-3.0Auto-check passedDocuments & Office

Install Market Analysis

skills CLI
$ npx skills add qusong0627/QuantMind --skill market-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install qusong0627/QuantMind market-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/qusong0627/QuantMind.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/market-analysis .claude/skills/market-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
market-analysis
GitHub stars
1.7k
Token cost
~1k tokens
SKILL.md length
191 words
Files
2 (incl. scripts)
Skills in repo
27
Repo updated
First seen
Licence
AGPL-3.0

At a glance

市场分析报告(大盘快照版)— 复用市场分析页面全部数据能力:核心指数、市场广度与情绪温度、行业板块/热门概念热力图、行业多日涨跌幅对比(1/3/5日)、板块资金流(1日/5日/10日)、个股主力资金 Top20、标签体系统计。用户说「市场分析」「大盘分析」「行情分析」「今天市场怎么样」「市场报告」时使用:跑取数脚本(marketanalysis.py)→ AI 基于 facts 撰写解读 →…

  • Tasks that involve Market research
  • SKILL.md covers ⚠️ 单位铁律(先查…, 执行流程(每次 5 步), 数据能力清单(对应市场分析页面功能) and 已知边界
  • Runs Python scripts from its folder; calls docker and python3
  • Tasks that involve PDF

What it does

Market Analysis is an agent skill from qusong0627/QuantMind. 市场分析报告(大盘快照版)— 复用市场分析页面全部数据能力:核心指数、市场广度与情绪温度、行业板块/热门概念热力图、行业多日涨跌幅对比(1/3/5日)、板块资金流(1日/5日/10日)、个股主力资金 Top20、标签体系统计。用户说「市场分析」「大盘分析」「行情分析」「今天市场怎么样」「市场报告」时使用:跑取数脚本(marketanalysis.py)→ AI 基于 facts 撰写解读 → Markdown → PDF(研报风)→ 落盘股票报告目录 → 聊天回复速览。触发词:市场分析、大盘分析、行情分析、市场报告、看盘、今天市场、今日市场、市场怎么样

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/market_analysis.py`).

It sits in Documents & Office, covering Market research and PDF. The repository describes itself as: QuantMind(量化大脑)开源版是一款面向个人开发者与投研团队的 AI 原生多市场量化交易平台。深度集成微软 Qlib、RD-Agent 因子演化与 QuantBot全能工作台,提供从 300+ 维因子挖掘、13 种机器学习与深度学习模型工场、Qlib 高性能回测、截面批量推理、7x24… The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Market research
  • Tasks that involve PDF

Example prompts

  • “/market-analysis”

Requirements

  • Python 3
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 81e79e4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • docker
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Market Analysis loads about 1k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 191 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from qusong0627/QuantMind at commit 81e79e4, republished under its AGPL-3.0 licence (© qusong0627). 191 words, ~1,047 tokens.

Download SKILL.mdSave it as .claude/skills/market-analysis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
market-analysis
description
市场分析报告(大盘快照版)— 复用市场分析页面全部数据能力:核心指数、市场广度与情绪温度、行业板块/热门概念热力图、行业多日涨跌幅对比(1/3/5日)、板块资金流(1日/5日/10日)、个股主力资金 Top20、标签体系统计。用户说「市场分析」「大盘分析」「行情分析」「今天市场怎么样」「市场报告」时使用:跑取数脚本(market_analysis.py)→ AI 基于 facts 撰写解读 → Markdown → PDF(研报风)→ 落盘股票报告目录 → 聊天回复速览。触发词:市场分析、大盘分析、行情分析、市场报告、看盘、今天市场、今日市场、市场怎么样

⚙️ 本技能遵循公共运行环境契约(最高优先级,先于本文其余内容执行): 详见 _shared/env-contract.md,执行前先读它。

market-analysis — 市场分析报告(大盘快照版)

把市场分析页面的数据能力(指数/广度/行业/概念/资金流/标签)变成一份结构固定的报告(Markdown + PDF),落盘到前端「股票报告」页可见目录,并在聊天里回复速览。报告必含「八、市场解读与次日关注」——AI 必须基于 facts 数据撰写,禁止编造数字。

与 [[daily-review]] 的区别:daily-review 是盘后复盘(含新闻情绪、模型推理信号、次日六维研判);本 skill 是市场快照(行情结构 + 资金流 + 板块强弱),适合盘中/盘后随时输出当日市场状态。

⚠️ 单位铁律(先查 [[quantdb-fields]],最高优先级)

陷阱正确口径
l2_factors.flow_* 金额是万元(2026-09 起;读入后归一为元再转亿元)报告统一换算亿元(脚本 _yi() 已处理)
index_daily.amount 是万元指数成交额脚本已转亿元
technical_indicators.pct_change = %涨跌家数/涨停/行业均涨幅全用它;涨停≈≥9.8%、跌停≈≤-9.8%
index_daily.preClose 全 NULL指数涨跌幅由 close 序列自算(后端已处理,勿另算)
资金流依赖 l2_factors最新日期可能与行情日不同步(L2 更新滞后 1 日属正常),facts 里以 trade_date 为准,滞后时在报告中声明

写报告时所有数字必须来自 {date}_facts.json,不得自行推算或编造。

执行流程(每次 5 步)

第 1 步:跑取数脚本(宿主机)
bash
cd <repo>/skills/market-analysis/scripts
python3 market_analysis.py          # 最新交易日;--out 自定义输出目录(默认 data/reports/market_analysis/)

脚本复用后端 quantdb_feed 聚合口径,产出 {date}_facts.json(全部原始数据)+ {date}_report.md(骨架)。QuantDB 不可用时脚本报错退出——不要假装出报告,直接告诉用户数据未同步。

第 2 步:AI 撰写解读(核心增值环节)

基于 facts 在骨架的「八、市场解读与次日关注」补写四小节(每节 2-4 句,数字引用 facts):

  • 8.1 市场总览:指数涨跌结构(几涨几跌、深/创弱于上证?)、两市量能(亿,与昨日对比如 facts 有)、情绪温度(赚钱效应 %、涨跌停家数)
  • 8.2 结构性机会:涨幅前列行业/概念 2-3 个 + 对应板块资金流方向(净流入板块);10 日资金持续流入的方向
  • 8.3 风险提示:净流出前列行业、跌停/炸板、指数与广度背离(如指数涨但下跌家数多)
  • 8.4 次日关注:2-3 条可跟踪信号(具体板块/个股/资金/情绪阈值)

写完后通读全文:数据表与解读数字一致、无矛盾、单位统一为亿元。

第 3 步:Markdown → PDF(研报风,复用 md_to_pdf_report 管线)
bash
# ① 复制 md 进容器(.claude 目录未挂载)
docker cp <repo>/data/reports/market_analysis/{date}_report.md quantmind:/tmp/ma_report.md
# ② 容器内转换(reportlab,封面/红涨绿跌/斑马纹表格自动生效)
docker exec quantmind bash -lc "cd /app && python3 backend/scripts/md_to_pdf_report.py /tmp/ma_report.md /tmp/ma_report.pdf"
# ③ 取回宿主机
docker cp quantmind:/tmp/ma_report.pdf <repo>/data/reports/market_analysis/{date}_report.pdf
第 4 步:落盘股票报告目录(前端「股票报告」页可见)
bash
mkdir -p <repo>/data/reports/stock_reports/市场分析
cp <repo>/data/reports/market_analysis/{date}_report.md <repo>/data/reports/stock_reports/市场分析/市场分析_{date}.md
docker cp <repo>/data/reports/market_analysis/{date}_report.pdf quantmind:/data/reports/stock_reports/市场分析/市场分析_{date}.pdf

文件名固定:市场分析_{YYYY-MM-DD}.md / .pdf。

用户要求「放深度分析那里」时:额外落一份到 A股市场 分组(与个股深度分析/投研报告同列表展示,报告管理页 → A股市场 → 市场分析):

bash
docker exec quantmind bash -c "mkdir -p '/data/reports/stock_reports/A股市场/市场分析' && cp /tmp/ma_report.md '/data/reports/stock_reports/A股市场/市场分析/市场分析_{date}.md' && cp /tmp/ma_report.pdf '/data/reports/stock_reports/A股市场/市场分析/市场分析_{date}.pdf'"

注:A股市场/ 目录为容器 root 创建,宿主机无写权限,须在容器内操作(docker exec 为 root)。

第 5 步:聊天回复速览

回复用户一段 3-5 行的速览(指数、情绪、最强板块、资金动向、明日关注 1 条)+ 报告文件路径(md + PDF)。

数据能力清单(对应市场分析页面功能)

报告章节后端数据源说明
一、核心指数index_daily上证/深成/创业板/沪深300/科创50:价格/涨跌/成交额/5日趋势
二、市场广度daily_forward+technical_indicators涨跌家数/涨停跌停/两市成交额/赚钱效应/炸板率估算
三、行业板块sector_members 申万一级31 行业均涨幅/成交额/领涨股,Top10+Bottom10
四、行业多日涨跌幅daily_unadjusted+sector_members行业 1/3/5 日累计涨幅对比(成分股中位数),看启动时点与主线持续性
五、热门概念sector_members 概念板块概念均涨幅 Top/Bottom
六、板块资金流l2_factors.flow_*1日/5日/10日 行业净流入(亿元)+主力占比
七、个股资金流l2_factors.flow_*主力净流入 Top20 / 净流出 Top10
八、标签体系sector_members 聚合标签总数/覆盖股票/热门标签

多日对比解读口径(四、行业多日涨跌幅,中位数):

  • 1日% ≫ 3日% ≫ 5日%:行业刚启动(如种植业 +14.1/+8.4/+2.6),次日接力或退潮均有可能
  • 5日% 持续领先且 1日% 续强:主线行业(趋势延续,如林业 +10.75/+7.27/+3.11)
  • 5日% 强但 1日% 转负:退潮信号(高位滞涨)
  • 与「六、板块资金流 10 日净流入」交叉验证:多日强势 + 资金持续流入 = 可信主线;强势但资金流出 = 纯情绪炒作

已知边界

  • 仅支持最新交易日(与市场分析页面一致),不支持历史日期回放
  • 行业/概念为静态分类(sector_members),非实时申万调整
  • 资金流依赖 L2 数据日频更新;L2 未更新时对应章节为空——报告里如实标注,不填 0
  • 若用户需要含新闻情绪/模型推理信号的盘后深度复盘,改用 [[daily-review]]

© qusong0627, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/market-analysis of qusong0627/QuantMind.

  • SKILL.md
  • scripts/market_analysis.py

Open the folder on GitHubat commit 81e79e4

Compare with similar skills

Market Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Market Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Market Analysis this skillqusong0627/QuantMind1.7k—~1kAutomated safety check: PassAGPL-3.0
Vc Industry Researchzebbern/claude-code-guide4.7k—~1.6kAutomated safety check: PassMIT
Jev SEOAgriciDaniel/jev-seo543—~2.5kAutomated safety check: NotesMIT
Geo AnalysisOpenClaudia/openclaudia-skills713—~1.1kAutomated safety check: PassMIT
Find Skillsfastclaw-ai/fastclaw1.4k—~2.3kAutomated safety check: WarnCustom licence
Latchshot Page Capturegithub/awesome-copilot40k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Vc Industry Research

    zebbern/claude-code-guide

    Generate professional primary market / venture capital industry research reports, including sector deep-dives, investment memos, and market analysis.

    4.7k GitHub stars~1.6k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Jev SEO

    AgriciDaniel/jev-seo

    Full live SEO audit of any website from its homepage URL, powered by Jev (TypeSafe's System One model).

    543 GitHub stars~2.5k tokensUpdated 19 days ago
    Documents & OfficeAuto-check: notes
  • Geo Analysis

    OpenClaudia/openclaudia-skills

    Run a full GEO/SEO client analysis for a domain via the Enception external API — start the analysis, poll its status, and download the PDF report covering AI visibility, market research, and…

    713 GitHub stars~1.1k tokensUpdated 23 days ago
    Marketing & SEOAuto-check passed
  • Find Skills

    fastclaw-ai/fastclaw

    Run this BEFORE any package install (pip / npm / apt / brew / cargo / gem / go install) you would otherwise execute via the exec tool — including when the user asks for a deliverable that needs…

    1.4k GitHub stars~2.3k tokensUpdated yesterday
    Documents & OfficeAuto-check: warnings
  • Latchshot Page Capture

    github/awesome-copilot

    Official

    A skill your agent uses when a user needs a screenshot, website thumbnail, full-page capture, or PDF of a public HTTP(S) webpage saved as a local artifact through Latchshot, including report, QA…

    40k GitHub stars~1.3k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Literature Statistics

    aipoch/medical-research-skills

    Generate statistics for publication-year and journal distributions from local references or PDFs; use when you need standardized Year/Journal tables and a summary without any network access.

    1.9k GitHub stars~1.9k tokensUpdated 24 days ago
    Documents & OfficeAuto-check passed

More from qusong0627/QuantMind

All 27 skills in this repo
  • A-Share Daily Review

    qusong0627/QuantMind

    Produces a post-market review report for the China A-share market from local QuantDB data, news sentiment and model signals, ending in a next-day direction call.

    1.7k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Queries Futu quotes, options, fundamentals and accounts and places orders through the Futu OpenAPI Python SDK, defaulting to simulated trading.

    1.7k GitHub stars~3.3k tokensUpdated today
    Auto-check: notes
  • Turns a plain-language model training request into a validated QuantMind training config file that can be imported from the Model Training page.

    1.7k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Tiger Brokers OpenAPI SDK

    qusong0627/QuantMind

    Covers the Tiger Brokers OpenAPI Python SDK for market data, stock, futures and options trading, push subscriptions, a CLI and an MCP server, defaulting to paper trading.

    1.7k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Tiger Brokers C++ OpenAPI SDK

    qusong0627/QuantMind

    Guides an agent through the Tiger Brokers OpenAPI C++ SDK for build setup, market data, orders and real-time push, defaulting to paper trading.

    1.7k GitHub stars~942 tokensUpdated today
    Auto-check passed
  • Tiger Brokers OpenAPI C# SDK

    qusong0627/QuantMind

    Guides building C# and .NET apps on the Tiger Brokers OpenAPI SDK: setup, market data, orders, accounts, options and real-time push, defaulting to paper trading.

    1.7k GitHub stars~1k tokensUpdated today
    Auto-check passed

Questions about Market Analysis

What does Market Analysis do?

市场分析报告(大盘快照版)— 复用市场分析页面全部数据能力:核心指数、市场广度与情绪温度、行业板块/热门概念热力图、行业多日涨跌幅对比(1/3/5日)、板块资金流(1日/5日/10日)、个股主力资金 Top20、标签体系统计。用户说「市场分析」「大盘分析」「行情分析」「今天市场怎么样」「市场报告」时使用:跑取数脚本(marketanalysis.py)→ AI 基于 facts 撰写解读 →…. Market Analysis is an agent skill from qusong0627/QuantMind.

When should I use Market Analysis?

Market Analysis fits situations like: tasks that involve Market research; tasks that involve PDF.

How do I install Market Analysis in Claude Code?

Run `npx skills add qusong0627/QuantMind --skill market-analysis -a claude-code`. Or copy the skill folder (skills/market-analysis in qusong0627/QuantMind) into .claude/skills/market-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Market Analysis in Codex?

Run `npx skills add qusong0627/QuantMind --skill market-analysis -a codex`. Or copy the skill folder (skills/market-analysis in qusong0627/QuantMind) into .agents/skills/market-analysis in your project. Codex loads it when a task matches its description.

Can I use Market Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qusong0627/QuantMind --skill market-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/market-analysis, .gemini/skills/market-analysis, .github/skills/market-analysis and .opencode/skills/market-analysis in your project.

What does Market Analysis need to run?

Going by SKILL.md and its folder, Market Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (docker and python3). Our summary lists: Python 3; Docker.

Does Market Analysis access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Market Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Market Analysis use?

Market Analysis is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Market Analysis use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Market Analysis?

Skills that share tags, products or a category with Market Analysis: Vc Industry Research (zebbern/claude-code-guide, 4.7k stars), Jev SEO (AgriciDaniel/jev-seo, 543 stars), Geo Analysis (OpenClaudia/openclaudia-skills, 713 stars) and Find Skills (fastclaw-ai/fastclaw, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Market Analysis?

qusong0627 (a GitHub user) maintains it in qusong0627/QuantMind, which has 1,728 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 11, 2026.

Source: qusong0627/QuantMind on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.