Skip to content
Back to skills

Recheck Against Upstream

ASecurity

Re-anchor existing state (config, code, doc, setup, subsystem, infra) is not proof of correctness; check/audit against current official upstream vendor doc for upstream drift/change (inline, fan-out, --repo). Use when 'recheck against upstream', 'is our config still current', 'verify against the official docs', did upstream change, still right.

  • 34 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 2, 2026
ai-agentsgobashgitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add melodic-software/claude-code-plugins --skill recheck-against-upstream --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recheck Against Upstream?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recheck Against Upstream
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-recheck-against-upstream/badge)](https://www.skillsdirectory.com/skills/melodic-software-recheck-against-upstream)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Re-anchor existing state (config, code, doc, setup, subsystem, infra) is not proof of correctness; check/audit against current official upstream vendor doc for upstream drift/change (inline, fan-out, --repo). Use when 'recheck against upstream', 'is our config still current', 'verify against the official docs', did upstream change, still right."
argument-hint: "[fan-out] [scope] [--repo <repo> ...]"
user-invocable: true
disable-model-invocation: false
metadata:
  discipline-batch: situational  # only when config/infra/integration is in play
  discipline-batch-rank: 30
  workflow-stage: anytime
  summary: Audit the surface in flight against current official upstream docs
---

# Recheck against upstream

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`](../../context/re-anchor-audit-correct.md).
Read it; this file adds only what is specific to upstream-conformance
discipline.

## The discipline this re-anchors

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:

- **Present state is not self-justifying.** "It's already configured this
  way" and "the code does X" describe the state; neither shows it still
  matches upstream. Conformance is a claim to verify, not to assume.
- **Compare against the current official upstream, fetched now.** Re-read
  the vendor's live documentation for the surface in play this session, never training-data recall of it, never a stale in-repo summary of it.
  Read each docs page through the shared docs lookup, not a WebFetch
  summary: the procedure is
  `${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.
- **Resolve the applicable upstream version first.** When the repo pins a
  supported major/minor, compare against the docs for that version. The
  latest docs can legitimately prescribe APIs and defaults the pin does not
  have. Divergence between the pinned line and latest is its own finding
  (upgrade candidate or deliberate hold), never a false gap against the pin.
- **Unverified conformance is not "clean".** A surface you did not compare
  is unaudited, not passing. Report what was compared and what was skipped;
  do not launder the unchecked into a green result.

## The loop's audit step. Classify each divergence

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:

1. **Gap**. Docs say X, we do Y, and no rationale is recorded anywhere in
   the repo. Treat as a straight defect to correct toward upstream. Call out
   deprecation and version drift here: a flag upstream renamed, a default it
   changed, an API it marked deprecated is a gap even when the old form
   still functions today.
2. **Deliberate divergence**, a rationale is recorded in the repo's docs or
   an ADR. Do not "correct" it. Audit only whether it still holds against
   the current docs: upstream may have shipped the very thing the workaround
   was written to route around, obsoleting the recorded rationale. Report-
   only when the rationale still holds; flag it when the docs have overtaken
   it.
3. **Undocumented divergence**, the state looks intentional but no written
   rationale exists, so the correct resolution is the human's call: adopt
   the docs' way, or keep the divergence and record its rationale. Route the
   resolution to the repo's ADR / docs convention (read it from the
   consuming project's own instruction layer); do not silently pick a side.

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](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/contracts/verification-level/README.md)):
`light` and `off` skip that subagent and the fan-out tier's dispatch, as the method doc and
[`fan-out.md`](../../context/fan-out.md) say.

## The fan-out tier

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.

- **Pointer**: whether a fork's Agent tool can spawn,
  [Available tools](https://code.claude.com/docs/en/sub-agents#available-tools).

Then read [reference/fan-out-tier.md](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.

## Several repositories

A target form from
[`${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md`](../../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.

## Distinct axes. What this is not

- **vs `/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.
- **vs `/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.
- **Divergence is not automatic error.** A recorded, still-valid deliberate
  divergence audits clean; the duty is to classify, not to force every
  difference back to the default.

## Related

- Interrogate internal precedent rather than vendor docs: /discipline:reason-dont-recite.
- Audit against org engineering standards: /discipline:follow-our-standards.
- Read one named upstream docs page verbatim: /discovery:read-docs.

## Gotchas

- **"Still functions" is not "still current".** A deprecated flag or a
  superseded default that has not yet been removed is a gap, not a pass; version drift is a finding even before it breaks.
- **A recorded rationale can expire.** The category-2 trap is treating "we
  decided this once" as permanent; re-check it against what upstream ships
  today, because the workaround may now be obsolete.
- **Silence about the unchecked reads as a pass.** State the surfaces you
  compared and the ones you did not; an honest skip list is part of the
  report, not an admission of failure.

Files in this skill

  • SKILL.md5.9 KB
  • evals/evals.json3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.