agentleFS
whenpoemwhenpoem/aiscientist/skills/research-sop/SKILL.md

research-sop

Skill10 starsChanged 5 months agoMITView on GitHub

Run an end-to-end, auditable research workflow from question framing through literature, competing hypotheses, experiment selection, implementation, verification, and claim handoff. Use whenever the user asks to investigate, compare, test, validate, or establish an empirical research claim, including when they do not explicitly call it research. Do not use for a simple factual lookup or a narrowly scoped code change with no research claim.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ArtyMcLabin/ClaudeCode-global-config★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository14 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill as the main router for empirical research.

    line 8
  2. Distinctive:

    Before doing expensive work, establish:

    line 14
  3. Very specific:

    If Cockpit is useful, tell the user how to start it from the same workspace: claudescientist cockpit --workspace <path> --lang zh.

    line 29
  4. Very specific:

    Call mcp__memory__match_signatures with the task and likely failure modes.

    line 34
  5. Distinctive:

    Read matching failures before choosing a method.

    line 35
  6. Very specific:

    Call mcp__memory__query_literature, find_baselines_for, and find_contradictions as relevant.

    line 44
  7. Distinctive:

    Use arXiv or OpenAlex only when those optional MCPs are available.

    line 46
  8. Distinctive:

    Create 3-5 falsifiable candidates when the question genuinely has competing explanations.

    line 59
  9. Distinctive:

    Do not pad the list with paraphrases.

    line 68
  10. Very specific:

    When at least three candidates compete, run $bt-tournament.

    line 73
  11. Very specific:

    Always surface the returned interval_calibrated=False flag in a handoff.

    line 77
  12. Distinctive:

    Use comparisons to organize judgment, not manufacture certainty.

    line 83
  13. Distinctive:

    Never retroactively call an observed exploratory result confirmatory.

    line 106
  14. Distinctive:

    Check configured budgets before expensive, remote, reserved-data, or long proof work.

    line 110
  15. Very specific:

    Run leakage_check before training or evaluation code touches data splits.

    line 113
  16. Distinctive:

    Treat verification as a separate role even when performed by the same host:

    line 130
  17. Very specific:

    Check provenance and call refresh_claim.

    line 132
  18. Very specific:

    Use seed_perturb for central experimental metrics and link the run to the metric pin.

    line 135
  19. Very specific:

    Run baseline_fairness for method-versus-baseline claims.

    line 137
  20. Distinctive:

    No reproducible baseline: stop comparative claims and record the blocker.

    line 157

≈ “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

Research SOP

Use this skill as the main router for empirical research. Custom researcher, engineer, verifier, reviewer, and budgeter agents are optional helpers; when they are unavailable, execute the same role boundaries inline.

Inputs and promised output

Before doing expensive work, establish:

  • the research question and decision the result should support;
  • the active workspace and relevant files or datasets;
  • whether the work is exploratory or confirmatory;
  • cost, time, reserved-data, and external-service constraints;
  • whether the user asked only for diagnosis or also authorized implementation.

Finish with a research handoff containing the question, literature basis, hypothesis node ids, comparison evidence, experiment manifest, verification status, unresolved risks, and the next justified action. Do not call a result publication-ready merely because code ran or unit tests passed.

1. Orient and resume

  1. If Cockpit is useful, tell the user how to start it from the same workspace: claudescientist cockpit --workspace <path> --lang zh.
  2. Inspect the active frontier and ancestors. Reuse an existing question or hypothesis when it already represents the task; otherwise create the question and candidate hypothesis nodes.
  3. Call mcp__memory__match_signatures with the task and likely failure modes. Read matching failures before choosing a method.
  4. Query existing literature and contradictions. Record a snapshot before a risky pruning decision or when resuming an interrupted investigation.

Expected state: a question node or explicit task statement, known prior failures, and a short list of missing evidence.

2. Establish the evidence base

  1. Call mcp__memory__query_literature, find_baselines_for, and find_contradictions as relevant.
  2. Use arXiv or OpenAlex only when those optional MCPs are available. If they are absent, continue with repository sources and say what literature search remains incomplete; do not invent citations.
  3. Ingest structured paper summaries that materially affect the decision.
  4. Separate established facts, reported claims, assumptions, and open gaps.

Pause for user direction when the research question can be interpreted in materially different ways or when the required data/source is unavailable.

Expected state: a concise evidence table and a defensible gap statement.

3. Generate comparable hypotheses

Create 3-5 falsifiable candidates when the question genuinely has competing explanations. Each candidate needs:

  • a mem_nodes hypothesis id and one-sentence statement;
  • mechanism or rationale;
  • expected observation and a result that would refute it;
  • feasible experiment and cost estimate;
  • known supporting and contradicting evidence.

Do not pad the list with paraphrases. With only one credible candidate, state that limitation and skip the tournament.

4. Select without overstating uncertainty

When at least three candidates compete, run $bt-tournament. The current leaderboard is a joint batch MAP Bradley-Terry fit. Its lcb and ucb fields are retained for compatibility but represent an uncalibrated approximate posterior interval, not a guaranteed 95% confidence interval. Always surface the returned interval_calibrated=False flag in a handoff. The underlying loop is mcp__memory__judge_hypotheses followed by mcp__memory__record_judgement, then mcp__memory__get_bt_leaderboard; keep those calls auditable even when the Skill performs the routing.

Use comparisons to organize judgment, not manufacture certainty. Stop when every serious candidate has enough direct evidence for a decision, the ranking is stable to reasonable judging criteria, the budget is exhausted, or the user chooses. Record the chosen path and why the alternatives were deferred. A pause suggestion is advisory unless explicit auto-prune is enabled.

Expected state: selected hypothesis ids, comparison counts, approximate intervals with the calibration caveat, and a recorded selection rationale.

5. Choose exploratory or confirmatory mode

Exploratory mode may prototype, inspect outcomes, and pin results, but every claim stays labelled exploratory.

Confirmatory mode must lock the target before observing the confirmatory run:

  1. Invoke $preregister.
  2. Define family_id and fixed family_size for related tests before the first family member is resolved.
  3. Lock metric, direction, threshold, alpha, seed count, and optional reserved dataset.
  4. Pass every prereg_id into later experiment and verification records.

Never retroactively call an observed exploratory result confirmatory.

6. Plan and implement the experiment

  1. Check configured budgets before expensive, remote, reserved-data, or long proof work. Missing budget configuration is advisory for low-cost work and a reason to ask before material cost.
  2. Run leakage_check before training or evaluation code touches data splits.
  3. Specify baselines, metrics, seeds, config files, input files, and the exact command before execution.
  4. Implement only within the user's authorization. Preserve diagnosis-only boundaries when the user did not request a fix.
  5. Record failures through record_failure; do not silently switch methods after a failed run.
  6. Record and pin central metrics. v5.1 automatically attaches a run manifest containing experiment code, inputs, configs, lockfiles, Git state, command, seeds, runtime, and safe environment fields. Still pass input_files and config_files explicitly so domain data is complete.

Expected state: reproducible command, code/config/data fingerprints, results, budget use, and failure records.

7. Verify independently

Treat verification as a separate role even when performed by the same host:

  1. Check provenance and call refresh_claim; stale central evidence blocks promotion.
  2. Re-run or inspect leakage checks.
  3. Use seed_perturb for central experimental metrics and link the run to the metric pin. An unstable result must be narrowed or remain exploratory.
  4. Run baseline_fairness for method-versus-baseline claims.
  5. Access sequestered data only through query_heldout; budget is reserved before execution.
  6. Resolve confirmatory preregistrations. A missed or open target cannot be rewritten as met.

Expected state: pin ids, fresh run manifests, seed verdict, fairness verdict, reserved-data audit, and preregistration status.

8. Review and hand off to writing

Invoke $writeup-sop only after the claim inventory is ready. Publication- critical claims require reviewer JSON with verdict="accept"; a non-empty blocker list means revise or reject. Theorem-shaped claims also invoke $prove-sop and its diagnostic/formalization checks.

Failure and recovery paths

  • Literature insufficient: report searched sources and missing access; keep hypotheses provisional.
  • No reproducible baseline: stop comparative claims and record the blocker.
  • Experiment fails: use $debug-sop, record the failure, then resume here from the last valid checkpoint.
  • Budget exhausted: preserve state and offer a lower-cost next experiment.
  • Verification fails or evidence is stale: do not write the central claim; rerun, narrow, downgrade to exploratory, or remove it.
  • Interrupted work: inspect the graph, latest snapshot, preregistrations, pins, and manifests; do not restart from memory alone.

Completion criteria

The research loop is complete only when the chosen hypothesis and alternatives are traceable, experiment inputs and environment are fingerprinted, central metrics have fresh provenance, required seed/fairness/preregistration checks have explicit verdicts, failures and caveats are recorded, and the final claim language matches the strength of that evidence.

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.