Shell
Hook Quick Reference Card
π― What Each Symbol Means
| Symbol | Meaning | Action Required |
|---|---|---|
| β | Passed | None - keep going |
| β οΈ | Warning/Suggestion | Optional improvement |
| β | Failed | Claude will auto-fix |
| π‘ | Helpful tip | FYI only |
| πΏ | Branch created | Check git status |
| π¦ | Auto-commit | Progress saved |
| π | Docs created | Review when ready |
| βΏ | Accessibility | Inclusive design |
| β‘ | Performance | Speed optimization |
| π | Deploy ready | Can ship it |
π Active Hooks Checklist
Every File Write
- Code verification (types, lints, tests)
- Auto-commit (at milestones)
- Documentation generation
- Progress tracking
- Accessibility check
- Performance analysis
Every File Edit
- Code verification
- Progress tracking
- Accessibility check
- Performance analysis
New Feature Start
- Git state check
- Auto-branch creation
Before PR
- Deployment verification
- Build success check
π¬ Your Typical Workflow
1. You: "Build [feature]"
Hook: πΏ Creates feature branch
2. Claude: Starts coding
Hook: π Shows progress
3. Claude: Saves file
Hook: β
Verifies code works
Hook: βΏ Checks accessibility
Hook: β‘ Optimizes performance
4. Claude: After 5 files
Hook: π¦ Auto-commits
5. Claude: Finishes feature
Hook: π Writes docs
Hook: π Checks deployment
6. You: Review PR (all checks passed!)
π§ Emergency Commands
# Disable all hooks temporarily
mv ~/.claude/hooks.json ~/.claude/hooks.json.off
# Re-enable hooks
mv ~/.claude/hooks.json.off ~/.claude/hooks.json
# Test specific hook manually
~/.claude/hooks/[hook-name].sh path/to/file
# See which hooks are active
cat ~/.claude/hooks.json
π‘ When You See These Messages
"Type errors detected. Claude will continue fixing..."
β Don't worry, I'm handling it. Give me a minute.
"Creating feature branch: feature/..."
β Great! Your work is isolated from main. We'll PR when ready.
"Auto-staging changes for commit..."
β Progress checkpoint! Your work is saved.
"Accessibility: Buttons should have aria-labels"
β Making it usable for everyone. Fixing now.
"Production build successful"
β Safe to deploy! Everything works in production mode.
π Pro PM Moves
Before Starting Big Features
Check: Are you on main? (Hook will catch this)
During Development
Watch: Progress reports tell you scope
Before Merging
Review: Auto-docs explain what was built
After Deploy
Celebrate: All checks passed automatically!
π Getting Help
Hook isn't working?
# Check hook exists and is executable
ls -la ~/.claude/hooks/
Too many alerts?
Edit the hook file, change exit 1 β exit 0
Want more checks? Ask Claude: "Add a hook that checks [X]"
Need examples?
See: ~/.claude/hooks/PM-FRIENDLY-HOOKS.md