/research:running-researchfrom research
Use after research:research has written brief.md and the user approved it, to run the research. Plans question clusters, dispatches researcher subagents, synthesizes the findings under review, writes and reviews the report, and presents it. With no approved brief.md, stop and use research:research first.
Ships in research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Orchestrator-driven deep research from an approved brief. The skill plans the work itself, spawns parallel deep-research subagents per topic cluster, synthesizes findings under unbounded review, and produces a polished report.
No authentication required. Uses the host agent's web search and fetch or browse capability, and writes to the local filesystem.
grep -x check of Step 1, the sha256sum and grep -c checks of Step 3, the sha256sum and head -1 check of Step 4, the label check of references/confidence-labels.md, the open-issue list of references/stalls-and-ship-as-is.md, and the mv and render checks of Step 11.Use the host platform's equivalent tools without changing the workflow:
| Capability | Claude Code | Codex |
|---|---|---|
| Subagent dispatch | Agent tool | spawn_agent only when available and permitted. Otherwise run the phase inline. |
| Progress list | TaskCreate, TaskUpdate, TaskList | update_plan |
| Web research | WebSearch, WebFetch | web.run search and open calls, or the host browser/search tools |
| File reads | Read | shell reads such as sed, rg, or equivalent file read tools |
| Shell | Bash | shell command tool |
Cursor: dispatch subagents with the Task tool; to run agents in parallel, send several Task calls in one message.
When a platform cannot dispatch subagents for the current request, keep the same artifact boundaries and run each phase inline in the orchestrator. Tell the user when this changes runtime or context cost.
Find brief.md: the path the user gave, or the one research:research named when it handed over. If neither names one, ask the user for the path. Never search for a brief and never write one yourself.
Check it: grep -x 'Status: approved' {path}/brief.md must print the line. If the file is missing or the check prints nothing, stop. Tell the user the brief is missing or not approved, and recommend /research:research to write and approve one. Do not guess a brief.
Then set:
OUTPUT_PATH: the folder that holds brief.md (its Output path: line names the same folder).BRIEF: the full text of brief.md, injected into every dispatch below.Create the research folder:
mkdir -p {OUTPUT_PATH}/research
YOU plan, not an agent. Decompose the brief into sub-questions and cluster them into coherent topics. As many clusters as the brief demands; a cluster earns its own researcher only when its sub-questions need sources the other clusters will not read. Merge the rest. Cluster slugs must be unique and avoid colliding with reserved names (synthesis, gap-N-*, synthesis-review-N, draft-review-N). A slug must not be claim-checks or start with report, summary, findings or analysis (see File Layout).
A brief field that reads open (user skipped) is yours to choose. Pick what serves the rest of the brief, and list each choice under ## Open fields in plan.md, so the user sees it. From here on, BRIEF holds the text of brief.md followed by that list.
Write {OUTPUT_PATH}/plan.md:
# Research Plan
## Brief
Topic: <topic>
Scope: <scope>
Audience: <audience>
Purpose: <purpose>
Deliverable: <deliverable>
Deadline: <deadline>
## Open fields
- <field>: <your choice> (user skipped)
## Clusters
### Cluster: <cluster-slug-1>
Title: <human-readable title>
Sub-questions:
- SQ1: <sub-question>
- Search angles: <angle1>, <angle2>, <angle3>
- Source types: <academic, industry, etc.>
- SQ2: ...
### Cluster: <cluster-slug-2>
...
Tell the user the size of the run in one line (how many researchers, each running several search rounds), then go on without waiting.
Use the progress list to seed: "Spawn researchers", "Synthesize", "Review synthesis", "Check claims", "Write report", "Review report". Mark tasks completed as the pipeline progresses.
Each researcher does iterative deep search on its cluster (round-by-round breadth, depth, adversarial, then iterative deepening) until two consecutive rounds add no new evidence (saturation). The researcher produces one self-contained markdown with notes and inline sources (no separate sources or notes files). For each cluster in plan.md:
researcher-prompt.md from this skill directory.{OUTPUT_PATH}/research/{cluster-slug}.md), TARGETED_GAP (empty).ARTIFACT-VERIFIED <sha256>.sha256sum {OUTPUT_FILE} | cut -d' ' -f1grep '\[source:' {OUTPUT_FILE} | grep -vc '\[inaccessible\]'. The floor is 2 per sub-question in the cluster's plan.md block, which sed -n '/^### Cluster: {CLUSTER_SLUG}$/,/^### Cluster: /p' {OUTPUT_PATH}/plan.md | grep -c '^- SQ' counts. If that prints 0, the plan.md block does not match the Step 2 format: fix plan.md, do not pass the file. A gap-fill file's floor is 2.A check fails on ARTIFACT-MISSING, a hash mismatch, a missing or unparseable last line, or a count under the floor. Re-dispatch that researcher once; if it fails again, surface it to the user (often a bad cluster boundary). When you ran the researcher inline, there is no marker to parse; the count still runs.
synthesis-prompt.md.sha256sum {OUTPUT_PATH}/research/synthesis.md 2>/dev/null | cut -d' ' -f1 (prints nothing on iteration 1, when the file does not exist yet). Dispatch via the host subagent tool. Wait for completion.test -f {OUTPUT_PATH}/research/synthesis.md must pass, sha256sum {OUTPUT_PATH}/research/synthesis.md | cut -d' ' -f1 must differ from the hash you recorded, and head -1 {OUTPUT_PATH}/research/synthesis.md must print # Synthesis (Iteration N), with N the ITERATION you injected.A check fails on a missing file, an unchanged hash, or a wrong first line. Re-dispatch synthesis once with the same inputs and run item 4 again against the hash from before the first dispatch (do not record a new one); if it fails again, tell the user which check failed and ask how to go on. Never go on to Step 5 with the old file.
synthesis-reviewer-prompt.md.rejected or unresolved, then numbers, then thesis pillars) and records each mark in the file's REFETCH: block.{OUTPUT_PATH}/research/synthesis-review-{N}.md if response is unparseable.If verdict is PASS: continue to Step 7.
If verdict is ISSUES with critical issues: classify and proceed to Step 6.
Classify each critical issue:
evidence-gap, coverage, source-quality → spawn gap-fill researcher per issue (or per coherent group of related issues). A rejected refetch claim (id refetch-<claim-slug>) and a claim the claim check refuted (id claim-check-<claim-slug>) are source-quality issues.logic, structure → no researcher; item 3 takes them.For each gap-fill issue:
researcher-prompt.md. Inject: BRIEF, OUTPUT_PATH, RECIPES_PATH, CLUSTER_SLUG=, OUTPUT_FILE={OUTPUT_PATH}/research/gap-{N}-{issue-slug}.md, TARGETED_GAP=.Then, once per round, not once per gap-fill: every round with a critical issue writes the synthesis again, whatever the mix of issues. A gap-fill file reaches the review only through synthesis.md, so never skip item 3:
When every gap-fill file has passed its Step 3 check (or the user, asked after a second failure, said to go on without it), re-dispatch synthesis (Step 4 with ITERATION=N+1) once per round (the retry on a failed Step 4 check still applies), with REVIEWER_FEEDBACK holding every critical issue of this round:
REFETCH: block and the gap-fill file path, so the wrong claim leaves synthesis.md;claim-checks.md and the gap-fill file path, so the wrong claim leaves synthesis.md or changes;logic or structure issue.Wait for completion.
Return to Step 5 with iteration N+1.
After each review with verdict ISSUES, and after iterations 3, 6, 9, ..., read references/stalls-and-ship-as-is.md: it says when to stop, what to tell the user, and what continue, ship as-is and intervene each do.
Update the progress list at every step so the user can inspect live status through the host platform.
Runs each time the synthesis review passes in Step 5, before any writer. Three fresh checkers try to refute each key claim. Read references/claim-check.md and follow it: it picks the claims, says what to tell the user, dispatches references/claim-checker-prompt.md, and writes {OUTPUT_PATH}/research/claim-checks.md.
Section 5 of that file routes the result and sets each claim's Confidence: label before the writer. A newly refuted claim goes to Step 6, and the loop comes back through Step 5 to here. With no refuted claim, or after the user says ship as-is, continue to Step 8, or, when Step 10 sent you to Step 6, back to the writer as Step 10 says.
writer-prompt.md.{OUTPUT_PATH}/draft.md exists.BRIEF carries the Deliverable: line. The writer fits form, length and language to it, and the writer reviewer checks that fit.
writer-reviewer-prompt.md.If PASS: continue to Step 11.
If ISSUES with critical issues: classify and proceed to Step 10.
Classify each critical issue:
prose, flow, accuracy, format → batch into a single re-write with all such issues as feedback.content-gap-suspected → re-run synthesis-reviewer with this hypothesis (cross-loop).For batched prose/flow/accuracy/format issues:
For any content-gap-suspected issues:
synthesis-review-{prior-N+1}.md (synthesis loop counter resumes monotonically).references/confidence-labels.md; a new unresolved mark can lower one), and re-dispatch writer with prose-only feedback (drop the content-gap notes from the writer-reviewer's issue list). Return to Step 9.evidence-gap / coverage / source-quality route to gap-fill research; logic / structure route to re-synthesize; a rejected refetch claim or refuted claim takes both routes, as Step 6 says). When the synthesis loop closes again, through Step 7, re-dispatch writer with the original prose feedback (if any) plus a fresh writer review. Return to Step 9.Same as the synthesis loop, on draft-review-{M}.md: references/stalls-and-ship-as-is.md. Here ship as-is goes to Step 11 with the current draft.
Format: line, then html.mv {OUTPUT_PATH}/draft.md {OUTPUT_PATH}/report.md. For markdown, that is the report.{OUTPUT_PATH}/report.html from report.md: read references/rendering-the-report.md and follow it, checks and failure path included. report.md stays as the reviewed source.references/stalls-and-ship-as-is.md and report what it lists.{output-path}/
├── brief.md (written and approved in research:research)
├── plan.md
├── research/
│ ├── {cluster-slug}.md (one per cluster, notes + inline sources)
│ ├── gap-{n}-{slug}.md (gap-fill research)
│ ├── synthesis.md (overwritten each iteration; the orchestrator sets its final labels)
│ ├── synthesis-review-{n}.md
│ └── claim-checks.md (rewritten each Step 7 round; only the orchestrator writes it)
├── draft.md (overwritten each iteration; renamed report.md in Step 11)
├── draft-review-{n}.md
├── report.md (the reviewed report; the deliverable for markdown, the source for html)
└── report.html (html only: rendered from report.md in Step 11, the deliverable)
Subagents never write a file named report*, summary*, findings* or analysis* with a .md extension: Claude Code refuses those writes from a subagent ("Subagents should return findings as text, not write report files"). That is why the writer writes draft.md and only the orchestrator, in Step 11, names it report.md.
Read references/verdicts-and-markers.md to parse a verdict (Steps 5, 9) a researcher's last line (Step 3) or a checker's last line (Step 7). Its words are fixed: every prompt uses those spellings and no others.
brief.md, or no Status: approved line in it: stop and recommend /research:research. Never write the brief here.ARTIFACT-MISSING, hash mismatch, missing or unparseable last line, source count under the floor): re-dispatch once. Surface if it fails again (likely bad cluster boundary).UNCLEAR; go on (see references/claim-check.md).unresolved and goes on. Never retry it yourself.references/stalls-and-ship-as-is.md and await the user's choice. Don't auto-retry.report.md, leave no partial report.html, tell the user (see references/rendering-the-report.md).references/claim-check.md for Step 7) names every one.report-template.md for report structure (use Deep Mode section) and research-recipes.md for search patterns.Default for this artifact: html.
Override resolution order, highest precedence first:
"a markdown research report", "in HTML", "as a markdown report", and equivalents.Format: line of the approved brief.md.Path: {OUTPUT_PATH}/report.<ext>, where OUTPUT_PATH is the brief's folder (default reports/<topic-slug>-<YYYY-MM-DD>/) and <ext> resolves from format. html keeps report.md beside report.html as its source.
When emitting HTML, follow references/research-report-template.html in this skill's directory, as Step 11 and references/rendering-the-report.md say. Read the template lazily. Do not introduce U+2014 or U+2013 codepoints in body copy; HTML entity forms are permitted.
references/claim-check.md (opens in a new tab)references/claim-checker-prompt.md (opens in a new tab)references/confidence-labels.md (opens in a new tab)references/rendering-the-report.md (opens in a new tab)references/research-report-template.html (opens in a new tab)references/stalls-and-ship-as-is.md (opens in a new tab)references/verdicts-and-markers.md (opens in a new tab)report-template.md (opens in a new tab)research-recipes.md (opens in a new tab)researcher-prompt.md (opens in a new tab)synthesis-prompt.md (opens in a new tab)synthesis-reviewer-prompt.md (opens in a new tab)writer-prompt.md (opens in a new tab)writer-reviewer-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pgoell/pgoell-claude-tools --plugin research2 skills in this plugin
Other plugins' skills for the same job