Stock API
zhangxiangliang/stock-api
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets.
A股业绩前瞻/季报预览/财报预期情景分析。当用户提到"业绩前瞻"或"earnings preview"就触发。关键词:"业绩前瞻"、"季报预览"、"预期怎么样"、"earnings preview"、"XX下周发财报"、"财报前怎么看"、"业绩预告分析"、"预计业绩"、"业绩展望"、"财报前瞻"、"预计这个季度业绩"、"业绩预期"、"情景分析"、"业绩预测"。MUST USE when…
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aifinlab/FinClaw a-share-earnings-preview --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/a-share-earnings-preview .claude/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.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/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .claude/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-previewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aifinlab/FinClaw a-share-earnings-preview --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/a-share-earnings-preview .agents/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .agents/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aifinlab/FinClaw a-share-earnings-preview --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/a-share-earnings-preview .cursor/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .cursor/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aifinlab/FinClaw.git --path skills/a-share-earnings-preview--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aifinlab/FinClaw a-share-earnings-preview --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/a-share-earnings-preview .gemini/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .gemini/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aifinlab/FinClaw a-share-earnings-previewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/a-share-earnings-preview .github/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .github/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aifinlab/FinClaw a-share-earnings-preview --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/a-share-earnings-preview .opencode/skills/a-share-earnings-preview && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "a-share-earnings-preview" agent skill from https://github.com/aifinlab/FinClaw/tree/main/skills/a-share-earnings-preview into .opencode/skills/a-share-earnings-preview/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "a-share-earnings-preview", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
a-share-earnings-previewA股业绩前瞻/季报预览/财报预期情景分析。当用户提到"业绩前瞻"或"earnings preview"就触发。关键词:"业绩前瞻"、"季报预览"、"预期怎么样"、"earnings preview"、"XX下周发财报"、"财报前怎么看"、"业绩预告分析"、"预计业绩"、"业绩展望"、"财报前瞻"、"预计这个季度业绩"、"业绩预期"、"情景分析"、"业绩预测"。MUST USE when…
A Share Earnings Preview is an agent skill from aifinlab/FinClaw. A股业绩前瞻/季报预览/财报预期情景分析。当用户提到"业绩前瞻"或"earnings preview"就触发。关键词:"业绩前瞻"、"季报预览"、"预期怎么样"、"earnings preview"、"XX下周发财报"、"财报前怎么看"、"业绩预告分析"、"预计业绩"、"业绩展望"、"财报前瞻"、"预计这个季度业绩"、"业绩预期"、"情景分析"、"业绩预测"。MUST USE when user asks about earnings preview, pre-earnings scenario analysis, earnings expectations/forecast, or quarterly outlook before earnings release. This is the ONLY skill for pre-earnings forward-looking analysis. 在财报发布前,基于历史数据和市场预期构建牛/熊/基准三种情景分析。通过 cn-stock-data 获取历史财务趋势,结合 web 搜索获取市场一致预期和业绩预告。支持机构前瞻风格(formal)和个人预判风格(brief)。
Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/preview-template.md`).
It sits in Business, Finance & HR, covering Stock and market analysis. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 9e62862. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
A Share Earnings Preview loads about 818 tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 136 tokens; SKILL.md has 202 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from aifinlab/FinClaw at commit 9e62862, republished under its Apache-2.0 licence (© aifinlab). 202 words, ~818 tokens.
.claude/skills/a-share-earnings-preview/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
# 历史财务指标(分析趋势)
python "$SCRIPTS/cn_stock_data.py" finance --code [CODE]
# 最新行情(当前估值水平)
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]
# 近 6 个月 K 线(股价已 price-in 多少预期)
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [6个月前日期]
# 资金流向(机构是否提前布局)
python "$SCRIPTS/cn_stock_data.py" fund_flow --code [CODE] --days 30补充:通过 web 搜索获取:
财务指标预期(基于历史趋势 + 市场预期):
| 指标 | 上季度实际 | 去年同期 | 市场预期 | 个人预判 |
|---|---|---|---|---|
| 营业收入(亿) | ||||
| 同比增速(%) | ||||
| 归母净利润(亿) | ||||
| 同比增速(%) | ||||
| 毛利率(%) | ||||
| 净利率(%) |
行业特定运营指标(通过 web 搜索获取):
构建三种情景:
| 牛市情景(Bull) | 基准情景(Base) | 熊市情景(Bear) | |
|---|---|---|---|
| 营收 | |||
| 净利润 | |||
| 关键驱动 | [什么因素超预期] | [符合市场预期] | [什么因素低于预期] |
| 概率 | XX% | XX% | XX% |
| 股价反应 | +X% to +X% | -X% to +X% | -X% to -X% |
每个情景的逻辑必须自洽,概率合计 = 100%
列出决定股价反应的 3-5 个关键观察点:
根据用户需求选择 formal 或 brief 风格,参考 references/preview-template.md 中的模板。
| 维度 | formal(机构前瞻) | brief(个人预判) |
|---|---|---|
| 篇幅 | 2-3 页 | 半页 |
| 历史趋势 | 4-8 季度完整表格 | 简述趋势方向 |
| 情景分析 | 完整三情景 + 概率 + 股价反应估计 | 简化版(重点写偏离预期的情景) |
| 运营指标 | 行业特定的 3-5 个 | 1-2 个最关键的 |
| 催化剂 | 完整检查清单 | 1-2 个最重要观察点 |
| 交易建议 | 不给(只分析) | 可加个人操作思路 |
| 免责声明 | 需要 | 不需要 |
# 调用 skill
result = run_skill({
"param1": "value1",
"param2": "value2"
})python scripts/run_skill.py --input data.json© aifinlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/a-share-earnings-preview of aifinlab/FinClaw.
Open the folder on GitHubat commit 9e62862
A Share Earnings Preview 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| A Share Earnings Preview this skillaifinlab/FinClaw | 255 | — | ~818 | Automated safety check: Pass | Apache-2.0 | |
| Stock APIzhangxiangliang/stock-api | 2k | — | ~507 | Automated safety check: Pass | MIT | |
| Tushare Datazillionare/zillionare | 321 | 2 repos | ~2.3k | Automated safety check: Pass | None | |
| Tradingview MCPatilaahmettaner/tradingview-mcp | 5k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Digital Oraclekomako-workshop/digital-oracle | 878 | — | ~5.9k | Automated safety check: Pass | MIT | |
| Longbridge Researchhelsome/folio | 271 | 3 repos | ~2.1k | Automated safety check: Pass | MIT |
zhangxiangliang/stock-api
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets.
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
atilaahmettaner/tradingview-mcp
AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…
komako-workshop/digital-oracle
Answer prediction questions using market trading data, not opinions.
helsome/folio
Institution ratings, consensus price targets, EPS/revenue forecasts, finance calendar, shareholder data, fund holders, insider trades (SEC Form 4), short interest, industry rankings, peer group…
helsome/folio
Earnings analysis — pre- and post-earnings. An agent skill from helsome/folio.
aifinlab/FinClaw
A skill your agent uses when the user asks for help with corporate credit due diligence, enterprise credit investigation, pre-loan review, borrower analysis, document collection, management…
aifinlab/FinClaw
A skill your agent uses when you need a bank corporate-risk monitoring assistant for enterprise litigation/penalty/enforcement scanning (处罚/诉讼/被执行/失信等).
aifinlab/FinClaw
A skill your agent uses when you need a bank corporate client operating-volatility monitoring assistant (经营监测/指标波动/预警解释).
aifinlab/FinClaw
A skill your agent uses when you need a bank post-loan visit follow-up assistant to turn visit notes/materials into a structured memo (摘要/关键更新/风险观察/用途核验/行动项).
aifinlab/FinClaw
A skill your agent uses when you need a bank corporate credit issue-list assistant (问题清单/补件清单/催办台账).
aifinlab/FinClaw
A skill your agent uses when you need a bank corporate credit approval-opinion drafting assistant (审批意见/条款建议/有条件同意).
Categories
A股业绩前瞻/季报预览/财报预期情景分析。当用户提到"业绩前瞻"或"earnings preview"就触发。关键词:"业绩前瞻"、"季报预览"、"预期怎么样"、"earnings preview"、"XX下周发财报"、"财报前怎么看"、"业绩预告分析"、"预计业绩"、"业绩展望"、"财报前瞻"、"预计这个季度业绩"、"业绩预期"、"情景分析"、"业绩预测"。MUST USE when…. A Share Earnings Preview is an agent skill from aifinlab/FinClaw. A股业绩前瞻/季报预览/财报预期情景分析。当用户提到"业绩前瞻"或"earnings preview"就触发。关键词:"业绩前瞻"、"季报预览"、"预期怎么样"、"earnings preview"、"XX下周发财报"、"财报前怎么看"、"业绩预告分析"、"预计业绩"、"业绩展望"、"财报前瞻"、"预计这个季度业绩"、"业绩预期"、"情景分析"、"业绩预测"。MUST USE when user asks about earnings preview, pre-earnings scenario analysis, earnings expectations/forecast, or quarterly outlook before earnings release.
A Share Earnings Preview fits situations like: user asks about earnings preview; pre-earnings scenario analysis; earnings expectations/forecast; quarterly outlook before earnings release.
Run `npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a claude-code`. Or copy the skill folder (skills/a-share-earnings-preview in aifinlab/FinClaw) into .claude/skills/a-share-earnings-preview in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a codex`. Or copy the skill folder (skills/a-share-earnings-preview in aifinlab/FinClaw) into .agents/skills/a-share-earnings-preview in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aifinlab/FinClaw --skill a-share-earnings-preview -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/a-share-earnings-preview, .gemini/skills/a-share-earnings-preview, .github/skills/a-share-earnings-preview and .opencode/skills/a-share-earnings-preview in your project.
Going by SKILL.md and its folder, A Share Earnings Preview needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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. Review the folder before installing.
A Share Earnings Preview is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 818 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 990 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with A Share Earnings Preview: Stock API (zhangxiangliang/stock-api, 2k stars), Tushare Data (zillionare/zillionare, 321 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars) and Digital Oracle (komako-workshop/digital-oracle, 878 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aifinlab (a GitHub user) maintains it in aifinlab/FinClaw, which has 255 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on May 13, 2026.
Source: aifinlab/FinClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.