/researcher:research <research question>from researcher
Produces source-grounded, cited HTML research reports via a bundled Dynamic Workflow. Gathers a brief on depth/recency/source mix, fans out firecrawl retrieval into findings, gates rounds on coverage and contradictions, then synthesizes and renders an evolving HTML report.
Ships in researcher. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Front-end orchestrator for the researcher workflow. Gather a brief, resolve where the report lives, launch the
bundled Dynamic Workflow, present the result, then run the follow-up checkpoint that extends the evolving report.
The workflow does all the heavy lifting (retrieval, the gated round loop, synthesis, editing, HTML rendering) and returns only a compact manifest + path — the verbose HTML never enters this conversation.
echo "$CLAUDE_PLUGIN_ROOT"./research (one folder per report: ./research/<slug>/)This skill needs Dynamic Workflows enabled (paid plan; on Pro, turn them on once from the Dynamic workflows row
in /config, and the setting persists across sessions) and the firecrawl MCP installed with mcp__firecrawl__firecrawl_search / firecrawl_scrape
allow-listed. If the Workflow tool is unavailable, tell the user to enable Dynamic Workflows and stop — do not
attempt an inline Agent fan-out (that defeats the whole design; see the plugin README).
$ARGUMENTS. If empty, ask the user what they want researched, then continue.Infer every dimension from the question and context; only ask about what you genuinely cannot infer, in a
single consolidated AskUserQuestion call (the tool allows ≤4 sub-questions). Often you will ask 1 question or
none. Never spend a sub-question on language — it is deterministically detectable (see below).
Dimensions and their option sets (list the inferred/sensible default first, label it (Recommended)):
| Dimension | Options (recommended first varies by inference) | Effect |
|---|---|---|
| Depth | Standard (balanced, 2 rounds) · Quick (1 round) · Deep (3 rounds + Verifier) | sets maxRounds; Deep also runs the adversarial Verifier |
| Recency | Recent (~2 years) · Any (incl. foundational) · Latest (fast-moving, newest first) | biases retriever date filters + query terms |
| Sources | Broad (all types, trust-weighted) · Authoritative (primary + reputable only) · Technical-academic (docs/standards/papers) | biases sub-query planning + inclusion |
| Audience | Informed · Lay · Practitioner · Expert | calibrates the Editor only |
Audience tiers (lay / informed / practitioner / expert): lay = general public; informed = generally
literate, not a specialist; practitioner = in the field but junior (knows the basics, not advanced terms or
abbreviations); expert = fluent in the jargon. Infer from the question's framing and any context (e.g. a project
CLAUDE.md). You may also pass a one-line free-form descriptor (e.g. "a PM evaluating vendors") to sharpen it.
Language (decision: never ask): default = the language of the question. Detect it from the question text.
An explicit in-question directive overrides it (e.g. "…napisz raport po angielsku" / "…in English" → English even
if the question is Polish). Pass a clear language name (e.g. Polish, English).
Smart defaults when you choose not to ask: depth standard, recency any (or recent/latest if the topic is
clearly time-sensitive), sources broad, audience informed.
state.json files are the registry)Reports live under <base>/<slug>/. There is no global index — discover existing reports by scanning the base
directory; each state.json is self-describing (goal, brief).
extending: true, same slug). No scan, no prompt.slug = a slugified goal (lowercase, words joined by -). Then:
test -f <base>/<slug>/state.json? If it exists, read its goal:
extending: true. Fresh on a same-slug-different-angle → pick the next free <slug>-2, <slug>-3, …<slug>-2 (etc.) for the new report.<base>/*/state.json, list their goals, and let the user pick which to continue.extending: false.(mkdir for the folder is handled by the workflow's Setup step — you only resolve the path + the extend flag.)
First, detect tool availability here (cheap in this session) and pass it forward — the workflow assumes a
global mmdc and never downloads a renderer at compose time. Run command -v mmdc; set diagramsAvailable: true
if it resolves, else false. Do not install it — if it's missing, the report simply renders without Mermaid
diagrams (reconstructing that data as tables/charts) and you may mention pnpm add -g @mermaid-js/mermaid-cli as an
optional one-time install for diagram support.
Resolve the plugin root from the Context block above (call it PLUGIN_ROOT). Call the Workflow tool with the
bundled script by path and the brief as a real JSON object (not a stringified one):
Workflow({
scriptPath: "<PLUGIN_ROOT>/workflows/research.js",
args: {
goal: "<the question>",
depth: "quick|standard|deep",
recency: "recent|any|latest",
sources: "broad|authoritative|technical-academic",
audience: { tier: "lay|informed|practitioner|expert", descriptor: "<optional one-liner>" },
language: "<detected language name>",
outputBase: "./research",
slug: "<resolved slug>",
extending: <true|false>,
diagramsAvailable: <true|false>,
pluginRoot: "<PLUGIN_ROOT>"
}
})
pluginRoot must be the resolved absolute path (the Composer copies report.css + chart.umd.js from
<pluginRoot>/assets). If the tool rejects scriptPath, fall back to Read-ing the file and passing its contents
as script: with the same args.
The workflow may return an error field instead of a report (no-goal, schema-mismatch, no-findings,
synthesis-failed, compose-failed). Relay its message plainly and stop — do not retry blindly.
On success the workflow returns { artifactPath, manifest: { title, sections[], sourceCount, roundCount }, gaps[], followups[], warnings[] }.
artifactPath.warnings (e.g. an image that failed to fetch, diagrams skipped because mmdc was unavailable).open "<artifactPath>" on macOS (xdg-open on Linux).When followups[] is non-empty you MUST hand the decision back through a single blocking AskUserQuestion
(multiSelect: true). Do not print the follow-ups as a markdown list and ask about them in prose — that is the
wrong behavior, and it is the failure mode this step exists to prevent. Build the call mechanically:
header: "Follow-up".followups[] entry. They arrive as full-sentence questions, so cap at 4 (AskUserQuestion
allows ≤4 options): set the option's label to a short 3–6 word summary you synthesize from the entry, and put
the full follow-up sentence in the option's description. The auto-added "Other" lets the user write their own.Then:
goal (join multiple picks into one coherent question), and inherit the same slug, extending: true, and
the prior brief defaults (depth, recency, sources, audience, language) so the report stays one coherent,
single-language document — then relaunch the workflow (step 4). The report is re-synthesized holistically and
snapshotted before the overwrite — this is the same evolving output.html, not a new file.The tone stays calm and decision-handing-back, like the other orchestrator skills — but here "handing the decision
back" means the AskUserQuestion call, not a prose offer. (If followups[] is empty, skip the question and simply
note the report is complete.)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
research-report, web-research, citation, html-report, dynamic-workflow
npx claudepluginhub grixu/cc-toolkit --plugin researcherOther plugins' skills for the same job