Follow our standards
A drift corrector for alignment to the consuming organization's engineering
standards. The method, re-anchor, audit the work in flight, correct
forward, report, and the tone that firing this is not an accusation, lives
in
${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md.
Read it; this file adds only what is specific to standards discipline.
Resolve the standards source
The authority is the consuming organization's own conventions; never work
from recall of them. Resolve a readable copy per the method doc's ladder:
- The consuming project declares its standards source. When the
repo's own
CLAUDE.md / .claude/rules/ names where the conventions
live, a shared standards repository, a docs tree, a conventions
directory. Resolve and read THAT. A local checkout is preferable to a
remote fetch when one exists; a remote read (via the host's CLI or web
tree) is the fallback.
- No external source declared → the repo's own conventions. Read the
conventions the repo carries itself. Its
CLAUDE.md, .claude/rules/,
CONTRIBUTING, docs, and re-anchor those.
- Nothing declared anywhere → the portable baseline below.
State which source resolved so the citations are traceable.
Loading. Relevance-routed progressive disclosure
Do not load the whole convention set. Route through its own index. A
top-level README or agent-instruction file, and pull only what the work
in flight needs. Discover the applicable docs through that front door
rather than hardcoding a doc map that will drift. Always re-anchor the core
design principles; load a specific convention (testing, naming,
error-handling, domain modelling, and the like) only when the current work
touches it. When the repo you are working in declares its own
design-doctrine docs, add them to the route set and load one when the work
in flight is designing what that doctrine governs.
The principles this re-anchors
Re-assert the core engineering principles as active for the rest of the
task, as pointers into whatever docs resolved above, read there, not
restated here:
- single source of truth / DRY;
- low coupling and high cohesion;
- change-together-lives-together, the vertical slice;
- SOLID;
- clean, intention-revealing code.
When no convention source resolved, these five are the portable baseline
the audit runs against.
Skill-specific audit notes
- Each finding cites the doc it breaks. Path plus the principle at
issue. A finding without a citation is an opinion, not a standards
violation: locate it in the conventions or drop it.
- Respect a managed / locally-owned seam when the standards source
declares one. Some standards distributions mark which downstream files
are upstream-owned (change via a reviewed sync) versus locally
customizable. When such a manifest exists, never propose editing a
managed materialization as the source of a change; route it upstream. If
the source declares no such seam, this note does not apply.
- Route shared-policy fixes upstream, never silent deviation, never
silent conformance. A change that belongs in the shared standards, not
this repo, is named and drafted for that repo's proper change path and
routed to the human, rather than patched into the downstream copy.
"Routed" means proposed and OFFERED: name the change, draft it, and offer
to open the standards PR. Do not open that PR yourself without the user's
explicit opt-in (the plugin-wide outward-artifact gate in the method doc).
When the work disagrees with a standard, that disagreement goes upstream
too. Do not quietly ignore the standard, and do not quietly comply with
one you have reason to think is wrong. (This is the upstream-routing path
that
/discipline:reason-dont-recite hands a standards disagreement to.)
What this skill does NOT do
- Does not design the sync pipeline. Upstream/downstream sync and
dedup design are out of scope; this skill only respects an existing
managed / locally-owned seam when one is declared.
- Does not open the standards PR itself. It names and drafts the
shared-standards change and routes it to the human; opening the PR. Or
any outward artifact. Waits on the user's explicit opt-in, mirroring the
OFFER gate the sibling
/discipline:recheck-against-upstream-deep applies
to its work-items routing.
- Does not fabricate a citation or a violation. Cite the doc that
actually resolved; report "conforms" honestly when it does.
Gotchas
- When only a remote fetch or the portable baseline resolved, cite THAT, not an assumed local path a reader might expect, since the standards may
live in several places.
- The convention set evolves; trust the source's own index over any doc
list reproduced from memory.
1---2name: follow-our-standards3description: Re-anchor to your organization's engineering standards, then audit the work in flight against them and correct violations with doc citations. Use when: 'follow our standards', 'follow the standards', 're-anchor to standards', 'does this match our conventions', 'audit against standards', 'you're drifting from our conventions', or at conversation start on a repo governed by shared conventions.4---56# Follow our standards78A drift corrector for alignment to the consuming organization's engineering9standards. The method, re-anchor, audit the work in flight, correct10forward, report, and the tone that firing this is not an accusation, lives11in12[`${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md`](../../context/re-anchor-audit-correct.md).13Read it; this file adds only what is specific to standards discipline.1415## Resolve the standards source1617The authority is the consuming organization's own conventions; never work18from recall of them. Resolve a readable copy per the method doc's ladder:19201. **The consuming project declares its standards source.** When the21 repo's own `CLAUDE.md` / `.claude/rules/` names where the conventions22 live, a shared standards repository, a docs tree, a conventions23 directory. Resolve and read THAT. A local checkout is preferable to a24 remote fetch when one exists; a remote read (via the host's CLI or web25 tree) is the fallback.262. **No external source declared → the repo's own conventions.** Read the27 conventions the repo carries itself. Its `CLAUDE.md`, `.claude/rules/`,28 `CONTRIBUTING`, docs, and re-anchor those.293. **Nothing declared anywhere → the portable baseline** below.3031State which source resolved so the citations are traceable.3233## Loading. Relevance-routed progressive disclosure3435Do not load the whole convention set. Route through its own index. A36top-level `README` or agent-instruction file, and pull only what the work37in flight needs. Discover the applicable docs through that front door38rather than hardcoding a doc map that will drift. Always re-anchor the core39design principles; load a specific convention (testing, naming,40error-handling, domain modelling, and the like) only when the current work41touches it. When the repo you are working in declares its own42design-doctrine docs, add them to the route set and load one when the work43in flight is designing what that doctrine governs.4445## The principles this re-anchors4647Re-assert the core engineering principles as active for the rest of the48task, as pointers into whatever docs resolved above, read there, not49restated here:5051- single source of truth / DRY;52- low coupling and high cohesion;53- change-together-lives-together, the vertical slice;54- SOLID;55- clean, intention-revealing code.5657When no convention source resolved, these five are the portable baseline58the audit runs against.5960## Skill-specific audit notes6162- **Each finding cites the doc it breaks**. Path plus the principle at63 issue. A finding without a citation is an opinion, not a standards64 violation: locate it in the conventions or drop it.65- **Respect a managed / locally-owned seam when the standards source66 declares one.** Some standards distributions mark which downstream files67 are upstream-owned (change via a reviewed sync) versus locally68 customizable. When such a manifest exists, never propose editing a69 managed materialization as the source of a change; route it upstream. If70 the source declares no such seam, this note does not apply.71- **Route shared-policy fixes upstream, never silent deviation, never72 silent conformance.** A change that belongs in the shared standards, not73 this repo, is **named and drafted** for that repo's proper change path and74 routed to the human, rather than patched into the downstream copy.75 "Routed" means proposed and OFFERED: name the change, draft it, and offer76 to open the standards PR. Do not open that PR yourself without the user's77 explicit opt-in (the plugin-wide outward-artifact gate in the method doc).78 When the work disagrees with a standard, that disagreement goes upstream79 too. Do not quietly ignore the standard, and do not quietly comply with80 one you have reason to think is wrong. (This is the upstream-routing path81 that `/discipline:reason-dont-recite` hands a standards disagreement to.)8283## What this skill does NOT do8485- **Does not design the sync pipeline.** Upstream/downstream sync and86 dedup design are out of scope; this skill only respects an existing87 managed / locally-owned seam when one is declared.88- **Does not open the standards PR itself.** It names and drafts the89 shared-standards change and routes it to the human; opening the PR. Or90 any outward artifact. Waits on the user's explicit opt-in, mirroring the91 OFFER gate the sibling `/discipline:recheck-against-upstream-deep` applies92 to its work-items routing.93- **Does not fabricate a citation or a violation.** Cite the doc that94 actually resolved; report "conforms" honestly when it does.9596## Gotchas9798- When only a remote fetch or the portable baseline resolved, cite THAT, not an assumed local path a reader might expect, since the standards may99 live in several places.100- The convention set evolves; trust the source's own index over any doc101 list reproduced from memory.