strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
How do I install this agent skill?
npx skills add https://github.com/tradermonty/claude-trading-skills --skill strategy-pivot-designerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The strategy-pivot-designer skill identifies plateaus in trading strategy performance and suggests structural changes. It uses secure parsing techniques such as PyYAML's safe_load. However, the skill is susceptible to indirect prompt injection because it processes untrusted backtest results and strategy data, incorporating them into generated reports and YAML drafts that are intended for consumption by other agents or future pipeline stages, potentially leading to the execution of embedded instructions.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
4/12 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Strategy Pivot Designer
Overview
Detect when a strategy's backtest iteration loop has stalled and propose structurally different strategy architectures. This skill acts as the feedback loop for the Edge pipeline (hint-extractor -> concept-synthesizer -> strategy-designer -> candidate-agent), breaking out of local optima by redesigning the strategy's skeleton rather than tweaking parameters.
When to Use
- Backtest scores have plateaued despite multiple refinement iterations.
- A strategy shows signs of overfitting (high in-sample, low robustness).
- Transaction costs defeat the strategy's thin edge.
- Tail risk or drawdown exceeds acceptable thresholds.
- You want to explore fundamentally different strategy architectures for the same market hypothesis.
Prerequisites
- Python 3.9+
PyYAML- Iteration history JSON (accumulated backtest-expert evaluations)
- Source strategy draft YAML (from edge-strategy-designer)
Output
pivot_drafts/research_only/*.yaml— strategy_draft compatible YAML proposalspivot_drafts/exportable/*.yaml— export-ready drafts + ticket YAML for candidate-agentpivot_report_*.md— human-readable pivot analysispivot_manifest_*.json— metadata for all generated filespivot_diagnosis_*.json— stagnation detection results
Workflow
- Accumulate backtest evaluation results into an iteration history file using
--append-eval. - Run stagnation detection on the history to identify triggers (plateau, overfitting, cost defeat, tail risk).
- If stagnation detected, generate pivot proposals using three techniques: assumption inversion, archetype switch, objective reframe.
- Review ranked proposals (scored by quality potential + novelty).
- For exportable proposals, ticket YAML is ready for edge-candidate-agent pipeline.
- For research_only proposals, manual strategy design needed before pipeline integration.
- Feed the selected pivot draft back into backtest-expert for the next iteration cycle.
Quick Commands
Append a backtest evaluation to history (creates history if new):
python3 skills/strategy-pivot-designer/scripts/detect_stagnation.py \
--append-eval reports/backtest_eval_2026-02-10_120000.json \
--history reports/iteration_history.json \
--strategy-id draft_edge_concept_breakout_behavior_riskon_core \
--changes "Widened stop_loss from 5% to 7%"
Detect stagnation:
python3 skills/strategy-pivot-designer/scripts/detect_stagnation.py \
--history reports/iteration_history.json \
--output-dir reports/
Generate pivot proposals:
python3 skills/strategy-pivot-designer/scripts/generate_pivots.py \
--diagnosis reports/pivot_diagnosis_*.json \
--strategy reports/edge_strategy_drafts/draft_*.yaml \
--max-pivots 3 \
--output-dir reports/
Resources
skills/strategy-pivot-designer/scripts/detect_stagnation.pyskills/strategy-pivot-designer/scripts/generate_pivots.pyreferences/stagnation_triggers.mdreferences/strategy_archetypes.mdreferences/pivot_techniques.mdreferences/pivot_proposal_schema.mdskills/backtest-expert/scripts/evaluate_backtest.pyskills/edge-strategy-designer/scripts/design_strategy_drafts.py
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/tradermonty/claude-trading-skills/strategy-pivot-designer">View strategy-pivot-designer on skillZs</a>