con un clic
hook-design
Design PreToolUse/PostToolUse hooks for standards enforcement
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Design PreToolUse/PostToolUse hooks for standards enforcement
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional 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 | hook-design |
| description | Design PreToolUse/PostToolUse hooks for standards enforcement |
Integrate standards enforcement into your development workflow via hooks that trigger at specific events.
Hooks are event handlers that run at key moments in the development cycle. PreToolUse hooks run before you execute a tool (write a file, run a command). PostToolUse hooks run after. This skill teaches you to design hooks that provide real-time standards feedback without being intrusive.
Hooks in claude-standards can be:
The most useful enforcement hooks are Agent hooks that run the Standards Enforcer against changed files.
Reference: levels/L3-enforcement/hooks/ and CLAUDE.md hook documentation
Identify which tool events matter — What triggers should fire enforcement?
Choose hook type — Command, prompt, or agent?
Write hook configuration — Define the hook in JSON or YAML
Design trigger logic — When should hook actually fire?
Test with examples — Verify hook works as designed
Define escalation — What happens if hook finds violations?
Hooks that fire on every operation — Productivity killer
Hooks generating false positives — Creates distrust
unknown typeEnforcement without standards to back it up — Rules seem arbitrary
Hooks that slow down development — Performance regression
levels/L3-enforcement/hooks/ — Reference hook configurationslevels/L3-enforcement/agents/standards-enforcer.md — Enforcement agent to use with hooks