Skip to content
Shell
3.0 KB
Raw Blame

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