What problem does it solve? Repeatedly correcting an AI coding agent wastes effort because the correction is forgotten by the next session. This Skill turns one durable user correction into a typed, inline-tested Python hook in .claude/hooks/ that enforces the rule automatically on every future event. ## Core Features & Use Cases - Create mode: Converts a verbatim user correction into a new .claude/hooks/<slug>.py file, picking the right primitive (hook(block=True), gate, nudge, lint, block_command) and writing the narrowest firing condition plus inline tests. - FIX mode: Amends a misfiring hook with the narrowest amendment (tightened condition, re-fire guard, severity demotion) and a mandatory regression test reproducing the misfire. - EXTEND mode: Broadens an existing hook to cover a newly mined rule without weakening its existing tests. - Use Case: After telling the agent "stop using pip — this repo is uv-only" for the third time, invoke this Skill to generate a uv_not_pip.py hook that warns on pip install, allows uv add, and passes uvx --isolated capt-hook test before going live. ## Quick Start Ask the agent to author a hook from the correction "never force-push to main" and verify it with capt-hook test.