executing-research-plan
Skill4 starsChanged 5 months agoMITView on GitHub
Use AFTER writing-research-plan has produced a ready plan (status=ready for hermeneutic projects, status=pre-registered for quantitative/mixed). Reads `input/ideas/<slug>-plan.md`, creates one task-list item per plan task, runs a pre-ingest acquisition gate (acquire-sources) so originals are on disk before any source-ingester runs, and works tasks via subagent dispatch (source-acquirer, source-ingester, analyst, drafter) with two-stage review. Does not execute anything outside the plan.
In this repository16 other files it gives its agents.
- acquire-sourcesSkill
- add-to-librarySkill
- brainstorming-researchSkill
- drafting-manuscriptSkill
- drift-reportSkill
- finishing-a-research-projectSkill
- grant-finderSkill
- ingest-sourceSkill
- literature-reviewSkill
- requesting-peer-reviewSkill
- scaffold-research-projectSkill
- semantic-wiki-reviewSkill
- using-research-powersSkill
- wiki-graphSkill
- wiki-lintSkill
- writing-research-planSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Run a pre-registered plan task by task.
- Very specific: line 34
Before executing a task, check: (1) The task is listed in input/ideas/<slug>-plan.md (2) For methodology: quantitative or any task block …
- Very specific: line 39
If unmet: explain to the user which condition is missing, ask for a short reason, write it to knowledge/_meta/gate-overrides.log, and start …
- Distinctive: line 65
After all tasks done: check plan's Verification section.
- Very specific: line 66
Transition: if plan output target is book/article → drafting-manuscript.
- Distinctive: line 211
If the answer to any of these is "I don't know," that belongs in the quality review or gets resolved before dispatch.
- Distinctive: line 256
If a task surfaces a result that contradicts the pre-registered hypothesis, or if the method must change:
- Distinctive: line 258
Stop: Do not rewrite the hypothesis.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Executing a Research Plan
Run a pre-registered plan task by task. Dispatch the right subagent per task, review each result (spec + quality), and only mark done when both reviews pass. Deviations are logged, not hidden.
Announce at start: "Using executing-research-plan to run <slug>-plan.md."
<SOFT-GATE>
Before executing a task, check:
(1) The task is listed in `input/ideas/<slug>-plan.md`
(2) For `methodology: quantitative` or any task block marked as quantitative: plan frontmatter `status: pre-registered` with user sign-off
(3) For `methodology: hermeneutic`: plan frontmatter `status: ready` is enough — a frozen hypothesis is not requiredIf unmet: explain to the user which condition is missing, ask for a short
reason, write it to knowledge/_meta/gate-overrides.log, and start the
task.
A task is "done" only when the type-specific review passes (see "Review by
methodology" below). Never silently rewrite a hypothesis mid-run —
deviations go into the deviation log.
</SOFT-GATE>
Checklist
- Load the plan — read
input/ideas/<slug>-plan.mdend-to-end - Verify the plan is ready (methodology-aware):
methodology: hermeneutic→ frontmatterstatus: readyis enough (no frozen hypothesis);methodology: quantitative/mixed(or a task block markedpre-registered: true) →status: pre-registered+ user confirmation of the hypothesis - Create task-list items — one per task in the plan (use the plan's own wording)
- Acquisition gate (before any ingest task) — guarantee the originals are on disk first; run the Acquisition gate algorithm below.
literature-reviewonly searches — without this gate everysource-ingesterhard-stops on a missing PDF. - Route each task to the right subagent:
- Ingest task →
source-ingester(seeagents/source-ingester.md) - Analysis task →
analyst(runs Python/R inoutput/data-analysis/) - Synthesis task → main conversation, not subagent (high context integration)
- Draft task → invoke
drafting-manuscriptskill (which may dispatchdrafter)
- Ingest task →
- Two-stage review per task:
- Spec reviewer (fresh subagent): does the output match the task spec exactly?
- Quality reviewer (fresh subagent): is the code/page/result methodologically sound?
- Any "no" → route back to the executing subagent with reviewer feedback
- Log deviations — if findings force change, append to
knowledge/_meta/log.mdand mark subsequent analyses as exploratory - Run wiki-lint after every ingest and synthesis task
- After all tasks done: check plan's Verification section; only green on all boxes means complete
- Transition: if plan output target is book/article →
drafting-manuscript; if grant →grant-finder; if done →finishing-a-research-project
Acquisition gate (before any ingest task)
literature-review searches but downloads nothing; source-ingester hard-stops
on a missing original. This gate sits between them: it guarantees every ingest
task's PDF is on disk (or explicitly deferred) before the first source-ingester
is dispatched — so you get one clean acquisition step instead of a wall of
per-source hard-stops.
- Collect required originals — from every ingest task in the plan, derive the
expected library path
<library>/pdf/<bibkey>.pdf(the naming conventionacquire-sourceswrites andingest-sourcereads). - Scan the library —
<library>/pdf/*.pdf(resolve withscripts/library.py; never in subfolders). If every required original is present → skip the gate, go to routing. - Attempt acquisition — run
acquire-sourceson the A+B set (dispatch thesource-acquirersubagent for ≥ ~8 missing items). It auto-downloads the Open-Access copies into the library and (re)generatesinput/bibliography/acquisition-todo.md. - If
acquisition-todo.mdis non-empty (originals still missing), enter the interactive resume loop — do NOT silently skip:- a. Offer the list. Present the missing sources from
acquisition-todo.mdplus the manual-download instruction (university VPN / library proxy; save each into<library>/pdf/under the exact<bibkey>.pdffilename). Mark the dependent ingest tasks as blocked and pause — do not dispatch those ingests. - b. On the user's resume signal, re-scan
<library>/pdf/for the newly added PDFs and reconcile — re-runacquire-sourcesin reconcile mode: resolved rows drop out of (are checked off)acquisition-todo.md. - c. Ask the branch: "Search for alternatives (open-access substitutes
via
literature-review) for what's still missing, or continue with what's present?"- Alternatives → loop back to
literature-review/literature-scoutto find OA alternatives for the gaps, grade them into the guide table, then re-runacquire-sourceson the new candidates → back to step 4. - Continue → proceed to routing with the acquired subset.
- Alternatives → loop back to
- d. Loop a–c until the user says to move on to ingest.
- a. Offer the list. Present the missing sources from
- Proceed to routing — dispatch
source-ingesteronly for tasks whose original is now on disk; any still-missing stayblocked/deferred per the user's choice. Non-blocked downstream work (analysis on existing data, etc.) is not held up by a blocked ingest.
"Alternativen" = a different open-access source on the same topic, NOT a preprint/prior-version/review substitute for the same paper. Substituting one edition for another remains
ingest-source's consent-gated decision and is out of scope for this gate.
Process Flow
digraph executing {
"Load plan" [shape=box];
"Pre-registered & signed?" [shape=diamond];
"Back to writing-research-plan" [shape=box];
"Create task list from plan" [shape=box];
"Acquisition gate: scan the library" [shape=box];
"All originals present?" [shape=diamond];
"Run acquire-sources" [shape=box];
"Worklist empty?" [shape=diamond];
"Offer manual list, block ingests, pause" [shape=box];
"User resumes" [shape=box];
"Reconcile (re-scan + re-run)" [shape=box];
"Alternatives or continue?" [shape=diamond];
"literature-review for OA alternatives" [shape=box];
"Next task" [shape=box];
"Route by task type" [shape=diamond];
"Dispatch source-ingester" [shape=box];
"Dispatch analyst" [shape=box];
"Handle synthesis inline" [shape=box];
"Invoke drafting-manuscript" [shape=box];
"Spec review" [shape=box];
"Quality review" [shape=box];
"Both pass?" [shape=diamond];
"Route back with feedback" [shape=box];
"Mark task done" [shape=box];
"More tasks?" [shape=diamond];
"Verify against plan checklist" [shape=box];
"All green?" [shape=diamond];
"Transition" [shape=doublecircle];
"Load plan" -> "Pre-registered & signed?";
"Pre-registered & signed?" -> "Back to writing-research-plan" [label="no"];
"Pre-registered & signed?" -> "Create task list from plan" [label="yes"];
"Create task list from plan" -> "Acquisition gate: scan the library";
"Acquisition gate: scan the library" -> "All originals present?";
"All originals present?" -> "Next task" [label="yes"];
"All originals present?" -> "Run acquire-sources" [label="no"];
"Run acquire-sources" -> "Worklist empty?";
"Worklist empty?" -> "Next task" [label="yes"];
"Worklist empty?" -> "Offer manual list, block ingests, pause" [label="no"];
"Offer manual list, block ingests, pause" -> "User resumes";
"User resumes" -> "Reconcile (re-scan + re-run)";
"Reconcile (re-scan + re-run)" -> "Alternatives or continue?";
"Alternatives or continue?" -> "literature-review for OA alternatives" [label="alternatives"];
"literature-review for OA alternatives" -> "Run acquire-sources";
"Alternatives or continue?" -> "Next task" [label="continue"];
"Next task" -> "Route by task type";
"Route by task type" -> "Dispatch source-ingester" [label="ingest"];
"Route by task type" -> "Dispatch analyst" [label="analysis"];
"Route by task type" -> "Handle synthesis inline" [label="synthesis"];
"Route by task type" -> "Invoke drafting-manuscript" [label="draft"];
"Dispatch source-ingester" -> "Spec review";
"Dispatch analyst" -> "Spec review";
"Handle synthesis inline" -> "Spec review";
"Invoke drafting-manuscript" -> "Spec review";
"Spec review" -> "Quality review";
"Quality review" -> "Both pass?";
"Both pass?" -> "Route back with feedback" [label="no"];
"Route back with feedback" -> "Next task";
"Both pass?" -> "Mark task done" [label="yes"];
"Mark task done" -> "More tasks?";
"More tasks?" -> "Next task" [label="yes"];
"More tasks?" -> "Verify against plan checklist" [label="no"];
"Verify against plan checklist" -> "All green?";
"All green?" -> "Next task" [label="no, fix"];
"All green?" -> "Transition" [label="yes"];
}Task Type Routing
| Plan keyword | Subagent / Skill | Output landing zone |
| "Acquire / fetch PDFs / besorge Quellen" | acquire-sources skill (→ source-acquirer for ≥8) | <library>/pdf/*.pdf, input/bibliography/acquisition-todo.md |
| "Ingest X" | source-ingester | knowledge/sources/, knowledge/entities/, output/bibtex/ |
| "Analyze / compute / run" | analyst | output/data-analysis/, output/data-analysis/results/ |
| "Synthesize / integrate / write synthesis" | inline (main conversation) | knowledge/synthesis/ |
| "Draft chapter / section / article" | drafting-manuscript skill | output/**/*.md |
Critical Thinking — Cross-Cutting Checklist
Walk through this on every method choice and before every subagent dispatch:
- Claim first, then evidence — what exactly is being claimed? State the claim precisely, then ask what evidence would support it.
- Evidence type — primary data, secondary synthesis, expert opinion, theoretical argument. Drives the method choice.
- Framework matched to discipline:
- GRADE — causal / quantitative claims
- Cochrane ROB — experimental designs
- Source-critical (Quellenkritik) — textual-historical sources
- Stratigraphic reliability — archaeological claims
- Reproducibility audit — computational / DH
- Name confounders explicitly — what gets overlooked, what could explain the finding otherwise
- Check logical fallacies — ad hominem, affirming the consequent, equivocation, cherry-picking, post hoc
- Falsifiability — what would refute the claim?
If the answer to any of these is "I don't know," that belongs in the quality review or gets resolved before dispatch.
Review by Methodology
The review tiering depends on the methodology field in the project
frontmatter (CLAUDE.md) or in the task-block frontmatter.
Quantitative Tasks — Two-Stage Review
For tasks under methodology: quantitative or task blocks with
pre-registered: true: dispatch two fresh subagents (minimal context:
just task spec + output):
Spec reviewer prompt template:
You are a spec compliance reviewer. Task spec:
<paste from plan>. Output:<paste or path>. Does the output match the spec exactly? Report mismatches. Do not assess quality.
Quality reviewer prompt template:
You are a methodological quality reviewer. Output:
<paste or path>. Methodological context:<paste plan Method section>. Is this sound? Check: (1) are assumptions stated, (2) are limitations named, (3) would a peer reviewer accept this? Report issues.
Both "yes" → task done. Any "no" → feedback back to the executing subagent.
Hermeneutic Tasks — Synthesis Review
For tasks under methodology: hermeneutic (no pre-registration):
single-stage review in the main context, focused on plausibility and
source fidelity rather than spec compliance.
Synthesis reviewer prompt template (in main context, no subagent needed):
Output:
<path or paste>. Method sketch:<from plan>. (1) Is the argument actually supported by the cited sources (spot-check 3 central citations)? (2) Are alternative readings named where they suggest themselves? (3) Is the hermeneutic position transparent (which pre-understanding horizon, which method is applied)?
Return findings as correction notes, not as a pass/fail gate. The user decides final acceptance.
Mixed Projects
The plan marks per task which review mode applies. Pre-registered tasks run through two-stage; hermeneutic tasks run through synthesis review.
Deviations
If a task surfaces a result that contradicts the pre-registered hypothesis, or if the method must change:
- Stop. Do not rewrite the hypothesis.
- Append to
knowledge/_meta/log.md:- YYYY-MM-DD · deviation · plan=<slug> · <what changed and why> - Mark any analysis downstream of the deviation as exploratory in its frontmatter (
status: exploratory). - Surface to user — "The plan said X, the data shows Y. Continuing as exploratory. OK?"
Red Flags
| Thought | Reality |
| "Just start ingesting — the PDFs are probably there" | No — run the acquisition gate first; otherwise every source-ingester hard-stops on a missing original, one source at a time. |
| "Some originals are still missing, I'll just skip them quietly" | No — surface the worklist, block those ingests, and let the user fetch them or pick alternatives. Silent skipping hides gaps. |
| "The hypothesis doesn't fit, I'll tweak it slightly" | No — log entry, result becomes exploratory. |
| "Review is overkill for such a small task" | Small tasks are exactly where errors slip past. Always both reviews. |
| "I'll just do it myself instead of dispatching a subagent" | Subagent isolation protects context and forces prompt clarity. |
| "The synthesis is stable now" | Only the user sets stable. |
Key Principles
- Acquire before ingest — the acquisition gate guarantees originals are on disk (or explicitly deferred) before any
source-ingesterruns - The plan is law — anything outside the plan is scope creep or deviation
- One subagent per task — fresh context, no context collapse
- Two-stage review — spec THEN quality, not mixed
- Deviation > revision — divergent findings get flagged, not absorbed
- Verification is a list, not a feeling — the plan's checkboxes are the completion test
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
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.

