cc-dev-template 0.1.35 → 0.1.37

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -4,49 +4,49 @@ description: End a session - sync documentation and commit work
4
4
 
5
5
  # Session Closeout
6
6
 
7
- Sync documentation and commit work at the end of a Claude Code session.
7
+ Capture what was accomplished so the next session starts with accurate context.
8
8
 
9
- ## Purpose
9
+ ## Why This Matters
10
10
 
11
- Capture what was accomplished so the next session starts with accurate context. This keeps `CURRENT_WORK.md` as the living source of truth for project status.
11
+ You have full conversation context that will be lost when this session ends. The next session (or another developer) will only have git history and documentation. Your job is to bridge that gap.
12
12
 
13
- ## Important
13
+ ## Execute Directly
14
14
 
15
- Execute this directly - do NOT delegate to a sub-agent. Accurate documentation requires the full conversation context which sub-agents lack.
15
+ This requires full conversation context. Handle it yourself rather than delegating to a sub-agent.
16
16
 
17
- ## Instructions
17
+ ## What To Do
18
18
 
19
- 1. **Review accomplishments** this session:
20
- ```bash
21
- git log --oneline -10
22
- git status
23
- ```
24
- Also consider what was discussed/decided in conversation.
19
+ **1. Understand what happened this session**
25
20
 
26
- 2. **Update `docs/CURRENT_WORK.md`:**
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 or waiting items
21
+ Review git commits made during this session and recall what was discussed/decided in conversation. The combination of commits + conversation = full picture of accomplishments.
31
22
 
32
- 3. **Check if CLAUDE.md needs updates:**
33
- - Only for structural changes (new directories, changed project scope)
34
- - Code changes belong in git commits, not CLAUDE.md
35
- - Keep it minimal - this should be rare
23
+ **2. Update `docs/CURRENT_WORK.md`**
36
24
 
37
- 4. **Commit and push:**
38
- ```bash
39
- git add docs/
40
- git commit -m "Update project status"
41
- git push
42
- ```
25
+ Sync the document with reality:
26
+ - Move completed items to "Recently Completed"
27
+ - Update "In Progress" with current state
28
+ - Adjust "Up Next" based on what was learned
29
+ - Note any new blockers
43
30
 
44
- 5. **Report:** List what files were updated.
31
+ **3. Capture workflow discoveries (rarely)**
45
32
 
46
- ## Philosophy
33
+ Consider: Did I learn something that would save time in future sessions?
47
34
 
48
- - **CLAUDE.md** = context loader, minimal, rarely updated
49
- - **CURRENT_WORK.md** = dynamic status, updated every session
50
- - **Git commits** = sufficient for code change history
35
+ Add to CLAUDE.md only for high-value operational knowledge:
36
+ - Dev commands, ports, local URLs, credentials
37
+ - Key paths (logs, config, seed data)
38
+ - Non-obvious project conventions
51
39
 
52
- Only update what's necessary. If nothing structural changed, just update CURRENT_WORK.md.
40
+ This is knowledge that can't be found by reading code. Most sessions: add nothing. When adding, keep it minimal and scannable.
41
+
42
+ **4. Commit and push**
43
+
44
+ Write a commit message that reflects what was actually accomplished this session. Include both docs/ and any other modified files.
45
+
46
+ **5. Report what was updated**
47
+
48
+ ## Mental Model
49
+
50
+ - **CLAUDE.md** = context loader, rarely changes
51
+ - **CURRENT_WORK.md** = living status, changes every session
52
+ - **Git history** = code changes speak for themselves
@@ -4,44 +4,41 @@ description: Start a session - get oriented and decide what to work on
4
4
 
5
5
  # Session Startup
6
6
 
7
- Get oriented at the start of a new Claude Code session.
7
+ Deeply orient yourself on a project so you can hit the ground running.
8
8
 
9
9
  ## Purpose
10
10
 
11
- Create a consistent session workflow: check project status, review recent work, and focus on what to tackle next. For new projects, this scaffolds the docs structure automatically.
11
+ You're starting a new session with no memory of previous work. Your goal is to build a mental model of:
12
+ - What this project is and how it's structured
13
+ - What was recently worked on (from git history AND documentation)
14
+ - What's in progress or blocked
12
15
 
13
- ## Instructions
16
+ This enables you to provide genuinely useful assistance immediately.
14
17
 
15
- **First, check if `docs/CURRENT_WORK.md` exists.**
18
+ ## First: Check for docs structure
16
19
 
17
- ### If it does NOT exist
20
+ If `docs/CURRENT_WORK.md` does not exist, invoke `Skill(skill: "initialize-project")` and stop.
18
21
 
19
- This project needs session tracking set up. Invoke the initialize-project skill:
22
+ ## Orientation: Understand Recent Work
20
23
 
21
- ```
22
- Skill(skill: "initialize-project")
23
- ```
24
+ Read `docs/CURRENT_WORK.md` to understand documented status.
24
25
 
25
- Stop here - the skill handles scaffolding. User will run `/prime` again after.
26
+ Then explore git history to understand what actually happened:
26
27
 
27
- ### If it exists
28
+ 1. **Detect repository structure** - Check if this is a simple repo or has submodules (`.gitmodules` file). For repos with submodules, you need to understand the history of each component.
28
29
 
29
- Run the orientation workflow:
30
+ 2. **Understand recent commits** - Look at recent commit messages AND the actual files changed. Commit titles alone are often cryptic; the diff stats and changed files tell the real story.
30
31
 
31
- 1. **Read project status** from `docs/CURRENT_WORK.md`
32
+ 3. **For submodules** - Each submodule has its own git history. Explore them to understand recent work across the whole system.
32
33
 
33
- 2. **Check recent activity:**
34
- ```bash
35
- git log --oneline -5 && git status
36
- ```
34
+ 4. **Synthesize** - Cross-reference what the documentation says vs what git shows. Look for gaps: recent commits not yet documented, or documented work not reflected in commits.
37
35
 
38
- 3. **Provide a brief summary** (3-5 bullets max):
39
- - What this project is (from CLAUDE.md context)
40
- - Recent completed work
41
- - Current in-progress items
42
- - What's planned next
43
- - Any blockers
36
+ ## Output
44
37
 
45
- 4. **Ask:** "What would you like to work on?"
38
+ Provide a concise summary that demonstrates your understanding:
39
+ - Project identity and structure
40
+ - Recent completed work (synthesized from docs + git)
41
+ - Current state (in progress, blockers)
42
+ - What's next
46
43
 
47
- Keep the summary concise - quick orientation, not a deep dive.
44
+ Then ask: "What would you like to work on?"