cc-dev-template 0.1.39 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/commands/done.md
CHANGED
|
@@ -5,53 +5,73 @@ argument-hint: [next task]
|
|
|
5
5
|
|
|
6
6
|
# Session Closeout
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Bridge the gap between this session and the next. Git captures what was done; CURRENT_WORK.md captures what to do next.
|
|
9
9
|
|
|
10
10
|
## Why This Matters
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
CURRENT_WORK.md is read at the start of every session. It should answer one question: "What should I work on?"
|
|
13
|
+
|
|
14
|
+
Git commits are the historical record of completed work. There's no need to duplicate that in documentation.
|
|
13
15
|
|
|
14
16
|
## Execute Directly
|
|
15
17
|
|
|
16
|
-
This requires full conversation context. Handle it yourself rather than delegating
|
|
18
|
+
This requires full conversation context. Handle it yourself rather than delegating.
|
|
19
|
+
|
|
20
|
+
## Steps
|
|
21
|
+
|
|
22
|
+
**1. Run the code simplifier**
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
Run the `code-simplifier` agent on your staged changes before committing. This refines code for clarity and consistency.
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
1. Stage your changes with `git add`
|
|
27
|
+
2. Invoke the Task tool with `subagent_type: "code-simplifier"` targeting the staged files
|
|
28
|
+
3. Run the build and tests to verify nothing broke
|
|
29
|
+
4. Fix any issues before proceeding to commit
|
|
21
30
|
|
|
22
|
-
|
|
31
|
+
Note: The code-simplifier is a plugin. If the subagent type doesn't exist, proceed to step 2.
|
|
23
32
|
|
|
24
|
-
**2.
|
|
33
|
+
**2. Commit your work**
|
|
25
34
|
|
|
26
|
-
|
|
27
|
-
- Move completed items to "Recently Completed"
|
|
28
|
-
- Update "In Progress" with current state
|
|
29
|
-
- Adjust "Up Next" based on what was learned
|
|
30
|
-
- Note any new blockers
|
|
35
|
+
Write clear commit messages that explain what was accomplished. This IS your record of completed work.
|
|
31
36
|
|
|
32
|
-
**
|
|
37
|
+
**3. Update `docs/CURRENT_WORK.md`**
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
This file is forward-looking. Review it holistically and ensure it contains ONLY:
|
|
35
40
|
|
|
36
|
-
**
|
|
41
|
+
- **Up Next** — Tasks to tackle in future sessions. If the user specified a next task ($ARGUMENTS), add it here.
|
|
42
|
+
- **In Progress** — Work that's partially done and needs continuation
|
|
43
|
+
- **Blocked / Waiting** — Items waiting on external input (people, services, decisions)
|
|
44
|
+
- **Open Questions** — Unanswered questions that need follow-up
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
**Remove** anything that doesn't require future action:
|
|
47
|
+
- Completed work (that's in git now)
|
|
48
|
+
- Answered questions (document answers in appropriate docs if needed, then remove from here)
|
|
49
|
+
- Historical context or architecture notes (move to relevant docs/)
|
|
50
|
+
- Status updates about past sessions
|
|
39
51
|
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
The file should be scannable in 30 seconds. If it takes longer, it's too long.
|
|
53
|
+
|
|
54
|
+
**4. Capture workflow discoveries (rarely)**
|
|
55
|
+
|
|
56
|
+
Add to CLAUDE.md only high-value operational knowledge that can't be found by reading code:
|
|
57
|
+
- Dev commands, ports, local URLs
|
|
42
58
|
- Key paths (logs, config, seed data)
|
|
43
59
|
- Non-obvious project conventions
|
|
44
60
|
|
|
45
|
-
|
|
61
|
+
Most sessions: add nothing.
|
|
62
|
+
|
|
63
|
+
**5. Push**
|
|
46
64
|
|
|
47
|
-
|
|
65
|
+
Push your commits to the remote.
|
|
48
66
|
|
|
49
|
-
|
|
67
|
+
**6. Report what was updated**
|
|
50
68
|
|
|
51
|
-
|
|
69
|
+
Summarize: commits made, CURRENT_WORK.md changes, any items removed/added.
|
|
52
70
|
|
|
53
71
|
## Mental Model
|
|
54
72
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
| File | Purpose | Changes |
|
|
74
|
+
|------|---------|---------|
|
|
75
|
+
| Git history | What was done | Every session |
|
|
76
|
+
| CURRENT_WORK.md | What to do next | Every session (kept minimal) |
|
|
77
|
+
| CLAUDE.md | How to work here | Rarely |
|
|
@@ -36,17 +36,17 @@ Create the minimal scaffolding that enables the `/prime` and `/done` workflow. T
|
|
|
36
36
|
```markdown
|
|
37
37
|
# Current Work
|
|
38
38
|
|
|
39
|
-
## Recently Completed
|
|
40
|
-
- Initial project setup
|
|
41
|
-
|
|
42
39
|
## In Progress
|
|
43
|
-
- (none
|
|
40
|
+
- (none)
|
|
44
41
|
|
|
45
42
|
## Up Next
|
|
46
43
|
- (add your first task)
|
|
47
44
|
|
|
48
45
|
## Blocked / Waiting
|
|
49
46
|
- (none)
|
|
47
|
+
|
|
48
|
+
## Open Questions
|
|
49
|
+
- (none)
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
4. **Handle CLAUDE.md:**
|