Commit d8fcfe3
committed
feat: add Claude Code PostToolUse hook for spec sync reminders
Implements lightweight version of F006 automated spec updates:
- PostToolUse hook triggers after Edit/Write operations
- Reminds Claude to update specs when code changes affect behavior
- Only activates in spec-driven repos (checks for .specify/ directory)
- Non-blocking reminder (doesn't prevent changes)
Hook prompts Claude to consider spec updates for:
- Feature behavior changes
- API contract modifications
- Business logic alterations
This complements the existing PreToolUse hook that validates specs
before git push.
Full F006 implementation (auto-updating specs) remains on roadmap.1 parent f18e1a9 commit d8fcfe3
File tree
2 files changed
+26
-3
lines changed- .claude
- production-readiness-specs/F002-automated-spec-generation
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
3 | 15 | | |
4 | 16 | | |
5 | | - | |
| 17 | + | |
6 | 18 | | |
7 | | - | |
| 19 | + | |
8 | 20 | | |
9 | | - | |
| 21 | + | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
| |||
0 commit comments