@champpaba/claude-agent-kit 3.0.2 → 3.2.0
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/.claude/CHANGELOG.md +707 -0
- package/.claude/CLAUDE.md +128 -613
- package/.claude/agents/_shared/pre-work-checklist.md +108 -7
- package/.claude/commands/cdev.md +36 -0
- package/.claude/commands/csetup.md +292 -1791
- package/.claude/commands/cview.md +364 -364
- package/.claude/contexts/design/accessibility.md +611 -611
- package/.claude/contexts/design/layout.md +400 -400
- package/.claude/contexts/design/responsive.md +551 -551
- package/.claude/contexts/design/shadows.md +522 -522
- package/.claude/contexts/design/typography.md +465 -465
- package/.claude/contexts/domain/README.md +164 -164
- package/.claude/contexts/patterns/agent-coordination.md +388 -388
- package/.claude/contexts/patterns/development-principles.md +513 -513
- package/.claude/contexts/patterns/error-handling.md +478 -478
- package/.claude/contexts/patterns/logging.md +424 -424
- package/.claude/contexts/patterns/tdd-classification.md +516 -516
- package/.claude/contexts/patterns/testing.md +413 -413
- package/.claude/lib/README.md +3 -3
- package/.claude/lib/detailed-guides/taskmaster-analysis.md +1 -1
- package/.claude/lib/task-analyzer.md +144 -0
- package/.claude/lib/tdd-workflow.md +2 -1
- package/.claude/lib/validation-gates.md +484 -484
- package/.claude/settings.local.json +42 -42
- package/.claude/templates/PROJECT_STATUS.template.yml +16 -41
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/flags-template.json +42 -42
- package/.claude/templates/phases-sections/accessibility-test.md +17 -17
- package/.claude/templates/phases-sections/api-design.md +37 -37
- package/.claude/templates/phases-sections/backend-tests.md +16 -16
- package/.claude/templates/phases-sections/backend.md +37 -37
- package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
- package/.claude/templates/phases-sections/component-tests.md +17 -17
- package/.claude/templates/phases-sections/contract-backend.md +16 -16
- package/.claude/templates/phases-sections/contract-frontend.md +16 -16
- package/.claude/templates/phases-sections/database.md +35 -35
- package/.claude/templates/phases-sections/e2e-tests.md +16 -16
- package/.claude/templates/phases-sections/fix-implementation.md +17 -17
- package/.claude/templates/phases-sections/frontend-integration.md +18 -18
- package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
- package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
- package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
- package/.claude/templates/phases-sections/refactor.md +16 -16
- package/.claude/templates/phases-sections/regression-tests.md +15 -15
- package/.claude/templates/phases-sections/responsive-test.md +16 -16
- package/.claude/templates/phases-sections/script-implementation.md +43 -43
- package/.claude/templates/phases-sections/test-coverage.md +16 -16
- package/.claude/templates/phases-sections/user-approval.md +14 -14
- package/LICENSE +21 -21
- package/package.json +1 -1
- package/.claude/lib/tdd-classifier.md +0 -345
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pre-Work Checklist (Shared by All Agents)
|
|
2
2
|
|
|
3
|
-
> **Version:**
|
|
3
|
+
> **Version:** 3.0.0 (Pre-Work Context Integration)
|
|
4
4
|
> **Purpose:** Single source of truth for pre-work validation
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -9,7 +9,40 @@
|
|
|
9
9
|
|
|
10
10
|
Complete these steps before implementation to ensure alignment with project standards:
|
|
11
11
|
|
|
12
|
-
### Step 0:
|
|
12
|
+
### Step 0: Read Pre-Work Context (v3.2.0 - NEW)
|
|
13
|
+
|
|
14
|
+
**FIRST: Check if pre-work-context.md exists:**
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
openspec/changes/{changeId}/pre-work-context.md
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**If file exists, read it and extract:**
|
|
21
|
+
1. **Change Analysis** - Type, complexity, risk level
|
|
22
|
+
2. **Library Best Practices** - DO's and DON'Ts for each library
|
|
23
|
+
3. **Research Findings** - Domain-specific considerations
|
|
24
|
+
4. **Integration Warnings** - Cross-library concerns
|
|
25
|
+
5. **Critical Checklist** - Security/compliance items to verify
|
|
26
|
+
|
|
27
|
+
**Report:**
|
|
28
|
+
```markdown
|
|
29
|
+
Pre-Work Context: (Step 0)
|
|
30
|
+
- [x] Read pre-work-context.md
|
|
31
|
+
- Change Type: {type}
|
|
32
|
+
- Complexity: {n}/10
|
|
33
|
+
- Risk: {level}
|
|
34
|
+
- Libraries: {list}
|
|
35
|
+
- Critical Items: {count}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**If file doesn't exist:**
|
|
39
|
+
- User may not have run `/csetup` with v3.2.0+
|
|
40
|
+
- Fall back to Step 0.1 (Library Requirements Check)
|
|
41
|
+
- Suggest: "Run /csetup to generate pre-work-context.md"
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### Step 0.1: Library Requirements Check
|
|
13
46
|
|
|
14
47
|
**Scan for required libraries before writing code:**
|
|
15
48
|
|
|
@@ -49,7 +82,7 @@ WHY not defaults? Design spec has project-specific security requirements.
|
|
|
49
82
|
|
|
50
83
|
---
|
|
51
84
|
|
|
52
|
-
### Step 0.
|
|
85
|
+
### Step 0.2: Library Feasibility Validation (v2.2.0)
|
|
53
86
|
|
|
54
87
|
**Before implementing, verify the chosen library supports ALL spec requirements:**
|
|
55
88
|
|
|
@@ -131,6 +164,52 @@ Reporting to Main Claude...
|
|
|
131
164
|
|
|
132
165
|
---
|
|
133
166
|
|
|
167
|
+
### Step 0.3: Memory Context Query (v2.2.0 - claude-mem Integration)
|
|
168
|
+
|
|
169
|
+
**Before implementation, query claude-mem for related past work:**
|
|
170
|
+
|
|
171
|
+
WHY: Avoid repeating mistakes, leverage past decisions, maintain consistency.
|
|
172
|
+
|
|
173
|
+
1. **Identify current task keywords:**
|
|
174
|
+
- Component name (e.g., "authentication", "payment")
|
|
175
|
+
- Technology (e.g., "JWT", "Stripe")
|
|
176
|
+
- Pattern type (e.g., "form validation", "API endpoint")
|
|
177
|
+
|
|
178
|
+
2. **Query past observations:**
|
|
179
|
+
Ask naturally - mem-search skill auto-invokes:
|
|
180
|
+
```
|
|
181
|
+
"What decisions were made about {component}?"
|
|
182
|
+
"Did we solve similar problems with {technology}?"
|
|
183
|
+
"Any past bugs related to {pattern}?"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
3. **Apply relevant learnings:**
|
|
187
|
+
- If past decision exists → Follow established pattern
|
|
188
|
+
- If past bug was fixed → Apply the fix
|
|
189
|
+
- If conflict with current spec → Note and report to Main Claude
|
|
190
|
+
|
|
191
|
+
4. **Report in validation:**
|
|
192
|
+
```markdown
|
|
193
|
+
Memory Context: (Step 0.6)
|
|
194
|
+
- [ ] Queried claude-mem for related past work
|
|
195
|
+
- Relevant observations found:
|
|
196
|
+
- [#ID] {summary} → Will apply: {how}
|
|
197
|
+
- No relevant observations: Proceeding fresh
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Example:**
|
|
201
|
+
```
|
|
202
|
+
Task: Implement refresh token endpoint
|
|
203
|
+
|
|
204
|
+
Query: "decisions about refresh tokens"
|
|
205
|
+
Result: #12345 - "Chose rotating refresh tokens with Redis storage"
|
|
206
|
+
|
|
207
|
+
→ Apply: Use rotating tokens + Redis (not in-memory)
|
|
208
|
+
→ Report: "Following decision #12345 - rotating tokens"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
134
213
|
### Step 1-4: Standard Checks
|
|
135
214
|
|
|
136
215
|
1. **Context Discovery** - Load project context via agent-discovery.md
|
|
@@ -147,7 +226,17 @@ Reporting to Main Claude...
|
|
|
147
226
|
```markdown
|
|
148
227
|
Pre-Implementation Validation
|
|
149
228
|
|
|
150
|
-
|
|
229
|
+
Pre-Work Context: (Step 0 - v3.2.0)
|
|
230
|
+
- [ ] Read pre-work-context.md (if exists)
|
|
231
|
+
- Change Type: {type}
|
|
232
|
+
- Complexity: {n}/10
|
|
233
|
+
- Risk Level: {level}
|
|
234
|
+
- Libraries: {list from pre-work-context.md}
|
|
235
|
+
- Critical Checklist Items: {count}
|
|
236
|
+
- Integration Warnings: {count}
|
|
237
|
+
(OR: pre-work-context.md not found - using fallback steps)
|
|
238
|
+
|
|
239
|
+
Library Requirements: (Step 0.1 - fallback)
|
|
151
240
|
- [ ] Scanned tasks.md for "Install X" patterns
|
|
152
241
|
- [ ] Scanned design.md for design decisions
|
|
153
242
|
- Required libraries: {list from tasks.md/design.md}
|
|
@@ -159,10 +248,16 @@ Design Spec Implementation: (Step 5)
|
|
|
159
248
|
- {requirement 1 from design.md}
|
|
160
249
|
- {requirement 2 from design.md}
|
|
161
250
|
|
|
251
|
+
Memory Context: (Step 0.3 - claude-mem)
|
|
252
|
+
- [ ] Queried claude-mem for related past work
|
|
253
|
+
- Relevant observations:
|
|
254
|
+
- {#ID: summary → will apply how}
|
|
255
|
+
- OR: No relevant observations found
|
|
256
|
+
|
|
162
257
|
Project Context:
|
|
163
258
|
- Project: {name}
|
|
164
259
|
- Stack: {tech-stack}
|
|
165
|
-
- Package Manager: {pm} (from tech-stack.md)
|
|
260
|
+
- Package Manager: {pm} (from tech-stack.md or pre-work-context.md)
|
|
166
261
|
|
|
167
262
|
Patterns Loaded:
|
|
168
263
|
- [ ] error-handling.md
|
|
@@ -171,13 +266,19 @@ Patterns Loaded:
|
|
|
171
266
|
- [ ] code-standards.md
|
|
172
267
|
- [ ] {agent-specific patterns}
|
|
173
268
|
|
|
174
|
-
Best Practices:
|
|
175
|
-
- [ ] {framework} best practices loaded
|
|
269
|
+
Best Practices: (from pre-work-context.md Section 2)
|
|
270
|
+
- [ ] {framework} best practices loaded
|
|
271
|
+
|
|
272
|
+
Critical Checklist: (from pre-work-context.md Section 5)
|
|
273
|
+
- [ ] {critical item 1}
|
|
274
|
+
- [ ] {critical item 2}
|
|
176
275
|
|
|
177
276
|
Ready to Implement:
|
|
178
277
|
- [ ] Task understood
|
|
179
278
|
- [ ] Dependencies identified
|
|
180
279
|
- [ ] Required libraries identified
|
|
280
|
+
- [ ] Critical checklist reviewed
|
|
281
|
+
- [ ] Memory context applied (if available)
|
|
181
282
|
- [ ] Approach planned (using specified libraries)
|
|
182
283
|
```
|
|
183
284
|
|
package/.claude/commands/cdev.md
CHANGED
|
@@ -163,6 +163,42 @@ Design Spec Implementation:
|
|
|
163
163
|
---
|
|
164
164
|
`
|
|
165
165
|
|
|
166
|
+
// v3.1.0: Add Level 1 Universal Patterns (development-principles.md) for ALL agents
|
|
167
|
+
// Source: context-loading-protocol.md - Level 1 patterns apply to ALL agents
|
|
168
|
+
const devPrinciplesPath = '.claude/contexts/patterns/development-principles.md'
|
|
169
|
+
if (fileExists(devPrinciplesPath)) {
|
|
170
|
+
prompt += `
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🏛️ Development Principles (Level 1 - ALL Agents)
|
|
175
|
+
|
|
176
|
+
**REQUIRED READING:** @${devPrinciplesPath}
|
|
177
|
+
|
|
178
|
+
These principles apply to ALL code written by ALL agents:
|
|
179
|
+
|
|
180
|
+
**Quick Reference:**
|
|
181
|
+
| Principle | Summary |
|
|
182
|
+
|-----------|---------|
|
|
183
|
+
| **KISS** | Choose simple solutions over complex ones |
|
|
184
|
+
| **YAGNI** | Build only what you need now |
|
|
185
|
+
| **SRP** | One responsibility per module |
|
|
186
|
+
| **DRY** | Single source of truth for all knowledge |
|
|
187
|
+
| **Fail Fast** | Detect and raise errors immediately |
|
|
188
|
+
| **Observability** | Log everything that matters |
|
|
189
|
+
|
|
190
|
+
**Report format:**
|
|
191
|
+
\`\`\`
|
|
192
|
+
✅ Development Principles Applied
|
|
193
|
+
- KISS ✓ (simple implementation)
|
|
194
|
+
- DRY ✓ (no duplication)
|
|
195
|
+
- Separation of Concerns ✓
|
|
196
|
+
\`\`\`
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
`
|
|
200
|
+
}
|
|
201
|
+
|
|
166
202
|
// Add best-practices reference for ALL agents
|
|
167
203
|
const bpDir = '.claude/contexts/domain/project/best-practices/'
|
|
168
204
|
if (fileExists(bpDir)) {
|