/discipline:recheck-against-upstream [fan-out] [scope] [--repo <repo> ...]from discipline
Audits existing config, code, docs, or infra against current official upstream documentation to detect drift. Use when verifying if configurations or implementations still match upstream.
Ships in discipline. 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.
A drift corrector for the discipline that existing state does not vouch for
itself. The shared method (re-anchor, audit the work in flight, correct
forward, report) lives in
${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md.
Read it; this file adds only what is specific to upstream-conformance
discipline.
Existing state, a config file, a code path, a runbook, an infra
definition, is evidence of what is, never proof that it matches the
upstream it depends on. Resolve the source of truth per the method doc's
ladder: if the consuming project states an upstream-conformance rule in its
own CLAUDE.md / .claude/rules/, re-anchor that. Otherwise re-anchor this
portable baseline:
${CLAUDE_PLUGIN_ROOT}/reference/docs-lookup-procedure.md. Read it before
the first fetch and follow it, with <scripts> =
${CLAUDE_PLUGIN_ROOT}/scripts (fetch-docs.sh --cache) and <session> =
${CLAUDE_SESSION_ID}. Report each page's age. A read that settles a
verdict uses raw bytes (the procedure's step 6). A source that is not a
docs page, such as a changelog repository or GitHub release notes, keeps
its existing route.Run the method doc's audit as a compare-and-classify pass. For the surface in flight, fetch the current upstream docs through the lookup above, diff the repo's state against them, and sort every divergence into one of three categories:
Correct each forward now per the method doc: fix gaps toward upstream,
re-check that deliberate divergences still hold, and surface undocumented
ones for the human with both options stated. Where your own reading of the
docs is the suspected source of error, re-verify in a fresh-context
subagent. Resolve the verification level once with
bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin discipline --skill recheck-against-upstream --file docs/conventions/discipline.yaml
and report its line (levels):
light and off skip that subagent and the fan-out tier's dispatch, as the method doc and
fan-out.md say.
The inline recheck of the surface in play is the default. Take the fan-out
tier instead when the invocation argument is fan-out, or when the request
covers a whole subsystem, framework, or repo that leans on many upstream
contracts at once. The optional scope argument names what to cover. A single
surface 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 recheck
only, whatever the argument or trigger. Where the fan-out would fit, add a
ledger entry recommending a direct /discipline:recheck-against-upstream fan-out run instead. The batch is audit-only and keeps its cost bounded by
leaving fan-out tiers out.
Then read reference/fan-out-tier.md before enumerating surfaces: it owns the doc-by-doc dispatch, the mid-run checkpoint, the divergence ledger, and work-item routing, and replaces the inline audit and correct-forward steps.
A target form from
${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md
(--repo <repo> and the others) runs the recheck once per repository, per
the method doc's "Several repositories"; with none, the tiers above run as
written. A repository named this way is a whole repo, so each one takes the
fan-out tier unless the scope argument narrows it to one surface, which then
runs inline in each repository. The fork rule above governs the run as a
whole: a target-form run inside a batch or a fork records the recommendation
and runs nothing across repositories. Outside one, each repository's
subagent is a fresh subagent that runs its own fan-out dispatch. Each
repository resolves its own pinned upstream version. Its mid-run checkpoint
and divergence ledger go in that repository's working-docs root, never the
invoking session's slice, and work items offered for it route to that
repository's tracker.
/discipline:reason-dont-recite. That skill interrogates internal
precedent coasting on "that's how it's done here". This one measures
against an external upstream authority: the vendor's current docs./discipline:follow-our-standards. That skill audits against the
consuming org's own engineering standards. This one audits against the
third-party vendor's documentation the state depends on.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin discipline18 skills in this plugin
/be-ambitiousBe ambitiousRaise a request before work (altitude, depth, range, outside check) and wait, or deepen finished work and redo it with an outside check./do-your-researchDo your researchRe-anchor research discipline: audit/correct work and pending recommendation (research properly, grounded, cite, verify, evidence not vibes, stop assuming, guessing, training-data recall, re-check what you recommended), or deep research pass to audit all claims. Use when 'do your research', 'fact-check that', 'verify every claim', or at start./Other plugins' skills for the same job