capital-flow

capital-flow is a skill for Claude Code, Codex from FeiCoder/Skill-Factory. It costs 45 tokens per session (931 once invoked), scanned A, original, MIT.

A stock-selection model that estimates whether money is flowing into or out of shares by combining trading volume with price changes. It can use daily data or more detailed minute-by-minute trading data.

In plain words
What is it for?
Use it to calculate net money flow, rank stocks, filter a stock universe, build equally weighted portfolios, and set review periods of roughly one to three months.
Why use it?
It provides a way to examine buying and selling pressure, while highlighting that results can be distorted by low trading activity, very frequent data, or the stock-price trend itself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to calculate net money flow, rank stocks, filter a stock universe, build equally weighted portfolios, and set review periods of roughly one to three months.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/feicoder/skill-factory/capital-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FeiCoder/Skill-Factory --skill capital-flow
Clone the repo
git clone --depth 1 https://github.com/FeiCoder/Skill-Factory

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for capital-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/feicoder/skill-factory/capital-flow/github.svg)](https://agentmods.dev/skills/feicoder/skill-factory/capital-flow)
Your own site
<a href="https://agentmods.dev/skills/feicoder/skill-factory/capital-flow"><img src="https://agentmods.dev/badge/skills/feicoder/skill-factory/capital-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for capital-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/feicoder/skill-factory/capital-flow"><img src="https://agentmods.dev/badge/skills/feicoder/skill-factory/capital-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 931 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00931
Opus 5.5 $0.00018 $0.00372
Sonnet 5.5 $0.00009 $0.00186
Haiku 4.5 $0.00005 $0.00093

Measured 1mo ago against content hash 946bf0d15c79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capital-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

produced_skill/stock-selection/capital-flow/SKILL.md · 124 lines

What it actually says

资金流选股

基本概念

资金流是反映股票供求关系的指标,能够观察微观市场交易者的真实意图及对股价的影响。

巴菲特的观点

"股市从短期看是投票机,从长期看一定是称重机"

资金流定义

资金流入:股价上涨时的成交额 资金流出:股价下跌时的成交额 资金净流量:流入 - 流出

计算公式

资金净流量 = Σ(Volume × sign(Pi - Pi-1))
其中:
- Volume: 成交量
- Pi: i时刻收盘价
- Pi-1: 上一时刻收盘价

资金流测算方法

1. 日数据法

  • 当日价格上涨全部计为流入
  • 价格下跌计为流出

2. 高频数据法(推荐)

使用高频数据(分钟级或更高)计算:

  • 成交价 ≥ 卖方最优价 → 流入
  • 成交价 ≤ 买方最优价 → 流出

招商资金流模型(CMSMF)

招商证券开发的资金流模型:

  • 采用高频数据
  • 以报价作为比较基准
  • 衍生指标:
    • 资金流信息含量
    • 资金流强度
    • 资金杠杆倍数

策略模型

逆向选择理论

A股市场存在信息不对称:

  1. 机构投资者率先对信息做出反应
  2. 羊群效应的散户投资者追涨杀跌
  3. 市场对信息反应过度

逆向选择策略:

  • 卖出前期资金流入、价格上涨的股票
  • 买入前期资金流出、价格下跌的股票

选股步骤

  1. 确定股票池

    • 剔除上市不满1个月的股票
    • 剔除涨跌停及停牌的股票
    • 剔除信息含量<10%的股票
  2. 指标打分

    • 按各资金流指标排序
    • 百分制整数打分法
  3. 求和排序

    • 各指标得分求和
    • 选取排名靠前的N只股票
  4. 组合构建

    • 等量权重
    • 1-3个月定期调整

实证案例

沪深300股票池

资金规模 调仓周期 效果
1亿 1个月 较好
3亿 3个月 最佳
10亿 1个月 一般

全市场股票池

资金规模 调仓周期 效果
1亿 1个月 较好
3亿 1个月 最佳(全市场小盘股波动大)

注意事项

  1. 高频依赖性:资金流指标对高频数据有依赖性
  2. 信号钝化:超高频下计算结果可能钝化
  3. 同步指标:资金净流入与股价上涨高度相关
  4. 异常处理:小盘股、低成交量时可能失真

实践建议

  • 选择合适的资金流测算频率(日/周/月)
  • 结合其他因子使用
  • 考虑资金规模对流动性的影响
  • 设置合理的调仓周期

适用场景

  • 短线交易选股
  • 市场情绪判断
  • 机构资金动向跟踪
  • 配合多因子模型使用
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 124 lines · 45 tokens per session scan A 946bf0d15c79

Subscribe to this mod's changes

capital-flow is a skill published in the GitHub repository FeiCoder/Skill-Factory (11 stars, last pushed 7mo ago), licensed MIT. It adds 45 tokens to every session and 931 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

twitter-reader

Read Twitter/X for financial research through opencli: the user's home timeline, tweet search, trending topics, bookmarks, a user's recent tweets, threads, articles, profiles, followers and following, and notifications. Use this skill whenever the user wants to know what people are saying on Twitter/X or fintwit about…

himself65/finance-skills · 110 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

energy-procurement

Codified expertise for electricity and gas procurement, tariff optimization, demand charge management, renewable PPA evaluation, and multi-facility energy cost management. Informed by energy procurement managers with 15+ years experience at large commercial and industrial consumers. Includes market structure analysis…

hashgraph-online/awesome-codex-plugins · 93 tokens

china-portfolio-monitoring

A monitoring framework for tracking the financial results, operating measures, strategic milestones, and risks of companies held by China-focused private-equity funds. It uses measures such as revenue growth, margins, debt, cash flow, and return on equity.

jwangkun/claude-for-financial-services-cn · 86 tokens

airdrop-hunting-guide

Guide to finding and qualifying for crypto airdrops — eligibility criteria, farming strategies, on-chain activity requirements, Sybil detection avoidance, and tracking tools. Use when helping users understand airdrops, check eligibility, or plan participation strategies.

nirholas/three.ws · 54 tokens