@champpaba/claude-agent-kit 2.1.2 → 2.1.3

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.
@@ -1,6 +1,6 @@
1
1
  # Pre-Work Checklist (Shared by All Agents)
2
2
 
3
- > **Version:** 2.1.2 (Instruction-based Library Detection)
3
+ > **Version:** 2.1.3 (Design Spec Injection)
4
4
  > **Purpose:** Single source of truth for pre-work validation
5
5
 
6
6
  ---
@@ -29,14 +29,22 @@ Complete these steps before implementation to ensure alignment with project stan
29
29
  - WHY: The team chose these libraries for specific reasons (compatibility, features, constraints)
30
30
  - Custom implementations waste effort and may miss edge cases the library handles
31
31
 
32
+ 5. **Implement according to Design Spec (not library defaults)**
33
+ - If design.md specifies configurations → Use those values (not library defaults)
34
+ - If design.md specifies custom endpoints → Implement those endpoints
35
+ - WHY: Design decisions were made for specific project requirements
36
+
32
37
  **Example:**
33
38
  ```
34
39
  tasks.md says: "Install better-auth and dependencies"
35
- Use better-auth library
36
- → Follow better-auth documentation patterns
40
+ design.md says: "JWT 15min + Redis refresh token 30d"
41
+
42
+ → Use better-auth library (from tasks.md)
43
+ → Configure JWT with 15min expiry (from design.md)
44
+ → Configure Redis refresh with 30d (from design.md)
45
+ → Implement /api/auth/refresh endpoint (from design.md)
37
46
 
38
- WHY not custom? better-auth handles OAuth flows, session management,
39
- and security edge cases that custom code would need to re-implement.
47
+ WHY not defaults? Design spec has project-specific security requirements.
40
48
  ```
41
49
 
42
50
  ---
@@ -62,6 +70,13 @@ Library Requirements: (Step 0)
62
70
  - [ ] Scanned design.md for design decisions
63
71
  - Required libraries: {list from tasks.md/design.md}
64
72
 
73
+ Design Spec Implementation: (Step 5)
74
+ - [ ] Read design.md specifications
75
+ - [ ] Identified custom configurations (not library defaults)
76
+ - Design requirements:
77
+ - {requirement 1 from design.md}
78
+ - {requirement 2 from design.md}
79
+
65
80
  Project Context:
66
81
  - Project: {name}
67
82
  - Stack: {tech-stack}
@@ -90,6 +105,7 @@ Ready to Implement:
90
105
 
91
106
  Pre-work validation prevents:
92
107
  - **Wrong library choices** - Using custom code when a library was already chosen by the team
108
+ - **Library defaults instead of spec** - Using default configs when design.md specifies custom values
93
109
  - Misaligned implementations (wrong patterns, wrong style)
94
110
  - Duplicate components (not searching existing code first)
95
111
  - Wrong package manager usage (CI/CD breaks)
@@ -105,6 +105,9 @@ ${changeContext.proposal}
105
105
  ## Tasks
106
106
  ${changeContext.tasks}
107
107
 
108
+ ## Design Decisions (from design.md)
109
+ ${changeContext.design || '(no design.md found)'}
110
+
108
111
  ${phase.instructions}
109
112
 
110
113
  ---
@@ -118,32 +121,43 @@ ${phase.instructions}
118
121
  - "Configure X with Y adapter" → Use X with adapter Y
119
122
  - Backtick packages like \`better-auth\` → Required dependency
120
123
 
121
- 2. **Review design.md** (in change context) for:
124
+ 2. **Review "Design Decisions" section above** for:
122
125
  - "### D1: Use X Library" → Decision to use X
123
126
  - "**Decision:** Use X" → Chosen library
124
- - Alternatives table shows why this library was chosen
127
+ - Specific configurations (e.g., "JWT 15min", "Redis refresh token 30d")
128
+ - Architecture decisions (e.g., "Hybrid Session Strategy")
125
129
 
126
130
  3. **Use the specified libraries**
127
131
  - WHY: The team chose these for compatibility, features, or constraints
128
132
  - Custom implementations duplicate effort and miss edge cases the library handles
129
- - Follow library documentation patterns for consistency
133
+
134
+ 4. **Implement according to Design Spec (not library defaults)**
135
+ - If design.md specifies "JWT 15min + Redis refresh 30d" → Configure library with these values
136
+ - If design.md specifies custom endpoints → Implement those endpoints
137
+ - Library defaults are starting points, not final implementation
138
+ - WHY: Design decisions were made for specific project requirements
130
139
 
131
140
  **Example:**
132
141
  \`\`\`
133
- tasks.md: "Install better-auth and dependencies"
134
- Use better-auth library
135
- → Follow better-auth docs for setup
142
+ design.md says:
143
+ "Hybrid Session Strategy: JWT 15min + Redis refresh 30d"
144
+
145
+ → Use better-auth library (from tasks.md)
146
+ → Configure JWT plugin with 15min expiry
147
+ → Configure refresh token with 30d in Redis
148
+ → Implement /api/auth/refresh endpoint
136
149
 
137
- WHY not custom? better-auth handles OAuth, sessions, security
138
- edge cases that custom code would need to re-implement.
150
+ WHY not defaults? Design spec has project-specific security requirements
151
+ that differ from library defaults.
139
152
  \`\`\`
140
153
 
141
- **Report required libraries in your validation:**
154
+ **Report in validation:**
142
155
  \`\`\`
143
- Required Libraries Found:
144
- - better-auth (tasks.md line 6)
145
- - @better-auth/drizzle (tasks.md line 6)
146
- - ioredis (design.md D2)
156
+ Libraries: better-auth, @better-auth/drizzle, ioredis
157
+ Design Spec Implementation:
158
+ - [x] JWT access token: 15min (design.md D1)
159
+ - [x] Redis refresh token: 30d (design.md D2)
160
+ - [x] /api/auth/refresh endpoint (design.md D3)
147
161
  \`\`\`
148
162
 
149
163
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champpaba/claude-agent-kit",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Universal multi-agent template for Claude Code - AI-assisted development with specialized agents",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {