backtest_quality_auditor

backtest_quality_auditor is a skill for Claude Code from agentpit-io/hunter-community. It costs 77 tokens per session (1,249 once invoked), scanned A, original, Apache-2.0.

A quality audit for investment strategy backtests. A backtest uses historical data to test how a trading strategy would have performed, and this audit checks whether that test used information or trades that would not have been available at the time.

In plain words
What is it for?
Use it to review quantitative backtests for look-ahead bias, historical stock-universe accuracy, adjusted prices, fees, slippage, price limits, suspensions, and missing values.
Why use it?
It helps catch future-data errors, survivor bias, unrealistic prices, missing trading costs, impossible trades during price limits, and incorrect handling of suspended stocks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions OpenCode.

Good fit Use it to review quantitative backtests for look-ahead bias, historical stock-universe accuracy, adjusted prices, fees, slippage, price limits, suspensions, and missing values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentpit-io/hunter-community/backtest_quality_auditor
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 agentpit-io/hunter-community --skill backtest_quality_auditor
Clone the repo
git clone --depth 1 https://github.com/agentpit-io/hunter-community

Made for: Claude Code.

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 backtest_quality_auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentpit-io/hunter-community/backtest_quality_auditor/github.svg)](https://agentmods.dev/skills/agentpit-io/hunter-community/backtest_quality_auditor)
Your own site
<a href="https://agentmods.dev/skills/agentpit-io/hunter-community/backtest_quality_auditor"><img src="https://agentmods.dev/badge/skills/agentpit-io/hunter-community/backtest_quality_auditor/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 backtest_quality_auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentpit-io/hunter-community/backtest_quality_auditor"><img src="https://agentmods.dev/badge/skills/agentpit-io/hunter-community/backtest_quality_auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,249 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.00077 $0.01249
Opus 5.5 $0.00031 $0.00500
Sonnet 5.5 $0.00015 $0.00250
Haiku 4.5 $0.00008 $0.00125

Measured 16d ago against content hash 38d83ee4ab01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backtest_quality_auditor 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 16d 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.

distro/workspace-template/.atomcode/skills/backtest_quality_auditor/SKILL.md · 74 lines

What it actually says

量化回测质量防坑审计器(backtest_quality_auditor · P1 进阶量化技能)

一、技能定位与触发场景

当用户提问“审计一下我的量化回测有没有未来函数?”“为什么这个回测年化 40% 的策略一上实盘就亏钱?”“检验低市盈率高股息策略的回测质量”时触发本技能。

二、六大核心防坑审计维度(逐项硬核查)

  1. AUDIT-01:前视偏差与未来函数(Look-Ahead Bias / PIT Check)
    • 检查财务数据是否严格按实际公告披露时间戳 published_at <= as_of 过滤(调用 mcp__broker_fundamental__get_financial_statements 验证);
    • 若直接用报告期(如 2025-12-31)在 1 月份调仓使用年报数据,立即判定为 FAIL(严重未来函数)。
  2. AUDIT-02:幸存者偏差(Survivorship Bias)
    • 检查股票池是否通过 broker_security_get_index_constituents(index_code, as_of) 获取历史时点成分股,是否保留样本期内被 ST 或退市的股票。
  3. AUDIT-03:复权方式规范性(Adjustment Consistency)
    • 检查 K 线与技术指标计算是否显式声明 前复权 或 后复权,防止分红送转除权缺口制造假暴跌信号。
  4. AUDIT-04:手续费、印花税与双边滑点(Transaction Costs & Slippage)
    • 核查是否足额扣除双边佣金、卖出印花税(5 bps)及双边冲击滑点(建议 ≥ 10 bps)。
  5. AUDIT-05:一字涨跌停成交可得性(Limit Up/Down Tradability)
    • 检查是否校验 limit_up_price 与 limit_down_price,剔除一字涨停买不进、一字跌停卖不出的理想化虚假成交。
  6. AUDIT-06:停牌与缺失值防假 0(Suspension & Null Handling)
    • 调用 mcp__broker_security__get_security_status 核查停牌期间(is_halted=true)是否冻结交易,缺失字段是否严格保留 null 而非填 0。

三、输出规范与合规硬约束

  1. 参照 references/backtest-audit-checklist.md,输出 6 维审计打分表(0~100分)、评级(A/B/C级)、每项 PASS/WARN/FAIL 证据及具体整改代码建议。
  2. 调用 broker_education_get_risk_disclosure(risk_type="QUANT_BACKTEST") 附加上标准量化回测局限性风险揭示书。

参数

本技能的入参是回测策略或因子方案(代码或名称都可以)。用户这次给的是:

$ARGUMENTS

参数为空时,先问清楚要看哪只标的再开工,不要随便挑一只演示。

工具名对照

上面正文提到的工具,在 AtomCode 里的真名是:

正文里的写法 实际要调的工具
broker_fundamental_get_financial_statements mcp__broker_fundamental__get_financial_statements
broker_security_get_security_status mcp__broker_security__get_security_status
broker_security_get_index_constituents mcp__broker_security__get_index_constituents
broker_education_get_risk_disclosure mcp__broker_education__get_risk_disclosure

按右边那一列调。 左边是 HunterCode opencode 版的命名,这套发行版里不存在。

Files

What ships with it

1 file 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.

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. 16d ago First seen · 74 lines · 77 tokens per session scan A 38d83ee4ab01

Subscribe to this mod's changes

backtest_quality_auditor is a skill published in the GitHub repository agentpit-io/hunter-community (623 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 1,249 once invoked, about $0.0003 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-11-14.

Related

backtest_quality_auditor compared with skills from other repositories

backtest_quality_auditor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backtest_quality_auditoragentpit-io/hunter-communitySkill623yesterdayApache-2.0A77Claude Code
xlsxMODSetter/SurfSenseSkill17k3d agoApache-2.0A16Claude Code, Codex
stripe-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA56Claude Code
dodo-payments-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA69Claude Code
amex-travelborski/travel-hacking-toolkitSkill1.1k6d agoMITA47Claude Code
biltborski/travel-hacking-toolkitSkill1.1k6d agoMITA44Claude Code
compare-flightsborski/travel-hacking-toolkitSkill1.1k6d agoMITA46Claude Code