sweep-reoptimization

sweep-reoptimization is a skill for Claude Code, Codex from austin-starks/Public-Portfolio-Challenge. It costs 109 tokens per session (1,286 once invoked), scanned A, original, MIT.

A method for testing trading-strategy designs across changing market periods and re-optimizing their settings. It also records where each setting came from.

In plain words
What is it for?
Use it when a NexusTrade strategy changes its sizing, assets, trade depth, time-to-expiry range, entry or exit rules, or ranking signals, and needs a new walk-forward parameter sweep before certification.
Why use it?
It prevents a strategy from reusing settings that were optimized for a different structure, such as a changed asset list or trade design.

Skill for Claude CodeCodex

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

Good fit Use it when a NexusTrade strategy changes its sizing, assets, trade depth, time-to-expiry range, entry or exit rules, or ranking signals, and needs a new walk-forward parameter sweep before certification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/austin-starks/public-portfolio-challenge/sweep-reoptimization
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 austin-starks/Public-Portfolio-Challenge --skill sweep-reoptimization
Clone the repo
git clone --depth 1 https://github.com/austin-starks/Public-Portfolio-Challenge

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 sweep-reoptimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization/github.svg)](https://agentmods.dev/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization)
Your own site
<a href="https://agentmods.dev/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization"><img src="https://agentmods.dev/badge/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization/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 sweep-reoptimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization"><img src="https://agentmods.dev/badge/skills/austin-starks/public-portfolio-challenge/sweep-reoptimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 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 pass 7 Sept 2026
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.00109 $0.01286
Opus 5 $0.00055 $0.00643
Sonnet 5 $0.00022 $0.00257
Haiku 4.5 $0.00011 $0.00129

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

Security

Grade A, and why

sweep-reoptimization 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (install.sh), 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/sweep-reoptimization/SKILL.md · 82 lines

How it starts

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

Sweep Re-Optimization & Provenance

The three standing methodology rules that exist because a deploy candidate was once certified on knobs inherited from a sweep on a different structure and presented as "optimal."

The three standing rules (binding on all future episodes)

  1. Re-optimize on ANY structural change — never inherit a genome across structures. Knobs (TP, total budget, per-name size, rank window, VIX gate, entry cooldown, DTE bracket) are structure-dependent. Whenever the structure changes — affordability rungs, strike depths, universe membership (e.g. adding a name), DTE family, entry/exit shape, or adding an alt-data rank signal — re-run the engine_kind:"sweep" walk-forward on the NEW book before certifying. A backtest_only cert on inherited knobs only confirms the book generalizes; it does not establish the knobs are good for that structure.
  2. Separate "explore designs" from "optimize the chosen design." Screen candidate designs → pick one → then sweep that exact design's knobsthen backtest_only-certify. If the screen picks design X, the sweep base must be X itself, not its neighbours. Never sweep the losers' variants while leaving the chosen book hand-tuned.
  3. Label every deployed parameter's provenance in the deliverable — swept-on-this-book / inherited-from <study-id> / hand-set. "Inherited" is amber, not green, until re-swept on the current structure.

Self-check trigger words: "carry over the knobs," "reuse the winner's params," "same config on the new ladder," "already certified, no need to re-sweep," "just raise the allocation." Each must prompt: did the structure change since those knobs were searched? If yes → re-sweep before certifying.

Running the sweep

  1. get_sweep_surface on the chosen book (or a clean clone) FIRST to get the real sweepable field names. Re-sweep from a CLEAN seed — re-sweeping an already-swept book can stack/duplicate genes; field-audit for duplicated conditions.
  2. run_walk_forward_study with engine_kind:"sweep", inner_mode:"optimize", certification:true, mode:"validation", anchored, 5 folds (4 acceptable), 2022→today, oos_width_days:252. See walk-forward-oos for the full param block. GA overfits and is rejected for deploy certification — sweep is the certified path. preview_only:true first to compile genes + cost-check.
  3. Each sweep must be non-trivial: ≥3 gene_intents axes × ≥3 values each (e.g. BuyingPowerPct, TakeProfitPct, RollTriggerDte, rank depth, delta band, DTE). A 1-axis or 2-value sweep does not qualify.

Read the full file on GitHub · 82 lines

Files

What ships with it

3 files 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. 11d ago First seen · 82 lines · 109 tokens per session scan A ff0f33490f13

Subscribe to this mod's changes

sweep-reoptimization is a skill published in the GitHub repository austin-starks/Public-Portfolio-Challenge (44 stars, last pushed 3d ago), licensed MIT. It adds 109 tokens to every session and 1,286 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

tushare

A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.

HKUDS/Vibe-Trading · 79 tokens

correlation-analysis

Correlation and cointegration analysis — co-movement discovery, deep return-correlation analysis, sector clustering, realized correlation, Engle-Granger / Johansen cointegration, half-life, Kalman dynamic hedge ratio, cross-market linkage analysis, and pair-trading signal generation.

HKUDS/Vibe-Trading · 57 tokens

social-media-intelligence

Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies.

HKUDS/Vibe-Trading · 28 tokens

ashare-pre-st-filter

An A-share China stock risk checker that forecasts whether a company may receive an ST or *ST warning in the next financial year. ST labels are Chinese exchange warnings for companies facing specified financial or regulatory problems.

HKUDS/Vibe-Trading · 89 tokens

credit-analysis

A guide to analysing bonds and other fixed-income investments, including issuer credit quality, interest payments, default risk, credit spreads, and convertible bonds. It also covers Chinese fixed-income markets and local-government financing bonds.

HKUDS/Vibe-Trading · 36 tokens

etf-analysis

A framework for comparing exchange-traded funds (ETFs), which are funds bought and sold on a stock exchange and usually track an index, industry, asset, or strategy. It covers fees, how closely an ETF follows its target, trading activity, and portfolio use.

HKUDS/Vibe-Trading · 39 tokens