manifoldbt-backtester

manifoldbt-backtester is a skill for Claude Code, Codex from tradermonty/claude-trading-skills. It costs 93 tokens per session (1,533 once invoked), scanned A, original, MIT.

A backtesting tool that runs a described trading strategy over historical OHLCV bars—records containing time, prices, and trading volume—and calculates results for evaluation.

In plain words
What is it for?
Use it to test rule-based trading strategies from CSV or Parquet market data and prepare metrics for a separate backtest evaluation.
Why use it?
It supplies measured results such as wins, losses, and drawdown instead of leaving those numbers to guesswork.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/backtest-expert/scripts/evaluate_backtest.py \.

not rated 2.8krepo +32 today A scan Socket: passSnyk: passSkillSpector: warn 93 tokens original MIT

Good fit Use it to test rule-based trading strategies from CSV or Parquet market data and prepare metrics for a separate backtest evaluation.

Compare 6 skills from other repositories ↓
About the project

Claude Trading Skills is a collection of Claude Code workflows for individual investors who want structured market analysis, charting, economic-calendar review, screening, trade planning, journaling, and risk management. It is designed for people using long-term investing, ETFs, dividend stocks, and disciplined swing trading, and the catalogue entries package these workflows as skills, agents, commands, settings, and instructions.

tradermonty/claude-trading-skills · 2,813 stars · on GitHub · tradermonty.github.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tradermonty/claude-trading-skills
agentmods
npx agentmods add skills/tradermonty/claude-trading-skills/manifoldbt-backtester

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 manifoldbt-backtester

README.md
[![agentmods](https://agentmods.dev/badge/skills/tradermonty/claude-trading-skills/manifoldbt-backtester/github.svg)](https://agentmods.dev/skills/tradermonty/claude-trading-skills/manifoldbt-backtester)
Your own site
<a href="https://agentmods.dev/skills/tradermonty/claude-trading-skills/manifoldbt-backtester"><img src="https://agentmods.dev/badge/skills/tradermonty/claude-trading-skills/manifoldbt-backtester/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 manifoldbt-backtester

Your own site · 80×15
<a href="https://agentmods.dev/skills/tradermonty/claude-trading-skills/manifoldbt-backtester"><img src="https://agentmods.dev/badge/skills/tradermonty/claude-trading-skills/manifoldbt-backtester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,533 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
  • Socket pass 5 Sept 2026
  • Snyk pass 5 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Output Handling · line 3
    Output size or generation rate is not bounded. Unbounded output enables denial-of-service through resource exhaustion, log flooding, or context-window stuffing.
    Fix: Set explicit limits on output length, generation count, and rate. Use max_tokens and truncation to prevent unbounded output.
How audits are shown
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.00093 $0.01533
Opus 5 $0.00046 $0.00766
Sonnet 5 $0.00019 $0.00307
Haiku 4.5 $0.00009 $0.00153

Measured 12d ago against content hash 1feb63151efc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

manifoldbt-backtester 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 12d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/bridge.py, scripts/round_trips.py, scripts/run_backtest.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/manifoldbt-backtester/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

manifoldbt Backtester Skill

Purpose

Execute what backtest-expert teaches. That skill grades a backtest on five dimensions, and its prerequisites say "metrics are user-provided": it scores numbers it never produces. This skill produces them. It runs a strategy over real bars and returns the eight inputs its evaluator asks for.

The two chain in one direction: spec, run, evaluate.

When to Use This Skill

  • A user describes a rule and wants it measured
  • backtest-expert is about to run and the numbers do not exist yet
  • A win rate, average winner, average loser or drawdown must come from bars
  • A strategy's parameter count must be established for scoring

Leave the verdict to backtest-expert. It owns the thresholds and the red flags, and this skill does not duplicate them.

Prerequisites

  • Python 3.9+
  • pip install manifoldbt (Apache 2.0 with Commons Clause; the free tier covers everything this skill does)
  • OHLCV bars as CSV or Parquet with columns timestamp, open, high, low, close, volume
  • No API key required

Workflow

1. Write the strategy spec

A spec names indicators and one entry condition. Keep it to the smallest rule that states the hypothesis. Every added knob makes an in-sample fit easier to reach by accident, and the evaluator penalises the count.

{
  "name": "sma_cross_costed",
  "indicators": {
    "fast": { "type": "sma", "period": 20 },
    "slow": { "type": "sma", "period": 60 }
  },
  "entry": { "left": "fast", "op": ">", "right": "slow" },
  "size": 1.0,
  "stop_loss_pct": 1.5,
  "fees_bps": 5.0,
  "slippage_bps": 2.0
}

Field reference: references/strategy_spec.md.

Set fees_bps and slippage_bps to realistic values before you read any result. A frictionless run scores 0 on execution realism, and over short holding periods costs decide whether an edge survives.

2. Run it

python3 scripts/run_backtest.py \
  --spec strategy.json \
  --data bars.csv \
  --symbol BTCUSDT \
  --json-out result.json

Read the full file on GitHub · 158 lines

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. 12d ago First seen · 158 lines · 93 tokens per session scan A 1feb63151efc

Subscribe to this mod's changes

manifoldbt-backtester is a skill published in the GitHub repository tradermonty/claude-trading-skills (2,813 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,533 once invoked, about $0.0005 per session on Opus 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-30.

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 using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens

reading-receipt

An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.

kazukinagata/shinkoku · 64 tokens

vectorbt

High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.

agiprolabs/claude-trading-skills · 20 tokens