بنقرة واحدة
enforcement-agent
Build a project-specific standards enforcement agent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build a project-specific standards enforcement agent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
Review a PR for standards compliance during code review
| 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