Agent skill

A Share Smart Money

by aifinlab in aifinlab/FinClaw

A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。

Apache-2.0Auto-check passed

Install A Share Smart Money

skills CLI
$ npx skills add aifinlab/FinClaw --skill a-share-smart-money -a claude-code

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

GitHub CLI
$ gh skill install aifinlab/FinClaw a-share-smart-money --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/aifinlab/FinClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/a-share-smart-money .claude/skills/a-share-smart-money && 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
a-share-smart-money
GitHub stars
255
Token cost
~494 tokens
SKILL.md length
149 words
Files
3 (incl. scripts, references)
Skills in repo
74
Repo updated
First seen
Licence
Apache-2.0

At a glance

A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。

  • Works in 4 steps: 大单净流入占比 (Large Order Flow Ratio) → OBV (On Balance Volume) → A/D Line (Accumulation/Distribution) → …
  • SKILL.md covers 数据源, 核心指标体系, 主力行为模式识别 and 工作流程, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

A Share Smart Money is an agent skill from aifinlab/FinClaw. A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/smart-money-guide.md` and `scripts/smart_money_detector.py`).

The licence is Apache-2.0.

Example prompts

  • “smart money”
  • “有没有主力进场”
  • “/a-share-smart-money”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 大单净流入占比 (Large Order Flow Ratio)
  2. OBV (On Balance Volume)
  3. A/D Line (Accumulation/Distribution)
  4. MFI (Money Flow Index)

What it can do on your machine

Read from SKILL.md and the folder at commit 9e62862. 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:

    • python

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

  • Network

    No URLs in SKILL.md.

    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

A Share Smart Money loads about 494 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 149 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~494
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

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 aifinlab/FinClaw at commit 9e62862, republished under its Apache-2.0 licence (© aifinlab). 149 words, ~494 tokens.

Download SKILL.mdSave it as .claude/skills/a-share-smart-money/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
a-share-smart-money
description
A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。

A股聪明钱/主力行为识别 (a-share-smart-money)

数据源

通过 cn-stock-data 统一层获取:

  • fund_flow: 个股资金流向(大单/中单/小单净流入)
  • kline: 日K线(open/high/low/close/volume/amount)
  • quote: 实时行情(辅助判断当前状态)

核心指标体系

1. 大单净流入占比 (Large Order Flow Ratio)
  • 公式: 大单净流入 / 总成交额 × 100%
  • 阈值: >5% 强流入, 2%~5% 温和流入, -2%~2% 平衡, <-5% 强流出
2. OBV (On Balance Volume)
  • 收盘上涨: OBV += 当日成交量; 下跌: OBV -= 当日成交量
  • 关注 OBV 与价格的背离(价跌量增 = 吸筹信号)
3. A/D Line (Accumulation/Distribution)
  • 公式: CLV = ((close-low)-(high-close))/(high-low), AD += CLV × volume
  • AD 持续上升但价格横盘 → 主力吸筹
4. MFI (Money Flow Index)
  • 类似 RSI 但加入成交量权重,范围 0-100
  • MFI > 80 超买(可能出货),MFI < 20 超卖(可能吸筹)

主力行为模式识别

模式价格特征量能特征资金流特征
吸筹 accumulation低位横盘/缓跌缩量后间歇放量大单持续净流入
出货 distribution高位震荡/滞涨高位放量大单持续净流出
洗盘 washout急跌后快速收回下跌缩量反弹放量大单流出但占比小
拉升 markup连续上涨/突破持续放量大单强劲流入

工作流程

  1. 调用 cn-stock-data 获取目标股票近 N 日资金流向 + K线数据
  2. 保存为 JSON,调用 scripts/smart_money_detector.py 计算指标
  3. 解读脚本输出的模式分类与置信度
  4. 结合近期市场环境和个股基本面给出综合判断
  5. 按用户偏好输出(formal / brief)

脚本调用

bash
# 准备数据后调用
python scripts/smart_money_detector.py --flow flow.json --kline kline.json
# 可选: --days 20 (分析窗口,默认20)

输出格式

formal(研报风格)
  • 标题 + 股票信息
  • 聪明钱指标总览表(大单占比/OBV趋势/AD方向/MFI值)
  • 主力行为模式判定(模式名 + 置信度 + 证据链)
  • 量价关系分析段落
  • 近期关键信号时间线
  • 风险提示与操作建议
brief(快速分析风格)
  • 一句话结论:主力在做什么(吸筹/出货/洗盘/拉升/无明显迹象)
  • 关键指标速览(3-4个数字)
  • 信号强度评级(强/中/弱)

注意事项

  • 资金流向数据存在滞后性,不可作为唯一决策依据
  • 大单定义因券商而异,跨数据源对比时需注意口径差异
  • 短期资金流向噪声大,建议至少看 5-10 个交易日趋势
  • 本分析为量化辅助工具,不构成投资建议

使用示例

示例 1: 基本使用
python
# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})
示例 2: 命令行使用
bash
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

Files

SKILL.md and 2 other files (scripts, references) in skills/a-share-smart-money of aifinlab/FinClaw.

  • SKILL.md
  • references/smart-money-guide.md
  • scripts/smart_money_detector.py

Open the folder on GitHubat commit 9e62862

Compare with similar skills

A Share Smart Money 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.

A Share Smart Money compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
A Share Smart Money this skillaifinlab/FinClaw255—~494Automated safety check: PassApache-2.0
Traderspy Smart Moneysickn33/agentic-awesome-skills47k1 repos~2.4kAutomated safety check: PassMIT
ShareClickHouse/ClickHouse50k—~558Automated safety check: NotesApache-2.0
Smart Contract Formal Verificationsickn33/agentic-awesome-skills47k1 repos~1.4kAutomated safety check: PassMIT
Smart Contract Upgrade Governancesickn33/agentic-awesome-skills47k1 repos~1.4kAutomated safety check: PassMIT
Developing Share PagesTriliumNext/Trilium38k—~3.7kAutomated safety check: PassAGPL-3.0

Similar skills

  • Traderspy Smart Money

    sickn33/agentic-awesome-skills

    Track what top crypto futures traders hold on Binance, Hyperliquid, Bybit and OKX with TraderSpy: elite leaderboard, positions, trader profiles and history.

    47k GitHub starsUsed in 1 repo~2.4k tokens
    Business, Finance & HRAuto-check passed
  • Share

    ClickHouse/ClickHouse

    Share a Claude Code session to pastila.nl and return a viewer link.

    50k GitHub stars~558 tokensUpdated today
    DatabasesAuto-check: notes
  • Smart Contract Formal Verification

    sickn33/agentic-awesome-skills

    Foundry and Soroban formal invariant verification register: state transition rules, boundary invariant properties, and symbolic execution checks.

    47k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Smart Contract Upgrade Governance

    sickn33/agentic-awesome-skills

    Soroban WASM upgrade governance register: executable bytecode hash, timelocked migration delays, and multi-sig authorization quorum.

    47k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Developing Share Pages

    TriliumNext/Trilium

    A skill your agent uses when working on Trilium's share functionality — shared pages under /share/, the static HTML (share-theme) export, the share theme package (packages/share-theme: EJS…

    38k GitHub stars~3.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Sharing

    BuilderIO/agent-native

    Framework-level sharing and privacy for user-authored resources (dashboards, documents, forms, decks, etc.).

    7.1k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed

More from aifinlab/FinClaw

All 74 skills in this repo
  • Bank Corporate Credit Dd

    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…

    255 GitHub stars~952 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate-risk monitoring assistant for enterprise litigation/penalty/enforcement scanning (处罚/诉讼/被执行/失信等).

    255 GitHub stars~751 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate client operating-volatility monitoring assistant (经营监测/指标波动/预警解释).

    255 GitHub stars~605 tokensUpdated 5 mo ago
    Auto-check passed
  • 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 (摘要/关键更新/风险观察/用途核验/行动项).

    255 GitHub stars~544 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit issue-list assistant (问题清单/补件清单/催办台账).

    255 GitHub stars~487 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit approval-opinion drafting assistant (审批意见/条款建议/有条件同意).

    255 GitHub stars~549 tokensUpdated 5 mo ago
    Auto-check passed

Questions about A Share Smart Money

What does A Share Smart Money do?

A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。. A Share Smart Money is an agent skill from aifinlab/FinClaw.

How do I install A Share Smart Money in Claude Code?

Run `npx skills add aifinlab/FinClaw --skill a-share-smart-money -a claude-code`. Or copy the skill folder (skills/a-share-smart-money in aifinlab/FinClaw) into .claude/skills/a-share-smart-money in your project. Claude Code loads it when a task matches its description.

How do I install A Share Smart Money in Codex?

Run `npx skills add aifinlab/FinClaw --skill a-share-smart-money -a codex`. Or copy the skill folder (skills/a-share-smart-money in aifinlab/FinClaw) into .agents/skills/a-share-smart-money in your project. Codex loads it when a task matches its description.

Can I use A Share Smart Money 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 aifinlab/FinClaw --skill a-share-smart-money -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-smart-money, .gemini/skills/a-share-smart-money, .github/skills/a-share-smart-money and .opencode/skills/a-share-smart-money in your project.

What does A Share Smart Money need to run?

Going by SKILL.md and its folder, A Share Smart Money needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does A Share Smart Money access the network?

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.

Is A Share Smart Money 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 A Share Smart Money use?

A Share Smart Money 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.

How many tokens does A Share Smart Money use?

About 494 tokens (SKILL.md is roughly 2k 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 1.5k tokens, read only when the agent opens those files.

What are the alternatives to A Share Smart Money?

Skills that share tags, products or a category with A Share Smart Money: Traderspy Smart Money (sickn33/agentic-awesome-skills, 47k stars), Share (ClickHouse/ClickHouse, 50k stars), Smart Contract Formal Verification (sickn33/agentic-awesome-skills, 47k stars) and Smart Contract Upgrade Governance (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains A Share Smart Money?

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.