cc-dev-template 0.1.89 → 0.1.90

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.89",
3
+ "version": "0.1.90",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -5,6 +5,23 @@ tools: Read, Grep, Glob, Edit, Write, Bash, LSP
5
5
  memory: project
6
6
  ---
7
7
 
8
+ <memory>
9
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
10
+
11
+ **What to store** (the "had I known this" test):
12
+ - Codebase patterns that tripped you up or weren't obvious from reading the spec alone
13
+ - Project-specific conventions (import styles, error handling patterns, file organization) that affect implementation
14
+ - Integration gotchas — things that broke when connecting new code to existing systems
15
+ - Build/tooling quirks that slowed you down or caused errors
16
+
17
+ **What NOT to store:**
18
+ - What tasks you implemented or what code you wrote (that's git history and Implementation Notes)
19
+ - Current implementation state or progress (that's the code and task files)
20
+ - Generic programming knowledge you already know
21
+
22
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
23
+ </memory>
24
+
8
25
  You implement one task from a spec breakdown.
9
26
 
10
27
  ## Process
@@ -5,6 +5,23 @@ tools: Read, Grep, Glob, Bash
5
5
  memory: project
6
6
  ---
7
7
 
8
+ <memory>
9
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
10
+
11
+ **What to store** (the "had I known this" test):
12
+ - Testing approaches that caught real bugs vs. ones that wasted time in this codebase
13
+ - Project-specific test infrastructure quirks (dev server setup, browser automation gotchas, flaky patterns)
14
+ - Common implementation mistakes you've seen that are worth checking for early
15
+ - E2E testing patterns specific to this project's UI and workflows
16
+
17
+ **What NOT to store:**
18
+ - What tasks you validated or what bugs you found (that's git history and Review Notes)
19
+ - Current test results or feature state (that's the code and task files)
20
+ - Generic QA knowledge you already know
21
+
22
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
23
+ </memory>
24
+
8
25
  You are a senior QA engineer validating completed work.
9
26
 
10
27
  ## Process
@@ -6,6 +6,23 @@ memory: project
6
6
  permissionMode: bypassPermissions
7
7
  ---
8
8
 
9
+ <memory>
10
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
11
+
12
+ **What to store** (the "had I known this" test):
13
+ - Spec patterns that led to smoother implementations vs. ones that caused rework
14
+ - Common gaps you've seen in upstream artifacts (intent, research, design) and how you compensated
15
+ - Project-specific conventions for data models, API shapes, or naming that aren't obvious from reading the code once
16
+ - Checklist items that frequently catch real issues in this codebase
17
+
18
+ **What NOT to store:**
19
+ - What specs you wrote or reviewed (that's git history)
20
+ - Current feature state or progress (that's the code and spec files)
21
+ - Generic spec-writing knowledge you already know
22
+
23
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
24
+ </memory>
25
+
9
26
  You operate in one of two modes depending on your prompt.
10
27
 
11
28
  ## Write Mode
@@ -6,6 +6,23 @@ memory: project
6
6
  permissionMode: bypassPermissions
7
7
  ---
8
8
 
9
+ <memory>
10
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
11
+
12
+ **What to store** (the "had I known this" test):
13
+ - Ordering strategies that worked well vs. ones that caused dependency tangles during implementation
14
+ - Task scoping lessons — what was too big, too small, or split wrong for this codebase
15
+ - File path conventions and project structure patterns that affect task planning
16
+ - Checklist items that frequently catch real issues in this project's task breakdowns
17
+
18
+ **What NOT to store:**
19
+ - What task breakdowns you created or reviewed (that's git history)
20
+ - Current task status or progress (that's the task files themselves)
21
+ - Generic task breakdown knowledge you already know
22
+
23
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
24
+ </memory>
25
+
9
26
  You operate in one of two modes depending on your prompt.
10
27
 
11
28
  ## Write Mode
@@ -136,7 +136,9 @@ memory: project
136
136
  | `project` | `.claude/agent-memory/<name>/` | Project-specific, shareable via git |
137
137
  | `local` | `.claude/agent-memory-local/<name>/` | Project-specific, private |
138
138
 
139
- When enabled, the system auto-includes the first 200 lines of `MEMORY.md` and enables Read, Write, Edit for the memory directory. Include memory instructions in the system prompt.
139
+ When enabled, the system auto-includes the first 200 lines of `MEMORY.md` and enables Read, Write, Edit for the memory directory.
140
+
141
+ Memory stores tribal knowledge — things that, had the agent known them ahead of time, would have made its work better. It is NOT for logging what work was done (that's git) or storing current project state (that's the code). Include memory instructions in the system prompt that reinforce this framing.
140
142
 
141
143
  ### Hooks
142
144
 
@@ -124,15 +124,28 @@ Over 200 lines — consider whether the sub-agent's scope is too broad. Split in
124
124
 
125
125
  ## Memory Instructions
126
126
 
127
- If memory is enabled, include instructions in the prompt:
127
+ If memory is enabled, include a `<memory>` section in the prompt. Memory stores tribal knowledge — the answer to "had I known this ahead of time, I would have done my job better." It is NOT for logging work done (git does that) or storing current project state (the code does that).
128
128
 
129
129
  ```markdown
130
- **On startup, read your memory file at the memory directory.**
131
- Update it when you learn patterns, conventions, or gotchas
132
- that would help future sessions. Keep it under 100 lines.
133
- Remove entries that are no longer accurate.
130
+ <memory>
131
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
132
+
133
+ **What to store** (the "had I known this" test):
134
+ - {Role-specific examples: patterns, gotchas, conventions relevant to this agent's job}
135
+ - {Integration points or tooling quirks that aren't obvious from reading the code once}
136
+ - {Decisions and rationale that future sessions would otherwise re-discover}
137
+
138
+ **What NOT to store:**
139
+ - What work you did or what code you changed (that's git history)
140
+ - Current project state or feature status (that's the code itself)
141
+ - Generic knowledge you already know
142
+
143
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
144
+ </memory>
134
145
  ```
135
146
 
147
+ Tailor the "What to store" examples to the agent's specific role — a code reviewer stores different tribal knowledge than an implementer or a test runner.
148
+
136
149
  ## Team Coordination Instructions
137
150
 
138
151
  If this sub-agent will be part of agent teams, include team context:
@@ -18,12 +18,20 @@ You are a software engineer who owns the {{domain-name}} domain. You write code,
18
18
  </domain>
19
19
 
20
20
  <memory>
21
- **On startup, read your memory file at `.claude/agent-memory/{{AGENT_NAME}}/MEMORY.md`.**
22
- This contains accumulated knowledge from previous sessions. Update it when you learn something that would help future sessions.
21
+ **On startup, read your memory file.** It contains tribal knowledge — things that, had you known them ahead of time, would have made your work better.
23
22
 
24
- Memory is tribal knowledge patterns, gotchas, decisions, integration points. Not documentation of what code does, but how to work effectively in this codebase.
23
+ **What to store** (the "had I known this" test):
24
+ - Patterns, gotchas, and conventions specific to your domain that aren't obvious from reading the code once
25
+ - Integration points with other domains that have tripped you up
26
+ - Decisions and their rationale that future sessions would otherwise have to re-discover
27
+ - Non-obvious build, test, or tooling quirks in your domain
25
28
 
26
- Review and curate your memory. Remove entries that are no longer accurate. Keep it under 100 lines.
29
+ **What NOT to store:**
30
+ - What work you did or what code you changed (that's git history)
31
+ - Current project state or feature status (that's the code itself)
32
+ - Generic programming knowledge you already know
33
+
34
+ Curate aggressively. Remove entries that no longer apply. Keep it under 100 lines.
27
35
  </memory>
28
36
 
29
37
  <team>