Automation & Hooks
Automate repeatable work and enforce deterministic checks.
Automation principle
Automate a process only after the manual process is clear. A bad process automated at scale becomes a bigger problem.
Example weekly workflow
Trigger: Friday 3:00 PM
Input: current-term attendance
Rule: identify students below 75%
Output:
1. class-wise summary
2. student list
3. parent-message drafts
Safety: drafts require human review before sending
Hooks in coding
Hooks can enforce deterministic actions at specific points in Claude Code's lifecycle, such as linting, tests, formatting, or policy checks.
Good hook uses
- Run unit tests after code changes.
- Block secrets from being committed.
- Run PHP lint or JavaScript tests.
- Verify required files exist.
Finish this level
Create an account to track progress, save notes, bookmarks and scores.
Create Account Login