@champpaba/claude-agent-kit 2.0.0 → 2.1.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/CLAUDE.md +253 -31
- package/.claude/agents/01-integration.md +106 -552
- package/.claude/agents/02-uxui-frontend.md +188 -850
- package/.claude/agents/03-test-debug.md +152 -521
- package/.claude/agents/04-frontend.md +169 -549
- package/.claude/agents/05-backend.md +132 -661
- package/.claude/agents/06-database.md +149 -698
- package/.claude/agents/_shared/README.md +57 -0
- package/.claude/agents/_shared/agent-boundaries.md +64 -0
- package/.claude/agents/_shared/documentation-policy.md +47 -0
- package/.claude/agents/_shared/package-manager.md +59 -0
- package/.claude/agents/_shared/pre-work-checklist.md +57 -0
- package/.claude/commands/cdev.md +36 -61
- package/.claude/commands/csetup.md +90 -14
- package/.claude/commands/cstatus.md +153 -60
- package/.claude/commands/cview.md +364 -364
- package/.claude/commands/designsetup.md +1 -1
- package/.claude/commands/pageplan.md +53 -177
- package/.claude/commands/pstatus.md +431 -0
- package/.claude/contexts/design/accessibility.md +611 -611
- package/.claude/contexts/design/box-thinking.md +1 -1
- package/.claude/contexts/design/index.md +1 -1
- 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/agent-discovery.md +2 -2
- package/.claude/contexts/patterns/animation-patterns.md +1 -1
- package/.claude/contexts/patterns/change-workflow.md +541 -538
- package/.claude/contexts/patterns/code-standards.md +10 -8
- package/.claude/contexts/patterns/development-principles.md +513 -513
- package/.claude/contexts/patterns/error-handling.md +478 -478
- package/.claude/contexts/patterns/error-recovery.md +365 -365
- package/.claude/contexts/patterns/frontend-component-strategy.md +1 -1
- package/.claude/contexts/patterns/logging.md +424 -424
- package/.claude/contexts/patterns/performance-optimization.md +1 -1
- package/.claude/contexts/patterns/task-breakdown.md +452 -452
- package/.claude/contexts/patterns/task-classification.md +523 -523
- package/.claude/contexts/patterns/tdd-classification.md +516 -516
- package/.claude/contexts/patterns/testing.md +413 -413
- package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
- package/.claude/contexts/patterns/validation-framework.md +779 -776
- package/.claude/lib/README.md +4 -4
- package/.claude/lib/agent-executor.md +31 -40
- package/.claude/lib/agent-router.md +450 -572
- package/.claude/lib/context-loading-protocol.md +19 -36
- package/.claude/lib/detailed-guides/agent-system.md +43 -121
- package/.claude/lib/detailed-guides/taskmaster-analysis.md +1 -1
- package/.claude/lib/document-loader.md +22 -25
- package/.claude/lib/flags-updater.md +461 -469
- package/.claude/lib/tdd-classifier.md +345 -345
- package/.claude/lib/validation-gates.md +484 -484
- package/.claude/settings.local.json +42 -42
- package/.claude/templates/STYLE_GUIDE.template.md +1 -1
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/design-context-template.md +1 -1
- 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/frontend-mockup.md +126 -123
- 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/PROJECT_STATUS.template.yml +105 -0
- package/README.md +103 -1115
- package/lib/init.js +30 -2
- package/package.json +3 -2
- package/.claude/CHANGELOG-v1.1.1.md +0 -259
package/README.md
CHANGED
|
@@ -4,1206 +4,194 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@champpaba/claude-agent-kit)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://nodejs.org)
|
|
8
7
|
|
|
9
8
|
---
|
|
10
9
|
|
|
11
|
-
##
|
|
10
|
+
## What is this?
|
|
12
11
|
|
|
13
|
-
**Claude Agent Kit
|
|
14
|
-
|
|
15
|
-
While OpenSpec handles **alignment** (Draft Proposal → Review & Align), Claude Agent Kit handles **implementation** (Implement Tasks → Archive & Update) with specialized AI agents.
|
|
16
|
-
|
|
17
|
-
### The Complete Workflow
|
|
12
|
+
**Claude Agent Kit** turns OpenSpec plans into working code using 6 specialized AI agents.
|
|
18
13
|
|
|
19
14
|
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
└─────────────────────────────────────────────────────────────┘
|
|
24
|
-
↓
|
|
25
|
-
Generates: proposal.md + tasks.md
|
|
26
|
-
↓
|
|
27
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
28
|
-
│ Claude Agent Kit Implementation │
|
|
29
|
-
│ (Multi-Agent Execution with 6 Specialists) │
|
|
30
|
-
└─────────────────────────────────────────────────────────────┘
|
|
31
|
-
↓
|
|
32
|
-
Completes: All tasks with quality gates
|
|
15
|
+
OpenSpec Planning → proposal.md + tasks.md
|
|
16
|
+
↓
|
|
17
|
+
Claude Agent Kit → 6 agents execute in phases → Working code + tests
|
|
33
18
|
```
|
|
34
19
|
|
|
35
20
|
---
|
|
36
21
|
|
|
37
|
-
##
|
|
38
|
-
|
|
39
|
-
| Stage | Tool | What Happens | Output |
|
|
40
|
-
|-------|------|--------------|--------|
|
|
41
|
-
| **1. Draft Proposal** | OpenSpec | Human requests change, AI scaffolds structure | `proposal.md` + `tasks.md` |
|
|
42
|
-
| **2. Review & Align** | OpenSpec | Team iterates until consensus | Approved specs |
|
|
43
|
-
| **2.5. Page Planning** | **Claude Agent Kit** | *(UI tasks only)* Generate content & component plan | `page-plan.md` |
|
|
44
|
-
| **3. Setup Context** | **Claude Agent Kit** | Classify tasks, generate workflow | `workflow.md` |
|
|
45
|
-
| **4. Implement Tasks** | **Claude Agent Kit** | 6 specialized agents execute work | Working code + tests |
|
|
46
|
-
| **5. Archive & Update** | OpenSpec | Merge changes back to specs | Updated `specs/` |
|
|
47
|
-
|
|
48
|
-
### What OpenSpec Generates
|
|
49
|
-
|
|
50
|
-
**proposal.md** - Business case and scope
|
|
51
|
-
```markdown
|
|
52
|
-
# Change Proposal: User Authentication System
|
|
53
|
-
|
|
54
|
-
## Motivation
|
|
55
|
-
Users need secure login functionality...
|
|
56
|
-
|
|
57
|
-
## Scope
|
|
58
|
-
- Email/password authentication
|
|
59
|
-
- JWT token generation
|
|
60
|
-
- Protected routes middleware
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**tasks.md** - Implementation checklist
|
|
64
|
-
```markdown
|
|
65
|
-
## Database Setup
|
|
66
|
-
- [ ] Create User model with email, password fields
|
|
67
|
-
- [ ] Add unique constraint on email
|
|
68
|
-
|
|
69
|
-
## Backend Implementation
|
|
70
|
-
- [ ] POST /api/auth/login endpoint
|
|
71
|
-
- [ ] Password hashing with bcrypt
|
|
72
|
-
- [ ] JWT token generation
|
|
73
|
-
|
|
74
|
-
## Frontend Implementation
|
|
75
|
-
- [ ] Login form component
|
|
76
|
-
- [ ] Form validation
|
|
77
|
-
- [ ] Token storage
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### What Claude Agent Kit Does
|
|
81
|
-
|
|
82
|
-
**Input:** Reads `proposal.md` + `tasks.md` from OpenSpec
|
|
83
|
-
|
|
84
|
-
**Process:**
|
|
85
|
-
1. `/pageplan` *(UI tasks only)* - Generate content & component reuse plan
|
|
86
|
-
2. `/csetup {change-id}` - Analyze tasks, classify by agent, generate workflow
|
|
87
|
-
3. `/cdev {change-id}` - Execute with 6 specialized agents in phases:
|
|
88
|
-
- **Phase 1:** UI with mock data (uxui-frontend)
|
|
89
|
-
- **Phase 2:** Real API + database (backend + database, parallel)
|
|
90
|
-
- **Phase 2.5:** Validate contracts (integration)
|
|
91
|
-
- **Phase 3:** Connect UI to API (frontend)
|
|
92
|
-
- **Phase 4:** Tests + bug fixes (test-debug)
|
|
93
|
-
|
|
94
|
-
**Output:** Working implementation ready for review
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## 🎨 NEW: Page Planning for UI Tasks
|
|
99
|
-
|
|
100
|
-
**Problem:** Before `/pageplan`, agents would:
|
|
101
|
-
- ❌ Create duplicate components (3 different Navbar components!)
|
|
102
|
-
- ❌ Use inconsistent colors (`#0d7276` on landing, `#4f46e5` on dashboard)
|
|
103
|
-
- ❌ Generate lorem ipsum instead of real content
|
|
104
|
-
- ❌ Waste time searching for components during implementation
|
|
105
|
-
|
|
106
|
-
**Solution:** `/pageplan` command analyzes BEFORE implementing
|
|
107
|
-
|
|
108
|
-
### How It Works
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
# Step 1: OpenSpec generates tasks
|
|
112
|
-
User: "Build landing page for TOEIC app"
|
|
113
|
-
→ Creates: openspec/changes/landing-page/proposal.md + tasks.md
|
|
114
|
-
|
|
115
|
-
# Step 2: Generate page plan (NEW!)
|
|
116
|
-
User: /pageplan @prd.md @project_brief.md
|
|
117
|
-
|
|
118
|
-
# What it does:
|
|
119
|
-
# 1. Reads user-specified files (PRD, brief)
|
|
120
|
-
# 2. Reads proposal.md (technical architecture)
|
|
121
|
-
# 3. Reads STYLE_GUIDE.md (visual design)
|
|
122
|
-
# 4. Searches existing components (Navbar, Footer, etc.)
|
|
123
|
-
# 5. AI drafts real content from PRD
|
|
124
|
-
# 6. Generates: openspec/changes/landing-page/page-plan.md
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### page-plan.md Output
|
|
128
|
-
|
|
129
|
-
```markdown
|
|
130
|
-
# Page Plan: Landing Page
|
|
131
|
-
|
|
132
|
-
## 1. Component Plan
|
|
133
|
-
🔄 Reuse: Navbar, Footer (found in codebase)
|
|
134
|
-
✅ New Shared: (none)
|
|
135
|
-
✅ New Specific: HeroSection, FeatureGrid, TestimonialCarousel
|
|
136
|
-
|
|
137
|
-
## 2. Page Structure
|
|
138
|
-
<Layout>
|
|
139
|
-
<Navbar /> {/* Reuse */}
|
|
140
|
-
<HeroSection /> {/* New - see content below */}
|
|
141
|
-
<FeatureGrid />
|
|
142
|
-
<TestimonialCarousel />
|
|
143
|
-
<Footer /> {/* Reuse */}
|
|
144
|
-
</Layout>
|
|
145
|
-
|
|
146
|
-
## 3. Assets to Prepare
|
|
147
|
-
- [ ] hero-image.jpg (1920x1080)
|
|
148
|
-
- [ ] logo.svg (200x60)
|
|
149
|
-
- [ ] feature-icons (3x 24x24 SVG)
|
|
150
|
-
|
|
151
|
-
## 4. Content Draft (AI-Generated - Please Review & Edit)
|
|
152
|
-
**Headline:** "Master TOEIC with AI-Powered Tests"
|
|
153
|
-
**Subheadline:** "Experience exam-quality questions with instant AI scoring"
|
|
154
|
-
**CTA:** "Start Free Test"
|
|
155
|
-
|
|
156
|
-
**Features:**
|
|
157
|
-
- Real TOEIC-style questions
|
|
158
|
-
- Instant AI scoring
|
|
159
|
-
- Progress tracking dashboard
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### Step 3: User Prepares
|
|
163
|
-
|
|
164
|
-
- ✅ Review content draft (edit as needed)
|
|
165
|
-
- ✅ Prepare assets (images, icons)
|
|
166
|
-
- ✅ Approve `page-plan.md`
|
|
167
|
-
|
|
168
|
-
### Step 4: Implementation
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
/csetup landing-page
|
|
172
|
-
/cdev landing-page
|
|
173
|
-
|
|
174
|
-
# uxui-frontend agent automatically:
|
|
175
|
-
# - STEP 0.5: Reads page-plan.md ✅
|
|
176
|
-
# - STEP 3: SKIP component search (already done!) ⚡ 25% faster
|
|
177
|
-
# - Uses: Real content from page-plan
|
|
178
|
-
# - Reuses: Navbar, Footer (no duplicates)
|
|
179
|
-
# - Creates: HeroSection, FeatureGrid, TestimonialCarousel
|
|
180
|
-
# - Applies: Colors/spacing from STYLE_GUIDE.md
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Benefits
|
|
184
|
-
|
|
185
|
-
| Before (No page-plan) | After (With page-plan) |
|
|
186
|
-
|----------------------|------------------------|
|
|
187
|
-
| ❌ Agent searches during implementation | ✅ Search done once upfront (25% faster) |
|
|
188
|
-
| ❌ Duplicate components created | ✅ Clear reuse plan |
|
|
189
|
-
| ❌ Lorem ipsum content | ✅ Real content from PRD |
|
|
190
|
-
| ❌ Missing assets mid-work | ✅ Asset checklist prepared |
|
|
191
|
-
| ❌ Inconsistent design | ✅ Synced with STYLE_GUIDE |
|
|
192
|
-
| ❌ Agent guesses structure | ✅ Clear component hierarchy |
|
|
193
|
-
|
|
194
|
-
### When to Use /pageplan
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
✅ Use for:
|
|
198
|
-
- Landing pages
|
|
199
|
-
- Dashboards
|
|
200
|
-
- Multi-section UI pages
|
|
201
|
-
- Any task with multiple components
|
|
202
|
-
|
|
203
|
-
❌ Skip for:
|
|
204
|
-
- Backend API endpoints
|
|
205
|
-
- Database schemas
|
|
206
|
-
- Single-component tasks
|
|
207
|
-
- Non-UI work
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
## 🤖 The 6 Specialized Agents
|
|
213
|
-
|
|
214
|
-
| Agent | Color | Responsibility | Phase |
|
|
215
|
-
|-------|-------|---------------|-------|
|
|
216
|
-
| **uxui-frontend** | 🔵 Blue | Design UI components with mock data | 1 |
|
|
217
|
-
| **backend** | 🟣 Purple | Create API endpoints with validation | 2 |
|
|
218
|
-
| **database** | 🩷 Pink | Design schemas, migrations, queries | 2 |
|
|
219
|
-
| **integration** | 🟠 Orange | Validate API contracts before connecting | 2.5 |
|
|
220
|
-
| **frontend** | 🟢 Green | Connect UI to backend APIs | 3 |
|
|
221
|
-
| **test-debug** | 🔴 Red | Run tests and fix bugs (max 3-4 iterations) | 1,3,4 |
|
|
222
|
-
|
|
223
|
-
Each agent:
|
|
224
|
-
- ✅ Auto-discovers your project context (tech stack, best practices)
|
|
225
|
-
- ✅ Follows framework-specific patterns from Context7 MCP
|
|
226
|
-
- ✅ Maintains design consistency across the codebase
|
|
227
|
-
- ✅ Reports progress with detailed logging
|
|
228
|
-
- ✅ **Smart auto-proceed:** Eliminates double confirmations when user approves workflow
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
## 📦 Installation
|
|
22
|
+
## Quick Start
|
|
233
23
|
|
|
234
24
|
```bash
|
|
25
|
+
# Install
|
|
235
26
|
npm install -g @champpaba/claude-agent-kit
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Alternative Package Managers
|
|
239
|
-
|
|
240
|
-
```bash
|
|
241
|
-
# Using pnpm
|
|
242
|
-
pnpm add -g @champpaba/claude-agent-kit
|
|
243
|
-
|
|
244
|
-
# Using yarn
|
|
245
|
-
yarn global add @champpaba/claude-agent-kit
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
## 🚀 Quick Start (with OpenSpec)
|
|
251
|
-
|
|
252
|
-
### Step 1: OpenSpec Planning
|
|
253
|
-
|
|
254
|
-
```bash
|
|
255
|
-
# In your OpenSpec-enabled project
|
|
256
|
-
cd my-app
|
|
257
27
|
|
|
258
|
-
#
|
|
259
|
-
|
|
260
|
-
# → Generates: openspec/changes/landing-page/proposal.md + tasks.md
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
### Step 2: Initialize Claude Agent Kit
|
|
264
|
-
|
|
265
|
-
```bash
|
|
266
|
-
# Initialize the agent system
|
|
28
|
+
# Initialize in your project
|
|
29
|
+
cd your-project
|
|
267
30
|
cak init
|
|
268
31
|
|
|
269
|
-
#
|
|
270
|
-
#
|
|
271
|
-
/
|
|
32
|
+
# Use in Claude Code
|
|
33
|
+
/csetup my-feature # Setup change context
|
|
34
|
+
/cdev my-feature # Execute with agents
|
|
35
|
+
/cstatus my-feature # Check progress
|
|
272
36
|
```
|
|
273
37
|
|
|
274
|
-
|
|
38
|
+
---
|
|
275
39
|
|
|
276
|
-
|
|
277
|
-
# In Claude Code:
|
|
278
|
-
/pageplan @prd.md @project_brief.md
|
|
40
|
+
## The 6 Agents
|
|
279
41
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
42
|
+
| Agent | Phase | Responsibility |
|
|
43
|
+
|-------|-------|----------------|
|
|
44
|
+
| **uxui-frontend** | 1 | UI components with mock data |
|
|
45
|
+
| **backend** | 2 | API endpoints |
|
|
46
|
+
| **database** | 2 | Schemas, migrations |
|
|
47
|
+
| **integration** | 2.5 | Validate API contracts |
|
|
48
|
+
| **frontend** | 3 | Connect UI to APIs |
|
|
49
|
+
| **test-debug** | 4 | Tests and bug fixes |
|
|
283
50
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
```bash
|
|
287
|
-
/csetup landing-page
|
|
288
|
-
```
|
|
51
|
+
---
|
|
289
52
|
|
|
290
|
-
|
|
291
|
-
- Reads `openspec/changes/landing-page/proposal.md` (business context)
|
|
292
|
-
- Reads `openspec/changes/landing-page/tasks.md` (implementation checklist)
|
|
293
|
-
- Reads `openspec/changes/landing-page/page-plan.md` (if exists - content plan)
|
|
294
|
-
- Classifies tasks by agent (database, backend, frontend, etc.)
|
|
295
|
-
- Generates `workflow.md` (execution plan)
|
|
53
|
+
## Commands
|
|
296
54
|
|
|
297
|
-
###
|
|
55
|
+
### CLI Commands
|
|
298
56
|
|
|
299
57
|
```bash
|
|
300
|
-
|
|
58
|
+
cak init # Initialize template
|
|
59
|
+
cak update --backup # Update to latest version
|
|
301
60
|
```
|
|
302
61
|
|
|
303
|
-
|
|
304
|
-
1. **Phase 1:** uxui-frontend reads `page-plan.md` → creates UI with real content
|
|
305
|
-
2. **Phase 2:** backend + database create APIs + models (parallel, if needed)
|
|
306
|
-
3. **Phase 2.5:** integration validates API contracts
|
|
307
|
-
4. **Phase 3:** frontend connects UI to APIs (if needed)
|
|
308
|
-
5. **Phase 4:** test-debug runs tests, fixes bugs
|
|
309
|
-
|
|
310
|
-
### Step 6: Monitor Progress
|
|
62
|
+
### Slash Commands (in Claude Code)
|
|
311
63
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
64
|
+
| Command | Description |
|
|
65
|
+
|---------|-------------|
|
|
66
|
+
| `/designsetup` | Generate style guide (one-time) |
|
|
67
|
+
| `/pageplan @prd.md` | Generate UI page plan |
|
|
68
|
+
| `/csetup {id}` | Setup change context |
|
|
69
|
+
| `/cdev {id}` | Execute with agents |
|
|
70
|
+
| `/cview {id}` | Detailed progress |
|
|
71
|
+
| `/cstatus {id}` | Quick status |
|
|
72
|
+
| `/pstatus` | Update project status |
|
|
320
73
|
|
|
321
74
|
---
|
|
322
75
|
|
|
323
|
-
##
|
|
76
|
+
## Cross-Session Context (v2.1.0)
|
|
324
77
|
|
|
325
|
-
|
|
78
|
+
`PROJECT_STATUS.yml` helps Claude remember project state between sessions:
|
|
326
79
|
|
|
327
|
-
```
|
|
328
|
-
#
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
# 2. Page Planning (NEW!)
|
|
333
|
-
/pageplan @prd.md @project_brief.md
|
|
334
|
-
→ Creates: page-plan.md
|
|
335
|
-
→ User reviews content & prepares assets
|
|
80
|
+
```yaml
|
|
81
|
+
# PROJECT_STATUS.yml
|
|
82
|
+
current_focus:
|
|
83
|
+
description: "Building auth system"
|
|
84
|
+
active_change: auth-system
|
|
336
85
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
→ Generates: workflow.md
|
|
86
|
+
infrastructure:
|
|
87
|
+
database: { status: healthy }
|
|
88
|
+
api: { status: healthy }
|
|
341
89
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
→ Uses real content + reuse plan
|
|
347
|
-
→ 25% faster implementation
|
|
90
|
+
blockers:
|
|
91
|
+
- id: domain-config
|
|
92
|
+
description: "Need domain for Cloudflare"
|
|
93
|
+
blocks: [production-launch]
|
|
348
94
|
|
|
349
|
-
|
|
350
|
-
|
|
95
|
+
next_priorities:
|
|
96
|
+
- id: payment-integration
|
|
97
|
+
reason: "Revenue blocker"
|
|
351
98
|
```
|
|
352
99
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
```bash
|
|
356
|
-
# 1. OpenSpec Planning
|
|
357
|
-
User: "Add payment processing API"
|
|
358
|
-
→ Creates: proposal.md + tasks.md
|
|
359
|
-
|
|
360
|
-
# 2. Setup Context (skip /pageplan - not UI work)
|
|
361
|
-
/csetup payment-api
|
|
362
|
-
|
|
363
|
-
# 3. Implementation
|
|
364
|
-
/cdev payment-api
|
|
365
|
-
→ Phase 2: backend + database agents (parallel)
|
|
366
|
-
→ Phase 2.5: integration validates contracts
|
|
367
|
-
→ Phase 3: frontend connects (if UI exists)
|
|
368
|
-
→ Phase 4: test-debug validates
|
|
369
|
-
|
|
370
|
-
# 4. Monitor
|
|
371
|
-
/cview payment-api
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
### Workflow C: Full-Stack Feature (with /pageplan)
|
|
375
|
-
|
|
376
|
-
```bash
|
|
377
|
-
# 1. OpenSpec Planning
|
|
378
|
-
User: "Build user authentication system"
|
|
379
|
-
→ Creates: proposal.md + tasks.md
|
|
380
|
-
|
|
381
|
-
# 2. Page Planning (for login UI only)
|
|
382
|
-
/pageplan @prd.md
|
|
383
|
-
→ Creates: page-plan.md (login form content + components)
|
|
384
|
-
|
|
385
|
-
# 3. Setup Context
|
|
386
|
-
/csetup auth-system
|
|
387
|
-
|
|
388
|
-
# 4. Implementation
|
|
389
|
-
/cdev auth-system
|
|
390
|
-
→ Phase 1: uxui-frontend (login form, reads page-plan.md)
|
|
391
|
-
→ Phase 2: backend (POST /api/auth/login) + database (User model)
|
|
392
|
-
→ Phase 2.5: integration (validate contract)
|
|
393
|
-
→ Phase 3: frontend (connect form to API)
|
|
394
|
-
→ Phase 4: test-debug (E2E tests)
|
|
395
|
-
|
|
396
|
-
# 5. Monitor
|
|
397
|
-
/cview auth-system
|
|
398
|
-
```
|
|
100
|
+
Created by `cak init` (optional). Update with `/pstatus`.
|
|
399
101
|
|
|
400
102
|
---
|
|
401
103
|
|
|
402
|
-
##
|
|
104
|
+
## Project Structure
|
|
403
105
|
|
|
404
106
|
```
|
|
405
107
|
your-project/
|
|
108
|
+
├── PROJECT_STATUS.yml # Cross-session context (optional)
|
|
406
109
|
├── openspec/
|
|
407
|
-
│
|
|
408
|
-
│
|
|
409
|
-
│
|
|
410
|
-
│
|
|
411
|
-
│ ├── tasks.md ← OpenSpec generates
|
|
412
|
-
│ ├── page-plan.md ← /pageplan generates (UI tasks)
|
|
413
|
-
│ ├── workflow.md ← /csetup generates
|
|
414
|
-
│ └── flags.json ← /cdev tracks progress
|
|
415
|
-
│
|
|
110
|
+
│ └── changes/{id}/
|
|
111
|
+
│ ├── proposal.md # From OpenSpec
|
|
112
|
+
│ ├── tasks.md # From OpenSpec
|
|
113
|
+
│ └── page-plan.md # From /pageplan
|
|
416
114
|
├── design-system/
|
|
417
|
-
│ └── STYLE_GUIDE.md
|
|
418
|
-
│
|
|
115
|
+
│ └── STYLE_GUIDE.md # From /designsetup
|
|
419
116
|
└── .claude/
|
|
420
|
-
├──
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
│ ├── 01-integration.md
|
|
424
|
-
│ ├── 02-uxui-frontend.md
|
|
425
|
-
│ ├── 03-test-debug.md
|
|
426
|
-
│ ├── 04-frontend.md
|
|
427
|
-
│ ├── 05-backend.md
|
|
428
|
-
│ └── 06-database.md
|
|
429
|
-
│
|
|
430
|
-
├── commands/ # Slash commands
|
|
431
|
-
│ ├── designsetup.md # Generate style guide
|
|
432
|
-
│ ├── pageplan.md # Generate page plan (NEW!)
|
|
433
|
-
│ ├── psetup.md # Project setup
|
|
434
|
-
│ ├── csetup.md # Change setup
|
|
435
|
-
│ ├── cdev.md # Change development
|
|
436
|
-
│ ├── cview.md # View progress
|
|
437
|
-
│ └── cstatus.md # Quick status
|
|
438
|
-
│
|
|
439
|
-
├── contexts/
|
|
440
|
-
│ ├── design/ # Design foundation
|
|
441
|
-
│ ├── patterns/ # Universal patterns
|
|
442
|
-
│ └── domain/ # Project context
|
|
443
|
-
│
|
|
444
|
-
└── lib/ # Implementation logic
|
|
445
|
-
├── agent-executor.md
|
|
446
|
-
├── tdd-classifier.md
|
|
447
|
-
├── flags-updater.md
|
|
448
|
-
└── agent-router.md
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
---
|
|
452
|
-
|
|
453
|
-
## 🎯 Why Use Claude Agent Kit?
|
|
454
|
-
|
|
455
|
-
### Without Claude Agent Kit (Manual Implementation)
|
|
456
|
-
|
|
457
|
-
```
|
|
458
|
-
❌ You manually interpret tasks.md
|
|
459
|
-
❌ You context-switch between frontend/backend/database
|
|
460
|
-
❌ You might forget edge cases or tests
|
|
461
|
-
❌ Inconsistent code patterns across features
|
|
462
|
-
❌ No systematic error handling
|
|
463
|
-
❌ Duplicate components everywhere
|
|
464
|
-
❌ Lorem ipsum content in UI
|
|
465
|
-
```
|
|
466
|
-
|
|
467
|
-
### With Claude Agent Kit
|
|
468
|
-
|
|
469
|
-
```
|
|
470
|
-
✅ Agents auto-classify and execute tasks
|
|
471
|
-
✅ Each agent focuses on its specialty
|
|
472
|
-
✅ Built-in validation gates (integration agent)
|
|
473
|
-
✅ Consistent patterns via auto-discovery
|
|
474
|
-
✅ Automatic retry with escalation
|
|
475
|
-
✅ Component reuse plan (/pageplan)
|
|
476
|
-
✅ Real content from PRD
|
|
477
|
-
✅ 25% faster UI implementation
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
---
|
|
481
|
-
|
|
482
|
-
## 📚 Key Features
|
|
483
|
-
|
|
484
|
-
### ✅ Seamless OpenSpec Integration
|
|
485
|
-
|
|
486
|
-
- Reads `proposal.md` for business context
|
|
487
|
-
- Parses `tasks.md` for implementation checklist
|
|
488
|
-
- Generates `page-plan.md` for UI tasks (NEW!)
|
|
489
|
-
- Tracks progress in `flags.json`
|
|
490
|
-
- Updates completion status back to OpenSpec
|
|
491
|
-
|
|
492
|
-
### ✅ Auto-Generated Best Practices
|
|
493
|
-
|
|
494
|
-
Uses Context7 MCP to fetch latest framework docs:
|
|
495
|
-
|
|
496
|
-
```bash
|
|
497
|
-
/psetup
|
|
498
|
-
# → Detects: Next.js 15, React 18, Prisma 6
|
|
499
|
-
# → Generates: .claude/contexts/domain/{project}/best-practices/
|
|
500
|
-
# - nextjs-15.md
|
|
501
|
-
# - react-18.md
|
|
502
|
-
# - prisma-6.md
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
### ✅ 3-Level Project Indexing
|
|
506
|
-
|
|
507
|
-
Agents auto-discover context:
|
|
508
|
-
|
|
509
|
-
```
|
|
510
|
-
1. Read: domain/index.md → Get current project
|
|
511
|
-
2. Read: domain/{project}/README.md → Get tech stack
|
|
512
|
-
3. Read: domain/{project}/best-practices/index.md → Load patterns
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
### ✅ Design Foundation
|
|
516
|
-
|
|
517
|
-
Universal design principles:
|
|
518
|
-
- Color theory (WCAG AAA contrast)
|
|
519
|
-
- Typography scales
|
|
520
|
-
- 8px spacing grid (8, 16, 24, 32, 40, 48px)
|
|
521
|
-
- 4-level shadow system
|
|
522
|
-
- Box thinking framework
|
|
523
|
-
- Accessibility (WCAG 2.1 AA)
|
|
524
|
-
|
|
525
|
-
### ✅ Quality Gates
|
|
526
|
-
|
|
527
|
-
- **TDD for critical paths** (auth, payments, data transforms)
|
|
528
|
-
- **Test-alongside for simple code** (CRUD, UI components)
|
|
529
|
-
- **Max 3-4 retry iterations** before escalation
|
|
530
|
-
- **Integration validation** before connecting UI to API
|
|
531
|
-
- **Smart auto-proceed** (eliminate redundant confirmations, 25% faster)
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
## 🔧 CLI Commands
|
|
536
|
-
|
|
537
|
-
### `cak init`
|
|
538
|
-
Initialize agent system in current project
|
|
539
|
-
|
|
540
|
-
```bash
|
|
541
|
-
cak init
|
|
542
|
-
cak init --force # Overwrite existing .claude/
|
|
543
|
-
```
|
|
544
|
-
|
|
545
|
-
**Creates:**
|
|
546
|
-
- `.claude/` folder with 6 agents
|
|
547
|
-
- Slash commands (`/psetup`, `/csetup`, `/cdev`, etc.)
|
|
548
|
-
- Universal patterns & design foundation
|
|
549
|
-
|
|
550
|
-
---
|
|
551
|
-
|
|
552
|
-
### `cak update`
|
|
553
|
-
Update to latest agent templates
|
|
554
|
-
|
|
555
|
-
```bash
|
|
556
|
-
cak update
|
|
557
|
-
cak update --backup # Create .claude.backup/ first
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
**What it does:**
|
|
561
|
-
- Updates all template files to latest version
|
|
562
|
-
- Preserves your customizations in `domain/`
|
|
563
|
-
- Creates backup before updating (with `--backup` flag)
|
|
564
|
-
|
|
565
|
-
---
|
|
566
|
-
|
|
567
|
-
### `cak --version`
|
|
568
|
-
Show version number
|
|
569
|
-
|
|
570
|
-
```bash
|
|
571
|
-
cak --version
|
|
572
|
-
# → 1.0.0
|
|
573
|
-
```
|
|
574
|
-
|
|
575
|
-
---
|
|
576
|
-
|
|
577
|
-
### `cak --help`
|
|
578
|
-
Display help information
|
|
579
|
-
|
|
580
|
-
```bash
|
|
581
|
-
cak --help
|
|
582
|
-
```
|
|
583
|
-
|
|
584
|
-
---
|
|
585
|
-
|
|
586
|
-
## 🔄 Workflow Commands (in Claude Code)
|
|
587
|
-
|
|
588
|
-
### `/designsetup` - Generate style guide (one-time)
|
|
589
|
-
|
|
590
|
-
```bash
|
|
591
|
-
/designsetup
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
**Auto-detects from:**
|
|
595
|
-
1. `reference/` folder → Extract design from HTML/screenshots
|
|
596
|
-
2. Existing codebase → Reverse engineer patterns
|
|
597
|
-
3. AI generation → Modern best practices
|
|
598
|
-
|
|
599
|
-
**Creates:** `design-system/STYLE_GUIDE.md`
|
|
600
|
-
|
|
601
|
-
---
|
|
602
|
-
|
|
603
|
-
### `/pageplan` - Generate page plan (UI tasks only) 🆕
|
|
604
|
-
|
|
605
|
-
```bash
|
|
606
|
-
/pageplan @prd.md @project_brief.md
|
|
607
|
-
```
|
|
608
|
-
|
|
609
|
-
**What it does:**
|
|
610
|
-
- Reads user-specified files (PRD, brief)
|
|
611
|
-
- Reads `proposal.md` + `STYLE_GUIDE.md`
|
|
612
|
-
- Searches existing components
|
|
613
|
-
- AI drafts real content from PRD
|
|
614
|
-
- Generates asset checklist
|
|
615
|
-
|
|
616
|
-
**Creates:** `page-plan.md`
|
|
617
|
-
- Component reuse plan (🔄 Reuse vs ✅ New)
|
|
618
|
-
- Page structure (component hierarchy)
|
|
619
|
-
- Assets to prepare (images, icons)
|
|
620
|
-
- Content draft (headlines, descriptions)
|
|
621
|
-
|
|
622
|
-
---
|
|
623
|
-
|
|
624
|
-
### `/psetup` - Setup project (one-time)
|
|
625
|
-
|
|
626
|
-
```bash
|
|
627
|
-
/psetup
|
|
117
|
+
├── agents/ # 6 specialized agents
|
|
118
|
+
├── commands/ # Slash commands
|
|
119
|
+
└── contexts/ # Patterns & domain context
|
|
628
120
|
```
|
|
629
121
|
|
|
630
|
-
**What it does:**
|
|
631
|
-
- Detects tech stack (Next.js, React, Prisma, etc.)
|
|
632
|
-
- Creates `domain/{project}/README.md`
|
|
633
|
-
- Generates best practices via Context7 MCP
|
|
634
|
-
|
|
635
122
|
---
|
|
636
123
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
```bash
|
|
640
|
-
/csetup landing-page
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
**What it does:**
|
|
644
|
-
- Reads `proposal.md` (business context)
|
|
645
|
-
- Reads `tasks.md` (implementation checklist)
|
|
646
|
-
- Reads `page-plan.md` (if exists - UI content plan)
|
|
647
|
-
- Classifies tasks by agent
|
|
648
|
-
- Generates `workflow.md` (execution plan)
|
|
649
|
-
|
|
650
|
-
---
|
|
651
|
-
|
|
652
|
-
### `/cdev {change-id}` - Execute implementation
|
|
653
|
-
|
|
654
|
-
```bash
|
|
655
|
-
/cdev landing-page
|
|
656
|
-
|
|
657
|
-
# Or with explicit approval
|
|
658
|
-
"ลุยเลย" # Continue without confirmation prompts
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
**What it does:**
|
|
662
|
-
- Runs agents in phases (1 → 2 → 2.5 → 3 → 4)
|
|
663
|
-
- uxui-frontend auto-reads `page-plan.md` (STEP 0.5)
|
|
664
|
-
- **Auto-proceed:** Detects user approval ("continue", "ลุยเลย") and eliminates redundant confirmation prompts
|
|
665
|
-
- Updates `flags.json` (progress tracking)
|
|
666
|
-
- Reports completion status
|
|
667
|
-
|
|
668
|
-
**Auto-Proceed Feature:**
|
|
669
|
-
- When you say "continue", "proceed", "yes", or "ลุยเลย", Main Claude auto-responds to agent questions
|
|
670
|
-
- **50-90% fewer confirmations** (1x per workflow instead of 2x per phase)
|
|
671
|
-
- **25% faster execution** (no waiting for redundant approvals)
|
|
672
|
-
|
|
673
|
-
---
|
|
674
|
-
|
|
675
|
-
### `/cview {change-id}` - View detailed progress
|
|
676
|
-
|
|
677
|
-
```bash
|
|
678
|
-
/cview landing-page
|
|
679
|
-
```
|
|
124
|
+
## Key Features
|
|
680
125
|
|
|
681
|
-
**
|
|
682
|
-
-
|
|
683
|
-
-
|
|
684
|
-
-
|
|
685
|
-
-
|
|
126
|
+
- ✅ **6 Specialized Agents** - Each focused on its domain
|
|
127
|
+
- ✅ **Auto Best Practices** - Context7 MCP integration
|
|
128
|
+
- ✅ **Design System** - Consistent UI via tokens.json
|
|
129
|
+
- ✅ **Page Planning** - Component reuse, real content
|
|
130
|
+
- ✅ **Progress Tracking** - flags.json, /cstatus, /cview
|
|
131
|
+
- ✅ **Cross-Session Context** - PROJECT_STATUS.yml
|
|
686
132
|
|
|
687
133
|
---
|
|
688
134
|
|
|
689
|
-
|
|
135
|
+
## Workflow Example
|
|
690
136
|
|
|
691
137
|
```bash
|
|
692
|
-
|
|
693
|
-
# → Phase 2/4 - Backend Implementation (75%)
|
|
694
|
-
```
|
|
695
|
-
|
|
696
|
-
---
|
|
697
|
-
|
|
698
|
-
## 🎨 Design System Integration
|
|
138
|
+
# 1. OpenSpec creates: proposal.md + tasks.md
|
|
699
139
|
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
```bash
|
|
140
|
+
# 2. Setup (optional design + page plan)
|
|
703
141
|
/designsetup
|
|
704
|
-
```
|
|
705
|
-
|
|
706
|
-
**Detection priority:**
|
|
707
|
-
1. **reference/ folder** (HTML/screenshots) → Extract design style
|
|
708
|
-
2. **Existing codebase** (>10 components) → Reverse engineer patterns
|
|
709
|
-
3. **AI generation** → Modern best practices
|
|
710
|
-
|
|
711
|
-
**Output:** `design-system/STYLE_GUIDE.md`
|
|
712
|
-
|
|
713
|
-
**17 Comprehensive Sections:**
|
|
714
|
-
1. Overview
|
|
715
|
-
2. Design Philosophy
|
|
716
|
-
3. Color Palette (HEX codes, usage, Tailwind classes)
|
|
717
|
-
4. Typography (headings, body, weights)
|
|
718
|
-
5. Spacing System (4px/8px grid)
|
|
719
|
-
6. Component Styles (Button, Card, Input, Badge, etc.)
|
|
720
|
-
7. Shadows & Elevation
|
|
721
|
-
8. Animations & Transitions
|
|
722
|
-
9. Border Styles
|
|
723
|
-
10. Border Radius
|
|
724
|
-
11. Opacity & Transparency
|
|
725
|
-
12. Z-Index Layers
|
|
726
|
-
13. Responsive Breakpoints
|
|
727
|
-
14. CSS Variables / Tailwind Theme (Design Tokens)
|
|
728
|
-
15. Layout Patterns
|
|
729
|
-
16. Example Component Reference (React + Tailwind code)
|
|
730
|
-
17. Additional Sections (Best Practices, Accessibility, Icon System)
|
|
731
|
-
|
|
732
|
-
**Agents automatically use `STYLE_GUIDE.md` for:**
|
|
733
|
-
- Color palette (no hardcoded colors)
|
|
734
|
-
- Spacing scale (consistent gaps/padding)
|
|
735
|
-
- Typography (font hierarchy)
|
|
736
|
-
- Component patterns (reuse before create)
|
|
737
|
-
|
|
738
|
-
---
|
|
739
|
-
|
|
740
|
-
## 🧪 Testing Philosophy
|
|
741
|
-
|
|
742
|
-
**Agents follow TDD classification:**
|
|
743
|
-
|
|
744
|
-
| Code Type | Approach | Example |
|
|
745
|
-
|-----------|----------|---------|
|
|
746
|
-
| **Critical paths** | TDD (Red-Green-Refactor) | Auth logic, payments, calculations |
|
|
747
|
-
| **Simple code** | Test-alongside | CRUD, UI components, config |
|
|
748
|
-
|
|
749
|
-
**Test-debug agent:**
|
|
750
|
-
- Runs tests automatically after implementation
|
|
751
|
-
- Fixes bugs (max 3-4 iterations)
|
|
752
|
-
- Escalates if stuck (reports to user)
|
|
753
|
-
|
|
754
|
-
---
|
|
755
|
-
|
|
756
|
-
## 🔧 Supported Tech Stacks
|
|
757
|
-
|
|
758
|
-
Agents auto-detect your stack via Context7 MCP:
|
|
759
|
-
|
|
760
|
-
**Frontend:**
|
|
761
|
-
- Next.js, React, Vue, Svelte, Angular
|
|
762
|
-
|
|
763
|
-
**Backend:**
|
|
764
|
-
- FastAPI, Express, NestJS, Django, Flask, Next.js API Routes
|
|
765
|
-
|
|
766
|
-
**Database:**
|
|
767
|
-
- Prisma, SQLAlchemy, TypeORM, Drizzle
|
|
768
|
-
|
|
769
|
-
**Testing:**
|
|
770
|
-
- Vitest, Jest, Pytest, Playwright
|
|
771
|
-
|
|
772
|
-
---
|
|
773
|
-
|
|
774
|
-
## 📖 Usage Examples
|
|
775
|
-
|
|
776
|
-
### Example 1: Simple UI Task (with /pageplan)
|
|
777
|
-
|
|
778
|
-
```bash
|
|
779
|
-
# In Claude Code
|
|
780
|
-
"Build a user profile page with edit functionality"
|
|
781
|
-
|
|
782
|
-
# If it's a UI task, optionally run:
|
|
783
142
|
/pageplan @prd.md
|
|
784
143
|
|
|
785
|
-
#
|
|
786
|
-
/csetup
|
|
787
|
-
/cdev
|
|
788
|
-
```
|
|
144
|
+
# 3. Execute
|
|
145
|
+
/csetup my-feature
|
|
146
|
+
/cdev my-feature
|
|
789
147
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
2. Select agents: `uxui-frontend` → `backend` → `frontend` → `test-debug`
|
|
793
|
-
3. uxui-frontend reads `page-plan.md` (if exists)
|
|
794
|
-
4. Execute in sequence
|
|
795
|
-
5. Report completion
|
|
796
|
-
|
|
797
|
-
---
|
|
798
|
-
|
|
799
|
-
### Example 2: Complex Multi-Agent Workflow (OpenSpec)
|
|
800
|
-
|
|
801
|
-
Using OpenSpec workflow:
|
|
802
|
-
|
|
803
|
-
```bash
|
|
804
|
-
# 1. OpenSpec generates proposal + tasks
|
|
805
|
-
"I want to add a dashboard with analytics"
|
|
806
|
-
# → proposal.md + tasks.md created
|
|
807
|
-
|
|
808
|
-
# 2. Generate page plan
|
|
809
|
-
/pageplan @prd.md @analytics_spec.md
|
|
810
|
-
|
|
811
|
-
# 3. Setup change context
|
|
812
|
-
/csetup analytics-dashboard
|
|
813
|
-
|
|
814
|
-
# 4. Start development
|
|
815
|
-
/cdev analytics-dashboard
|
|
816
|
-
|
|
817
|
-
# 5. View progress
|
|
818
|
-
/cview analytics-dashboard
|
|
819
|
-
```
|
|
820
|
-
|
|
821
|
-
This follows a structured 4-phase approach:
|
|
822
|
-
1. **Phase 1:** UI with mock data (uxui-frontend reads page-plan.md)
|
|
823
|
-
2. **Phase 2:** Real API + database (backend + database)
|
|
824
|
-
3. **Phase 2.5:** Validate contracts (integration)
|
|
825
|
-
4. **Phase 3:** Connect UI to API (frontend)
|
|
826
|
-
5. **Phase 4:** Tests + bug fixes (test-debug)
|
|
827
|
-
|
|
828
|
-
---
|
|
829
|
-
|
|
830
|
-
## 🔄 Updating to Latest Version
|
|
831
|
-
|
|
832
|
-
### Method 1: Update the npm package
|
|
833
|
-
|
|
834
|
-
```bash
|
|
835
|
-
npm update -g @champpaba/claude-agent-kit
|
|
836
|
-
```
|
|
837
|
-
|
|
838
|
-
### Method 2: Update template in project
|
|
839
|
-
|
|
840
|
-
```bash
|
|
841
|
-
cd your-project
|
|
842
|
-
cak update --backup
|
|
148
|
+
# 4. Monitor
|
|
149
|
+
/cstatus my-feature
|
|
843
150
|
```
|
|
844
151
|
|
|
845
|
-
This will:
|
|
846
|
-
- Create backup at `.claude.backup/`
|
|
847
|
-
- Update all template files
|
|
848
|
-
- Preserve your customizations in `domain/`
|
|
849
|
-
|
|
850
152
|
---
|
|
851
153
|
|
|
852
|
-
##
|
|
154
|
+
## Changelog
|
|
853
155
|
|
|
854
|
-
###
|
|
156
|
+
### v2.1.0 (2025-12-01)
|
|
157
|
+
- Added `PROJECT_STATUS.yml` for cross-session context
|
|
158
|
+
- Added `/pstatus` command
|
|
159
|
+
- `/csetup` reads blockers from PROJECT_STATUS.yml
|
|
160
|
+
- `/cstatus` shows project + change status
|
|
855
161
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
```
|
|
162
|
+
### v2.0.0 (2025-11-30)
|
|
163
|
+
- Claude 4.5 optimization (61% token reduction)
|
|
164
|
+
- Design System v2.0 (tokens.json, selective patterns)
|
|
165
|
+
- All agents use Opus 4.5 model
|
|
861
166
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
167
|
+
### v1.8.0 (2025-11-26)
|
|
168
|
+
- Merged `/psetup` into `/csetup`
|
|
169
|
+
- Auto tech stack detection
|
|
170
|
+
- Auto best-practices from Context7
|
|
866
171
|
|
|
867
|
-
|
|
868
|
-
1. Cart review
|
|
869
|
-
2. Shipping address
|
|
870
|
-
3. Payment method
|
|
871
|
-
4. Order confirmation
|
|
872
|
-
|
|
873
|
-
## Business Rules
|
|
874
|
-
- Free shipping over $50
|
|
875
|
-
- Tax calculation by state
|
|
876
|
-
- Inventory check before payment
|
|
877
|
-
```
|
|
878
|
-
|
|
879
|
-
Agents will auto-discover and use these patterns.
|
|
172
|
+
[Full changelog in releases](https://github.com/ChampPABA/claude-multi-agent-template/releases)
|
|
880
173
|
|
|
881
174
|
---
|
|
882
175
|
|
|
883
|
-
##
|
|
176
|
+
## Links
|
|
884
177
|
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
| **OpenSpec** | Spec-driven planning | Reads `proposal.md` + `tasks.md` |
|
|
890
|
-
| **Context7 MCP** | Always-updated docs | Auto-generates best practices |
|
|
891
|
-
| **Claude Code** | AI coding assistant | Execution environment |
|
|
178
|
+
- [npm Package](https://www.npmjs.com/package/@champpaba/claude-agent-kit)
|
|
179
|
+
- [GitHub](https://github.com/ChampPABA/claude-multi-agent-template)
|
|
180
|
+
- [OpenSpec](https://github.com/Fission-AI/OpenSpec)
|
|
181
|
+
- [Issues](https://github.com/ChampPABA/claude-multi-agent-template/issues)
|
|
892
182
|
|
|
893
183
|
---
|
|
894
184
|
|
|
895
|
-
##
|
|
896
|
-
|
|
897
|
-
We welcome contributions!
|
|
898
|
-
|
|
899
|
-
- Report bugs: [GitHub Issues](https://github.com/ChampPABA/claude-multi-agent-template/issues)
|
|
900
|
-
- Feature requests: [Discussions](https://github.com/ChampPABA/claude-multi-agent-template/discussions)
|
|
901
|
-
- Pull requests: Follow [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
902
|
-
|
|
903
|
-
---
|
|
904
|
-
|
|
905
|
-
## 📄 License
|
|
185
|
+
## License
|
|
906
186
|
|
|
907
187
|
MIT License - see [LICENSE](LICENSE)
|
|
908
188
|
|
|
909
189
|
---
|
|
910
190
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
Built with:
|
|
914
|
-
- [OpenSpec](https://github.com/Fission-AI/OpenSpec) - Spec-driven development framework
|
|
915
|
-
- [Claude Code](https://claude.com/claude-code) - AI coding assistant
|
|
916
|
-
- [Context7 MCP](https://context7.com) - Always up-to-date library docs
|
|
917
|
-
|
|
918
|
-
---
|
|
919
|
-
|
|
920
|
-
## 🆕 What's New in v2.0.0
|
|
921
|
-
|
|
922
|
-
**Major Release: Design System v2.0.0 - Interactive Setup & Smart Page Planning** 🎨
|
|
923
|
-
|
|
924
|
-
### Complete Design System Overhaul
|
|
925
|
-
|
|
926
|
-
**Problem Solved:**
|
|
927
|
-
- Before: One massive STYLE_GUIDE.md loaded everywhere (~5000 tokens)
|
|
928
|
-
- Before: No theme direction, random decorations
|
|
929
|
-
- Before: Same patterns loaded for landing pages AND dashboards
|
|
930
|
-
- Before: Manual style selection with no recommendations
|
|
931
|
-
|
|
932
|
-
**Solution Implemented:**
|
|
933
|
-
- ✅ `/extract` - Extract design from multiple reference sites
|
|
934
|
-
- ✅ `/designsetup` - Interactive 3-round loop with theme recommendations
|
|
935
|
-
- ✅ `tokens.json` - Smart design tokens with style/theme/animations (~800 tokens)
|
|
936
|
-
- ✅ `patterns/*.md` - Selective code patterns based on page type
|
|
937
|
-
- ✅ Auto page type detection (landing/dashboard/auth)
|
|
938
|
-
|
|
939
|
-
**Results:**
|
|
940
|
-
- **84% token reduction** (~800 vs ~5000 tokens)
|
|
941
|
-
- **Theme consistency** (USE/AVOID decorations enforced)
|
|
942
|
-
- **Smart patterns** (only load what's needed per page type)
|
|
943
|
-
- **Interactive setup** (AI recommends, user confirms)
|
|
944
|
-
|
|
945
|
-
### New Flow
|
|
946
|
-
|
|
947
|
-
```
|
|
948
|
-
/extract https://site.com → .claude/extractions/*.json
|
|
949
|
-
↓
|
|
950
|
-
/designsetup @prd.md → tokens.json + patterns/*.md + STYLE_GUIDE.md
|
|
951
|
-
↓
|
|
952
|
-
/pageplan @prd.md → page-plan.md (auto-detects page type)
|
|
953
|
-
↓
|
|
954
|
-
/csetup → phases.md (reads page-plan.md)
|
|
955
|
-
↓
|
|
956
|
-
/cdev → uxui-frontend (loads patterns selectively)
|
|
957
|
-
```
|
|
958
|
-
|
|
959
|
-
### Page Type Auto-Detection
|
|
960
|
-
|
|
961
|
-
| Page Type | Decorations | Scroll Anims | Buyer Avatar | Patterns Loaded |
|
|
962
|
-
|-----------|-------------|--------------|--------------|-----------------|
|
|
963
|
-
| Landing/Marketing | ✅ Full | ✅ Enabled | ✅ Enabled | buttons, cards, scroll-anims, decorations |
|
|
964
|
-
| Dashboard/Admin | ❌ Minimal | ❌ Disabled | ❌ Skipped | buttons, cards, forms |
|
|
965
|
-
| Auth (Login/Register) | ❌ None | ❌ Disabled | ❌ Skipped | buttons, forms |
|
|
966
|
-
|
|
967
|
-
### New Features
|
|
968
|
-
|
|
969
|
-
**`/extract` command:**
|
|
970
|
-
- Multi-URL support (extract from multiple sites)
|
|
971
|
-
- Style detection (Neo-Brutalism, Minimalist, Glassmorphism, Modern SaaS)
|
|
972
|
-
- Animation library detection (GSAP, ScrollTrigger, Framer Motion)
|
|
973
|
-
- Scroll pattern detection (stacking-cards, parallax, fade-in)
|
|
974
|
-
- Decorative element detection (blobs, gradients, 3D elements)
|
|
975
|
-
|
|
976
|
-
**`/designsetup` v2.0.0:**
|
|
977
|
-
- Interactive 3-round loop (Present → Feedback → Adjust)
|
|
978
|
-
- Verbose style options with match scores
|
|
979
|
-
- AI recommends themes based on project context
|
|
980
|
-
- USE/AVOID decorative direction
|
|
981
|
-
|
|
982
|
-
**`tokens.json` v2.0.0:**
|
|
983
|
-
- `style` - Detected design style with confidence
|
|
984
|
-
- `theme` - Theme name, feeling, decorative direction
|
|
985
|
-
- `animations` - Libraries, patterns, component animations
|
|
986
|
-
- `patterns_index` - References to pattern files
|
|
987
|
-
|
|
988
|
-
**`patterns/*.md` files:**
|
|
989
|
-
- `buttons.md` - Button patterns (primary, secondary, ghost, sizes, states)
|
|
990
|
-
- `cards.md` - Card patterns (default, interactive, feature, pricing)
|
|
991
|
-
- `forms.md` - Form patterns (input, error state, select, checkbox)
|
|
992
|
-
- `scroll-animations.md` - Scroll animation patterns
|
|
993
|
-
- `decorations.md` - Decorative elements (gradients, blobs, grids)
|
|
994
|
-
|
|
995
|
-
### Upgrading to v2.0.0
|
|
996
|
-
|
|
997
|
-
```bash
|
|
998
|
-
# Update npm package
|
|
999
|
-
npm update -g @champpaba/claude-agent-kit
|
|
1000
|
-
|
|
1001
|
-
# Update template in your project
|
|
1002
|
-
cd your-project
|
|
1003
|
-
cak update --backup
|
|
1004
|
-
|
|
1005
|
-
# Generate new design system
|
|
1006
|
-
/extract https://your-reference.com # Optional
|
|
1007
|
-
/designsetup @prd.md
|
|
1008
|
-
```
|
|
1009
|
-
|
|
1010
|
-
**Breaking Changes:**
|
|
1011
|
-
- `STYLE_TOKENS.json` → `tokens.json` (new structure)
|
|
1012
|
-
- `STYLE_GUIDE.md` no longer contains code (moved to `patterns/*.md`)
|
|
1013
|
-
- Commands read `tokens.json` instead of `STYLE_TOKENS.json`
|
|
1014
|
-
|
|
1015
|
-
All your customizations in `.claude/contexts/domain/` are preserved!
|
|
1016
|
-
|
|
1017
|
-
---
|
|
1018
|
-
|
|
1019
|
-
## 📜 Changelog
|
|
1020
|
-
|
|
1021
|
-
### v2.0.0 (2025-01-28)
|
|
1022
|
-
**Major: Design System v2.0.0 - Interactive Setup & Smart Page Planning**
|
|
1023
|
-
|
|
1024
|
-
**Added:**
|
|
1025
|
-
- `/extract` command - Multi-URL design extraction with style/animation detection
|
|
1026
|
-
- Interactive `/designsetup` - 3-round loop with theme recommendations
|
|
1027
|
-
- `tokens.json` v2.0.0 - Enhanced design tokens with style/theme/animations (~800 tokens)
|
|
1028
|
-
- `patterns/*.md` files - Selective code patterns (buttons, cards, forms, scroll-animations, decorations)
|
|
1029
|
-
- Auto page type detection in `/pageplan` (landing/dashboard/auth)
|
|
1030
|
-
|
|
1031
|
-
**Changed:**
|
|
1032
|
-
- `STYLE_TOKENS.json` → `tokens.json` (new structure)
|
|
1033
|
-
- `STYLE_GUIDE.md` - Human-readable only, code moved to patterns/*.md
|
|
1034
|
-
- `/csetup` - Reads tokens.json + page-plan.md
|
|
1035
|
-
|
|
1036
|
-
**Performance:**
|
|
1037
|
-
- 84% token reduction (~800 vs ~5000 tokens)
|
|
1038
|
-
- Selective pattern loading based on page type
|
|
1039
|
-
- Theme consistency with USE/AVOID decorations
|
|
1040
|
-
|
|
1041
|
-
**Breaking Changes:**
|
|
1042
|
-
- `STYLE_TOKENS.json` renamed to `tokens.json`
|
|
1043
|
-
- `STYLE_GUIDE.md` no longer contains code
|
|
1044
|
-
- Commands read `tokens.json` instead of `STYLE_TOKENS.json`
|
|
1045
|
-
|
|
1046
|
-
### v1.6.0 (2025-01-27)
|
|
1047
|
-
**Feature: Page Plan Enhancement - Buyer Avatar & Conversion Copy**
|
|
1048
|
-
|
|
1049
|
-
### v1.5.1 (2025-01-26)
|
|
1050
|
-
**Patch: Git Compatibility Fix**
|
|
1051
|
-
|
|
1052
|
-
### v1.5.0 (2025-01-25)
|
|
1053
|
-
**Feature: Minor Improvements**
|
|
1054
|
-
|
|
1055
|
-
### v1.4.1 (2025-11-06)
|
|
1056
|
-
**Feature: Intelligent Auto-Proceed**
|
|
1057
|
-
|
|
1058
|
-
### v1.4.0 (2025-11-05)
|
|
1059
|
-
**Major: Context Optimization & DRY Consolidation**
|
|
1060
|
-
|
|
1061
|
-
### v1.3.0 (2025-10-30)
|
|
1062
|
-
**Feature: TaskMaster-style Intelligent Task Analysis**
|
|
1063
|
-
|
|
1064
|
-
**Added:**
|
|
1065
|
-
- 6-dimension task analysis in `/csetup`:
|
|
1066
|
-
- Complexity scoring (1-10)
|
|
1067
|
-
- Dependency detection (auto-detects blocks/blocked-by)
|
|
1068
|
-
- Risk assessment (LOW/MEDIUM/HIGH with mitigation)
|
|
1069
|
-
- Research requirements (auto-generates queries)
|
|
1070
|
-
- Subtask breakdown (complex tasks → smaller steps)
|
|
1071
|
-
- Priority ranking (CRITICAL → LOW, scored 0-100)
|
|
1072
|
-
- Task analyzer implementation: `.claude/lib/task-analyzer.md`
|
|
1073
|
-
- Enhanced phases.md with metadata, time buffers, research phases
|
|
1074
|
-
|
|
1075
|
-
**Improved:**
|
|
1076
|
-
- Time estimates with automatic buffers (+41% average)
|
|
1077
|
-
- Research phases auto-added for new tech/libraries
|
|
1078
|
-
- Dependency order in workflow execution
|
|
1079
|
-
- Risk mitigation strategies per task
|
|
1080
|
-
|
|
1081
|
-
**Inspired by:** [claude-task-master](https://github.com/eyaltoledano/claude-task-master)
|
|
1082
|
-
|
|
1083
|
-
### v1.2.0 (2025-10-27)
|
|
1084
|
-
**Feature: Context Optimization - 70% Token Reduction**
|
|
1085
|
-
|
|
1086
|
-
**Added:**
|
|
1087
|
-
- 3-tier loading strategy: STYLE_TOKENS.json (500) → design-context.md (1K) → STYLE_GUIDE.md (5K)
|
|
1088
|
-
- Document loader protocol: `.claude/lib/document-loader.md`
|
|
1089
|
-
- Lightweight design tokens: `design-system/STYLE_TOKENS.json`
|
|
1090
|
-
|
|
1091
|
-
**Improved:**
|
|
1092
|
-
- Token usage: ~20K → ~4.7K (70% reduction for design system)
|
|
1093
|
-
- Speed: 3-4x faster command execution
|
|
1094
|
-
- Consistency: Enforced design tokens, no random colors
|
|
1095
|
-
|
|
1096
|
-
### v1.1.1 (2025-10-25)
|
|
1097
|
-
**Patch: Minor Fixes**
|
|
1098
|
-
|
|
1099
|
-
**Fixed:**
|
|
1100
|
-
- Template path correction: `template/.claude` → `.claude`
|
|
1101
|
-
- Documentation typos and formatting
|
|
1102
|
-
|
|
1103
|
-
### v1.1.0 (2025-10-24)
|
|
1104
|
-
**Feature: Enhanced Implementation Logic**
|
|
1105
|
-
|
|
1106
|
-
**Added:**
|
|
1107
|
-
- Implementation logic overview: `lib/README.md`
|
|
1108
|
-
- Agent executor with retry & escalation: `lib/agent-executor.md`
|
|
1109
|
-
- TDD classifier logic: `lib/tdd-classifier.md`
|
|
1110
|
-
- Progress tracking protocol: `lib/flags-updater.md`
|
|
1111
|
-
- Mandatory agent routing: `lib/agent-router.md`
|
|
1112
|
-
- Shared agent discovery flow: `contexts/patterns/agent-discovery.md`
|
|
1113
|
-
|
|
1114
|
-
### v1.0.0 (2025-10-20)
|
|
1115
|
-
**Initial Release: Multi-Agent Template**
|
|
1116
|
-
|
|
1117
|
-
**Core Features:**
|
|
1118
|
-
- 6 specialized agents (integration, uxui-frontend, test-debug, frontend, backend, database)
|
|
1119
|
-
- OpenSpec integration (`/csetup`, `/cdev`, `/cview`, `/cstatus`)
|
|
1120
|
-
- Auto-generated best practices via Context7 MCP
|
|
1121
|
-
- 3-level project indexing (domain → project → best-practices)
|
|
1122
|
-
- Design foundation (color theory, spacing, typography)
|
|
1123
|
-
- `/designsetup` command (auto-generate style guide)
|
|
1124
|
-
- `/pageplan` command (UI content & component planning)
|
|
1125
|
-
- Universal patterns (logging, testing, error-handling, TDD)
|
|
1126
|
-
- CLI: `cak init`, `cak update`
|
|
1127
|
-
|
|
1128
|
-
---
|
|
1129
|
-
|
|
1130
|
-
## 🔗 Links
|
|
1131
|
-
|
|
1132
|
-
- **npm Package:** https://www.npmjs.com/package/@champpaba/claude-agent-kit
|
|
1133
|
-
- **GitHub:** https://github.com/ChampPABA/claude-multi-agent-template
|
|
1134
|
-
- **OpenSpec:** https://github.com/Fission-AI/OpenSpec
|
|
1135
|
-
- **Issues:** https://github.com/ChampPABA/claude-multi-agent-template/issues
|
|
1136
|
-
|
|
1137
|
-
---
|
|
1138
|
-
|
|
1139
|
-
## 💡 Quick Tips
|
|
1140
|
-
|
|
1141
|
-
1. **Run `/designsetup` FIRST** - Ensures visual consistency from day 1
|
|
1142
|
-
2. **Use `/pageplan` for UI tasks** - 25% faster implementation, better content
|
|
1143
|
-
3. **Review `page-plan.md` before `/cdev`** - Edit content, prepare assets
|
|
1144
|
-
4. **Setup Context7 MCP** - Agents get latest framework docs automatically
|
|
1145
|
-
5. **Use OpenSpec for complex features** - Better alignment before implementation
|
|
1146
|
-
6. **Monitor with `/cview`** - See exactly what agents are doing
|
|
1147
|
-
7. **Always use `--backup` when updating** - Protects your customizations
|
|
1148
|
-
|
|
1149
|
-
---
|
|
1150
|
-
|
|
1151
|
-
## 📋 Complete Flow Summary
|
|
1152
|
-
|
|
1153
|
-
```
|
|
1154
|
-
1️⃣ OpenSpec Planning
|
|
1155
|
-
→ proposal.md + tasks.md
|
|
1156
|
-
|
|
1157
|
-
2️⃣ Generate Style Guide (one-time)
|
|
1158
|
-
/designsetup
|
|
1159
|
-
→ STYLE_GUIDE.md
|
|
1160
|
-
|
|
1161
|
-
3️⃣ Setup Project (one-time)
|
|
1162
|
-
/psetup
|
|
1163
|
-
→ domain/{project}/best-practices/
|
|
1164
|
-
|
|
1165
|
-
4️⃣ Generate Page Plan (UI tasks only)
|
|
1166
|
-
/pageplan @prd.md
|
|
1167
|
-
→ page-plan.md (content + component plan)
|
|
1168
|
-
|
|
1169
|
-
5️⃣ Setup Change Context
|
|
1170
|
-
/csetup {change-id}
|
|
1171
|
-
→ workflow.md
|
|
1172
|
-
|
|
1173
|
-
6️⃣ Execute Implementation
|
|
1174
|
-
/cdev {change-id}
|
|
1175
|
-
→ Working code + tests
|
|
1176
|
-
|
|
1177
|
-
7️⃣ Monitor Progress
|
|
1178
|
-
/cview {change-id}
|
|
1179
|
-
→ Detailed progress report
|
|
1180
|
-
|
|
1181
|
-
8️⃣ OpenSpec Archive & Update
|
|
1182
|
-
→ Merge to specs/
|
|
1183
|
-
```
|
|
1184
|
-
|
|
1185
|
-
---
|
|
1186
|
-
|
|
1187
|
-
**Ready to implement with confidence?** 🚀
|
|
191
|
+
**Ready to start?**
|
|
1188
192
|
|
|
1189
193
|
```bash
|
|
1190
|
-
# Install globally
|
|
1191
194
|
npm install -g @champpaba/claude-agent-kit
|
|
1192
|
-
|
|
1193
|
-
# Initialize in your project
|
|
1194
195
|
cd your-project
|
|
1195
196
|
cak init
|
|
1196
|
-
|
|
1197
|
-
# Setup project context
|
|
1198
|
-
/psetup
|
|
1199
|
-
|
|
1200
|
-
# Generate style guide (optional but recommended)
|
|
1201
|
-
/designsetup
|
|
1202
|
-
|
|
1203
|
-
# Start building (after OpenSpec planning)
|
|
1204
|
-
/pageplan @prd.md # UI tasks only
|
|
1205
|
-
/csetup your-feature
|
|
1206
|
-
/cdev your-feature
|
|
1207
197
|
```
|
|
1208
|
-
|
|
1209
|
-
Let specialized agents handle implementation while you focus on specs and architecture!
|