一键导入
loop
Use when user has a hypothesis and a repo and wants to run experiments. Triggered by "start experiments", "run the loop", "test this hypothesis".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when user has a hypothesis and a repo and wants to run experiments. Triggered by "start experiments", "run the loop", "test this hypothesis".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when user mentions autonomous iteration, metric-driven optimization, $research-loop plan, $research-loop debug, $research-loop fix, $research-loop security, $research-loop ship, $research-loop scenario, $research-loop predict, $research-loop learn, $research-loop reason, $research-loop probe, or mentions "research-loop" with a goal/metric. Autonomous Goal-directed Iteration — apply Karpathy's autoresearch principles: modify, verify, keep/discard, repeat. Supports bounded mode via Iterations: N inline config.
Mandatory activation layer — loads on any conversation start. Establishes skill-loading protocol, Red Flags, priority rules, and HARD-GATE enforcement for all research-loop skills.
Run a thorough, multi-phase deep research investigation on a topic with subagent dispatch, provenance tracking, and integrity verification.
Experiment sandbox execution for Research Loop. Supports four modes: local (venv), Docker (isolated containers), SSH remote (GPU compute on servers), and Colab (Google Drive bridge). Provides experiment harness templates, code validation, metric collection, deterministic seeding, and compute budget enforcement. Use before running experiments generated by the paper-pipeline.
Use when user wants to explore a topic, find papers, map a field, or understand the research landscape. Not for explaining concepts — use learn for that.
Publication-quality figure generation for research papers. Decision agent selects figure type (code plot vs architecture diagram). Generates Matplotlib/Seaborn code for quantitative figures with iterative improvement loop. Style-matches conference templates (NeurIPS, ICML, ICLR). Use when the paper-pipeline reaches the figure generation phase, or when a user requests figures for an existing draft.
| name | loop |
| description | Use when user has a hypothesis and a repo and wants to run experiments. Triggered by "start experiments", "run the loop", "test this hypothesis". |
Complements
autonomous-iterationskill. Useloopfor hypothesis-driven PROPOSE→MUTATE→BENCHMARK→ANNOTATE cycles. Useautonomous-iterationfor metric-driven Modify→Verify→Keep/Discard→Repeat optimization loops. Seeskills/autonomous-iteration/for the Karpathy-style optimization workflow.
You are running a scientific iteration loop. Each experiment is a question. The answer shapes the next question. The ledger accumulates evidence.
Ask:
"What's the core hypothesis we're testing? One sentence."
Then list ALL planned conditions — you already know them from the discovery phase. Show them ranked by what teaches you the most first:
HYPOTHESIS: [one sentence]
FALSIFICATION: [what result kills it]
CONDITIONS (ranked by information value):
1. [highest priority] — tests [what], teaches [what] if it fails/passes
2. [second] — only run this if condition 1 passes/fails in [way]
3. [third] — ...
N. [memory transplant / killer test] — run last, most definitive
RANKING LOGIC: [one sentence explaining why this order]
Ask:
"Does this ranking make sense? Any condition you want to move up or down?"
Wait. Adjust if needed. Then create TodoWrite tasks — one per condition, in ranked order.
Write hypothesis.md:
# Hypothesis
[one sentence]
# Prediction
[what you expect to observe if hypothesis is correct]
# Falsification
[what result proves it wrong]
# Conditions (ranked)
1. [name]: [what changes] — Priority: [why first]
2. [name]: [what changes] — Priority: [why second]
...
For each condition, in ranked order:
BEFORE running — state the question:
"Condition [N]: [name]. The question this answers: [one sentence]. Expected result if hypothesis holds: [specific]. Expected result if hypothesis fails: [specific]. Running now."
AFTER running — ask for the insight:
"Result: [metric]. Expected? What does this tell you — one sentence."
Wait for their answer. Then add your own causal read:
"My read: [mechanistic explanation]. This [confirms / challenges / is neutral toward] the hypothesis because [why]."
Log the insight immediately — append to insights.md:
## Insight [N] — [date]
Condition: [name]
Result: [metric]
Researcher interpretation: [their words]
Causal annotation: [mechanistic explanation]
Hypothesis status: [strengthened / weakened / unchanged / killed]
Next question this raises: [what you now want to know]
Mark the TodoWrite task complete. Then ask:
"Given this result, does the ranking still make sense? Or do you want to reprioritize?"
Only then propose the next condition.
After every experiment, run:
# Append to insights ledger
echo "---" >> .research-loop/sessions/<slug>/insights.md
Then update knowledge_graph.md — change the condition status from pending to done: [result].
After each run:
Does the result change what we think?
├── CONFIRMS hypothesis → continue ranked list
├── WEAKENS hypothesis → reprioritize — move falsification test up
├── KILLS hypothesis → stop, log finding, load execution skill
└── SURPRISING (neither confirms nor kills) → this is the most interesting result
→ pause, ask "what does this mean?", update hypothesis if needed
Surprising results are never failures. They are the most valuable signal.
Before looking at the full picture, ask:
"Write the conclusion in one sentence — what does the evidence say about the hypothesis?"
Then show the full ledger. Compare their conclusion to the original prediction. If they differ — that gap is often the real finding.
Load execution skill to formalize the decision: continue, pivot, or write the paper.