@champpaba/claude-agent-kit 1.1.0 → 1.4.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-v1.1.1.md +259 -0
- package/.claude/CLAUDE.md +163 -0
- package/.claude/agents/01-integration.md +651 -0
- package/.claude/agents/02-uxui-frontend.md +809 -0
- package/.claude/agents/03-test-debug.md +616 -0
- package/.claude/agents/04-frontend.md +671 -0
- package/.claude/agents/05-backend.md +767 -0
- package/.claude/agents/06-database.md +817 -0
- package/.claude/commands/agentsetup.md +1464 -0
- package/.claude/commands/cdev.md +412 -0
- package/.claude/commands/csetup.md +760 -0
- package/.claude/commands/cstatus.md +60 -0
- package/.claude/commands/cview.md +364 -0
- package/.claude/commands/designsetup.md +1169 -0
- package/.claude/commands/extract.md +1005 -0
- package/.claude/commands/pageplan.md +357 -0
- package/.claude/commands/psetup.md +101 -0
- package/.claude/contexts/design/accessibility.md +611 -0
- package/.claude/contexts/design/box-thinking.md +566 -0
- package/.claude/contexts/design/color-theory.md +519 -0
- package/.claude/contexts/design/index.md +290 -0
- package/.claude/contexts/design/layout.md +400 -0
- package/.claude/contexts/design/responsive.md +551 -0
- package/.claude/contexts/design/shadows.md +522 -0
- package/.claude/contexts/design/spacing.md +445 -0
- package/.claude/contexts/design/typography.md +465 -0
- package/.claude/contexts/domain/README.md +164 -0
- package/.claude/contexts/patterns/agent-coordination.md +388 -0
- package/.claude/contexts/patterns/agent-discovery.md +182 -0
- package/.claude/contexts/patterns/change-workflow.md +538 -0
- package/.claude/contexts/patterns/code-standards.md +515 -0
- package/.claude/contexts/patterns/development-principles.md +513 -0
- package/.claude/contexts/patterns/error-handling.md +478 -0
- package/.claude/contexts/patterns/error-recovery.md +365 -0
- package/.claude/contexts/patterns/frontend-component-strategy.md +365 -0
- package/.claude/contexts/patterns/git-workflow.md +207 -0
- package/.claude/contexts/patterns/logging.md +424 -0
- package/.claude/contexts/patterns/task-breakdown.md +452 -0
- package/.claude/contexts/patterns/task-classification.md +523 -0
- package/.claude/contexts/patterns/tdd-classification.md +516 -0
- package/.claude/contexts/patterns/testing.md +413 -0
- package/.claude/contexts/patterns/ui-component-consistency.md +304 -0
- package/.claude/contexts/patterns/validation-framework.md +776 -0
- package/.claude/lib/README.md +81 -0
- package/.claude/lib/agent-executor.md +258 -0
- package/.claude/lib/agent-router.md +572 -0
- package/.claude/lib/context-loading-protocol.md +462 -0
- package/.claude/lib/detailed-guides/agent-system.md +237 -0
- package/.claude/lib/detailed-guides/best-practices-system.md +150 -0
- package/.claude/lib/detailed-guides/context-optimization.md +118 -0
- package/.claude/lib/detailed-guides/design-system.md +98 -0
- package/.claude/lib/detailed-guides/page-planning.md +147 -0
- package/.claude/lib/detailed-guides/taskmaster-analysis.md +263 -0
- package/.claude/lib/document-loader.md +353 -0
- package/.claude/lib/flags-updater.md +469 -0
- package/.claude/lib/handoff-protocol.md +665 -0
- package/.claude/lib/task-analyzer.md +694 -0
- package/.claude/lib/tdd-classifier.md +345 -0
- package/.claude/lib/tdd-workflow.md +891 -0
- package/.claude/lib/validation-gates.md +484 -0
- package/.claude/settings.local.json +42 -0
- package/.claude/templates/STYLE_GUIDE.template.md +879 -0
- package/.claude/templates/context-template.md +45 -0
- package/.claude/templates/design-context-template.md +220 -0
- package/.claude/templates/flags-template.json +42 -0
- package/.claude/templates/page-plan-example.md +562 -0
- package/.claude/templates/phase-templates.json +124 -0
- package/.claude/templates/phases-sections/accessibility-test.md +17 -0
- package/.claude/templates/phases-sections/api-design.md +37 -0
- package/.claude/templates/phases-sections/backend-tests.md +16 -0
- package/.claude/templates/phases-sections/backend.md +37 -0
- package/.claude/templates/phases-sections/business-logic-validation.md +16 -0
- package/.claude/templates/phases-sections/component-tests.md +17 -0
- package/.claude/templates/phases-sections/contract-backend.md +16 -0
- package/.claude/templates/phases-sections/contract-frontend.md +16 -0
- package/.claude/templates/phases-sections/database.md +35 -0
- package/.claude/templates/phases-sections/documentation.md +17 -0
- package/.claude/templates/phases-sections/e2e-tests.md +16 -0
- package/.claude/templates/phases-sections/fix-implementation.md +17 -0
- package/.claude/templates/phases-sections/frontend-integration.md +18 -0
- package/.claude/templates/phases-sections/frontend-mockup.md +123 -0
- package/.claude/templates/phases-sections/manual-flow-test.md +15 -0
- package/.claude/templates/phases-sections/manual-ux-test.md +16 -0
- package/.claude/templates/phases-sections/refactor-implementation.md +17 -0
- package/.claude/templates/phases-sections/refactor.md +16 -0
- package/.claude/templates/phases-sections/regression-tests.md +15 -0
- package/.claude/templates/phases-sections/report.md +16 -0
- package/.claude/templates/phases-sections/responsive-test.md +16 -0
- package/.claude/templates/phases-sections/script-implementation.md +43 -0
- package/.claude/templates/phases-sections/test-coverage.md +16 -0
- package/.claude/templates/phases-sections/user-approval.md +14 -0
- package/README.md +191 -0
- package/lib/init.js +1 -1
- package/lib/update.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# Changelog v1.1.1 - Critical Fixes
|
|
2
|
+
|
|
3
|
+
> **Release Date:** 2025-10-31
|
|
4
|
+
> **Type:** Bug fixes and enforcement improvements
|
|
5
|
+
> **Status:** Production-ready
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Problem Statement
|
|
10
|
+
|
|
11
|
+
Two critical issues identified in real-world usage:
|
|
12
|
+
|
|
13
|
+
1. **Main Agent Not Updating flags.json**
|
|
14
|
+
- Users couldn't track progress
|
|
15
|
+
- flags.json rarely updated after phase completion
|
|
16
|
+
- ~30% update rate (should be 100%)
|
|
17
|
+
|
|
18
|
+
2. **Main Agent Doing Work Directly**
|
|
19
|
+
- Implementation work not delegated to specialized agents
|
|
20
|
+
- Only ~60% proper delegation rate (should be 95%+)
|
|
21
|
+
- Lost benefits of specialized agents
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 🔧 Solutions Implemented
|
|
26
|
+
|
|
27
|
+
### ✅ Solution 1: Mandatory Progress Tracking
|
|
28
|
+
|
|
29
|
+
**New File:** `.claude/lib/flags-updater.md`
|
|
30
|
+
|
|
31
|
+
**What it does:**
|
|
32
|
+
- Defines WHO updates flags.json: Main Claude (NOT sub-agents)
|
|
33
|
+
- Defines WHEN: Immediately after sub-agent completes
|
|
34
|
+
- Defines HOW: Exact implementation with helper functions
|
|
35
|
+
- Provides parsing utilities for extracting files, tasks, duration
|
|
36
|
+
|
|
37
|
+
**Key Features:**
|
|
38
|
+
```typescript
|
|
39
|
+
updateFlagsAfterPhase(changeId, phaseName, agentResponse)
|
|
40
|
+
→ Extracts files created/modified
|
|
41
|
+
→ Calculates actual duration
|
|
42
|
+
→ Updates meta statistics (progress %, time remaining)
|
|
43
|
+
→ Moves to next phase
|
|
44
|
+
→ Reports to user
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Enforcement:**
|
|
48
|
+
- Updated `/cdev` Step 5 to REQUIRE flags update
|
|
49
|
+
- Added to CLAUDE.md as mandatory protocol
|
|
50
|
+
- No exceptions allowed
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### ✅ Solution 2: Mandatory Agent Routing
|
|
55
|
+
|
|
56
|
+
**New File:** `.claude/lib/agent-router.md`
|
|
57
|
+
|
|
58
|
+
**What it does:**
|
|
59
|
+
- Defines strict agent boundaries
|
|
60
|
+
- Provides work type detection patterns
|
|
61
|
+
- Enforces delegation for implementation work
|
|
62
|
+
- Includes self-check protocol for Main Claude
|
|
63
|
+
|
|
64
|
+
**Key Features:**
|
|
65
|
+
```typescript
|
|
66
|
+
WORK_PATTERNS = {
|
|
67
|
+
'ui-component': { agent: 'uxui-frontend', canMainDo: false },
|
|
68
|
+
'api-endpoint': { agent: 'backend', canMainDo: false },
|
|
69
|
+
'database-work': { agent: 'database', canMainDo: false },
|
|
70
|
+
'api-integration': { agent: 'frontend', canMainDo: false },
|
|
71
|
+
'testing-debugging': { agent: 'test-debug', canMainDo: false },
|
|
72
|
+
'planning': { agent: 'main-claude', canMainDo: true }
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Enforcement:**
|
|
77
|
+
- Added self-check checklist to CLAUDE.md
|
|
78
|
+
- Main Claude MUST complete before any work
|
|
79
|
+
- Override protection (even if user says "do it yourself")
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### ✅ Solution 3: Validation Gates
|
|
84
|
+
|
|
85
|
+
**New File:** `.claude/lib/validation-gates.md`
|
|
86
|
+
|
|
87
|
+
**What it does:**
|
|
88
|
+
- Four checkpoints Main Claude MUST pass:
|
|
89
|
+
1. **Before work** - Ensure correct routing
|
|
90
|
+
2. **After agent responds** - Validate agent output
|
|
91
|
+
3. **Before reporting** - Ensure flags.json updated
|
|
92
|
+
4. **Before phase start** - Check phase readiness
|
|
93
|
+
|
|
94
|
+
**Key Benefits:**
|
|
95
|
+
- Catch errors early
|
|
96
|
+
- Ensure quality at each step
|
|
97
|
+
- Provide clear error messages
|
|
98
|
+
- Enable automatic recovery
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 📝 Files Changed
|
|
103
|
+
|
|
104
|
+
### New Files (3)
|
|
105
|
+
```
|
|
106
|
+
.claude/lib/
|
|
107
|
+
├── flags-updater.md (NEW - 450 lines)
|
|
108
|
+
├── agent-router.md (NEW - 500 lines)
|
|
109
|
+
└── validation-gates.md (NEW - 400 lines)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Modified Files (3)
|
|
113
|
+
```
|
|
114
|
+
.claude/
|
|
115
|
+
├── CLAUDE.md (MODIFIED - Added self-check protocol)
|
|
116
|
+
├── lib/README.md (MODIFIED - Added new file descriptions)
|
|
117
|
+
└── commands/cdev.md (MODIFIED - Step 5 now mandatory flags update)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 📊 Expected Impact
|
|
123
|
+
|
|
124
|
+
### Metric 1: flags.json Update Rate
|
|
125
|
+
- **Before:** ~30%
|
|
126
|
+
- **After:** 100%
|
|
127
|
+
- **How:** Mandatory update in /cdev Step 5
|
|
128
|
+
|
|
129
|
+
### Metric 2: Agent Delegation Rate
|
|
130
|
+
- **Before:** ~60%
|
|
131
|
+
- **After:** 95%+
|
|
132
|
+
- **How:** Self-check protocol + work type detection
|
|
133
|
+
|
|
134
|
+
### Metric 3: User Visibility
|
|
135
|
+
- **Before:** Must run `/cstatus` manually
|
|
136
|
+
- **After:** Auto-reported after every phase
|
|
137
|
+
- **How:** Progress report in flags-updater protocol
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 🎯 Breaking Changes
|
|
142
|
+
|
|
143
|
+
**None** - All changes are additive:
|
|
144
|
+
- New files add protocols
|
|
145
|
+
- Existing files enhanced (not breaking)
|
|
146
|
+
- Backward compatible with v1.1.0
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## ✅ Migration Guide
|
|
151
|
+
|
|
152
|
+
**No migration needed** - Changes are effective immediately:
|
|
153
|
+
|
|
154
|
+
1. **For existing projects:**
|
|
155
|
+
- Templates automatically use new protocols
|
|
156
|
+
- Next `/cdev` run will use updated Step 5
|
|
157
|
+
- Main Claude will read new CLAUDE.md instructions
|
|
158
|
+
|
|
159
|
+
2. **For in-progress changes:**
|
|
160
|
+
- Continue current phase normally
|
|
161
|
+
- New protocols apply from next `/cdev` invocation
|
|
162
|
+
- flags.json will start updating correctly
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 🔍 Testing Checklist
|
|
167
|
+
|
|
168
|
+
Before considering this release complete, verify:
|
|
169
|
+
|
|
170
|
+
- [ ] `/cdev` updates flags.json after phase completion
|
|
171
|
+
- [ ] Main Claude delegates implementation work (not doing it directly)
|
|
172
|
+
- [ ] Progress reported to user automatically
|
|
173
|
+
- [ ] Self-check protocol appears in Main Claude output
|
|
174
|
+
- [ ] Validation gates catch common errors
|
|
175
|
+
- [ ] `/cview` and `/cstatus` show accurate data
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 📚 Documentation Updates
|
|
180
|
+
|
|
181
|
+
### CLAUDE.md
|
|
182
|
+
- Added "Main Claude Self-Check Protocol" section
|
|
183
|
+
- Links to agent-router.md for complete routing rules
|
|
184
|
+
- Lists new lib/ files in Quick Navigation
|
|
185
|
+
|
|
186
|
+
### cdev.md
|
|
187
|
+
- Step 5 completely rewritten
|
|
188
|
+
- Now REQUIRES flags.json update
|
|
189
|
+
- Shows exact execution order
|
|
190
|
+
- Includes common mistake examples
|
|
191
|
+
|
|
192
|
+
### lib/README.md
|
|
193
|
+
- Added descriptions for 3 new files
|
|
194
|
+
- Explains purpose of each
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 🚀 Future Enhancements (Not in v1.1.1)
|
|
199
|
+
|
|
200
|
+
**Phase 2 Candidates:**
|
|
201
|
+
- Automated testing of validation gates
|
|
202
|
+
- Progress visualization in terminal
|
|
203
|
+
- Metrics dashboard for delegation rate
|
|
204
|
+
- Agent performance profiling
|
|
205
|
+
|
|
206
|
+
**Phase 3 Candidates:**
|
|
207
|
+
- LLM-based validation (use Claude to validate Claude)
|
|
208
|
+
- Predictive time estimation
|
|
209
|
+
- Automatic recovery from common errors
|
|
210
|
+
- Multi-change parallel execution
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 🙏 Acknowledgments
|
|
215
|
+
|
|
216
|
+
Issues identified through:
|
|
217
|
+
- Real-world usage testing
|
|
218
|
+
- User feedback on progress tracking
|
|
219
|
+
- Analysis of Main Agent behavior patterns
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## 📞 Support
|
|
224
|
+
|
|
225
|
+
**Issues with v1.1.1?**
|
|
226
|
+
1. Check validation gate error messages
|
|
227
|
+
2. Verify flags.json exists and is valid JSON
|
|
228
|
+
3. Review Main Claude output for self-check protocol
|
|
229
|
+
4. Open issue with details
|
|
230
|
+
|
|
231
|
+
**Questions?**
|
|
232
|
+
- Read: `.claude/lib/flags-updater.md`
|
|
233
|
+
- Read: `.claude/lib/agent-router.md`
|
|
234
|
+
- Read: `.claude/lib/validation-gates.md`
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
**Version:** 1.1.1
|
|
239
|
+
**Previous:** 1.1.0
|
|
240
|
+
**Next:** TBD (based on feedback)
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 🎯 Quick Reference
|
|
245
|
+
|
|
246
|
+
**Problem 1: flags.json not updated**
|
|
247
|
+
→ Solution: `.claude/lib/flags-updater.md`
|
|
248
|
+
→ Enforced by: `/cdev` Step 5
|
|
249
|
+
|
|
250
|
+
**Problem 2: Main Agent doing work**
|
|
251
|
+
→ Solution: `.claude/lib/agent-router.md`
|
|
252
|
+
→ Enforced by: CLAUDE.md self-check protocol
|
|
253
|
+
|
|
254
|
+
**Both problems validated by:**
|
|
255
|
+
→ `.claude/lib/validation-gates.md` (4 checkpoints)
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
**🎉 Ready for production use!**
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
> **Navigation Hub for AI Agents**
|
|
4
|
+
> **Template Version:** 1.3.0 - Universal Multi-Agent Template
|
|
5
|
+
> **Latest:** TaskMaster Integration - Intelligent task analysis with complexity, dependencies, risk assessment
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 What is This Template?
|
|
10
|
+
|
|
11
|
+
Universal, framework-agnostic template for AI-assisted development.
|
|
12
|
+
|
|
13
|
+
**What's Included:**
|
|
14
|
+
- ✅ 6 Specialized Agents (integration + 5 domain specialists)
|
|
15
|
+
- ✅ Universal Patterns (logging, testing, error-handling, agent selection)
|
|
16
|
+
- ✅ Design Foundation (color theory, spacing, typography)
|
|
17
|
+
- ✅ **Auto-Generated Best Practices** (from Context7 MCP per project)
|
|
18
|
+
- ✅ **3-Level Indexing** (agents auto-discover project context)
|
|
19
|
+
- ✅ Domain-Specific Support (add your business logic)
|
|
20
|
+
|
|
21
|
+
**What's NOT Included:**
|
|
22
|
+
- ❌ Framework patterns → Generated dynamically via `/agentsetup`
|
|
23
|
+
- ❌ Package managers → Detected by `/agentsetup`
|
|
24
|
+
- ❌ Spec frameworks → Optional (OpenSpec, BMAD, SpecKit)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 📖 Quick Navigation
|
|
29
|
+
|
|
30
|
+
**Design/UI:**
|
|
31
|
+
- `/designsetup` - Auto-generate style guide from reference/codebase/AI
|
|
32
|
+
- `design-system/STYLE_TOKENS.json` - **NEW!** Lightweight design tokens (~500 tokens) ✨
|
|
33
|
+
- `design-system/STYLE_GUIDE.md` - Full style guide (17 sections, ~5000 tokens)
|
|
34
|
+
- `@/.claude/lib/document-loader.md` - **NEW!** Token-efficient loading patterns ✨
|
|
35
|
+
- `@/.claude/contexts/design/index.md` (General design principles - fallback)
|
|
36
|
+
- `@/.claude/contexts/design/box-thinking.md` (Layout analysis)
|
|
37
|
+
- `@/.claude/contexts/patterns/ui-component-consistency.md` (Visual consistency)
|
|
38
|
+
|
|
39
|
+
**Development:**
|
|
40
|
+
- `@/.claude/contexts/patterns/task-classification.md` (Agent selection guide)
|
|
41
|
+
- `@/.claude/contexts/patterns/agent-coordination.md` (When to run agents parallel/sequential)
|
|
42
|
+
- `@/.claude/contexts/patterns/error-recovery.md` (How agents handle errors & escalate)
|
|
43
|
+
- `@/.claude/contexts/patterns/logging.md`
|
|
44
|
+
- `@/.claude/contexts/patterns/testing.md`
|
|
45
|
+
- `@/.claude/contexts/patterns/task-breakdown.md`
|
|
46
|
+
- `@/.claude/contexts/patterns/frontend-component-strategy.md`
|
|
47
|
+
|
|
48
|
+
**Project Setup:**
|
|
49
|
+
- `/designsetup` - **NEW!** Auto-generate style guide (reference → codebase → AI)
|
|
50
|
+
- `/psetup` - One-time project setup (detect tech stack, generate best practices)
|
|
51
|
+
- `/agentsetup` - Auto-detect tech stack and generate best practices
|
|
52
|
+
|
|
53
|
+
**Page Planning (UI Tasks):**
|
|
54
|
+
- `/pageplan @prd.md @brief.md` - **NEW!** Generate page structure & content plan for UI tasks
|
|
55
|
+
- Output: `.changes/{id}/page-plan.md` (component reuse, content draft, asset checklist)
|
|
56
|
+
- Used by: uxui-frontend agent (auto-reads in STEP 0.5)
|
|
57
|
+
|
|
58
|
+
**OpenSpec Multi-Agent Workflow:**
|
|
59
|
+
- `/csetup {change-id}` - Setup change context (analyze tasks, generate workflow)
|
|
60
|
+
- `/cdev {change-id}` - Start/continue multi-agent development
|
|
61
|
+
- `/cview {change-id}` - View detailed progress for a change
|
|
62
|
+
- `/cstatus {change-id}` - Quick progress status for a change
|
|
63
|
+
|
|
64
|
+
**Best Practices (Dynamic):**
|
|
65
|
+
- `.claude/contexts/domain/{project}/best-practices/` (generated by `/agentsetup`)
|
|
66
|
+
- Framework-specific guidelines from Context7 MCP
|
|
67
|
+
|
|
68
|
+
**Indexing (3 Levels):**
|
|
69
|
+
- Level 1: `.claude/contexts/domain/index.md` (Project Registry)
|
|
70
|
+
- Level 2: `.claude/contexts/domain/{project}/README.md` (Project Overview)
|
|
71
|
+
- Level 3: `.claude/contexts/domain/{project}/best-practices/index.md` (Best Practices Registry)
|
|
72
|
+
|
|
73
|
+
**🆕 Implementation Logic (v1.1.0):**
|
|
74
|
+
- `@/.claude/lib/README.md` - Implementation logic overview
|
|
75
|
+
- `@/.claude/lib/agent-executor.md` - Agent retry & escalation logic (used by /cdev)
|
|
76
|
+
- `@/.claude/lib/tdd-classifier.md` - TDD classification logic (used by /csetup)
|
|
77
|
+
- `@/.claude/lib/flags-updater.md` - 🆕 Progress tracking protocol (Main Claude updates flags.json)
|
|
78
|
+
- `@/.claude/lib/agent-router.md` - 🆕 Mandatory agent routing rules (enforce delegation)
|
|
79
|
+
- `@/.claude/contexts/patterns/agent-discovery.md` - Shared agent discovery flow
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 📚 Best Practices System
|
|
84
|
+
|
|
85
|
+
**→ See:** `@/.claude/lib/detailed-guides/best-practices-system.md` for complete guide
|
|
86
|
+
|
|
87
|
+
**Quick Summary:**
|
|
88
|
+
- Run `/agentsetup` → Auto-detects tech stack → Queries Context7 → Generates framework-specific best practices
|
|
89
|
+
- Files created in `.claude/contexts/domain/{project}/best-practices/` (React, Next.js, Prisma, etc.)
|
|
90
|
+
- Agents auto-discover via 3-level indexing (domain → project → best-practices)
|
|
91
|
+
- Enforces code quality with framework-specific patterns
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 🎨 Design System / Style Guide Generation
|
|
96
|
+
|
|
97
|
+
**→ See:** `@/.claude/lib/detailed-guides/design-system.md` for complete guide
|
|
98
|
+
|
|
99
|
+
**Quick Summary:**
|
|
100
|
+
- `/designsetup` auto-detects project context with **3 smart paths**: Reference design → Brownfield (reverse engineering) → Greenfield (AI-generated)
|
|
101
|
+
- Generates comprehensive `design-system/STYLE_GUIDE.md` (17 sections: colors, typography, spacing, components, etc.)
|
|
102
|
+
- **uxui-frontend agent** auto-reads style guide (Priority #1) or falls back to general design principles
|
|
103
|
+
- Ensures visual consistency, prevents duplicates, enforces accessibility
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## ⚡ Context Optimization (v1.2.0)
|
|
108
|
+
|
|
109
|
+
**→ See:** `@/.claude/lib/detailed-guides/context-optimization.md` for complete guide
|
|
110
|
+
|
|
111
|
+
**Quick Summary:**
|
|
112
|
+
- **Problem:** 20K tokens wasted (STYLE_GUIDE.md read 4x by different commands/agents)
|
|
113
|
+
- **Solution:** 3-tier loading → STYLE_TOKENS.json (500 tokens) → design-context.md (1K) → STYLE_GUIDE.md (5K, selective)
|
|
114
|
+
- **Result:** 70% token reduction (~4.7K total), 3-4x faster, maintained quality
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 📋 Page Planning System
|
|
119
|
+
|
|
120
|
+
**→ See:** `@/.claude/lib/detailed-guides/page-planning.md` for complete guide
|
|
121
|
+
|
|
122
|
+
**Quick Summary:**
|
|
123
|
+
- **Problem:** Agents duplicate components (Navbar 3x), use random colors, lorem ipsum content
|
|
124
|
+
- **Solution:** `/pageplan @prd.md @brief.md` → Generates `.changes/{id}/page-plan.md` with component reuse plan, AI-drafted content, asset checklist
|
|
125
|
+
- **Benefits:** Prevents duplicates, ensures design consistency, real content from PRD, 25% faster (search done once upfront)
|
|
126
|
+
- **Use for:** Landing pages, dashboards, multi-section UI pages (skip for backend/database work)
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 🧠 TaskMaster-style Analysis (v1.3.0)
|
|
131
|
+
|
|
132
|
+
**→ See:** `@/.claude/lib/detailed-guides/taskmaster-analysis.md` for complete guide
|
|
133
|
+
|
|
134
|
+
**Quick Summary:**
|
|
135
|
+
- **Problem:** Dumb task lists treat all tasks equally → no complexity/dependency/risk analysis → tasks fail, delays, security issues
|
|
136
|
+
- **Solution:** `/csetup` uses **6 analysis dimensions**: Complexity (1-10), Dependencies (auto-detected), Risk (LOW/MEDIUM/HIGH), Research requirements, Subtask breakdown, Priority (0-100)
|
|
137
|
+
- **Benefits:** Intelligent phases.md with time buffers (+41%), auto-added research phases, dependency order, risk mitigation
|
|
138
|
+
- **Inspired by:** [claude-task-master](https://github.com/eyaltoledano/claude-task-master)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 🤖 Agent System
|
|
143
|
+
|
|
144
|
+
**→ See:** `@/.claude/lib/detailed-guides/agent-system.md` for complete guide
|
|
145
|
+
|
|
146
|
+
**Quick Summary:**
|
|
147
|
+
- **6 specialist agents**: integration (validate contracts), uxui-frontend (UI with mock data), test-debug (tests/bugs), frontend (connect UI to API), backend (API endpoints), database (schemas/migrations)
|
|
148
|
+
- **Main Claude's role**: Orchestrator (plan, coordinate, report), NOT implementer (no writing code directly)
|
|
149
|
+
- **Self-check protocol**: MANDATORY checklist before ANY work (detect work type → select agent → delegate)
|
|
150
|
+
- **Agent pre-work**: STEP 0 (project discovery for ALL) + STEP 1-5 (design fundamentals for uxui-frontend only)
|
|
151
|
+
|
|
152
|
+
**Example workflow:**
|
|
153
|
+
```
|
|
154
|
+
User: "Build login system"
|
|
155
|
+
→ Phase 1: uxui-frontend (UI)
|
|
156
|
+
→ Phase 2: backend + database (parallel)
|
|
157
|
+
→ Phase 2.5: integration (validate contracts)
|
|
158
|
+
→ Phase 3: frontend (connect UI to API)
|
|
159
|
+
→ Phase 4: test-debug (tests)
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
**💡 Remember:** This template is universal. Use Context7 for framework-specific docs!
|