Brief
alirezarezvani/claude-skills
/cs:brief <topic — Generate a one-page strategy brief from an office-hours intake.
A skill your agent uses when an algorithm-first quest should manage candidate briefs, optimization frontier, branch promotion, or fusion-aware search instead of the paper-oriented default loop.
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenLAIR/dr-claw ds-optimize --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ds-optimize .claude/skills/ds-optimize && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .claude/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimizeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenLAIR/dr-claw ds-optimize --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/ds-optimize .agents/skills/ds-optimize && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .agents/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenLAIR/dr-claw ds-optimize --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/ds-optimize .cursor/skills/ds-optimize && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .cursor/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenLAIR/dr-claw.git --path skills/ds-optimize--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenLAIR/dr-claw ds-optimize --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/ds-optimize .gemini/skills/ds-optimize && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .gemini/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenLAIR/dr-claw ds-optimizeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/ds-optimize .github/skills/ds-optimize && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .github/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLAIR/dr-claw --skill ds-optimize -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenLAIR/dr-claw ds-optimize --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLAIR/dr-claw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/ds-optimize .opencode/skills/ds-optimize && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ds-optimize" agent skill from https://github.com/OpenLAIR/dr-claw/tree/main/skills/ds-optimize into .opencode/skills/ds-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ds-optimize", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ds-optimizeA skill your agent uses when an algorithm-first quest should manage candidate briefs, optimization frontier, branch promotion, or fusion-aware search instead of the paper-oriented default loop.
Ds Optimize is an agent skill from OpenLAIR/dr-claw. 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.
Its SKILL.md is about 14k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: A Super AI Lab with massive AI Doctors as Assistants. Best IDE for Research via AI Power. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d51b64e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ds Optimize loads about 14k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 7,178 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OpenLAIR/dr-claw at commit d51b64e, republished under its MIT licence (© OpenLAIR). 7,178 words, ~13,632 tokens.
.claude/skills/ds-optimize/SKILL.md (or your agent's skills folder).Use this skill for algorithm-first quests where the goal is the strongest justified optimization result rather than paper packaging.
This skill is the lightweight optimization control layer for DeepScientist. It does not replace the normal quest runtime. It tells you how to use the existing DeepScientist artifact, memory, bash_exec, Git, and worktree mechanisms as an optimization system.
bash_exec; do not use any other terminal path for smoke checks, quick validations, long runs, Git, Python, package-manager, or file-inspection commands.The optimize stage should do four things:
This skill is especially appropriate when startup_contract.need_research_paper = false.
Treat optimize as one stable stage skill with six internal submodes:
briefrankseedloopfusiondebugDo not treat these as separate public skills. Treat them as internal execution modes inside one optimize workflow.
InternAgent maps most naturally onto the brief and rank side of this stage.
MLEvolve maps most naturally onto the seed, loop, fusion, and debug side of this stage.
Do not collapse those two layers into one vague "optimize more" loop.
Before broad optimization search or candidate management becomes substantial, maintain these quest-visible control files:
OPTIMIZE_CHECKLIST.mdCANDIDATE_BOARD.mdUse:
optimize checklist template appendix sectioncandidate board template appendix sectionOPTIMIZE_CHECKLIST.md is the execution control surface.
It should track:
CANDIDATE_BOARD.md is the compact candidate ledger.
It should track:
Treat this as the concrete optimize workflow. Do not skip these steps just because the quest is algorithm-first.
At the start of each meaningful optimize pass, use this order unless a stronger local reason exists:
artifact.get_optimization_frontier(...)memory.list_recent(scope='quest', limit=5)memory.search(...)artifact.get_quest_state(detail='summary')artifact.read_quest_documents(...) when exact durable wording mattersDo not create new candidates before the frontier, recent optimization lessons, and current runtime refs are checked. If the frontier is missing or obviously stale, recover that state before proposing more work.
When the next direction is still fuzzy, do not jump straight into code or branch creation. First turn the direction into a compact candidate brief.
The brief-shaping sequence is:
2-3 serious approachesEvery serious brief should answer:
The durable call for this step is usually:
artifact.submit_idea(mode='create', submission_mode='candidate', ...)Use idea when the mechanism family itself is still unresolved.
Use optimize when the family is already chosen and the work is now branchless brief shaping, ranking, or within-line search.
Before promoting a line, compare the serious briefs on one shared ranking surface. At minimum evaluate:
Then state:
Do not promote every plausible brief.
Default rule: promote only 1-3 candidate briefs, and usually fewer.
The durable call for this step is one of:
artifact.submit_idea(mode='create', submission_mode='line', source_candidate_id=..., ...)artifact.record(payload={'kind': 'decision', 'action': 'branch'|'continue'|'stop', ...})Once a brief is promoted, the next main work belongs to experiment, not to vague optimize chatter.
Before substantial implementation or compute:
OPTIMIZE_CHECKLIST.mdCANDIDATE_BOARD.mdPLAN.mdCHECKLIST.mdThen hand off into experiment for:
Do not keep reshaping the method after the run contract is already concrete.
Use these artifact forms consistently:
artifact.submit_idea(..., submission_mode='candidate')artifact.submit_idea(..., submission_mode='line')artifact.record(payload={'kind': 'report', 'report_type': 'optimization_candidate', ...})artifact.record_main_experiment(...)artifact.record(payload={'kind': 'decision', 'action': 'iterate'|'branch'|'continue'|'stop', ...})Do not treat chat summaries as substitutes for these durable records.
Optimize uses the same long-run process discipline as experiment.
bash_exec for smoke checks, quick validations, and long runs.bash_exec(mode='detach', ...) for long runs and monitor with list/read/await.After every real measured result:
Do not treat one candidate creation, one smoke pass, or one detached launch as stage completion.
Use the following integrated structures directly inside this skill. They replace the old optimize reference files conceptually, even if those files still exist on disk.
Every serious candidate brief should include:
Tier1 / Tier2 / Tier3Use this when a candidate direction is still fuzzy and needs to become a ranking-ready brief.
When several briefs compete, produce:
CANDIDATE_BOARD.md should expose at least these columns:
brief or implementationOPTIMIZE_CHECKLIST.md should track at least:
Whenever route choice is unclear, write down:
Choose one route deliberately:
Do not jump to a rewrite merely because one local patch failed.
When a candidate fails but still looks strategically valuable, record:
Before opening a fusion candidate, answer:
Do not fuse two weak lines or two same-mechanism lines under different names.
When writing reusable optimization lessons, capture:
If one line keeps producing non-improving results:
Do not hide plateau under a sequence of tiny "one more tweak" loops.
For candidate-brief, improve, fusion, and debug prompts, preserve:
Preserve these reasoning contracts whenever possible:
artifact.submit_idea(..., submission_mode='candidate') for candidate briefs that should be ranked before promotion.artifact.submit_idea(..., submission_mode='line') only for directions that deserve a durable optimization line and branch/worktree.artifact.record(payload={'kind': 'report', 'report_type': 'optimization_candidate', ...}) for implementation-level candidate attempts inside one durable line.artifact.get_optimization_frontier(...) when available and use it as the primary optimization-state summary.Use these three object levels consistently:
candidate brief
artifact.submit_idea(mode='create', submission_mode='candidate', ...)
This records a possible direction or method brief without opening a branch yet.
durable optimization line
artifact.submit_idea(mode='create', submission_mode='line', ...)
This opens a real branch/worktree and becomes a formal optimization path.
implementation-level candidate attempt
artifact.record(payload={'kind': 'report', 'report_type': 'optimization_candidate', ...})
This is a within-line attempt such as one patch, one smoke candidate, one debug candidate, or one fusion candidate.
1-3 into durable lines.At the start of each meaningful optimize pass, update OPTIMIZE_CHECKLIST.md before spending significant code or compute.
At the start of a meaningful optimize pass, use this order unless a stronger local reason exists:
artifact.get_optimization_frontier(...)memory.search(...)artifact.get_quest_state(detail='summary')artifact.read_quest_documents(...) when exact durable wording mattersDo not start generating new candidates before the frontier and recent optimization lessons are checked.
Stage-start requirement:
memory.list_recent(scope='quest', limit=5)memory.search(...)artifact.get_optimization_frontier(...)OPTIMIZE_CHECKLIST.mdIf the frontier is missing or obviously stale, recover that state before proposing more work.
Choose exactly one primary optimize submode for the current meaningful pass.
Default selection order:
fusionfusiondebugrankbriefseedloopDo not bounce among submodes repeatedly in one pass. If the best submode changes after new evidence appears, record that route shift explicitly.
When a direction is interesting but not yet worthy of a new branch:
submission_mode='candidate'Good candidate-brief fields include:
Do not promote every candidate automatically.
Use the integrated method brief template section for the minimum acceptable candidate-brief structure.
Use the integrated brief shaping playbook section when the brief is still too vague, too implementation-first, or too collapsed onto one familiar mechanism.
Candidate briefs should explicitly answer:
If the brief cannot answer those four questions clearly, it is not ready for promotion or implementation.
Treat a candidate brief as the DeepScientist form of a method brief. It should sit between "idea intuition" and "code implementation".
Preserve this brief-shaping discipline:
2-3 serious approachesDo not jump from "interesting intuition" to branch creation. Do not jump from "I know how to code this" to "this deserves promotion."
When running the brief submode:
2-4 serious candidate briefs by defaultUse a coverage contract for every serious brief slate:
incumbent-deepening direction when justifiedorthogonal-mechanism direction when justifiedparadigm/objective/data-view shift direction when justifiedIf all serious briefs belong to the same mechanism family, do one widening pass before ranking. Do not treat a same-family slate as sufficient merely because the local scores look good.
For each serious brief, record at least:
Tier1 / Tier2 / Tier3InternAgent-style behavior to preserve here:
Do not require a paper-style literature hard gate inside this submode unless the quest explicitly moved back toward paper work.
Only promote a candidate brief into a durable line when at least one of the following is true:
Promotion should use:
artifact.submit_idea(mode='create', submission_mode='line', source_candidate_id=..., ...)
When several candidate briefs are plausible, rank them explicitly before promotion.
Use the integrated candidate ranking template section for the minimum acceptable ranking record.
Default promotion rule:
1-3 candidate briefs into durable linesWhen running the rank submode:
Use a distinct promotion policy:
When ranking, explicitly check:
If the top briefs are all same-family, either:
brief for a widening passThe output of rank should be promotion-ready.
The output of brief should be candidate-ready.
At meaningful route boundaries, inspect:
Prefer these route meanings:
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 justifiedUse the integrated frontier review template section when the next route is unclear.
Interpret frontier state with these default heuristics:
explore
exploit
fusion
debug
stop
When the frontier says explore, the default optimize submode is brief.
When the frontier says exploit, the default optimize submode is seed or loop.
When the frontier says fusion, the default optimize submode is fusion.
When a candidate failure dominates the next move, the default optimize submode is debug even if the frontier does not yet say so explicitly.
Use seed after a durable line exists and before a broad execution loop begins.
The goal is not to launch a full run immediately. The goal is to generate a small within-line candidate pool that can be smoke-tested and triaged.
When running seed:
2-3 implementation-level candidates by defaultreport_type='optimization_candidate'simple-first candidate in the initial seed batchFor each seed candidate, record at least:
MLEvolve-style behavior to preserve here:
fast-check and direct quick validation is cheaper and equally informativeUse a validation-cost-aware seed policy:
fast-check: the first objective smoke signal is likely under about 20 minutesslow-check: the first objective smoke signal is likely over about 20 minutes or expensive enough that broad probing is wastefulFor fast-check seed work:
3-5 candidates can be justified when they are genuinely differentiatedFor slow-check seed work:
1-2 candidates and rarely 3Do not keep a live implementation pool dominated by the same mechanism family. Default active-pool rule:
1-2 live candidates from the same familyUse loop when a durable line and implementation-candidate pool already exist and the main need is bounded forward motion.
Before changing code in loop, inspect the same-line local attempt memory for the current line.
Treat recent sibling attempts on the same line as the first memory surface, ahead of broader quest memory.
When running loop, choose one primary action:
smokepromote_to_full_evalarchiverecord_main_resultswitch_to_fusionswitch_to_debugstopEvery loop pass should end with:
Do not leave the line with several half-started directions and no dominant next move.
Default exploit rule: one atomic improvement per pass. Do not bundle several unrelated changes into one exploit candidate unless:
MLEvolve-style behavior to preserve here:
Use a validation-cost-aware loop policy:
fast-check tasks, it is acceptable to run more quick, different tests before convergingfast-check tasks, direct quick validation may replace a separate smoke stage if that saves time without losing decision qualityslow-check tasks, use fewer but sharper passes, and require objective gain before widening or evolving furtherbriefUse a branch/family diversity cap during exploitation:
Before broad new search, run at least one memory.search(...) using:
When the search appears too narrow, also retrieve one of:
For seed, loop, and debug, also inspect the same-line local attempt memory from the current leading line before widening to broader quest memory.
Write at least one quest memory card when you learn something reusable, such as:
Use the integrated optimization memory template section for the minimum acceptable memory-card shape.
Do not write generic "we tried some optimization" memory cards. Each card should be retrieval-friendly and decision-relevant.
Use:
artifact.submit_idea(..., submission_mode='candidate') for candidate briefsartifact.submit_idea(..., submission_mode='line') for durable promoted linesartifact.record(payload={'kind': 'report', 'report_type': 'optimization_candidate', ...}) for within-line attemptsartifact.record(payload={'kind': 'decision', 'action': 'iterate'|'branch'|'continue'|'stop', ...}) for route changesartifact.record_main_experiment(...) for real measured line resultsWhen the optimize pass is about ranking or promotion, also record one durable decision explaining:
When recording implementation-level candidates, prefer these status values:
proposedsmoke_runningsmoke_passedsmoke_failedpromotedfull_eval_runningsucceededfailedarchivedUse report_type='optimization_candidate' consistently for implementation-level attempts so they can later be summarized into the frontier.
bash_exec for smoke checks and full runs.fast-check direct validation is cheaper and equally informative.Use this execution order by default:
Prefer only a small active pool at once:
2-4 candidate briefs before promotion2-3 live implementation candidates in smoke1-2 full evaluations running at once unless the environment clearly supports moreValidation-cost-aware override:
20 minutes, it is reasonable to increase smoke breadth modestly and compare more alternatives early20 minutes, you may skip a separate smoke stage and submit several quick validations in parallelDo not use the same code-generation route for every optimization step.
Prefer:
brief-first, no code yet
stepwise generation
diff / patch generation
full rewrite
Use the integrated codegen route playbook section before committing to a larger rewrite.
Use debug when a candidate failed but still looks strategically valuable.
debug is bugfix-only.
Do not use a debug pass to sneak in a new performance-improvement idea.
If the proposed change goes beyond the minimal fix and becomes a new mechanism, stop and route back to brief or loop instead.
When a candidate fails:
Good debug prompts should make these explicit:
Use the integrated debug response template section for the minimum acceptable debug response shape.
Archive rather than debug when:
Use fusion only when the frontier justifies cross-line combination.
Before opening a fusion candidate:
Use the integrated fusion playbook section before launching cross-line fusion.
Do not fuse:
If the fusion hypothesis is still underspecified, return to brief instead of pretending fusion is ready.
For candidate-brief, improve, fusion, and debug prompts, preserve these recurring structures:
And preserve these recurring reasoning contracts:
Use the integrated prompt patterns section as the canonical optimization prompt crib sheet.
Treat repeated local edits without evidence gain as a search failure mode.
If one line shows repeated non-improving results:
Use the integrated fusion playbook section before launching cross-line fusion.
Use the integrated plateau response playbook section when deciding how to respond to repeated non-improving results.
Good fusion candidates usually satisfy both:
Do not fuse merely because two lines both exist.
When a line plateaus:
Do not hide plateau under a sequence of tiny "one more tweak" loops.
Family-shift trigger:
success_patience >= 2total_patience >= 5This is the default anti-collapse rule for optimize.
Before widening a stale frontier, classify the task briefly into one or more dominant structures:
Then ask whether the current brief slate overfits one familiar method family for that task. If it does, require at least one serious candidate from a different plausible family or lens before promotion.
If the optimize stage appears to stall, diagnose the stall explicitly instead of idling.
Common stall classes:
Preferred recovery order:
Do not leave the stage parked without a recorded reason and a concrete reopen condition.
Stage-end requirement:
memory.write(...) when the pass produced a reusable success pattern, repeated failure pattern, fusion lesson, or explicit non-retry ruleOPTIMIZE_CHECKLIST.mdCANDIDATE_BOARD.md when the candidate pool changedIf nothing reusable was learned, record why this pass was still necessary instead of writing a fake memory card.
This stage is complete only when one of these is durably true:
Do not treat one candidate creation or one smoke pass as stage completion.
This appendix inlines the former optimize/references/*.md material so the skill remains self-contained.
Use this reference when a candidate direction is still fuzzy and needs to become a structured, ranking-ready brief.
This playbook borrows the useful part of product-style brainstorming without importing a full software-spec workflow.
The goal is not a long design document.
The goal is a compact candidate brief that is clear enough to compare, rank, and either submit as submission_mode='candidate' or reject.
Before generating more variants, resolve the minimum ambiguity around:
If one unknown would materially change every candidate, clarify it first instead of generating a noisy slate. Prefer one question at a time when clarification is genuinely needed. If the answer is already available from durable state, use that instead of asking.
Default target: 2-3 serious approaches.
The slate should usually include:
Do not produce several renamed variants of the same mechanism family. If two variants differ only by parameter choice or patch detail, keep only the sharper one.
For each candidate, write:
Before recommending a winner, compare the serious candidates on the same dimensions:
Do not let each candidate justify itself with a different scoring story. Use one comparison surface so ranking is auditable.
After comparison, recommend one lead brief and explain:
Do not say "all are promising" and promote everything. If the slate is still too close to call, return to widening once or narrow the slate further.
Before calling artifact.submit_idea(..., submission_mode='candidate', ...), check:
why_current_line_is_limited explain a real gap instead of restating the mechanism?why_now explain what changed in evidence, failure pattern, or frontier state?If any answer is no, refine the brief before submission.
A good final brief package is short and structured:
2-3 candidate comparison table or bullet slatemethod-brief-template.md sectionKeep it compact. This is a shaping pass for optimization candidates, not a paper draft or engineering spec.
| Candidate ID | Level | Parent | Strategy | Status | Expected Gain | Observed Result | Promote / Archive |
|---|---|---|---|---|---|---|---|
| cand-001 | brief | current-head | explore | proposed | Better tail accuracy | n/a | pending |
| cand-002 | impl | cand-001 | exploit | smoke_passed | Faster convergence | smoke ok | consider promote |
Notes:
Level should be brief or implementationParent may be a branch, idea id, run id, or candidate idStrategy should usually be one of explore, exploit, fusion, debugPromote / Archive should be a clear recommendation, not an empty placeholdercandidate_id
Score summary:
Why it ranks here:
Promote / hold / reject:
candidate_id
Score summary:
Why it ranks here:
Promote / hold / reject:
candidate_id
Score summary:
Why it ranks here:
Promote / hold / reject:
Why the selected candidate should become a durable line now.
Why the other candidates were deferred, fused, or rejected.
Choose the code-generation route deliberately.
Use no-code candidate briefs when:
Prefer stepwise generation when:
Prefer diff / patch generation when:
Use a full rewrite only when:
Do not jump to a rewrite merely because one local patch failed.
For non-trivial codegen work, prefer this shape:
Do not go from a vague idea directly into a large patch with no intermediate plan.
What concrete error or failure occurred?
What similar failure pattern or repair lesson should be reused before changing code?
What is the most likely underlying cause?
What is the smallest plausible fix?
What parts of the line must remain unchanged for comparability and stability?
What bounded smoke or validation check should confirm the fix?
What outcome would prove this candidate should be archived instead of debugged again?
Use fusion only when:
Before fusion, write down:
source line A: strongest mechanism: strongest evidence: main weakness: what must survive the fusion:
source line B: strongest mechanism: strongest evidence: main weakness: what must survive the fusion:
Then answer:
Do not fuse:
One short line naming the candidate direction.
What concrete bottleneck or limitation does this target?
Why is the current best line or baseline not already solving this?
What specific intervention or design change is proposed?
Name the family explicitly, for example adapter, loss, architecture, augmentation, ensemble, retrieval, objective-shift.
One of:
Tier1: local optimization / training detailTier2: representation or component changeTier3: paradigm or system-level shiftWhere did this candidate come from?
What must remain stable for comparability?
What evidence should improve if this works?
Usually optimize or experiment.
What actually happened?
Why should a later optimization pass retrieve this?
When should this lesson be reused, and when should it be avoided?
artifact.get_optimization_frontier(...) or equivalent durable frontier summarybrief, rank, seed, loop, fusion, or debugexplore, exploit, fusion, debug, or stopUse this when one line keeps producing non-improving results.
These prompt structures are worth preserving across optimize subroutines.
When the line is stagnating:
When combining lines:
For debugging:
© OpenLAIR, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/ds-optimize of OpenLAIR/dr-claw.
Open the folder on GitHubat commit d51b64e
Ds Optimize next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ds Optimize this skillOpenLAIR/dr-claw | 1.2k | — | ~14k | Automated safety check: Pass | MIT | |
| Briefalirezarezvani/claude-skills | 28k | — | ~967 | Automated safety check: Pass | MIT | |
| SQL Optimizationgithub/awesome-copilot | 40k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Agent Performance Optimizerruvnet/ruflo | 74k | 2 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Database Optimizerdavila7/claude-code-templates | 32k | 8 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Prompt Optimizeraffaan-m/ECC | 275k | 2 repos | ~2.4k | Automated safety check: Pass | MIT |
alirezarezvani/claude-skills
/cs:brief <topic — Generate a one-page strategy brief from an office-hours intake.
github/awesome-copilot
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server…
ruvnet/ruflo
Agent skill for performance-optimizer - invoke with $agent-performance-optimizer
davila7/claude-code-templates
Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.
affaan-m/ECC
分析原始提示,识别意图和差距,匹配ECC组件(技能/命令/代理/钩子),并输出一个可直接粘贴的优化提示。仅提供咨询角色——绝不自行执行任务。触发时机:当用户说“优化提示”、“改进我的提示”、“如何编写提示”、“帮我优化这个指令”或明确要求提高提示质量时。中文等效表达同样触发:“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令”。不触发时机:当用户希望直接执行任…
ruvnet/ruflo
Analyze token usage patterns and recommend cost optimizations with estimated savings
OpenLAIR/dr-claw
Analyzes reviewer comments and drafts venue-specific rebuttals for AI and computer science conferences, with an issue board, task list and paper edit plan.
OpenLAIR/dr-claw
Turns a research paper into a slide deck and, optionally, a narrated demo video, through script, slide generation, text-to-speech and video assembly stages you control.
OpenLAIR/dr-claw
Clusters the latest news-feed results by topic and writes a briefing of research idea seeds with citations, plus a structured seeds file, without crawling new sources.
OpenLAIR/dr-claw
Searches Hugging Face Hub, OpenML, GitHub and paper references for datasets that fit a research task and returns a ranked, de-duplicated table.
OpenLAIR/dr-claw
Runs multi-source web research through Google's Gemini Deep Research Agent with a bundled Python script and saves a structured, cited report as files.
OpenLAIR/dr-claw
Six-phase workflow for writing, revising and adapting grant proposals for NSF, NIH, DOE, DARPA, NASA and China's NSFC, from profiling through simulated peer review.
A skill your agent uses when an algorithm-first quest should manage candidate briefs, optimization frontier, branch promotion, or fusion-aware search instead of the paper-oriented default loop. Ds Optimize is an agent skill from OpenLAIR/dr-claw. 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.
Ds Optimize fits situations like: an algorithm-first quest should manage candidate briefs; optimization frontier; branch promotion; fusion-aware search instead of the paper-oriented default loop.
Run `npx skills add OpenLAIR/dr-claw --skill ds-optimize -a claude-code`. Or copy the skill folder (skills/ds-optimize in OpenLAIR/dr-claw) into .claude/skills/ds-optimize in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenLAIR/dr-claw --skill ds-optimize -a codex`. Or copy the skill folder (skills/ds-optimize in OpenLAIR/dr-claw) into .agents/skills/ds-optimize in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenLAIR/dr-claw --skill ds-optimize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ds-optimize, .gemini/skills/ds-optimize, .github/skills/ds-optimize and .opencode/skills/ds-optimize in your project.
SKILL.md names no scripts, command-line tools or credentials: Ds Optimize is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Ds Optimize is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 14k tokens (SKILL.md is roughly 55k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Ds Optimize: Brief (alirezarezvani/claude-skills, 28k stars), SQL Optimization (github/awesome-copilot, 40k stars), Agent Performance Optimizer (ruvnet/ruflo, 74k stars) and Database Optimizer (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenLAIR (a GitHub organization) maintains it in OpenLAIR/dr-claw, which has 1,153 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on September 17, 2026.
Source: OpenLAIR/dr-claw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.