원클릭으로
hook-design
Design PreToolUse/PostToolUse hooks for standards enforcement
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Design PreToolUse/PostToolUse hooks for standards enforcement
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 | 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