Follow our standards

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

Follow our standards is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Re-anchors to the organization's engineering standards, audits the work in flight against them, and corrects 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 drifti

How to use this skill

Skill file

Follow our standards

A drift corrector for alignment to the consuming organization's engineering

standards. 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 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:

  1. 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. Prefer a local checkout when one

exists; a remote read (via the host's CLI or web tree) is the fallback.

  1. 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.

  1. 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, 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 modeling, 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:

When no convention source resolved, these five are the portable baseline

the audit runs against.

Skill-specific audit notes

issue. A finding without a citation is an opinion, not a standards

violation: locate it in the conventions or drop it.

declares one.** When a manifest marks which downstream files are

upstream-owned (change via a reviewed sync) versus locally customizable,

never propose editing a managed materialization as the source of a change;

route it upstream. With no declared seam, this note does not apply.

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, or any outward artifact,

without the user's explicit opt-in (the plugin-wide outward-artifact gate

in the method doc, mirroring the offer gate the fan-out tier of

/discipline:recheck-against-upstream applies to its work-items routing). When the work disagrees with a standard, that

disagreement goes upstream too: neither quietly ignore the standard nor

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.)

bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin discipline --skill follow-our-standards --file docs/conventions/discipline.yaml

and report its line (levels):

light and off skip the method doc's step 2 and step 3 subagents, as it says, and the final reply then carries the line verification: skipped (<level>) verbatim, such as verification: skipped (light).

Several repositories

A target form from

CODE0

(--repo <repo> and the others) runs the audit once per repository, per the

method doc's "Several repositories"; with none, the skill audits the work in

flight as above. Each repository's pass audits that repository's tracked

code and docs against the standards it resolves itself: run "Resolve the

standards source" and route through the index under "Loading" inside that

repository, so one repository's standards never judge another's. Each

finding cites the doc from its own repository's source.

Out of scope

Upstream/downstream sync and dedup design; this skill only respects an

existing managed / locally-owned seam when one is declared.

Related

Gotchas

an assumed local path a reader might expect, since the standards may live

in several places.

list reproduced from memory.

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.