optimize
Skill3 starsChanged 47 days agoMITView on GitHub
Parameter exploration for trading backtests. Analyzes trade data to find patterns across parameters like time of day, DTE, delta ranges, and market conditions. Use when exploring which parameters performed differently or understanding strategy behavior across conditions.
76 other projects use a version of this.
Adopted by
Most recently taken up by
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tooltheir own version, first seen Nov 8, 2026
- Mrbaeksang/skillstheir own version, first seen Nov 8, 2026
- cihantopac/searvextheir own version, first seen Nov 8, 2026
- daintreehq/daintreetheir own version, first seen Nov 5, 2026
- theexperiencecompany/gaiatheir own version, first seen Nov 3, 2026
Used with
Projects with it also use arrange, teach-impeccable and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.
Also in 14 projects that use this
HK-hubSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 17 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 19 projects that use this
open-coder-aiSkillpolicy-init
Create conformant Chock policy from request. args(request, target_path,
Also in 3 projects that use this
- +8 more from HK-hub
Other versions76 projects use a version of this.
Word for word · 1
- tradeblocks-org/tradeblocks-skills★ 3100% same
Edited · 0
None found.
Wrote their own version · 75
- Z3Prover/z3★ 13ksame name
- highcharts/highcharts★ 13ksame name
- whitecircle/halo★ 851same name
- hacan359/tonkatsu_box★ 597same name
- talesofai/cohub★ 585same name
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tool★ 432same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- Southclaws/storyden★ 348same name
- 10xChengTu/Mux0★ 337same name
65 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compareSkill
- dc-analysisSkill
- health-checkSkill
- is-this-optimum-realSkill
- market-dataSkill
- oo-captureSkill
- portfolioSkill
- profileSkill
- riskSkill
- wfaSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 7 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 72 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Ask what the user wants to explore:
- Distinctive: line 42
Ask: "What aspect of your strategy would you like to explore?"
- Very specific: line 44
Use list_blocks to identify the target block.
- Very specific: line 48
Run find_predictive_fields to rank all numeric fields by correlation with P&L.
- Distinctive: line 58
All numeric fields ranked by absolute correlation with P&L
- Very specific: line 100
Use filter_curve to sweep thresholds and see performance at each cutoff point.
- Very specific: line 128
Run suggest_filters to get data-driven filter suggestions based on market conditions.
- Very specific: line 155
If the strategy has a profile with entry filters, run validate_entry_filters:
- Very specific: line 190
Run walk-forward analysis to test if pattern persists on unseen data (/tradeblocks:wfa)
- Distinctive: line 192
Check if pattern aligns with strategy thesis
- Very specific: line 211
Run find_predictive_fields with the block (and optional strategy filter)
- Very specific: line 218
Run get_field_statistics on openingVix to see the distribution
- Very specific: line 219
Run filter_curve on openingVix to test thresholds
- Very specific: line 225
Run suggest_filters to get data-driven suggestions
- Distinctive: line 227
Look for smooth gradients, not sharp cliffs
- Very specific: line 232
Run validate_entry_filters with the strategy profile name
- Distinctive: line 234
Check the ablation study for filter interactions
- Very specific: line 242
Validate with walk-forward: - use /tradeblocks:wfa for out-of-sample testing
- Distinctive: line 250
Consider the trading thesis - does the pattern make sense?
“Common” is measured: kept by at least 6 in 10 of the 72 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Parameter Exploration
Explore trade data to understand how performance varies across different parameters.
What This Skill Does
Uses predictive field analysis, field statistics, filter curves, and market-based filter suggestions to answer questions like:
- "Which fields correlate with P&L?"
- "What does the VIX distribution look like for my trades?"
- "Is there an S/L ratio threshold that improves results?"
- "What market-based filters would have helped?"
Important: This skill helps surface patterns in historical data. Past patterns may not persist. See references/optimization.md for overfitting context.
Prerequisites
- TradeBlocks MCP server running
- Block with trade data loaded
- Market data imported for market-based filter suggestions (daily OHLCV + VIX context)
- Sufficient trade count for meaningful analysis (50+ trades for better signal)
Process
Step 1: Identify Exploration Goal
Ask what the user wants to explore:
| Goal | Primary Tool |
| Find which fields predict P&L | find_predictive_fields |
| Understand a specific field's distribution | get_field_statistics |
| Test filter thresholds on a field | filter_curve |
| Get market-based filter suggestions | suggest_filters |
| Validate existing entry filters | validate_entry_filters |
Ask: "What aspect of your strategy would you like to explore?"
Use list_blocks to identify the target block.
Step 2: Discover Predictive Fields
Run find_predictive_fields to rank all numeric fields by correlation with P&L.
Key parameters:
blockId: Block folder namestrategy: Optional filter to specific strategystrategyName: Strategy profile name (auto-filters to that strategy's trades, adds profile context)targetField: Field to correlate against (default:"pl")minSamples: Minimum trades with valid values (default: 30)
Tool returns:
- All numeric fields ranked by absolute correlation with P&L
- Correlation direction (positive/negative)
- Sample size per field
- Fields skipped due to insufficient data
Interpreting results — exclude output-derived fields (netPl, plPct, rom, isWinner, maxProfit, maxLoss, profitCapturePercent, rMultiple, etc.) and focus on actionable entry/market fields:
| Field | What It Means | Actionable? |
openingShortLongRatio | Entry quality / structure health | Yes - potential min threshold filter |
openingVix | VIX at entry | Yes - potential VIX range filter |
durationHours | Holding period | Yes - exit timing |
movement | Underlying movement during trade | Context for regime sensitivity |
premium | Entry pricing | Yes - potential min/max filter |
gap | Opening gap | Yes - potential gap filter |
hourOfDay | Entry time | Yes - time-of-day filter |
numContracts | Position size | Context for sizing effects |
Flag any actionable field with |correlation| > 0.1 as worth investigating further.
Step 3: Examine Field Distribution
For fields identified in Step 2, use get_field_statistics to understand the data shape.
Key parameters:
blockId: Block folder namefield: Field name to analyzestrategy: Optional filterhistogramBuckets: Number of histogram buckets (default: 10, max: 50)
Tool returns:
- Range (min/max), mean, median, standard deviation
- Percentiles (p5, p10, p25, p50, p75, p90, p95)
- Histogram with bucket counts
This reveals:
- Where trades concentrate
- Whether there are outliers
- The natural breakpoints for filter thresholds
Step 4: Test Filter Thresholds
Use filter_curve to sweep thresholds and see performance at each cutoff point.
Key parameters:
blockId: Block folder namefield: Field to sweep thresholds onstrategy: Optional filtermode:"lt"(field < threshold),"gt"(field > threshold),"both"(show both directions)thresholds: Custom threshold values to test (auto-generated from percentiles if omitted)percentileSteps: Which percentiles to use for auto thresholds (default: [5, 10, 25, 50, 75, 90, 95])
Tool returns per threshold:
- Trade count remaining after filter
- Win rate, profit factor, net P&L of remaining trades
- Comparison to unfiltered baseline
Present as a table showing performance at each threshold:
| Threshold | Mode | Trades | Win Rate | PF | Net P&L | vs Baseline |
| ... | ... | ... | ... | ... | ... | ... |
What to look for:
- Smooth gradient: Performance improves gradually as threshold tightens — genuine signal
- Sharp cliff: Good at one value, terrible at adjacent — likely noise/overfit
- Wide plateau: A range of values all work well — robust filter candidate
Step 5: Market-Based Filter Suggestions
Run suggest_filters to get data-driven filter suggestions based on market conditions.
Key parameters:
blockId: Block folder namestrategy: Optional filter to specific strategystrategyName: Strategy profile name (cross-references against existing profile filters)minImprovementPct: Only suggest filters with >= X% win rate improvement (default: 3)
Tool returns:
- Standalone filter suggestions with before/after metrics
- Composite filters (multi-field combinations where cross-field correlations are strong)
- Each suggestion includes the market field, threshold, direction, and improvement metrics
Market fields analyzed:
- VIX levels (open, prior close), VIX IVR/IVP
- Gap percentage, prior range vs ATR
- Vol regime, term structure state
- RSI, realized vol (5D/20D)
- Day of week, OpEx flag
Present the top suggestions ranked by improvement. For each, note:
- How many trades would be excluded
- The improvement in win rate and profit factor
- Whether the suggestion aligns with the strategy's thesis
Step 6: Validate Existing Filters (If Profile Exists)
If the strategy has a profile with entry filters, run validate_entry_filters:
Key parameters:
blockId: Block folder namestrategyName: Strategy name matching a stored profile
Tool returns:
- Per-filter comparison: entered vs filtered-out trades (full stat suite)
- Ablation study: removes one filter at a time and tests pairs
profile_update_hintswhen filters appear counterproductive
Surface any filters that are hurting rather than helping — where filtered-out trades actually outperform entered trades.
Step 7: Present Findings
Synthesize what the data shows:
Predictive Fields Summary:
- Top actionable fields: [field 1] (r=[value]), [field 2] (r=[value])
- Fields with no signal: [list any with |r| < 0.05]
Filter Curve Results (if tested):
- Field tested: [field name]
- Optimal range: [threshold] with [trades remaining]
- Robustness: [smooth gradient / sharp cliff / wide plateau]
Market Filter Suggestions (if run):
- Top suggestion: [filter] — [improvement]% win rate improvement, excludes [N] trades
- [Any suggestions that align with strategy thesis]
Sample Size Context:
- [Note which analyses have sufficient data]
- [Flag any with <30 trades in key buckets]
For further validation:
- Run walk-forward analysis to test if pattern persists on unseen data (
/tradeblocks:wfa) - Collect more trades to increase sample sizes
- Check if pattern aligns with strategy thesis
Present these as patterns in the historical data. The user can decide what weight to give these observations.
Interpretation Reference
For detailed guidance on interpreting optimization results and avoiding overfitting, see references/optimization.md.
Related Skills
After parameter exploration:
/tradeblocks:wfa- Test if patterns hold on out-of-sample data/tradeblocks:health-check- Full metrics review/tradeblocks:dc-analysis- DC-specific deep dive with curve fit detection
Common Scenarios
"Which fields predict P&L for my strategy?"
- Run
find_predictive_fieldswith the block (and optional strategy filter) - Filter out output-derived fields (netPl, plPct, isWinner, etc.)
- Present actionable fields ranked by |correlation|
- For top fields, run
get_field_statisticsto understand distributions
"Is there a VIX filter that would help?"
- Run
get_field_statisticsonopeningVixto see the distribution - Run
filter_curveonopeningVixto test thresholds - Also run
suggest_filtersto see if VIX-based filters are suggested - Compare: does the filter_curve sweet spot align with suggest_filters recommendation?
"What market conditions should I avoid?"
- Run
suggest_filtersto get data-driven suggestions - For each suggestion, run
filter_curveon the underlying field to check robustness - Look for smooth gradients, not sharp cliffs
- Cross-reference with strategy thesis — does the filter make sense mechanically?
"Are my current filters actually helping?"
- Run
validate_entry_filterswith the strategy profile name - Review per-filter entered vs filtered-out comparison
- Check the ablation study for filter interactions
- Surface any
profile_update_hints
Data Quality Notes
- Historical patterns may not persist - markets and conditions change
- Small sample sizes are noisy - 30+ trades per bucket for meaningful comparison
- Multiple testing inflates apparent significance - be skeptical of "best" findings
- Validate with walk-forward - use
/tradeblocks:wfafor out-of-sample testing - Consider why - patterns with logical explanations are more likely to persist
Notes
- Exploration surfaces patterns; it doesn't prove causation
- The "best" parameter from historical data often regresses toward average
- Robustness across parameters often matters more than optimization to one value
- Consider the trading thesis - does the pattern make sense?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

