Coding Standards Skill Reference

extracting-coding-standards

The extracting-coding-standards skill turns a repo’s conventions into registered rules and canonical snippets, then renders the version-stamped ## Coding Standards section in CLAUDE.md or AGENTS.md.

Skill contract

FieldValue
Slugextracting-coding-standards
PurposeTurn a repo’s coding intent into registered rules and snippets, then render the ambient standards section.
When to useFirst-time setup, re-extraction after a convention shift, or adding snippet coverage for a pattern the library missed.
When not to useChecking registered standards, consulting snippets while writing, or deriving style rules without registering them.

Triggers

The skill uses these trigger phrases:

Trigger phraseWhat it means
extract our coding standardsSet up Coding Standards from the repository’s source evidence.
derive rules and snippets from this repoBuild the registered rules and canonical snippets from source material.
register our coding conventions with gloriaRegister the conventions in the standards library.
set up the standards libraryCreate the library and prepare it for rendering.

Outputs

  • Registered rules and canonical snippets, with approval before anything lands in the library.
  • A version-stamped ## Coding Standards section in CLAUDE.md or AGENTS.md.

using-coding-standards

The using-coding-standards skill keeps write-time code aligned with the registered standards library. It looks up the canonical snippet before pattern-shaped code and leaves provenance markers on adopted or adapted code so reuse stays visible.

Skill contract

FieldValue
Slugusing-coding-standards
PurposeConsult the snippet library before writing pattern-shaped code, then keep reuse visible with provenance markers.
When to useBefore writing pattern-shaped code, when the repo already has a registered Coding Standards library, and when CLAUDE.md or AGENTS.md already includes ## Coding Standards.
When not to useOne-off logic, repos with no registered standards, or extraction and checking tasks.

Triggers

The skill responds to prompts such as:

Trigger phraseWhat it means
Before you write that DAO, check our coding standards for a snippet.Look up the matching canonical snippet before writing.
consult the snippet library before writing pattern-shaped codeSearch the registered library before starting a repeating shape.
before writing pattern-shaped codeRun the snippet lookup before the first line.

Outputs

  • Adopted or adapted code that keeps the canonical exemplar shape.
  • gloria:snippet provenance markers that show which project and snippet id the code came from.

checking-coding-standards

The checking-coding-standards skill compares code with the registered rules and snippet library, then writes drift findings to the ledger. It stays read-only, so it never edits source.

Skill contract

FieldValue
Slugchecking-coding-standards
PurposeEvaluate code against registered rules and snippets, then report drift to the ledger.
When to usePR or branch review, a periodic or on-demand full audit, or any check invocation.
When not to useFixing violations or checking repos with no registered standards.

Triggers

The skill uses these trigger phrases:

Trigger phraseWhat it means
check this PR against our standardsRun a diff-scoped standards check.
run a standards checkEvaluate the current code against the registered standards.
audit the repo for driftRun a full audit and look for broader drift.
has our code drifted from the rulesCompare the code against the registered rules and snippets.

Outputs

  • Drift findings written to the ledger, with file and line detail where needed.
  • Clean runs still resolve open findings in scope and refresh the record.
  • Read-only results that report findings without changing code.

See also:

The Coding Standards overview page introduces the loop, and the three skill-specific pages explain the procedure for each skill.