Skip to content

About

Evidence-first skills for agentic research: frame, gather evidence, test, verify, and synthesize.

Resources

Contributing

Stars

51 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Research Loop mission profile: frame, evidence, test, execute, verify, synthesize, with loop-backs

Turn a research question into traceable claims, reproducible checks, and a useful next decision.

License: MIT Agent Skills format Python 3.9+ No dependencies

中文 · Quick start · Skills · Run format · Principles (中文) · Contributing


Agents are good at producing confident research prose. They are less reliable at showing which source supports which claim, what test could have proven them wrong, and when to stop. Research Loop is a set of seven portable Markdown skills that give an agent that discipline, plus a tiny zero-dependency checker for the records it leaves behind.

Your agent brings the reasoning, retrieval, and tools. This repo brings the research method.

Inspired by Anthropic's study How researchers use Claude. The workflow is our own design proposal: it was not validated by that study and is not affiliated with Anthropic. See source notes.

🔁 The loop

flowchart LR
    Q([Frame the question]) --> E([Map the evidence])
    E --> H([Choose a discriminating test])
    H --> X([Execute within budget])
    X --> V{{Verify the claims}}
    V -->|evidence changes the question| Q
    V -->|another check is worthwhile| H
    V -->|enough evidence or a stopping limit| S([Synthesize and close])

    classDef stage fill:#FFFFFF,stroke:#000000,color:#000000
    classDef verify fill:#FFFFFF,stroke:#000000,stroke-dasharray:5 4,color:#000000
    classDef done fill:#000000,stroke:#000000,color:#FFFFFF
    class Q,E,H,X stage
    class V verify
    class S done
Loading

Enter wherever the evidence is missing. A literature review may need no experiment. An existing analysis may need only verification. A negative or inconclusive result is a legitimate way to finish.

🚀 Quick start

Claude Code

Install the skills for your user account. Keep all seven folders together, because the orchestrator links to its siblings:

git clone https://github.com/wrencanfly/research-loop-skills.git
mkdir -p ~/.claude/skills
cp -R research-loop-skills/skills/* ~/.claude/skills/

To install them for one project only, copy them into that project's .claude/skills/ instead. Then ask Claude:

/research-loop Does the evidence support rolling out tool X to the whole team next quarter?

Any agent with workspace access

Clone the repo and give the agent this request:

Read skills/research-loop/SKILL.md and apply it to this research question:
[your question]

Use evidence synthesis unless a computation would materially resolve uncertainty.
Start with the materials already available. Keep the scope narrow.
Spend at most 3 research iterations; stop earlier if another step is unlikely
to change the answer. Save sources, claims, checks, limitations, and next steps
under runs/my-question/. Do not publish the results.

Each stage skill also works on its own. To audit an existing analysis, for example, point the agent at research-verify directly. The files follow the Agent Skills format. Loading behavior across clients and models has not been exhaustively tested.

🧩 Seven skills

Skill Reach for it when… You get
🧭 research-loop You need to coordinate a bounded project Current state, next useful step, final handoff
🎯 research-frame The question or success criterion is fuzzy Research brief and stopping rules
📚 research-evidence Claims need sources, or sources disagree Claim-to-source map and gaps
⚖️ research-hypothesize Several explanations or tests are possible Alternatives and a discriminating test
🧪 research-execute A retrieval or computational plan is ready Results, execution record, failed attempts
✅ research-verify A conclusion needs checking Evidence-backed review and open issues
📝 research-synthesize Findings need a decision-ready explanation Answer, uncertainty, reproduction path, next step

🧠 Design principles

  1. Start from a question that can change a decision. Write down what result would change the answer before choosing tools.
  2. Grant autonomy in proportion to verifiability. Rerunnable, comparable, traceable steps get room to run. Everything else stays a labeled judgment.
  3. Work on the current bottleneck. If evidence is missing, find evidence. If a check is missing, run the check. Don't march through every stage.
  4. Look for disconfirmation. Keep competing explanations, failed runs, and null results.
  5. Hand off evidence, not conclusions. The next agent or human should see sources, methods, and limits, not just the previous agent's verdict.
  6. Measure progress by reliable conclusions and useful decisions. At the budget or evidence boundary, deliver the current judgment and name what is unresolved.

The full operational version is in docs/principles.md (Chinese).

🗂️ What a run leaves behind

runs/my-question/
├── plan.md            # question, scope, evidence standard, stopping rule
├── evidence-map.md    # claim → source + locator → supports / contradicts / insufficient
├── checks.md          # checks actually performed, and what was not checked
├── decision-brief.md  # answer, uncertainty, next step, why we stopped
└── run.json           # optional machine-checkable record

Two complete examples are included:

  • Evidence synthesis: a fictional rollout decision. The materials include a retold pilot, an inaccessible paper, and a prompt injection embedded in a source.
  • Computational: a tiny deterministic lookup comparison with a reproducible script, run.json, and a review note.

🛠️ Optional structured records

Python 3.9+, standard library only. From the repository root:

python3 scripts/research_run.py init runs/demo --question "What evidence would change this decision?"
python3 scripts/research_run.py check runs/demo          # structure, references, closeout rules
python3 examples/retrieval-demo/evaluate.py              # rerun the computational example
python3 scripts/research_run.py check examples/retrieval-demo
python3 -m unittest discover -s tests -v

The agent updates run.json as work progresses. check enforces bookkeeping. For example, a supported claim must cite an accessible source, an unavailable source cannot serve as evidence, and complete requires a named reviewer and a filled closeout. See the run format. Markdown-only runs are fully supported.

🔍 Honest scope

Research Loop does Research Loop does not
Give an agent a research method and acceptance criteria Run an autonomous-scientist service or schedule agents
Check record structure, references, and closeout rules Judge scientific truth, source credibility, or prose faithfulness
Record budgets and iteration counts Enforce live spending limits
Ship two worked examples that show the record lifecycle Claim measured productivity or research-quality gains (yet)

More agents or more generated pages are not quality measures. Evidence quality, independent checking, and human judgment still matter. The checks actually performed are listed in validation notes.

🤝 Contributing

The most valuable contribution is a real failure: a task where a skill led an agent astray, along with the smallest fix that would have helped. See CONTRIBUTING.md for the workflow, the evidence we ask for, and good first issues.

📄 License

MIT. Linked source material remains under its owners' terms.

About

Evidence-first skills for agentic research: frame, gather evidence, test, verify, and synthesize.

Resources

Contributing

Stars

51 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages