用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sethdford/claude-standards --skill enforcement-agent命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | enforcement-agent |
| description | Build a project-specific standards enforcement agent |
Create an agent that automatically checks code changes against documented standards in real-time.
An enforcement agent runs automatically before/after code edits to verify compliance. Unlike ceremonies (which are human-driven reviews), enforcement agents provide instant feedback while you're writing code.
The Standards Enforcer Agent checks code against standards and reports violations with specific fixes. It reads:
Reference: levels/L3-enforcement/agents/standards-enforcer.md
Define file-to-standards mapping — Which files trigger which standards?
*.ts, *.tsx → docs/standards/engineering/typescript.md
src/api/** → docs/standards/engineering/api-design.md
*.md → docs/standards/quality/documentation.md
Set severity levels — Categorize violations by impact
Write output format — How should violations be reported?
[SEVERITY] file:line
Rule: standard#section
Expected: [what rule requires]
Found: [what code does]
Fix: [concrete code example]
Integrate with PR workflow — Where does enforcement happen?
/enforce to checkTest with examples — Verify agent works correctly
Document [CUSTOMIZE] markers — Make agent reusable across projects
Hardcoding rules instead of reading standards — Fragile enforcement
if (hasAnyType) { error() }Overly strict enforcement blocking productivity — Team disables agent
False positives from ambiguous standards — Creates noise
Agent doesn't cite the standard — User can't understand violation
levels/L3-enforcement/agents/standards-enforcer.md — Reference agent definitionlevels/L1-context/library/ — Reference standards to enforcelevels/L3-enforcement/hooks/ — Hook configurations for integration