skills/parallel-sweep/SKILL.md
Run parallel parameter sweeps using multiple Claude Code headless agents. Each agent explores a different parameter subspace, writes results to shared SQLite database, and a summary report is generated. Use for coefficient searches, hyperparameter tuning, or any parallelizable parameter optimization.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers parallel-sweepInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Spawn multiple Claude Code headless agents to search parameter spaces in parallel, converging results into a shared database.
While designed for coefficient sweeps in sports prediction, this skill works for any parameter optimization task. Adapt the parameter space and evaluation metrics to the domain.
When sweeping sports prediction model parameters:
Read the current configuration to understand:
Divide the parameter space into N equal partitions (default: 4 agents):
DB_PATH="sweep_results.db"
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
# Create results table if it doesn't exist
sqlite3 "$DB_PATH" "CREATE TABLE IF NOT EXISTS sweep_results (
id INTEGER PRIMARY KEY AUTOINCREMENT,
agent_id INTEGER,
coefficients_json TEXT,
accuracy REAL,
roi REAL,
timestamp TEXT DEFAULT CURRENT_TIMESTAMP
);"
Use the Agent tool to dispatch a subagent for each parameter set. Each subagent receives:
Subagent prompt template:
You are sweep agent {i} of {N}.
Read config.json for coefficient ranges.
Your partition: take the full range and split into {N} equal parts, you handle part {i}.
For each configuration in your partition:
1. Run the backtest
2. Record results to SQLite: INSERT INTO sweep_results (agent_id, coefficients_json, accuracy, roi) VALUES ({i}, '<json>', <accuracy>, <roi>)
DB path: {DB_PATH}
Use | tee for all output. Never suppress stdout.
Dispatch all N subagents (default: 4) in parallel using the Agent tool. Wait for all to complete before proceeding to analysis.
Fallback: If subagents are unavailable, run sweeps sequentially. Iterate through each partition one at a time in the current session, recording results to the same SQLite database after each partition completes.
After completion:
# Top configurations by accuracy
sqlite3 -header sweep_results.db "SELECT * FROM sweep_results ORDER BY accuracy DESC LIMIT 10;"
# Best ROI
sqlite3 -header sweep_results.db "SELECT * FROM sweep_results ORDER BY roi DESC LIMIT 10;"
# Distribution
sqlite3 sweep_results.db "SELECT agent_id, COUNT(*), AVG(accuracy), MAX(accuracy) FROM sweep_results GROUP BY agent_id;"
Long sweeps get interrupted by rate limits, timeouts, and session crashes. Every sweep must be resumable:
SELECT COUNT(*) FROM sweep_results — if results exist, announce "Resuming sweep — X configurations already completed, Y remaining."# Resume-aware sweep loop
completed = db.execute("SELECT coefficients_json FROM sweep_results").fetchall()
completed_set = {row[0] for row in completed}
remaining = [c for c in all_configs if json.dumps(c) not in completed_set]
print(f"Resuming: {len(completed_set)} done, {len(remaining)} remaining")
for batch in chunks(remaining, batch_size=100):
for config in batch:
result = run_backtest(config)
db.execute("INSERT INTO sweep_results ...")
db.commit()
print_top_5(db)
| tee for everythingtools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.