Cn Stock 标志

Cn Stock

组织
Starchild-ai-agent
cn-stock

A股数据:行情、财务、股东、资金流、K线、概念板块、龙虎榜、市场异动。 当用户查询沪深北 A 股时使用(例如:603186 华正新材、300476 胜宏科技、000001 平安银行、龙虎榜、北向资金)。

概览

发布者Starchild-ai-agent
代码仓库official-skills
技能名称cn-stock
星标数
32
复刻数
13
附带文件
2
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Starchild-ai-agent 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Cn Stock AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Starchild-ai-agent/official-skills/tree/main/cn-stock
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/cn-stock .claude/skills/cn-stock
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Cn Stock,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Cn Stock。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Cn Stock 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

🇨🇳 cn-stock — China A-Share Data (Tushare via sc-proxy)

Comprehensive A-share skill that uses Tushare Pro as the single upstream source. All API calls are routed through sc-proxy (transparent-proxy tushare plugin), which injects the real API token server-side and bills the request per call. No local TUSHARE_TOKEN env var needed — the skill sends a fake token and sc-proxy replaces it before the request reaches Tushare.

Source Strategy

your call → exports.py (cn-stock)
            └─ proxied_post → sc-proxy (tushare plugin) → http://api.tushare.pro/
  • No Sina / Eastmoney / akshare scraping fallback.
  • No local API key needed.
  • Charging is per-request via sc-proxy.

Output Contract

Most functions return:

python
{"ok": bool, "source": str, "data": <payload>, "error": str|None, "ts": int}

Exception:

  • get_full_report(code) returns a combined dict of sub-results.

Code Format

Accepts:

  • 000001 / 603186 / 300476 (preferred)
  • 000001.SZ / 600000.SH / 830799.BJ (also accepted)

Auto mapping for 6-digit code:

  • 60/68/90 → SH
  • 00/20/30 → SZ
  • 4/8 → BJ

Function Map

Quote / company / K-line

FunctionWhat it returnsTushare endpoint(s)
get_realtime_quote(code)latest quote-like snapshot + valuationdaily + daily_basic
get_company_info(code)listed company profilestock_company
get_kline(code, period, start, end, adjust, limit)daily/weekly/monthly K-line (unadjusted)daily/weekly/monthly
get_adj_factor(code, days)adjust-factor series (for computing qfq/hfq manually)adj_factor
get_bid_ask(code)L1-L5 order booknot available in baseline permissions
get_stock_list(market, industry, list_status, limit)listed stock universe with optional filtersstock_basic
get_trade_calendar(start, end, exchange, open_only)trading day calendartrade_cal

Financials

FunctionWhat it returnsTushare endpoint(s)
get_financial(code, max_periods)key financial indicators by periodfina_indicator
get_income_statement(code, max_periods, period)利润表income
get_balance_sheet(code, max_periods, period)资产负债表balancesheet
get_cashflow_statement(code, max_periods, period)现金流量表cashflow
get_earnings_forecast(code, limit)业绩预告forecast
get_earnings_express(code, limit)业绩快报express
get_dividends(code, limit)分红送股dividend

Shareholders & ownership

FunctionWhat it returnsTushare endpoint(s)
get_holders(code, top)latest top shareholderstop10_holders
get_shareholder_count(code, periods)股东户数变化stk_holdernumber
get_shareholder_trades(code, days)重要股东增减持stk_holdertrade
get_block_trades(code, days)大宗交易block_trade

Fund flow & northbound

FunctionWhat it returnsTushare endpoint(s)
get_fund_flow(code, days)recent fund flowmoneyflow
get_margin_detail(code, days)融资融券明细margin_detail
get_north_holdings(code, days)沪深股通持股明细 (northbound)hk_hold
get_north_flow(days)沪深港通每日资金流向moneyflow_hsgt

Concept / industry / dragon-tiger / market-wide

FunctionWhat it returnsTushare endpoint(s)
get_concept_boards(top, sort_by)concept board listths_index
get_stock_concepts(code)stock concept membershipths_member
get_lhb(code, days)dragon-tiger records for stocktop_list (recent dates scan)
get_top_movers(direction, limit)market-wide top moversdaily (+ daily_basic)
get_limit_prices(code, trade_date, days)每日涨跌停价stk_limit
get_limit_board(trade_date, limit_type)当日涨停/跌停/炸板股limit_list_d
get_suspended(trade_date)每日停复牌suspend_d

Index data

FunctionWhat it returnsTushare endpoint(s)
get_index_basic(market)指数列表 (SSE/SZSE/MSCI/CSI/SW/...)index_basic
get_index_kline(index_code, period, start, end, limit)指数 K-line(含沪深300/上证/创业板等)index_daily/weekly/monthly

One-shot bundle

FunctionWhat it returns
get_full_report(code)quote + company + holders + fund_flowcombo

What this skill intentionally does NOT cover

  • News. Use normal web search (e.g. web_search) for stock-related news, announcements, and articles. Tushare news has heavy rate limits and overlaps with general web coverage; running it through the paid proxy adds no value.
  • Adjusted K-line (qfq/hfq). The HTTP path only returns unadjusted bars. Use get_adj_factor + the unadjusted bars from get_kline if you need adjusted prices.
  • Intraday tick / bid-ask L1-L5. Requires upstream independent realtime permission that is not in baseline.
  • Minute bars. Requires upstream independent permission; not exposed here. Use get_kline for end-of-day.

User-facing reply guidance

When answering users:

  • Show values in readable Chinese market units (亿, %).
  • Clearly label data as end-of-day, not intraday tick.
  • If a capability is unavailable, say it directly.
  • Add source note: 数据来源:Tushare Pro,非投资建议.

Maintenance notes

  • All requests POST http://api.tushare.pro/ with body {api_name, token, params, fields}.
  • token field is set to a fake key; sc-proxy tushare plugin replaces it before the upstream call.
  • To change pricing or rate limit, edit the proxy tushare plugin (see transparent-proxy-maintenance skill), not this skill.
  • Adding a new Tushare endpoint = adding one thin wrapper around _call(api_name, **params).

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Cn Stock AI 技能有什么作用?

A股数据:行情、财务、股东、资金流、K线、概念板块、龙虎榜、市场异动。 当用户查询沪深北 A 股时使用(例如:603186 华正新材、300476 胜宏科技、000001 平安银行、龙虎榜、北向资金)。

为什么在 TypingMind 中使用 Cn Stock?

因为您只需安装一次,就能搭配任何模型使用。Cn Stock 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Cn Stock?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Starchild-ai-agent/official-skills/tree/main/cn-stock。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Cn Stock?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Cn Stock 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Cn Stock 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Cn Stock AI 技能免费吗?

Starchild-ai-agent 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇