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.
npx agentmods add skills/skloxo/tidetrading/multi-factornpx skills add skloxo/TideTrading --skill multi-factorgit clone --depth 1 https://github.com/skloxo/TideTradingWrote 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.
[](https://agentmods.dev/skills/skloxo/tidetrading/multi-factor)<a href="https://agentmods.dev/skills/skloxo/tidetrading/multi-factor"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/multi-factor.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00038 | $0.00961 |
| Opus 5 | $0.00019 | $0.00481 |
| Sonnet 5 | $0.00008 | $0.00192 |
| Haiku 4.5 | $0.00004 | $0.00096 |
Grade A, and why
multi-factor 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 4d 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.
This is a copy
100% identical to multi-factor — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Multi-Factor Cross-Sectional Stock Ranking
Purpose
On the same time cross-section, compute multiple factor values for many stocks, standardize them, combine them into a composite score, and select the top-ranked stocks to build a portfolio.
Signal Logic
- Factor calculation: calculate N factors for each stock (such as momentum, value, and quality)
- Cross-sectional standardization: standardize each factor on the cross-section with Z-score normalization (subtract mean, divide by standard deviation)
- Composite scoring: sum the factors with equal weights (or custom weights) to obtain a composite score
- Rank and select: go long the TopN names, with weight = 1/N for each
Built-In Factors
| Factor Name | Calculation Method | Direction |
|---|---|---|
| momentum | Return over the past N days | Positive (higher is better) |
| reversal | Return over the past 5 days | Negative (lower is better) |
| volatility | Standard deviation of returns over the past N days | Negative (lower is better) |
| volume_ratio | Today's volume / N-day average volume | Positive |
If extra_fields are available (China A-shares), you can also add:
pe_factor: 1/PE (the larger, the cheaper)pb_factor: 1/PBroe_factor: ROE (the larger, the better)
Parameters
| Parameter | Default | Description |
|---|---|---|
| momentum_window | 20 | Momentum lookback window |
| vol_window | 20 | Volatility lookback window |
| top_n | 3 | Number of selected stocks |
| rebalance_freq | 20 | Rebalancing frequency (trading days) |
Common Pitfalls
- Cross-sectional standardization requires at least 3 stocks, otherwise Z-scores are meaningless
- Keep the previous signal unchanged between rebalance dates (do not rerank every day)
- Factors have different directions: momentum is positively sorted, volatility is negatively sorted, so directions must be aligned before standardization
- Portfolio weights must be normalized: each TopN stock gets 1/N, all others get 0
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 79 lines · 38 tokens per session scan A 15de8ecafdb6
multi-factor is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 961 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to multi-factor, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
ashare-graham-screener
一套可直接运行的 Graham 防御型选股流水线:从 A 股全市场粗筛 → 逐股拉取十年财务/分红数据 → 按 7 条严格条件精算 → 产出带明细的 Excel 选股表。.
stock-daily
投资笔记 v3 的唯一日更技能——复盘。当用户要求回顾最新交易日的盘面、主线、持仓或操作时使用,触发表达包括“复盘”“今日复盘”“收盘复盘”“看下今天”“今天盘面怎么样”,以及不点名具体主线的泛问“主线还活着吗”。在 A 股真实交易日收盘后,判定盘面环境、更新活跃主线状态、提名新主线候选、按纪律卡做持仓对照,写回当日盘面日志并留 git 快照。仅询问流程或讨论规则时不执行。不用于盘中分析、选股、买卖判断或定时任务。.
stock-buddy
个人投资分析(双档)。常规档:主线论证(提名答辩/主线体检/退潮复核)、单标的与板块速查、持仓体检,给状态层+信号判定+纪律护栏+危险信号。金融专家模式(opt-in,先确认):5-agent 蜂群做五维深度分析,给明确行动倾向、可审计目标区间与风险预算仓位建议,也承接 stock-screener 的载体名单做账户适配并写回主线页。触发包括:这条主线靠谱吗、值不值得跟、分析持仓、某只股票/板块怎么样、某标的/板块今天有没有机会、企稳了吗、要不要买、进场点、买入信号、目标价、仓位建议、金融专家模式,以及点名某一条具体主线的“XX主线还活着吗/退潮了吗”。不点名主线的泛问(“主线还活着吗”)和任何日更「复盘」都归…
stock-screener
载体筛选(v3 主用)——给定一条已立项主线,筛出可买载体(ETF + 龙头股)并做强弱排序,附排序理由,写回主线页「载体清单」。也保留 v2 的策略选股工具库(放量突破/低位反转/业绩成长/主力异动等条件筛股)。只筛不分析:账户适配、参考条件位、买卖裁决全部交给 stock-buddy。触发:给这条主线筛载体、XX主线买什么、有哪些ETF能买、找龙头、载体排序、选股、筛股、筛池子、按条件选股。不触发:分析某只持仓、要不要买、某只股票怎么样、企稳了吗(这些归 stock-buddy)。.
design-trend-momentum-strategy
设计趋势、突破和时间序列动量策略,并定义趋势失效与震荡期反证。.
implement-cn-equity-etf-strategy
将策略规格映射到 A 股或 ETF 的数据、交易制度、框架代码与验证入口。.