/governance:governancefrom governance
Enforces engineering standards and code governance during code reviews, commits, and standards discussions. Delegates review to a built-in subagent to keep intermediate output out of the main conversation.
Ships in governance. 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.
None: SKILL.md is the whole skill.
Enforces engineering standards and code quality policies. The review runs in one delegated reviewer subagent, which keeps intermediate output out of the main conversation.
Standards Document: standards.md (starter default — replace with your own) Audit Script:
npm run audit:standardsFull Protocol: agent-prompt.md
Type: Delegated Execution — delegates to ONE built-in reviewer subagent.
This skill uses the reviewer subagent type (available in all Claude Code installations — no custom agent required):
agent-prompt.md in full firstThe reviewer runs commands, reads files and applies fixes in its own context. Only the structured summary returns to the main conversation, so the main thread does not carry the review's intermediate output.
The full rules live in agent-prompt.md. The reviewer covers:
any, explicit types at boundariesawait, and unguarded async-completion writes to shared stateWhen this skill is triggered, read agent-prompt.md for the full protocol, then delegate:
Task({
description: "Governance code review",
prompt: `Read <skill-dir>/agent-prompt.md in full before doing anything, and follow it.
(<skill-dir> is the directory containing this SKILL.md, e.g. ~/.claude/skills/governance.)
Review the following files for standards compliance:
- [list files or PR description]
Execute full code review workflow:
1. Run standards audit
2. Check each file against standards.md
3. Fix ALL issues immediately (zero deferral)
4. Return structured summary`,
subagent_type: "reviewer"
})
Task({
description: "Pre-commit governance",
prompt: `Read <skill-dir>/agent-prompt.md in full before doing anything, and follow it.
(<skill-dir> is the directory containing this SKILL.md, e.g. ~/.claude/skills/governance.)
Run pre-commit governance checks:
1. typecheck, lint, format:check, test
2. Check for untracked source files
3. Return pass/fail with specific failures`,
subagent_type: "reviewer"
})
Task({
description: "Run retrospective",
prompt: `Read <skill-dir>/agent-prompt.md in full before doing anything, and follow it.
(<skill-dir> is the directory containing this SKILL.md, e.g. ~/.claude/skills/governance.)
Run retrospective for [topic/sprint]:
1. Analyze completed issues
2. Gather metrics
3. Write report
4. Return summary`,
subagent_type: "reviewer"
})
[ ] npm run typecheck
[ ] npm run lint
[ ] npm run test
[ ] npm run audit:standards
[ ] No console.log statements
[ ] No hardcoded secrets
npm run audit:standards
node scripts/governance-check.mjs
Full agent protocol, anti-pattern tables, and output format in agent-prompt.md Version 2.2.0 — Expanded review rules, code-review and retro templates, dispatcher passes the protocol path
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (wrsmith108/governance-claude-skill) — no native marketplace selected
npx claudepluginhub p/wrsmith108-governanceOther plugins' skills for the same job