Think of hooks as automatic helpers that do things for you at specific moments. You don't need to understand the technical details - just tell us what you want automated!
- "I always forget to run tests" → Hook runs tests automatically after you save code
- "I want code reviewed before pushing" → Hook blocks pushes until review is done
- "Remind me of daily standups" → Hook sends reminders at 9 AM
- "Check grammar when I finish writing" → Hook runs grammar check after each section
- "Track my daily word count" → Hook logs progress automatically
- "Format citations properly" → Hook ensures consistent citation style
- "Keep table of contents updated" → Hook regenerates TOC after changes
- "Check for broken links" → Hook validates all links
- "Ensure consistent terminology" → Hook flags inconsistent terms
- "Export assets in multiple formats" → Hook auto-generates different sizes
- "Backup my work hourly" → Hook creates versioned backups
- "Compress images for web" → Hook optimizes images automatically
During project setup, we'll ask questions like:
-
"What repetitive tasks do you do?"
- Running tests
- Formatting code
- Updating documentation
- Sending notifications
-
"What do you often forget to do?"
- Add comments
- Update changelog
- Run security scans
- Backup work
-
"What checkpoints do you need?"
- Review before publishing
- Approval before deploying
- Validation before submitting
-
"When should things happen?"
- After saving files
- Before commits
- Daily/weekly
- When certain words appear
# Auto-format code
[[hooks]]
event = "PostToolUse"
[hooks.matcher]
tool_name = "Write"
command = "echo 'Auto-formatting code...' && format-tool $CLAUDE_FILE_PATH"
# Run tests before commit
[[hooks]]
event = "PreToolUse"
[hooks.matcher]
tool_name = "Bash"
args_regex = "git commit"
command = "echo 'Running tests...' && npm test"# Grammar check
[[hooks]]
event = "PostToolUse"
[hooks.matcher]
tool_name = "Write"
file_paths = ["*.md", "*.txt"]
command = "echo 'Checking grammar...' && grammarly-cli check $CLAUDE_FILE_PATH"
# Word count tracking
[[hooks]]
event = "Stop"
command = "wc -w content/*.md | tail -1 >> daily-word-count.log"# Update table of contents
[[hooks]]
event = "PostToolUse"
[hooks.matcher]
tool_name = "Write"
file_paths = ["docs/**/*.md"]
command = "echo 'Updating TOC...' && doctoc README.md"
# Check links
[[hooks]]
event = "Notification"
[hooks.matcher]
time = "10:00"
command = "echo 'Checking links...' && markdown-link-check docs/**/*.md"# Daily progress snapshot
[[hooks]]
event = "Notification"
[hooks.matcher]
time = "17:00"
command = "echo 'Creating daily snapshot...' && git add -A && git commit -m 'Daily progress: $(date)'"
# Backup reminders
[[hooks]]
event = "Stop"
command = "echo '💾 Remember to backup your work to cloud storage!'"Just a few key hooks:
- Save work automatically
- Basic reminders
- Simple validations
Helpful workflow enhancements:
- Quality checks
- Progress tracking
- Team notifications
Complete workflow orchestration:
- Multi-step processes
- Complex validations
- Integration with external tools
- Automated reporting
Tell us what you need in plain English:
You say: "I want to make sure I never commit sensitive data" We create: A hook that scans for passwords/keys before commits
You say: "Remind me to take breaks every hour" We create: A hook that sends hourly break reminders
You say: "Keep my writing consistent with our style guide" We create: A hook that checks against your style rules
- Citation formatting
- Data validation
- Progress reports
- Collaboration syncs
- Chapter word counts
- Character consistency
- Plot timeline tracking
- Publishing preparation
- Render queue management
- Asset organization
- Version control
- Review reminders
- Metric tracking
- Report generation
- Deadline reminders
- Stakeholder updates
- Start Simple - Add hooks as you discover needs
- Test First - Try hooks in safe environment
- Document Why - Record what each hook does
- Review Regularly - Adjust hooks as workflow evolves
- Share Knowledge - Tell team about useful hooks
- Daily standups
- Weekly reports
- Monthly reviews
- Deadline reminders
- After writing code
- Before committing
- When creating files
- On specific commands
- When mentioning "deploy"
- If file contains "TODO"
- When PR is created
- If tests fail
Hooks run commands on your computer, so:
- Only use hooks you understand
- Test in safe environment first
- Review hook commands regularly
- Don't share sensitive hooks publicly
When setting up your project, we'll ask:
- What type of work you're doing
- What you want automated
- What you often forget
- When things should happen
Based on your answers, we'll create appropriate hooks that make your workflow smoother!
Remember: You don't need to know how hooks work - just tell us what would make your life easier!