What problem does it solve? Prose style guides (STYLEGUIDE.md, CONTRIBUTING.md, CLAUDE.md conventions) describe coding conventions but nothing enforces them, so agents and developers keep violating the same rules. This Skill turns each guide statement into an enforced captain-hook rule with inline tests. ## Core Features & Use Cases - Rule atomization and tier classification: Splits guide prose into candidate rules and classifies each as Tier 1 (declarative AST matcher), Tier 2 (custom check() logic), Tier 3 (LLM gate/nudge), or Tier 4 (unenforceable, reported with a reason). - Hook generation with inline tests: Writes .claude/hooks/style.py for deterministic rules and .claude/hooks/style_llm.py for semantic rules, synthesizing firing and allowing test inputs from the guide's own good/bad examples. - Verified enforcement report: Runs uvx --isolated capt-hook test until green and produces a per-rule report covering every guide statement, including rules that cannot be enforced. - Use Case: Point it at a repo's STYLEGUIDE.md and get working hooks that warn on broad except clauses, mutable default arguments, and nested imports, plus an LLM nudge for scope drift. ## Quick Start Ask the agent to enforce the style guide at STYLEGUIDE.md by turning it into captain-hook rules and verifying them with capt-hook test.