Use when an algorithm-first quest should manage candidate briefs, optimization frontier, branch promotion, or fusion-aware search instead of the paper-oriented default loop.
69
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this skill for algorithm-first quests where the goal is the strongest justified optimization result rather than paper packaging. The goal is to move the frontier by one justified step at a time, not to generate a large pile of low-information candidates.
Use optimize when:
Do not use optimize when:
Recover the current frontier, choose one optimize submode, advance one justified move, then record the new frontier or explicit stop condition.
explore, exploit, fusion, debug, or stop, and record that route durably.artifact.get_optimization_frontier(...) when available and use it as the primary optimization-state summary.artifact.submit_idea(..., submission_mode='candidate').artifact.submit_idea(..., submission_mode='line').artifact.record(... report_type='optimization_candidate' ...).artifact.record_main_experiment(...).bash_exec(...).Before optimize can end, all applicable checks should be true:
bash_exec; do not use any other terminal path for smoke checks, quick validations, long runs, Git, Python, package-manager, or file-inspection commands.Before broad optimization search or candidate management becomes substantial, maintain these quest-visible control files:
plan.md as the research map and loop tracker for the whole questPLAN.md as the active optimize-node contractOPTIMIZE_CHECKLIST.md as the optimize-specific execution frontierCHECKLIST.md as a mirror of the immediate next move when it existsCANDIDATE_BOARD.md as the compact candidate ledgerUse these templates:
references/optimize-checklist-template.mdreferences/candidate-board-template.mdoptimize is the looped search controller for algorithm-first quests, not a replacement for the quest-level roadmap.
When a result becomes the new incumbent, plateaus, or stops, update quest-root plan.md so the next loop edge is explicit.
Use these three object levels consistently:
artifact.submit_idea(mode='create', submission_mode='candidate', ...)
Record a possible direction or method brief without opening a branch yet.artifact.submit_idea(mode='create', submission_mode='line', ...)
Open a real branch or worktree and make it a formal optimization path.artifact.record(payload={'kind': 'report', 'report_type': 'optimization_candidate', ...})
Record one within-line attempt such as one patch, one smoke candidate, one debug candidate, or one fusion candidate.Use artifact.record(payload={'kind': 'decision', ...}) when the frontier route changes, a line is promoted, a line is stopped, or the next optimize submode is selected.
Treat optimize as one stable stage skill with six internal submodes:
brief: turn loose directions into compact candidate briefsrank: compare briefs on one shared surface and choose promotion candidatesseed: create a small implementation-level pool inside one durable lineloop: advance one durable line with bounded smoke/full-eval/record actionsfusion: combine complementary strengths from multiple linesdebug: rescue a strategically valuable candidate blocked by a concrete failure modeDo not treat these as separate public skills. Treat them as internal execution modes inside one optimize workflow.
Default selection order:
fusion when the frontier explicitly says fusiondebug when a strategically valuable candidate failed for a concrete and likely fixable reasonrank when several candidate briefs already exist and promotion is the main unresolved questionbrief when the candidate-brief slate is too thin or too weakseed when a durable line exists but there is no live implementation-candidate poolloop when a live candidate pool or leading durable line already exists and the main need is bounded execution progressAt meaningful route boundaries, choose exactly one dominant route meaning:
explore: widen search with fresh candidate directionsexploit: focus on the strongest current linefusion: merge insights from multiple successful or complementary linesdebug: rescue a candidate or line blocked by a concrete failure modestop: the current frontier is saturated or the remaining routes are not justifiedDefault heuristics:
explore when no line is clearly dominant or the current lines are too similarexploit when one line clearly leads on evidence and comparabilityfusion when at least two lines have meaningful complementary strengthsdebug when a strategically valuable candidate failed for a concrete and likely fixable reasonstop when the frontier is saturated or the remaining routes are low-value relative to costThe main skill keeps the control surface in front. For the longer playbooks, templates, and protocol details, read the references:
references/operational-guidance.mdreferences/brief-shaping-playbook.mdreferences/candidate-ranking-template.mdreferences/frontier-review-template.mdreferences/method-brief-template.mdreferences/codegen-route-playbook.mdreferences/debug-response-template.mdreferences/fusion-playbook.mdreferences/optimization-memory-template.mdreferences/optimize-checklist-template.mdreferences/plateau-response-playbook.mdreferences/prompt-patterns.mdUse them when:
Use these reference sections as needed without copying them into chat:
Codegen route choices should stay explicit: stepwise generation for incremental edits, diff / patch generation for contained changes, and full rewrite only when the old surface is genuinely the blocker.
Mandatory first-call sequence: refresh artifact.get_optimization_frontier(...), recover quest state, then choose brief, rank, seed, loop, fusion, debug, or stop.
Use memory.search(...) for same-line local attempt memory before repeating a known failure or reopening stale frontier assumptions.
Stall-recovery protocol: if a line stops improving, decide whether the issue is mechanism family, change-layer diversity, validation-cost-aware seed policy, validation-cost-aware loop policy, or execution noise. Internal submode selection should preserve a coverage contract and a distinct promotion policy for each route. InternAgent maps most naturally to codegen-route and execution-surface optimization; MLEvolve maps most naturally to search-loop, mutation, and validation orchestration.
Brief shaping should clarify the bottleneck, constraints, and comparability boundary first, then generate a small differentiated slate, usually 2-3 serious approaches.
Recommend one approach with explicit tradeoffs against the alternatives, and self-check the winning brief for ambiguity, overlap, and weak justification before submission.
recommend one approach with explicit tradeoffs against the alternatives
Candidate briefs should expose why_now.
For seed mode, use a validation-cost-aware seed policy: if checks are under about 20 minutes, a separate smoke stage is optional; direct submission into quick parallel validation is acceptable.
Only skip smoke when the parallel quick validations are expected to produce distinguishable conclusions.
only skip smoke when the parallel quick validations are expected to produce distinguishable conclusions
Use smoke test or direct quick validation according to uncertainty, and you may skip a separate smoke stage and submit several quick validations in parallel when the hypotheses are separable.
For loop mode, use a validation-cost-aware loop policy; if the validation loop is slow, do not keep paying for frontier uncertainty that could have been reduced in brief.
Gate evolution on clear objective signal rather than small local preference.
gate evolution on clear objective signal
Family-shift trigger: when repeated same-family edits stall, revisit the mechanism family. Task-category primer: prefer simple-first changes, one atomic improvement per pass, and bugfix-only passes when the failure is localized.
Exit optimize only when one of these is durably true:
Do not treat one candidate creation or one smoke pass as stage completion.
b366244
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.