agentleFS
LigphiDonkLigphiDonk/Oh-my--paper/skills/inno-experiment-dev/SKILL.md

inno-experiment-dev

Skill738 starsChanged 8 months agoMITView on GitHub

Creates implementation plan, writes project code with judge feedback loop, and submits final experiment run.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user request matches its research workflow scope.

    line 42
  2. Very specific:

    Read from references/ only when the current task needs the extra detail.

    line 46
  3. Distinctive:

    Prefer inspection before mutation when invoking bundled scripts.

    line 51
  4. Distinctive:

    If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of …

    line 52
  5. Distinctive:

    Do not write generated artifacts back into the skill directory.

    line 53
  6. Very specific:

    Optional pre-step (Idea mode only): If refining the idea for implementation clarity, call the idea refinement agent to produce …

    line 103
  7. Very specific:

    Plan mode: Use build_plan_query_with_survey(ideas, references, prepare_res, code_survey_res, dataset_description)

    line 107
  8. Very specific:

    If the implementation is not runnable, ML Agent calls case_not_resolved.

    line 146
  9. Distinctive:

    All custom Python tools map to Claude Code built-in capabilities:

    line 150

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

inno-experiment-dev

Canonical Summary

Creates implementation plan, writes project code with judge feedback loop, and submits final experiment run. Use after code-survey in both Idea and Plan branches.

Trigger Rules

Use this skill when the user request matches its research workflow scope. Prefer the bundled resources instead of recreating templates or reference material. Keep outputs traceable to project files, citations, scripts, or upstream evidence.

Resource Use Rules

  • Read from references/ only when the current task needs the extra detail.

Execution Contract

  • Resolve every relative path from this skill directory first.
  • Prefer inspection before mutation when invoking bundled scripts.
  • If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of silently skipping the step.
  • Do not write generated artifacts back into the skill directory; save them inside the active project workspace.

Upstream Instructions

Inno Experiment Dev (Planning, Implementation, and Submission)

Merges the former inno-implementation-plan, inno-ml-dev-iteration, and the submit step of inno-experiment-submit-refine. Mirrors _create_implementation_plan (830-858), _implement_and_iterate (861-920), and the submit portion of _submit_and_refine_experiments (922-945) in run_infer_idea_ours.py.

Inputs

VariableSourceDescription
survey_resinno-idea-generation or userThe finalized selected idea (or refined_for_downstream)
referencespipeline configPre-formatted string of source papers
updated_prepare_resinno-prepare-resourcesJSON with reference_codebases and reference_paths
code_survey_resinno-code-surveyComprehensive implementation report / model survey notes
dataset_descriptionfrom prepare step / contextDescription of available datasets (not in instance.json)
core_codeinstance.json Experiment.core_codeAbsolute path when created by Dr. Claw (e.g. <project_path>/Experiment/core_code); use as-is or resolve with path.join(project_path, value) if relative
code_referencesinstance.json Experiment.code_referencesAbsolute path when created by Dr. Claw (e.g. <project_path>/Experiment/code_references); use as-is or resolve if relative
max_iter_timespipeline configMax judge-iteration rounds (default 2)
context_variablesshared stateMutable dict carrying state across agents

Plan mode additionally uses ideas and survey-specific prompt variants (build_plan_query_with_survey, build_iteration_query_for_plan, etc.).

Outputs

VariableDescription
plan_resDetailed implementation plan with dataset, model, training, and testing sections
ml_dev_resFinal ML Agent implementation result
judge_resFinal Judge Agent feedback
judge_messagesFull conversation thread (preserved for inno-experiment-analysis)
submit_resExperiment submission result with statistical outputs
context_variablesUpdated with dataset_plan, training_plan, testing_plan, suggestion_dict, raw_error_stats

Cache Artifacts

FileAgentContent
Experiment/core_code/logs/coding_plan_agent.jsonCoding Plan Agentcontext_variables + messages from planning phase
Experiment/core_code/logs/machine_learning_agent.jsonML AgentInitial implementation messages (+ _iter_{N}.json for judge iterations)
Experiment/core_code/logs/judge_agent.jsonJudge AgentEvaluation messages (+ _iter_{N}.json for iterations)
Experiment/core_code/logs/machine_learning_agent_iter_submit.jsonML AgentSubmission run messages and results

Instructions

Phase 1: Create Implementation Plan

Mirrors _create_implementation_plan.

  1. Optional pre-step (Idea mode only): If refining the idea for implementation clarity, call the idea refinement agent to produce refined_for_downstream with tensor interfaces and forward-pass sketch.
  2. Build plan query:
    • Idea mode: plan_query = build_plan_query(survey_res, references, updated_prepare_res, code_survey_res, dataset_description) (see prompts/build_plan_query.md)
    • Plan mode: Use build_plan_query_with_survey(ideas, references, prepare_res, code_survey_res, dataset_description)
  3. Call Coding Plan Agent with messages = [{"role": "user", "content": plan_query}].
    • The agent reviews codebases using tree / cat, then creates structured plans via plan_dataset, plan_training, plan_testing.
    • Calls case_resolved to merge plans.
    • Set plan_res = plan_messages[-1]["content"].
    • See references/coding_plan_agent.md for agent details.
  4. Verify the plan has clear sections: dataset, model, training, evaluation, file layout.

Phase 2: Implement and Iterate

Mirrors _implement_and_iterate.

  1. Initial implementation: Build ml_dev_query = build_ml_dev_query(survey_res, prepare_res, code_survey_res, plan_res, dataset_description, core_code, code_references) (see prompts/build_ml_dev_query.md). Use paths from instance.json: Experiment.core_code, Experiment.code_references (absolute in Dr. Claw–created projects; use as-is or resolve with project path if relative). Call ML Agent with messages = [{"role": "user", "content": ml_dev_query}]. Set ml_dev_res = ml_messages[-1]["content"].
    • See references/ml_agent_instructions.md for agent details.
  2. Initial judge evaluation: Build judge_query = build_judge_query(survey_res, prepare_res, plan_res, ml_dev_res) (see prompts/build_judge_query.md). Call Judge Agent with input_messages = [{"role": "user", "content": judge_query}]. Set judge_res = judge_messages[-1]["content"].
    • See references/judge_agent_instructions.md for agent details.
  3. Iteration loop (for i in 0..max_iter_times - 1): a. Build iteration_query = build_iteration_query(survey_res, prepare_res, code_survey_res, plan_res, ml_dev_res, judge_res, core_code, code_references) (see prompts/build_iteration_query.md). Use paths from instance.json (absolute in Dr. Claw–created projects; use as-is or resolve if relative). Plan mode uses build_iteration_query_for_plan. b. Append as user message to judge_messages. Call ML Agent with iter_times=i+1. Update ml_dev_res. c. Build judge_simple_query = build_judge_simple_query(survey_res, prepare_res, plan_res, ml_dev_res) (see prompts/build_judge_simple_query.md). Plan mode uses build_judge_simple_query_for_plan. d. Append as user message to judge_messages. Call Judge Agent with iter_times=i+1. Update judge_res. e. If "fully_correct": true in last message, break early.
  4. Preserve judge_messages for the submit step and for downstream inno-experiment-analysis.

Phase 3: Submit Experiment

Mirrors the submit portion of _submit_and_refine_experiments.

  1. Build submit query: submit_query = build_submit_query(survey_res, ml_dev_res, judge_res, core_code) (see prompts/build_submit_query.md). Resolve core_code from instance.Experiment.core_code. Plan mode uses build_submit_query_for_plan.
  2. Append to judge_messages as user message. Call ML Agent with iter_times="submit".
    • The agent adjusts epochs (3-10), runs run_training_testing.py, ensures checkpoints are saved.
    • Set submit_res = judge_messages[-1]["content"].
  3. If the implementation is not runnable, ML Agent calls case_not_resolved. Otherwise, case_resolved with statistical results and analysis.

Tool Mappings

All custom Python tools map to Claude Code built-in capabilities:

Original ToolClaude Code Equivalent
execute_commandShell tool (direct execution)
run_pythonpython <script> via Shell tool
create_file / write_fileWrite tool
read_fileRead tool or cat <path>
create_directorymkdir -p <path>
list_filesls <path>
gen_code_tree_structuretree -L 3 <path>
diagnose_code_errorAnalyze stderr output + inspect code
rollback_and_reimplementRe-write file with different approach
view_error_historyTrack error fingerprints in agent memory
plan_dataset / plan_training / plan_testingStructure plan sections in agent response
case_resolved / case_not_resolvedAgent returns result / failure reason

Checklist

  • Optional idea refinement applied if desired (Idea mode).
  • Correct build_plan_query variant used for Idea vs Plan mode.
  • Coding Plan Agent called; plan_res has clear dataset/model/training/testing sections.
  • ML Agent initial implementation completed; ml_dev_res recorded.
  • Judge Agent initial evaluation completed; judge_res recorded.
  • Iteration loop runs with correct prompt variants; early exit on fully_correct.
  • judge_messages preserved across all phases.
  • Submit query appended to judge_messages; ML Agent submission run completed.
  • Final model checkpoint saved to Experiment/core_code/checkpoints/model_final.pth.
  • Cache artifacts saved to Experiment/core_code/logs/: coding_plan_agent.json, machine_learning_agent.json, judge_agent.json, machine_learning_agent_iter_submit.json.

References

  • run_infer_idea_ours.py: _create_implementation_plan (830-858), _implement_and_iterate (861-920), _submit_and_refine_experiments submit step (922-945)
  • prompt_templates.py: build_plan_query (203-233), build_ml_dev_query (236-381), build_judge_query (384-417), build_iteration_query (420-468), build_judge_simple_query (471-494), build_submit_query (497-527)
  • Agent definitions: plan_agent.py, ml_agent.py, judge_agent.py in inno/agents/inno_agent/

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.