@champpaba/claude-agent-kit 1.7.1 → 2.0.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.
Files changed (72) hide show
  1. package/.claude/CHANGELOG-v1.1.1.md +259 -259
  2. package/.claude/CLAUDE.md +79 -90
  3. package/.claude/agents/01-integration.md +11 -7
  4. package/.claude/agents/02-uxui-frontend.md +11 -6
  5. package/.claude/agents/03-test-debug.md +11 -7
  6. package/.claude/agents/04-frontend.md +11 -7
  7. package/.claude/agents/05-backend.md +11 -6
  8. package/.claude/agents/06-database.md +11 -7
  9. package/.claude/commands/cdev.md +110 -7
  10. package/.claude/commands/csetup.md +306 -39
  11. package/.claude/commands/cstatus.md +60 -60
  12. package/.claude/commands/cview.md +364 -364
  13. package/.claude/commands/designsetup.md +1401 -336
  14. package/.claude/commands/extract.md +520 -245
  15. package/.claude/commands/pageplan.md +171 -47
  16. package/.claude/contexts/design/accessibility.md +611 -611
  17. package/.claude/contexts/design/layout.md +400 -400
  18. package/.claude/contexts/design/responsive.md +551 -551
  19. package/.claude/contexts/design/shadows.md +522 -522
  20. package/.claude/contexts/design/typography.md +465 -465
  21. package/.claude/contexts/domain/README.md +164 -164
  22. package/.claude/contexts/patterns/agent-coordination.md +388 -388
  23. package/.claude/contexts/patterns/agent-discovery.md +3 -2
  24. package/.claude/contexts/patterns/change-workflow.md +538 -538
  25. package/.claude/contexts/patterns/code-standards.md +39 -0
  26. package/.claude/contexts/patterns/development-principles.md +513 -513
  27. package/.claude/contexts/patterns/error-handling.md +478 -478
  28. package/.claude/contexts/patterns/error-recovery.md +365 -365
  29. package/.claude/contexts/patterns/logging.md +424 -424
  30. package/.claude/contexts/patterns/task-breakdown.md +452 -452
  31. package/.claude/contexts/patterns/task-classification.md +523 -523
  32. package/.claude/contexts/patterns/tdd-classification.md +516 -516
  33. package/.claude/contexts/patterns/testing.md +413 -413
  34. package/.claude/contexts/patterns/validation-framework.md +776 -776
  35. package/.claude/lib/agent-executor.md +76 -1
  36. package/.claude/lib/agent-router.md +572 -572
  37. package/.claude/lib/flags-updater.md +469 -469
  38. package/.claude/lib/tdd-classifier.md +345 -345
  39. package/.claude/lib/validation-gates.md +484 -484
  40. package/.claude/settings.local.json +42 -42
  41. package/.claude/templates/context-template.md +45 -45
  42. package/.claude/templates/flags-template.json +42 -42
  43. package/.claude/templates/phase-templates.json +19 -29
  44. package/.claude/templates/phases-sections/accessibility-test.md +17 -17
  45. package/.claude/templates/phases-sections/api-design.md +37 -37
  46. package/.claude/templates/phases-sections/backend-tests.md +16 -16
  47. package/.claude/templates/phases-sections/backend.md +37 -37
  48. package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
  49. package/.claude/templates/phases-sections/component-tests.md +17 -17
  50. package/.claude/templates/phases-sections/contract-backend.md +16 -16
  51. package/.claude/templates/phases-sections/contract-frontend.md +16 -16
  52. package/.claude/templates/phases-sections/database.md +35 -35
  53. package/.claude/templates/phases-sections/e2e-tests.md +16 -16
  54. package/.claude/templates/phases-sections/fix-implementation.md +17 -17
  55. package/.claude/templates/phases-sections/frontend-integration.md +18 -18
  56. package/.claude/templates/phases-sections/frontend-mockup.md +123 -123
  57. package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
  58. package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
  59. package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
  60. package/.claude/templates/phases-sections/refactor.md +16 -16
  61. package/.claude/templates/phases-sections/regression-tests.md +15 -15
  62. package/.claude/templates/phases-sections/responsive-test.md +16 -16
  63. package/.claude/templates/phases-sections/script-implementation.md +43 -43
  64. package/.claude/templates/phases-sections/test-coverage.md +16 -16
  65. package/.claude/templates/phases-sections/user-approval.md +14 -14
  66. package/LICENSE +21 -21
  67. package/README.md +103 -351
  68. package/package.json +1 -1
  69. package/.claude/commands/agentsetup.md +0 -1464
  70. package/.claude/commands/psetup.md +0 -101
  71. package/.claude/templates/phases-sections/documentation.md +0 -17
  72. package/.claude/templates/phases-sections/report.md +0 -16
@@ -136,21 +136,50 @@ What would you like to do?
136
136
 
137
137
  **Check agent response for required items:**
138
138
 
139
- **All agents:**
139
+ **All agents (MANDATORY v1.8.0):**
140
+ - "Best Practices Loaded" ← **NEW: Must show which files were read**
140
141
  - "Pre-Implementation Validation Report"
141
142
  - "Ready to Implement ✓"
142
143
 
143
144
  **uxui-frontend:**
145
+ - "Best Practices Loaded" (react, nextjs, tailwind, etc.)
144
146
  - "Design Foundation ✓"
145
147
  - "Box Thinking Analysis ✓"
146
148
  - "Component Search ✓"
147
149
  - "Design Tokens Extracted ✓"
148
150
 
151
+ **frontend:**
152
+ - "Best Practices Loaded" (react, nextjs, typescript)
153
+ - "API Contract Verified ✓"
154
+
149
155
  **backend:**
156
+ - "Best Practices Loaded" (express/fastapi, prisma, etc.)
150
157
  - "Patterns Loaded ✓"
151
158
  - "Existing Endpoints Search ✓"
152
159
  - "TDD Workflow" (if TDD required)
153
160
 
161
+ **database:**
162
+ - "Best Practices Loaded" (prisma/drizzle)
163
+ - "Schema Analysis ✓"
164
+
165
+ **test-debug:**
166
+ - "Best Practices Loaded" (vitest/jest/playwright)
167
+ - "Test Infrastructure ✓"
168
+
169
+ **Validation Logic:**
170
+ ```typescript
171
+ function validateBestPracticesLoaded(agentResponse: string): boolean {
172
+ // Must contain "Best Practices Loaded" section
173
+ if (!agentResponse.includes('Best Practices Loaded')) {
174
+ return false
175
+ }
176
+
177
+ // Must show at least one file was read
178
+ const hasFileMarker = agentResponse.match(/- \w+ ✓/g)
179
+ return hasFileMarker && hasFileMarker.length > 0
180
+ }
181
+ ```
182
+
154
183
  **See:** `validation-framework.md` for complete list per agent
155
184
 
156
185
  ---
@@ -179,6 +208,52 @@ What would you like to do?
179
208
  - If contains "ERROR" or "FAILED" without "fixed"
180
209
  - → likely has unresolved issues
181
210
 
211
+ 6. **No forbidden temp files created (v1.8.0)**
212
+ - Check if agent created non-code files (reports, summaries, logs)
213
+ - If found → **auto-delete** and warn agent
214
+
215
+ ---
216
+
217
+ ## 🧹 Temp File Cleanup (v1.8.0)
218
+
219
+ **After each phase completes, Main Claude MUST cleanup non-code files:**
220
+
221
+ ```typescript
222
+ function cleanupTempFiles(changeDir: string) {
223
+ // Pattern: files that are clearly not code
224
+ const forbiddenKeywords = [
225
+ 'REPORT', 'SUMMARY', 'DELIVERY', 'OUTPUT', 'LOG',
226
+ 'GUIDE', 'ANALYSIS', 'RESULTS', 'PHASE_', 'STEP_'
227
+ ]
228
+
229
+ // Find all .txt and .md files in change directory
230
+ const txtFiles = Glob(`${changeDir}/**/*.txt`)
231
+ const mdFiles = Glob(`${changeDir}/**/*.md`)
232
+
233
+ const allFiles = [...txtFiles, ...mdFiles]
234
+
235
+ for (const file of allFiles) {
236
+ const filename = path.basename(file).toUpperCase()
237
+
238
+ // Check if filename contains forbidden keywords
239
+ const isForbidden = forbiddenKeywords.some(kw => filename.includes(kw))
240
+
241
+ // Also check: ALL_CAPS filenames are usually temp files
242
+ const isAllCaps = /^[A-Z0-9_]+\.(txt|md)$/i.test(path.basename(file))
243
+
244
+ if (isForbidden || isAllCaps) {
245
+ output(`🧹 Cleaning up temp file: ${file}`)
246
+ rm(file)
247
+ }
248
+ }
249
+ }
250
+
251
+ // Call after each phase
252
+ cleanupTempFiles(`openspec/changes/${changeId}`)
253
+ ```
254
+
255
+ **Rule:** Only actual code/config files should remain. Reports go in response text or flags.json.
256
+
182
257
  ---
183
258
 
184
259
  ## 🚨 Escalation