Do your research

From melodic-software/claude-code-plugins · View interactive version

Do your research is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Re-anchors research discipline: audits and corrects work and pending recommendations, or fans out to verify every session claim. Use when: 'do your research', 'you're guessing', 'cite that', 'stop assuming', 'evidence, not vibes', 'you skipped verification', 'that's training-data recall', 'research

How to use this skill

Skill file

Do your research

A drift corrector for research discipline. The shared method (re-anchor, audit

the work in flight, correct forward, report) lives in

CODE0.

Read it; this file adds only what is specific to research discipline.

The discipline this re-anchors

Research and verification before assertion. Resolve its source of truth

per the method doc's ladder: if the consuming project states a

research/verification discipline in its own CLAUDE.md or .claude/rules/,

re-anchor that. Otherwise re-anchor this portable baseline:

"known", "obvious", or "from memory" is unverified until a fetched

source or the live environment backs it.

signature, or any "standard/conventional X" is a claim. Check it

against an authoritative source or the actual environment before stating

it as fact, most critically right before the user acts on it.

actually being solved; do not let the first solution shape decide it.

than assuming a value.

unverified until confirmed from a current, authoritative source.

"An authoritative source" is a bar with three dimensions

Naming a source is not clearing the bar. A source has a tier. Tool output

and docs fetched this turn outrank secondary synthesis; ungrounded recall does

not clear the bar at all until it is promoted. A claim needs **independent

corroboration**. Citations that trace back to one upstream pool are one source,

not three. And a claim about anything that ships releases needs a recency

check against the current upstream, because first-party docs lag their own

releases.

What clears each dimension resolves down the same ladder as the discipline

itself: what the consuming project declares wins; failing that, the contract

/discovery:research (if enabled) states as mandatory disciplines; failing both, the floor below. The floor is this skill's

own baseline, deliberately lighter than a research pass's numbers, because it

settles one claim mid-conversation:

output, or the upstream artifact itself. Recall, and a summary of a source

read in place of the source, are both below the floor. An upstream docs

page is read through the shared docs lookup

(${CLAUDE_PLUGIN_ROOT}/scripts/fetch-docs.sh --cache, following

${CLAUDE_PLUGIN_ROOT}/reference/docs-lookup-procedure.md with

<scripts> = ${CLAUDE_PLUGIN_ROOT}/scripts and <session> =

${CLAUDE_SESSION_ID}), not a WebFetch summary of it.

different upstream pool. One pool restated by three intermediaries is one

source; where no second pool exists, say that instead of counting the

restatements.

release or changelog, not only the page that named the value.

Whichever rung resolves, hold all three dimensions and cite the rung that

actually applied.

Two directions: grounding, and checking what was already said

wrong claim.

that" asks for. Skipping it leaves a wrong claim standing while later work

builds on it.

Direction is not the tier boundary. Depth is. Both directions run in the

inline audit and in the fan-out tier below.

Audit. What to look for

Name concrete, located findings (per the method doc's step 2, self-audit; on load-bearing work a fresh-context subagent confirms a clean result):

"obvious" / "from memory";

upstream pool. Corroboration count is part of the bar, not a bonus;

the current release, with no changelog cross-check;

Correct each forward now: research the unbacked claim, verify the specific

against the live environment or an authoritative source, re-derive a

premature solution from the actual problem, and flag whatever stays

unverifiable, naming where you looked, rather than smoothing over it. Where your own judgment is

the suspected source of bias, re-derive in a fresh-context subagent.

The verification level governs that subagent and the fan-out tier. Resolve it once with

bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin discipline --skill do-your-research --file docs/conventions/discipline.yaml

and report its line (levels).

light and off skip both dispatches as the method doc and

CODE0 say. strict takes the fan-out tier at full depth on

every run, except inside a batch or a fork, where the inline audit still holds.

Pending recommendations are an audit unit

Every recommendation the session has put to the user and the user has not

yet settled is audited too, whether it is an option, verdict, default, or

next step. Apply the contract in

CODE0:

ground the affected code and its consumers or blast radius through

/discovery:explore (if enabled), and the authoritative sources the contract names

through /discovery:research (if enabled); without the discovery plugin, do the same reads and

fetches inline. Report each as old → new → why when the evidence moved it,

or unchanged with why, in one of the contract's three outcomes:

Basis: verified, Basis: judgment (never on a consequential one), or

withheld as an open question naming the evidence that would settle it.

This runs inside the loop's audit and correct-forward steps, so it is not a

step delta.

The fan-out tier

The inline audit above is the default. Take the fan-out tier instead when the

invocation argument is tiered or full, or when your own judgment is the

suspected source of bias across many load-bearing claims, or a request to

"fact-check everything" / "verify every claim" wants provable coverage of the

whole session. A single fact-check or a short session stays inline: there the

fan-out's subagent cost buys nothing.

Never inside a batch or a fork. When this skill runs as a member of a

/discipline:sweep-all audit fork, or in any fork, run the inline audit only,

whatever the argument or trigger. Where the fan-out would fit, add a ledger

entry recommending a direct /discipline:do-your-research tiered run instead.

The batch is audit-only and keeps its cost bounded by leaving fan-out tiers

out.

Available tools.

Depth, resolved once before enumerating: the invocation argument (tiered

or full) wins, except that a strict verification level resolves full ahead of it; otherwise the configured default,

${user_config.research_deep_verification}; otherwise tiered. An empty

value, a surviving literal ${user_config.…} token, and any unrecognized

string all mean tiered; never error on a bad value.

Then read reference/fan-out-tier.md before

enumerating: it owns the typed inventory, the throttled dispatch, and the

per-item ledger, and replaces the inline audit and correct-forward steps.

Out of scope

Clean-implementation and comment verbosity; a simplification or

comment-hygiene tool fits those.

Next

/discovery:research <question>

When a claim needs a new multi-source research pass rather than a check of

what the session already said.

Related

Gotchas

verification, the research-specific trap. Reach for a real source or the

live environment; where your own judgment is the suspect across many

claims, the fan-out tier is the fresh-context escalation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.