Skip to content
SkillScript-led780 tokens in use

Strategy Pivot Designer

Detects when a strategy's backtest loop has stalled and proposes structurally different strategy drafts, written as YAML with a report and a stagnation diagnosis.

7,430 stars on the repository MIT Licensetradermonty/claude-trading-skills · skills/strategy-pivot-designer

Skill label

measured from its files

What installing Strategy Pivot Designer costs

28tokens idle
780tokens in use
5,531tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/detect_stagnation.py, scripts/generate_pivots.py.

Touches

shelldetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter8/15
  • Structure23/25
  • Examples12/15
  • Output7/15
  • Size11/15
  • Resources7/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 50
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    scripts/detect_stagnation.py, line 378

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community68
  • Maturity36
  • Momentum40

Strategy Pivot Designer is the feedback step of a strategy research pipeline. It reads an iteration history built from backtest evaluations, checks for stagnation triggers such as a score plateau, overfitting, transaction costs defeating a thin edge, a weak profit factor or tail risk, and then generates pivot proposals.

Proposals come from three techniques: assumption inversion, archetype switch and objective reframe. They are scored for quality potential and novelty, and written as strategy draft YAML that the next backtest cycle can pick up. The skill describes research drafts and does not give investment advice.

What You Get

  • A stagnation diagnosis JSON that names which triggers fired: plateau, overfitting, cost defeat, insufficient profit factor or tail risk
  • Ranked pivot drafts split into research-only YAML and exportable YAML with a ticket for the candidate pipeline
  • A Markdown pivot report and a manifest JSON listing every generated file
  • A review-required stop that tells you to repair broken metrics before any pivot is generated

Common Use Cases

  • Backtest scores keep flattening after several refinement rounds and you want a different architecture to try
  • A strategy looks strong in-sample but weak on robustness checks and needs a redesign
  • Trading costs wipe out a thin edge and the same hypothesis needs a lower-turnover form

What Makes It Unique

Most strategy tools tune parameters. This one starts from evidence that tuning has stopped helping, refuses to generate pivots when the underlying metrics need repair, and then changes the strategy structure with three named techniques. It plugs into the Edge pipeline of sibling skills, so its output feeds straight back into the backtest step.

Under The Hood

The skill is driven by two local Python scripts that need PyYAML. One appends backtest evaluation results to a history file and detects stagnation; the other generates pivot drafts from the diagnosis and a source strategy draft. Both run as shell commands and write JSON, YAML and Markdown files into a reports folder. The skill does not call any web service and needs no API key. Its reference files describe the stagnation triggers, strategy archetypes, pivot techniques and the proposal schema.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers