You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(claude): make checkpoint slash command deterministic
Fixes the claude /aichaku:checkpoint slash command to make it deterministic
and handle empty arguments
- Add fallback to "session-work" when no descriptive name arguments provided
- Add strict template constraints to prevent non-deterministic additions
- Prohibit review dates, analyst names, and generation timestamps
- Enforce exact section structure with explicit requirements list
- Ensure checkpoints remain historical snapshots, not living documents
Prevents creation of malformed filenames and random metadata additions that
compromise template consistency
[List main tasks completed with brief descriptions]
22
26
23
-
## Key Technical Decisions
24
-
[Document important architectural/implementation choices and rationale]
27
+
-[Specific task 1 with concrete outcome]
28
+
-[Specific task 2 with concrete outcome]
29
+
-[Specific task 3 with concrete outcome]
30
+
31
+
## Key Technical Decisions
32
+
33
+
-**[Decision topic]**: [What was decided and why]
34
+
-**[Decision topic]**: [What was decided and why]
25
35
26
36
## Files Created/Modified
27
37
28
38
### Created
29
-
-[List new files with purpose]
39
+
-`path/to/file.ext` - [Brief purpose]
40
+
-`path/to/file.ext` - [Brief purpose]
30
41
31
42
### Modified
32
-
-[List changed files with type of change]
43
+
-`path/to/file.ext` - [Type of change made]
44
+
-`path/to/file.ext` - [Type of change made]
33
45
34
46
## Problems Solved
35
-
[List issues resolved and their solutions]
47
+
48
+
-**[Problem]**: [Solution implemented]
49
+
-**[Problem]**: [Solution implemented]
36
50
37
51
## Lessons Learned
38
-
[Key insights or patterns discovered]
52
+
53
+
-[Specific insight or pattern discovered]
54
+
-[Specific insight or pattern discovered]
39
55
40
56
## Next Steps
41
-
[Potential future work or improvements]
57
+
58
+
-[Specific actionable item for future work]
59
+
-[Specific actionable item for future work]
42
60
43
61
---
62
+
44
63
*Checkpoint created: {timestamp}*
45
64
```
46
65
66
+
**REQUIREMENTS**:
67
+
1. Use ONLY the sections shown above
68
+
2. Replace {current-date} with actual date (YYYY-MM-DD format)
69
+
3. Replace {Descriptive Name} with the arguments provided
70
+
4. Replace {timestamp} with actual timestamp
71
+
5. Fill sections with actual content from the session
72
+
6. Use bullet points, not numbered lists
73
+
7. Be specific and factual, not aspirational
74
+
8. Do NOT add Executive Summary, Key Metrics, Strategic Position, or any analysis fields
75
+
9. Do NOT add Next Review, Generated, Analyst, or similar metadata
76
+
47
77
First create the docs/checkpoints directory if it doesn't exist, then create the checkpoint file with today's date and the descriptive name from the arguments.
48
78
49
79
Run a "preflight" check on the created file, making sure it is formatted and linted, then git add, git commit and git push only the created checkpoint file.
0 commit comments