oneie 3.6.7 → 3.6.11

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 (165) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +182 -25
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/mcp-toggle.md +93 -0
  12. package/.claude/commands/one.md +198 -116
  13. package/.claude/commands/plan.md +394 -80
  14. package/.claude/commands/release.md +41 -19
  15. package/.claude/commands/server.md +2 -0
  16. package/.claude/hooks/root-cleanup.py +75 -0
  17. package/.claude/skills/INDEX.md +523 -0
  18. package/.claude/skills/REGISTRY.md +529 -0
  19. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  20. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  21. package/.claude/skills/agent-frontend-create-page.md +413 -0
  22. package/.claude/skills/agents/README.md +238 -0
  23. package/dist/clone-web.js +1 -1
  24. package/dist/clone-web.js.map +1 -1
  25. package/folders.yaml +1 -1
  26. package/one/.obsidian/workspace.json +38 -38
  27. package/one/connections/api/queries-reference.md +842 -0
  28. package/one/connections/api-reference.md +1011 -0
  29. package/one/connections/integration-examples.md +875 -0
  30. package/one/connections/integration-guide.md +869 -0
  31. package/one/connections/integration-phase2.md +736 -0
  32. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  33. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  34. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  35. package/one/events/CONNECTIONS_DEMO.md +501 -0
  36. package/one/events/DELIVERABLES.md +432 -0
  37. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  38. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  39. package/one/events/DEMO_COMPONENTS.md +487 -0
  40. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  41. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  42. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  43. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  44. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  45. package/one/events/DEMO_SETUP.md +476 -0
  46. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  47. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  48. package/one/events/HOOKS-DEMO.md +441 -0
  49. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  50. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  51. package/one/events/QA-CHECKLIST.md +674 -0
  52. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  53. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  54. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  55. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  56. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  57. package/one/events/TEST-PLAN-INDEX.md +346 -0
  58. package/one/events/TEST-PLAN.md +1417 -0
  59. package/one/events/TESTING-DELIVERY.txt +372 -0
  60. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  61. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  62. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  63. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  64. package/one/events/VIEW-TRANSITIONS.md +428 -0
  65. package/one/events/backend-integration-tests.md +606 -0
  66. package/one/events/backend-structure-diagram.txt +393 -0
  67. package/one/events/backend-structure-summary.txt +269 -0
  68. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  69. package/one/events/convex-analysis-index.md +304 -0
  70. package/one/events/convex-structure-analysis.md +700 -0
  71. package/one/events/design-spec-complete.md +208 -0
  72. package/one/events/ontology-test-examples.md +562 -0
  73. package/one/events/phase1-backend-implementation-complete.md +518 -0
  74. package/one/events/test-dashboard.md +345 -0
  75. package/one/events/test-index.md +361 -0
  76. package/one/events/test-report-ontology.md +582 -0
  77. package/one/events/testing-summary.md +344 -0
  78. package/one/groups/features.md +2878 -0
  79. package/one/groups/strategy copy.md +869 -0
  80. package/one/knowledge/backend-api-reference.md +710 -0
  81. package/one/knowledge/documentation-summary.md +285 -0
  82. package/one/knowledge/lessons-learned.md +294 -4
  83. package/one/knowledge/ontology-visual-guide.md +360 -0
  84. package/one/knowledge/ontology.md +9 -17
  85. package/one/things/demo-accessibility-animations.md +999 -0
  86. package/one/things/demo-components.md +1304 -0
  87. package/one/things/demo-design-summary.md +629 -0
  88. package/one/things/demo-design-system.md +919 -0
  89. package/one/things/demo-page-layouts.md +989 -0
  90. package/one/things/designs/accessibility-audit.md +790 -0
  91. package/one/things/designs/component-specifications.md +757 -0
  92. package/one/things/designs/design-overview.md +318 -0
  93. package/one/things/designs/design-tokens.md +414 -0
  94. package/one/things/designs/wireframes-dashboard.md +653 -0
  95. package/one/things/docs/api-requests.md +923 -0
  96. package/one/things/features/0 All Features.md +2 -0
  97. package/one/things/implementation/backend-guide.md +412 -0
  98. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  99. package/one/things/plans/ai-elements.md +1259 -0
  100. package/one/things/plans/ai-integration.md +947 -0
  101. package/one/things/plans/ai-sdk.md +761 -0
  102. package/one/things/plans/app.md +1 -1
  103. package/one/things/plans/architecture-summary.md +283 -0
  104. package/one/things/plans/async-ai-agents.md +215 -0
  105. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  106. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  107. package/one/things/plans/backend-ontology-conformance.md +416 -0
  108. package/one/things/plans/backend-status.md +541 -0
  109. package/one/things/plans/backend-structure.md +799 -0
  110. package/one/things/plans/backend-target-structure.md +438 -0
  111. package/one/things/plans/backend.md +1133 -0
  112. package/one/things/plans/better-auth-any-backend.md +11 -11
  113. package/one/things/plans/cli-updates-required.md +280 -0
  114. package/one/things/plans/complete-step-by-step.md +1302 -0
  115. package/one/things/plans/convex-agents.md +1005 -0
  116. package/one/things/plans/deployment-architecture.md +426 -0
  117. package/one/things/plans/development-plan.md +1220 -0
  118. package/one/things/plans/effect.md +808 -48
  119. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  120. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  121. package/one/things/plans/mcp-simple.md +228 -0
  122. package/one/things/plans/one.md +8 -7
  123. package/one/things/plans/ontology-6-dimensions.md +20 -14
  124. package/one/things/plans/quick-wins.md +1273 -0
  125. package/one/things/plans/readme-backend-cleanup.md +361 -0
  126. package/one/things/plans/separate-demo.md +830 -0
  127. package/one/things/plans/separate.md +3 -3
  128. package/one/things/plans/sequence.md +1897 -0
  129. package/one/things/plans/sync-checklist.md +321 -0
  130. package/one/things/plans/unified-implementation-plan.md +3 -3
  131. package/one/things/plans/update-demos.md +513 -0
  132. package/package.json +1 -1
  133. package/.claude/agents/backend-specialist.md +0 -169
  134. package/.claude/agents/designer.md +0 -216
  135. package/.claude/agents/frontend-specialist.md +0 -236
  136. package/.claude/commands/done.md +0 -35
  137. package/.claude/commands/infer.md +0 -138
  138. package/.claude/commands/next.md +0 -53
  139. package/.claude/commands/one copy.md +0 -565
  140. package/.claude/commands/one-template.md +0 -106
  141. package/.claude/commands/one-v1.md +0 -609
  142. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  143. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  144. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  145. package/one/groups/nine-padel-customers.md +0 -138
  146. package/one/groups/nine-padel-data-structure.md +0 -167
  147. package/one/groups/nine-padel-ontology-specification.md +0 -359
  148. package/one/groups/nine-padel-ontology.md +0 -143
  149. package/one/groups/nine-padel-strategy.md +0 -234
  150. package/one/groups/nine-padel.md +0 -211
  151. package/one/groups/nine-padle-contents.baked.md +0 -1252
  152. package/one/groups/nine-padle-contents.md +0 -6
  153. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  154. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  155. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  156. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  157. package/one/things/features/1-3-event-coordination/design.md +0 -544
  158. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  159. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  160. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  161. package/one/things/features/1-5-quality-loops/design.md +0 -797
  162. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  163. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  164. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  165. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -1,8 +1,8 @@
1
- # /one - ONE Cascade Intelligence Platform
1
+ # /cascade - ONE Platform Agent Orchestration
2
2
 
3
- 🌟 **Transform Ideas into Production-Ready Code**
3
+ 🌟 **Turn Ideas into Production-Ready Code**
4
4
 
5
- *Agent ONE orchestrates your workflow through 8 AI agents with the 6-dimension ontology. Simple, clear design optimized for all screens.*
5
+ *agent-director orchestrates your workflow through 15 specialized AI agents with the 6-dimension ontology. Inference-based execution optimized for speed and quality.*
6
6
 
7
7
  ## Core Interface
8
8
 
@@ -20,28 +20,28 @@ When the `/one` command is invoked, display this main menu:
20
20
  ║ ║
21
21
  ╚══════════════════════════════════════════════════════════════════╝
22
22
 
23
- 🏆 **CASCADE STATUS** - Agent-Orchestrated Workflow ✅
24
- ✨ ONE Cascade v1.0.0 | 8 AI Agents | 6-Level Workflow
23
+ 🏆 **ORCHESTRATION STATUS** - agent-director in control ✅
24
+ ✨ ONE Platform v1.0.0 | 15 AI Agents | Inference-Based (1-100)
25
25
  🤖 98% Context Reduction | 🚀 5x Faster Execution
26
26
  🧪 Quality Loops Enabled | 📊 Continuous Learning Active
27
- ⚡ Event-Driven Autonomy | 🎯 100x Simpler Configuration
28
-
29
- 🚀 **QUICK START** (Turn Ideas into Reality)
30
- 1. Start New Idea → Transform any idea into working code
31
- 2. Build Your Plan → Create feature collections & assign work
32
- 3. Launch Big Feature → Specifications with quality gates
33
- 4. Create Tests & Design → User flows that drive implementation
34
- 5. Get Things Done → Execute with 8 AI agents in parallel
35
-
36
- 🤖 **AI COMMAND CENTER** (Your Personal Engineering Team)
37
- 6. Engineering Director → Validates ideas, creates plans, assigns work
38
- 7. Backend Specialist → Services, mutations, queries, schemas
39
- 8. Frontend Specialist → Pages, components, UI/UX
40
- 9. Integration Specialist → Connections, data flows, workflows
41
- A. Quality Agent → Tests, validation, acceptance criteria
42
- B. Design Agent → Wireframes, components, test-driven design
43
- C. Problem Solver → Ultrathink mode, root cause analysis
44
- D. Documenter → Feature docs, user guides, knowledge base
27
+ ⚡ Event-Driven Autonomy | 🎯 6-Dimension Ontology Aligned
28
+
29
+ 🚀 **INFERENCE WORKFLOW** (Infer 1-100: Plan → Implement → Learn)
30
+ 1. /now → Show current inference & task
31
+ 2. /next → Advance to next inference
32
+ 3. /done → Mark inference complete & advance
33
+ 4. /plan → View complete 100-inference plan
34
+ 5. /build → Build feature with specialists
35
+
36
+ 🤖 **AGENT COMMAND CENTER** (15 Specialized Agents, agent-director Orchestrates)
37
+ 6. agent-director → Orchestrator: plans, validates, delegates
38
+ 7. agent-backend → Backend: Convex mutations, queries, schema
39
+ 8. agent-frontend → Frontend: Astro pages, React components
40
+ 9. agent-designer → Designer: Wireframes, tokens, specs
41
+ A. agent-quality → Quality: Tests, validation, acceptance criteria
42
+ B. agent-ops → Operations: Deployment, CI/CD, infrastructure
43
+ C. agent-builder → Builder: Feature implementation coordination
44
+ D. agent-problem-solver → Problem Solver: Root cause analysis
45
45
 
46
46
  ⚙️ **ADVANCED FEATURES** (Power Users)
47
47
  T. Template Library → Workflow templates for common patterns
@@ -204,88 +204,140 @@ display: |
204
204
 
205
205
  ### AI Agents (6-9, A-D)
206
206
 
207
- #### 6. Engineering Director
207
+ #### 6. agent-director (The Orchestrator)
208
208
  ```yaml
209
- action: show_engineering_director
209
+ action: show_director_agent
210
210
  display: |
211
- 🎯 **ENGINEERING DIRECTOR AGENT**
211
+ 🎯 **AGENT-DIRECTOR: THE ORCHESTRATOR**
212
212
 
213
- Orchestrates workflow, validates ideas, creates plans, assigns work:
213
+ Central control: Plans features, validates ontology, delegates to 14 specialists
214
+ Works with inference-based execution (Infer 1-100) for precise planning.
214
215
 
215
216
  **Current Activity:**
216
- - Validating 2 new ideas against ontology
217
- - Managing 3 active plans (12 features total)
218
- - Coordinating 8 specialists across 4 features
219
-
220
- **Actions:**
221
- 1. Validate New Idea → Check idea against ontology
222
- 2. Create Plan → Turn idea into feature collection
223
- 3. Assign Features → Delegate to specialists
224
- 4. Create Task Lists → Break features into parallel tasks
225
- 5. Review Progress → See all active work
226
- 6. Mark Complete → Finalize feature after docs
227
-
228
- **Context Budget:** 200-1500 tokens
229
- **Prompt File:** one/things/agents/agent-director.md
217
+ - Infer 47/100: Validating backend schema design
218
+ - Delegated to: agent-backend (implementing mutations)
219
+ - Delegated to: agent-frontend (building UI components)
220
+ - Delegated to: agent-designer (creating wireframes)
221
+ - Monitoring: agent-quality running tests in parallel
222
+
223
+ **What agent-director Does:**
224
+ 1. /now → Show current inference & context
225
+ 2. /next → Advance to next inference in plan
226
+ 3. /done → Mark inference complete, learn from it
227
+ 4. /plan → View complete 100-inference roadmap
228
+ 5. Create Feature Plan → Break idea into 100 inferences
229
+ 6. Assign to Specialist → Delegate specific inference to agent
230
+ 7. Coordinate Parallel → Run multiple agents concurrently
231
+ 8. Monitor Quality → Watch tests, catch failures early
232
+
233
+ **Delegation Pattern:**
234
+ - Infer N: Identifies what's needed
235
+ - Assigns to specialist (backend, frontend, designer, etc.)
236
+ - Specialist executes with skill(s) from .claude/skills/
237
+ - Returns result to director for next inference
238
+ - agent-director learns and advances plan
239
+
240
+ **Context Budget:** 43,000 tokens (largest context)
241
+ **Prompt File:** .claude/agents/agent-director.md
242
+ **Skills:** See agent-director capabilities for delegation rules
230
243
 
231
244
  B. Back to Main Menu
232
245
 
233
- Choose action (1-6, B): _
246
+ Choose action (1-8, B): _
234
247
  ```
235
248
 
236
- #### 7. Backend Specialist
249
+ #### 7. agent-backend (Backend Specialist)
237
250
  ```yaml
238
- action: show_backend_specialist
251
+ action: show_backend_agent
239
252
  display: |
240
- ⚙️ **BACKEND SPECIALIST AGENT**
241
-
242
- Services, mutations, queries, schemas - backend logic and data:
243
-
244
- **Current Activity:**
245
- - Implementing 3 features (CourseService, LessonService, EnrollmentService)
246
- - Writing Effect.ts services with error handling
247
- - Creating Convex mutations and queries
248
-
249
- **Actions:**
250
- 1. Write Feature Spec → Backend specification
251
- 2. Implement Service → Effect.ts business logic
252
- 3. Create Mutations → Convex write operations
253
- 4. Create Queries → Convex read operations
254
- 5. Update Schema → Database schema changes
255
- 6. Fix Problem → Handle failed tests
256
- 7. Add Lesson Learned → Capture knowledge
257
-
258
- **Context Budget:** 1500-2500 tokens
259
- **Prompt File:** one/things/agents/agent-backend.md
253
+ ⚙️ **AGENT-BACKEND: BACKEND SPECIALIST**
254
+
255
+ Convex backend implementation: mutations, queries, schema, services, 6D ontology
256
+ Delegated by agent-director for inference tasks involving backend logic.
257
+
258
+ **Currently Executing (via agent-director delegation):**
259
+ - Infer 15: Implement course creation mutation
260
+ - Infer 16: Create course list query with filtering
261
+ - Infer 17: Design schema for course relationships
262
+
263
+ **Available Skills (from .claude/skills/):**
264
+ - agent-backend:create-mutation (8.3 KB)
265
+ - agent-backend:create-query (referenced)
266
+ - agent-backend:design-schema (referenced)
267
+
268
+ **What agent-backend Does:**
269
+ 1. Design Schema → Convex schema with 6-dimension alignment
270
+ 2. Create Mutations → Write operations with validation & events
271
+ 3. Create Queries → Read operations with filtering & pagination
272
+ 4. Implement Services → Effect.ts business logic layers
273
+ 5. Update Schema → Database schema evolution
274
+ 6. Handle Failures → Fix tests that agent-quality reports
275
+
276
+ **Delegation Rules:**
277
+ - agent-director assigns: "Implement course creation"
278
+ - agent-backend executes: Creates mutation with all 8 steps
279
+ - Uses skill: agent-backend:create-mutation for guidance
280
+ - Returns: Mutation code + event logging + quota checks
281
+ - agent-director: Marks inference complete, advances to next
282
+
283
+ **Integration Pattern:**
284
+ - Receives requests from: agent-director (via delegation)
285
+ - Coordinates with: agent-quality (gets test failures)
286
+ - Coordinates with: agent-frontend (uses same entities)
287
+ - Delegates to: agent-problem-solver (if tests fail)
288
+
289
+ **Context Budget:** 16,000 tokens
290
+ **Prompt File:** .claude/agents/agent-backend.md
291
+ **Skills Directory:** .claude/skills/ (agent-backend-*.md)
260
292
 
261
293
  B. Back to Main Menu
262
294
 
263
- Choose action (1-7, B): _
295
+ Choose action (1-6, B): _
264
296
  ```
265
297
 
266
- #### 8. Frontend Specialist
298
+ #### 8. agent-frontend (Frontend Specialist)
267
299
  ```yaml
268
- action: show_frontend_specialist
300
+ action: show_frontend_agent
269
301
  display: |
270
- 🎨 **FRONTEND SPECIALIST AGENT**
271
-
272
- Pages, components, UI/UX - everything users see and interact with:
273
-
274
- **Current Activity:**
275
- - Building 2 features (Course Pages, Enrollment Flow)
276
- - Creating Astro pages with SSR
277
- - Implementing React components
278
-
279
- **Actions:**
280
- 1. Write Feature Spec → Frontend specification
281
- 2. Create Astro Page → SSR page with data fetching
282
- 3. Build React Components → Interactive UI components
283
- 4. Implement UI/UX → Design system implementation
284
- 5. Fix Problem → Handle failed tests
285
- 6. Add Lesson Learned → Capture knowledge
286
-
287
- **Context Budget:** 1500-2500 tokens
288
- **Prompt File:** one/things/agents/agent-frontend.md
302
+ 🎨 **AGENT-FRONTEND: FRONTEND SPECIALIST**
303
+
304
+ Astro 5 + React 19 UI implementation: pages, components, islands, performance
305
+ Delegated by agent-director for inference tasks involving frontend logic.
306
+
307
+ **Currently Executing (via agent-director delegation):**
308
+ - Infer 25: Create course list page with SSR
309
+ - Infer 26: Build enrollment button component
310
+ - Infer 27: Optimize Lighthouse scores
311
+
312
+ **Available Skills (from .claude/skills/):**
313
+ - agent-frontend:create-page (10 KB) - Astro pages with islands
314
+ - agent-frontend:create-component (referenced) - React components
315
+ - agent-frontend:optimize-performance (referenced) - Core Web Vitals
316
+
317
+ **What agent-frontend Does:**
318
+ 1. Create Astro Pages → SSR pages with data fetching at build time
319
+ 2. Build React Components → Interactive islands with proper hydration
320
+ 3. Implement UI/UX → Design tokens + shadcn/ui components
321
+ 4. Optimize Performance → 90+ Lighthouse scores, Core Web Vitals
322
+ 5. Handle Responsiveness → Mobile-first with Tailwind v4
323
+ 6. Ensure Accessibility → WCAG 2.1 AA compliance
324
+
325
+ **Delegation Rules:**
326
+ - agent-director assigns: "Create course enrollment page"
327
+ - agent-frontend executes: Builds Astro page with React islands
328
+ - Uses skill: agent-frontend:create-page for guidance
329
+ - Returns: Page code + component specs + performance metrics
330
+ - agent-director: Marks inference complete, advances to next
331
+
332
+ **Integration Pattern:**
333
+ - Receives requests from: agent-director (via delegation)
334
+ - Coordinates with: agent-designer (uses wireframes + tokens)
335
+ - Coordinates with: agent-backend (queries entities)
336
+ - Coordinates with: agent-quality (gets test results)
337
+
338
+ **Context Budget:** 16,000 tokens
339
+ **Prompt File:** .claude/agents/agent-frontend.md
340
+ **Skills Directory:** .claude/skills/ (agent-frontend-*.md)
289
341
 
290
342
  B. Back to Main Menu
291
343
 
@@ -321,58 +373,110 @@ display: |
321
373
  Choose action (1-6, B): _
322
374
  ```
323
375
 
324
- #### A. Quality Agent
376
+ #### A. agent-quality (Quality Specialist)
325
377
  ```yaml
326
378
  action: show_quality_agent
327
379
  display: |
328
- 🧪 **QUALITY AGENT**
329
-
330
- Tests, validation, acceptance criteria - ensuring correctness:
331
-
332
- **Current Activity:**
333
- - Defining tests for 4 features
334
- - Validating 2 implementations against ontology
335
- - Running test suites (unit, integration, e2e)
336
-
337
- **Actions:**
338
- 1. Validate Feature → Check against ontology
339
- 2. Define User Flows → What users must accomplish
340
- 3. Create Acceptance Criteria → How we know it works
341
- 4. Define Technical Tests → Unit, integration, e2e
342
- 5. Run Tests → Execute test suites
343
- 6. Validate Implementation → Check tests pass
344
-
345
- **Context Budget:** 2000 tokens
346
- **Prompt File:** one/things/agents/agent-quality.md
380
+ 🧪 **AGENT-QUALITY: QUALITY SPECIALIST**
381
+
382
+ Test-driven requirements: user flows, acceptance criteria, test validation
383
+ Delegated by agent-director for inference tasks involving quality gates.
384
+
385
+ **Currently Executing (via agent-director delegation):**
386
+ - Infer 18: Define course creation user flows
387
+ - Infer 19: Create acceptance criteria for enrollment
388
+ - Infer 20: Run tests on backend mutations
389
+
390
+ **Available Skills (from .claude/skills/):**
391
+ - agent-quality:define-tests (referenced) - User flows + criteria
392
+ - agent-quality:run-tests (referenced) - Execute test suites
393
+ - agent-quality:validate-ontology (referenced) - 6D alignment check
394
+
395
+ **What agent-quality Does:**
396
+ 1. Define User Flows → What users must accomplish
397
+ 2. Create Acceptance Criteria → How we know feature works
398
+ 3. Define Technical Tests → Unit, integration, e2e tests
399
+ 4. Run Test Suites → Execute against implementations
400
+ 5. Validate Ontology → Check 6-dimension compliance
401
+ 6. Report Failures → Flag issues to agent-problem-solver
402
+
403
+ **Delegation Rules:**
404
+ - agent-director assigns: "Define tests for course creation"
405
+ - agent-quality executes: Creates user flows + acceptance criteria
406
+ - Returns: Test requirements for agent-designer (wireframes)
407
+ - Returns: Test requirements for agent-backend (mutations)
408
+ - Returns: Test requirements for agent-frontend (components)
409
+ - All specialists use quality requirements to drive implementation
410
+
411
+ **Quality Loop:**
412
+ 1. agent-quality: Defines tests
413
+ 2. agent-designer: Creates designs satisfying tests
414
+ 3. Specialists: Implement to pass tests
415
+ 4. agent-quality: Runs tests, reports failures
416
+ 5. agent-problem-solver: Analyzes failures
417
+ 6. Specialists: Fix issues
418
+ 7. Repeat until all tests pass
419
+
420
+ **Integration Pattern:**
421
+ - Receives requests from: agent-director (via delegation)
422
+ - Provides requirements to: agent-designer, agent-backend, agent-frontend
423
+ - Reports failures to: agent-problem-solver (for analysis)
424
+ - Monitors: All implementations against acceptance criteria
425
+
426
+ **Context Budget:** 21,000 tokens
427
+ **Prompt File:** .claude/agents/agent-quality.md
428
+ **Skills Directory:** .claude/skills/ (agent-quality-*.md)
347
429
 
348
430
  B. Back to Main Menu
349
431
 
350
432
  Choose action (1-6, B): _
351
433
  ```
352
434
 
353
- #### B. Design Agent
435
+ #### 9. agent-designer (Design Specialist)
354
436
  ```yaml
355
- action: show_design_agent
437
+ action: show_designer_agent
356
438
  display: |
357
- 🎨 **DESIGN AGENT**
358
-
359
- Wireframes, components, test-driven design - UI that enables tests to pass:
360
-
361
- **Current Activity:**
362
- - Creating wireframes for 3 features
363
- - Designing component architecture
364
- - Setting design tokens (colors, spacing, timing)
365
-
366
- **Actions:**
367
- 1. Create Wireframes → UI that satisfies test criteria
368
- 2. Design Components → Component architecture
369
- 3. Set Design Tokens → Colors, spacing, timing
370
- 4. Ensure Accessibility → WCAG AA compliance
371
- 5. Review Against Tests → Validate design enables tests
372
-
373
- **Philosophy:** Design exists to make tests pass
374
- **Context Budget:** 2000 tokens
375
- **Prompt File:** one/things/agents/agent-designer.md
439
+ 🎨 **AGENT-DESIGNER: DESIGN SPECIALIST**
440
+
441
+ Test-driven design: wireframes, components, tokens aligned to acceptance criteria
442
+ Delegated by agent-director for inference tasks involving design and UX.
443
+
444
+ **Currently Executing (via agent-director delegation):**
445
+ - Infer 28: Create course card wireframe
446
+ - Infer 29: Design enrollment form states
447
+ - Infer 30: Generate Tailwind design tokens from brand
448
+
449
+ **Available Skills (from .claude/skills/):**
450
+ - agent-designer:create-wireframe (11 KB) - Test-driven wireframes
451
+ - agent-designer:define-components (referenced) - Component specs
452
+ - agent-designer:set-design-tokens (referenced) - Token generation
453
+
454
+ **What agent-designer Does:**
455
+ 1. Create Wireframes → Maps acceptance criteria to UI elements
456
+ 2. Design Components → Specifies component hierarchy & props
457
+ 3. Set Design Tokens → Colors, spacing, typography from brand
458
+ 4. Ensure Accessibility → WCAG 2.1 AA contrast validation
459
+ 5. Specify All States → Default, loading, error, success, empty
460
+
461
+ **Delegation Rules:**
462
+ - agent-quality defines tests (user flows, acceptance criteria)
463
+ - agent-director assigns: "Design course enrollment form"
464
+ - agent-designer executes: Creates wireframe satisfying all acceptance criteria
465
+ - Uses skill: agent-designer:create-wireframe for guidance
466
+ - Returns: Wireframe + component specs + design tokens
467
+ - agent-frontend uses wireframe for implementation
468
+ - agent-director: Marks inference complete, advances to next
469
+
470
+ **Integration Pattern:**
471
+ - Receives requests from: agent-director (via delegation)
472
+ - Reads requirements from: agent-quality (acceptance criteria)
473
+ - Provides specs to: agent-frontend (implements wireframes)
474
+ - Validates with: WCAG AA accessibility checklist
475
+
476
+ **Design Philosophy:** Design exists to enable tests to pass
477
+ **Context Budget:** 15,000 tokens
478
+ **Prompt File:** .claude/agents/agent-designer.md
479
+ **Skills Directory:** .claude/skills/ (agent-designer-*.md)
376
480
 
377
481
  B. Back to Main Menu
378
482
 
@@ -0,0 +1,93 @@
1
+ # MCP Management Commands
2
+
3
+ Manage MCP context usage - enable/disable MCPs on demand to save tokens.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ # Show current MCP status and token usage
9
+ ./scripts/mcp-toggle.sh status
10
+
11
+ # Switch to minimal config (only shadcn) - saves ~10k tokens
12
+ ./scripts/mcp-toggle.sh minimal
13
+
14
+ # Restore all MCPs
15
+ ./scripts/mcp-toggle.sh full
16
+
17
+ # Backup current config
18
+ ./scripts/mcp-toggle.sh backup
19
+
20
+ # Restore from backup
21
+ ./scripts/mcp-toggle.sh restore
22
+ ```
23
+
24
+ ## Available MCPs
25
+
26
+ - **shadcn**: 4.7k tokens (component registry)
27
+ - **cloudflare-docs**: 1.4k tokens (documentation search)
28
+ - **cloudflare-builds**: 5.7k tokens (Workers builds)
29
+ - **figma**: 2.0k tokens (design data)
30
+ - **ide**: 1.3k tokens (VS Code integration)
31
+
32
+ **Total:** ~15.1k tokens when all enabled
33
+
34
+ ## Quick Commands
35
+
36
+ ### Daily Development (Recommended)
37
+ ```bash
38
+ ./scripts/mcp-toggle.sh minimal
39
+ # Only shadcn enabled, saves ~10k tokens
40
+ # Restart Claude Code
41
+ ```
42
+
43
+ ### When Deploying to Cloudflare
44
+ ```bash
45
+ ./scripts/mcp-toggle.sh full
46
+ # Enable all MCPs
47
+ # Restart Claude Code
48
+ ```
49
+
50
+ ### When Designing with Figma
51
+ ```bash
52
+ # Manually add figma to minimal config
53
+ # Or use full config temporarily
54
+ ```
55
+
56
+ ## Important Notes
57
+
58
+ 1. **Restart Required**: After changing .mcp.json, restart Claude Code
59
+ 2. **Backup Created**: Script automatically backs up before changes
60
+ 3. **Token Savings**: Minimal config saves ~10k tokens (66% reduction)
61
+ 4. **Default Minimal**: Use minimal config for daily work, switch to full only when needed
62
+
63
+ ## Workflow
64
+
65
+ ```bash
66
+ # Start of day: Go minimal
67
+ ./scripts/mcp-toggle.sh minimal
68
+ # Restart Claude Code
69
+ # Work with ~5k MCP tokens instead of 15k
70
+
71
+ # When you need Cloudflare tools:
72
+ ./scripts/mcp-toggle.sh full
73
+ # Restart Claude Code
74
+ # All MCPs available
75
+
76
+ # End of day: Back to minimal
77
+ ./scripts/mcp-toggle.sh minimal
78
+ ```
79
+
80
+ ## Manual Override
81
+
82
+ Edit `.mcp.json` directly to enable specific MCPs:
83
+
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "shadcn": { ... }, // Always keep
88
+ "cloudflare-docs": { ... } // Add when needed
89
+ }
90
+ }
91
+ ```
92
+
93
+ Restart Claude Code after editing.