ワンクリックで
pr-standards-gate
Review a PR for standards compliance during code review
メニュー
Review a PR for standards compliance during code review
Wire standards into CLAUDE.md, AGENTS.md, and .cursor/rules/ using references
Maintain the documentation index to prevent orphaned standards
Write a well-structured standard document with headers, rules, and examples
Design a quality ceremony that drives standards compliance
Run a thorough drift audit to detect standards divergence
Build a project-specific standards enforcement agent
| name | pr-standards-gate |
| description | Review a PR for standards compliance during code review |
Verify that code changes comply with documented standards before approving a pull request.
You're reviewing a PR and need to ensure that the code changes follow the project's documented standards. This is the manual verification step that happens after automated checks pass.
The PR Gate ceremony has both automated checks (run by CI) and manual review (done by humans). This skill covers the manual review portion.
Standards can apply at different levels:
Reference: levels/L2-ceremonies/ceremonies/pr-gate.md#Manual Review Checklist
Identify changed files — Get the list of files modified in the PR
git diff main...<branch> --name-onlyMap files to applicable standards — Which standards apply?
src/api/server.ts → docs/standards/engineering/api-design.md and typescript.mdRead each applicable standard — Understand what the standard requires
Check changes against rules — Verify code follows each standard
Verify agent context updated if needed — Check that CLAUDE.md/AGENTS.md stay in sync
Report violations with specific fixes — If issues found, guide the PR author
Found violation in src/api.ts:42
Standard: docs/standards/engineering/api-design.md#Validation
Current: function accepts data: any
Required: All function params must have types
Fix: Change to: function process(data: ValidRequest)
Rubber-stamping the checklist — Going through motions without real review
Checking only the diff without reading the standard — Missing context
Treating all violations equally — Missing severity differences
Flagging violations without citing a standard — Creates disputes
levels/L2-ceremonies/ceremonies/pr-gate.md — Full PR Gate ceremonylevels/L1-context/library/ — Reference standards for common categorieslevels/L3-enforcement/agents/standards-enforcer.md — Automated enforcement equivalent