Cn Stock logo

Cn Stock

Organization
Starchild-ai-agent
cn-stock

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

Overview

PublisherStarchild-ai-agent
Repositoryofficial-skills
Skill namecn-stock
Stars
32
Forks
13
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Starchild-ai-agent on GitHub. Read the source before you install it.

Installation

Install the Cn Stock AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Starchild-ai-agent/official-skills/tree/main/cn-stock
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cn Stock in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cn Stock on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cn Stock is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

🇨🇳 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).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Cn Stock AI skill do?

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

Why use Cn Stock on TypingMind?

Because you install it once and use it with any model. Cn Stock is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cn Stock in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Starchild-ai-agent/official-skills/tree/main/cn-stock. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Cn Stock?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cn Stock?

As many as you like. As long as a model supports skills, you can use Cn Stock with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cn Stock AI skill free?

It is published on GitHub by Starchild-ai-agent. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇