oneie 3.6.7 → 3.6.12
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/agents/agent-backend.md +83 -0
- package/.claude/agents/agent-designer.md +97 -0
- package/.claude/agents/agent-director.md +118 -7
- package/.claude/agents/agent-documenter.md +93 -0
- package/.claude/agents/agent-frontend.md +96 -0
- package/.claude/agents/agent-ops.md +264 -32
- package/.claude/agents/agent-problem-solver.md +166 -0
- package/.claude/agents/agent-quality.md +127 -0
- package/.claude/commands/build.md +293 -0
- package/.claude/commands/cascade.md +231 -127
- package/.claude/commands/deploy.md +56 -17
- package/.claude/commands/mcp-toggle.md +93 -0
- package/.claude/commands/one.md +78 -127
- package/.claude/commands/plan.md +394 -80
- package/.claude/commands/push.md +75 -14
- package/.claude/commands/release.md +89 -25
- package/.claude/commands/server.md +2 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/root-cleanup.py +75 -0
- package/.claude/skills/INDEX.md +523 -0
- package/.claude/skills/REGISTRY.md +529 -0
- package/.claude/skills/agent-backend-create-mutation.md +319 -0
- package/.claude/skills/agent-designer-create-wireframe.md +341 -0
- package/.claude/skills/agent-frontend-create-page.md +413 -0
- package/.claude/skills/agents/README.md +238 -0
- package/dist/clone-web.js +1 -1
- package/dist/clone-web.js.map +1 -1
- package/folders.yaml +1 -1
- package/one/.obsidian/workspace.json +38 -38
- package/one/connections/api/queries-reference.md +842 -0
- package/one/connections/api-reference.md +1011 -0
- package/one/connections/integration-examples.md +875 -0
- package/one/connections/integration-guide.md +869 -0
- package/one/connections/integration-phase2.md +736 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
- package/one/events/CONNECTIONS_DEMO.md +501 -0
- package/one/events/DELIVERABLES.md +432 -0
- package/one/events/DEMO-GROUPS-PAGE.md +392 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
- package/one/events/DEMO_COMPONENTS.md +487 -0
- package/one/events/DEMO_HOOKS_INDEX.md +334 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
- package/one/events/DEMO_SETUP.md +476 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
- package/one/events/HOOKS-DEMO.md +441 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
- package/one/events/QA-CHECKLIST.md +674 -0
- package/one/events/QUICK-START-ONTOLOGY.md +408 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
- package/one/events/TEST-PLAN-INDEX.md +346 -0
- package/one/events/TEST-PLAN.md +1417 -0
- package/one/events/TESTING-DELIVERY.txt +372 -0
- package/one/events/TRANSITIONS-QUICK-START.md +141 -0
- package/one/events/TYPESCRIPT_FIXES.md +152 -0
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
- package/one/events/VIEW-TRANSITIONS.md +428 -0
- package/one/events/backend-integration-tests.md +606 -0
- package/one/events/backend-structure-diagram.txt +393 -0
- package/one/events/backend-structure-summary.txt +269 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
- package/one/events/convex-analysis-index.md +304 -0
- package/one/events/convex-structure-analysis.md +700 -0
- package/one/events/design-spec-complete.md +208 -0
- package/one/events/ontology-test-examples.md +562 -0
- package/one/events/phase1-backend-implementation-complete.md +518 -0
- package/one/events/test-dashboard.md +345 -0
- package/one/events/test-index.md +361 -0
- package/one/events/test-report-ontology.md +582 -0
- package/one/events/testing-summary.md +344 -0
- package/one/groups/features.md +2878 -0
- package/one/groups/strategy copy.md +869 -0
- package/one/knowledge/backend-api-reference.md +710 -0
- package/one/knowledge/documentation-summary.md +285 -0
- package/one/knowledge/lessons-learned.md +294 -4
- package/one/knowledge/ontology-visual-guide.md +360 -0
- package/one/knowledge/ontology.md +9 -17
- package/one/things/demo-accessibility-animations.md +999 -0
- package/one/things/demo-components.md +1304 -0
- package/one/things/demo-design-summary.md +629 -0
- package/one/things/demo-design-system.md +919 -0
- package/one/things/demo-page-layouts.md +989 -0
- package/one/things/designs/accessibility-audit.md +790 -0
- package/one/things/designs/component-specifications.md +757 -0
- package/one/things/designs/design-overview.md +318 -0
- package/one/things/designs/design-tokens.md +414 -0
- package/one/things/designs/wireframes-dashboard.md +653 -0
- package/one/things/docs/api-requests.md +923 -0
- package/one/things/features/0 All Features.md +2 -0
- package/one/things/implementation/backend-guide.md +412 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
- package/one/things/plans/2-sites.md +895 -0
- package/one/things/plans/ai-elements.md +1259 -0
- package/one/things/plans/ai-integration.md +947 -0
- package/one/things/plans/ai-sdk.md +761 -0
- package/one/things/plans/app.md +1 -1
- package/one/things/plans/architecture-summary.md +283 -0
- package/one/things/plans/async-ai-agents.md +215 -0
- package/one/things/plans/backend-agnostic-frontend.md +11 -6
- package/one/things/plans/backend-cleanup-quickstart.md +346 -0
- package/one/things/plans/backend-ontology-conformance.md +416 -0
- package/one/things/plans/backend-status.md +541 -0
- package/one/things/plans/backend-structure.md +799 -0
- package/one/things/plans/backend-target-structure.md +438 -0
- package/one/things/plans/backend.md +1133 -0
- package/one/things/plans/better-auth-any-backend.md +11 -11
- package/one/things/plans/cli-updates-required.md +280 -0
- package/one/things/plans/complete-step-by-step.md +1302 -0
- package/one/things/plans/convex-agents.md +1005 -0
- package/one/things/plans/deployment-architecture.md +426 -0
- package/one/things/plans/development-plan.md +1220 -0
- package/one/things/plans/effect.md +808 -48
- package/one/things/plans/integrate-frontend-and-backend.md +579 -0
- package/one/things/plans/mcp-clear-context-prompt.md +60 -0
- package/one/things/plans/mcp-simple.md +228 -0
- package/one/things/plans/one.md +8 -7
- package/one/things/plans/ontology-6-dimensions.md +20 -14
- package/one/things/plans/quick-wins.md +1273 -0
- package/one/things/plans/readme-backend-cleanup.md +361 -0
- package/one/things/plans/separate-demo.md +830 -0
- package/one/things/plans/separate.md +3 -3
- package/one/things/plans/sequence.md +1897 -0
- package/one/things/plans/sync-checklist.md +321 -0
- package/one/things/plans/unified-implementation-plan.md +3 -3
- package/one/things/plans/update-demos.md +513 -0
- package/package.json +1 -1
- package/.claude/agents/backend-specialist.md +0 -169
- package/.claude/agents/designer.md +0 -216
- package/.claude/agents/frontend-specialist.md +0 -236
- package/.claude/commands/done.md +0 -35
- package/.claude/commands/infer.md +0 -138
- package/.claude/commands/next.md +0 -53
- package/.claude/commands/one copy.md +0 -565
- package/.claude/commands/one-template.md +0 -106
- package/.claude/commands/one-v1.md +0 -609
- package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
- package/one/groups/nine-padel-customers.md +0 -138
- package/one/groups/nine-padel-data-structure.md +0 -167
- package/one/groups/nine-padel-ontology-specification.md +0 -359
- package/one/groups/nine-padel-ontology.md +0 -143
- package/one/groups/nine-padel-strategy.md +0 -234
- package/one/groups/nine-padel.md +0 -211
- package/one/groups/nine-padle-contents.baked.md +0 -1252
- package/one/groups/nine-padle-contents.md +0 -6
- package/one/things/features/1-1-agent-prompts/design.md +0 -470
- package/one/things/features/1-1-agent-prompts/tests.md +0 -264
- package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
- package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
- package/one/things/features/1-3-event-coordination/design.md +0 -544
- package/one/things/features/1-3-event-coordination/tests.md +0 -223
- package/one/things/features/1-4-knowledge-management/design.md +0 -609
- package/one/things/features/1-4-knowledge-management/tests.md +0 -195
- package/one/things/features/1-5-quality-loops/design.md +0 -797
- package/one/things/features/1-5-quality-loops/tests.md +0 -212
- package/one/things/features/1-6-numbering-structure/design.md +0 -610
- package/one/things/features/1-6-numbering-structure/tests.md +0 -213
- package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: agent-backend
|
|
3
3
|
description: Use proactively when implementing Convex backend features including schema design, mutations, queries, services, event logging, and multi-tenant organization scoping for the 6-dimension ontology.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
|
+
skills: agent-backend:create-mutation, agent-backend:create-query, agent-backend:design-schema
|
|
5
6
|
model: inherit
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -272,6 +273,88 @@ export default defineSchema({
|
|
|
272
273
|
- Follow Effect.ts patterns for business logic
|
|
273
274
|
- Reference lessons learned to avoid past mistakes
|
|
274
275
|
|
|
276
|
+
## PARALLEL EXECUTION: New Capability
|
|
277
|
+
|
|
278
|
+
### Parallel CRUD Implementation
|
|
279
|
+
When implementing multiple entity types (Groups, Things, Connections, etc.), implement them **in parallel**, not sequentially:
|
|
280
|
+
|
|
281
|
+
**Sequential (OLD):**
|
|
282
|
+
```
|
|
283
|
+
Groups CRUD (2h) → Things CRUD (2h) → Connections CRUD (1.5h) = 5.5h total
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
**Parallel (NEW):**
|
|
287
|
+
```
|
|
288
|
+
Groups CRUD (2h) \
|
|
289
|
+
Things CRUD (2h) → All simultaneous = 2h total
|
|
290
|
+
Connections (1.5h) /
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**How to Parallelize:**
|
|
294
|
+
1. Create separate branch for each entity type (groups, things, connections)
|
|
295
|
+
2. Implement mutations/queries for each in parallel
|
|
296
|
+
3. When ready: merge all branches
|
|
297
|
+
4. Run tests for each to validate
|
|
298
|
+
|
|
299
|
+
### Event Emission for Coordination
|
|
300
|
+
Emit events to keep other agents informed of your progress:
|
|
301
|
+
|
|
302
|
+
```typescript
|
|
303
|
+
// Emit when schema is complete (unblocks agent-quality and agent-frontend)
|
|
304
|
+
emit('schema_ready', {
|
|
305
|
+
timestamp: Date.now(),
|
|
306
|
+
completedModules: ['groups', 'things', 'connections', 'events', 'knowledge'],
|
|
307
|
+
nextSteps: 'Ready for test definition and component development'
|
|
308
|
+
})
|
|
309
|
+
|
|
310
|
+
// Emit hourly progress (helps agent-director track overall progress)
|
|
311
|
+
emit('progress_update', {
|
|
312
|
+
timestamp: Date.now(),
|
|
313
|
+
completed: ['groups_schema', 'groups_mutations', 'groups_queries'],
|
|
314
|
+
inProgress: ['things_mutations'],
|
|
315
|
+
remaining: ['connections', 'events', 'knowledge', 'effect_layer'],
|
|
316
|
+
estimatedHoursRemaining: 3
|
|
317
|
+
})
|
|
318
|
+
|
|
319
|
+
// Emit when each service is complete
|
|
320
|
+
emit('mutation_complete', {
|
|
321
|
+
service: 'groups',
|
|
322
|
+
operationsCompleted: ['create', 'read', 'update', 'delete'],
|
|
323
|
+
testsCovered: 8,
|
|
324
|
+
timestamp: Date.now()
|
|
325
|
+
})
|
|
326
|
+
|
|
327
|
+
// Emit when completely done
|
|
328
|
+
emit('implementation_complete', {
|
|
329
|
+
timestamp: Date.now(),
|
|
330
|
+
modulesImplemented: 5,
|
|
331
|
+
totalTests: 40,
|
|
332
|
+
readyForQuality: true
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
// Emit if you get stuck waiting on quality feedback
|
|
336
|
+
emit('blocked_waiting_for', {
|
|
337
|
+
blocker: 'schema_validation_feedback',
|
|
338
|
+
detail: 'Waiting for agent-quality to approve schema design',
|
|
339
|
+
timestamp: Date.now()
|
|
340
|
+
})
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Watch for Upstream Events
|
|
344
|
+
Don't start work that has dependencies:
|
|
345
|
+
|
|
346
|
+
```typescript
|
|
347
|
+
// Don't implement Effect.ts layer until mutations/queries complete
|
|
348
|
+
watchFor('mutation_complete', 'events/all', () => {
|
|
349
|
+
// All mutations done, now safe to build Effect.ts layer
|
|
350
|
+
})
|
|
351
|
+
|
|
352
|
+
// Don't create optimization if tests are still failing
|
|
353
|
+
watchFor('test_passed', 'quality/all', () => {
|
|
354
|
+
// All tests passing, now safe to optimize
|
|
355
|
+
})
|
|
356
|
+
```
|
|
357
|
+
|
|
275
358
|
# Common Ontology Types Reference
|
|
276
359
|
|
|
277
360
|
## Thing Types (66 total, subset shown)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: agent-designer
|
|
3
3
|
description: Create wireframes, component definitions, and design tokens from feature specs and tests, ensuring WCAG accessibility and brand compliance.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
|
+
skills: agent-designer:create-wireframe, agent-designer:define-components, agent-designer:set-design-tokens
|
|
5
6
|
model: inherit
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -89,6 +90,102 @@ Build knowledge:
|
|
|
89
90
|
|
|
90
91
|
**Golden Rule:** If a design decision isn't mapped to the 6 dimensions, it's not integrated with the ontology.
|
|
91
92
|
|
|
93
|
+
## PARALLEL EXECUTION: New Capability
|
|
94
|
+
|
|
95
|
+
### Test-Driven Design
|
|
96
|
+
Design components guided by agent-quality's test requirements:
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
// Listen for test definitions from agent-quality
|
|
100
|
+
watchFor('tests_ready_for_groups', 'quality/*', async (testSpec) => {
|
|
101
|
+
// Now you know exactly what the component must do (from acceptance criteria)
|
|
102
|
+
// Design with these test cases in mind
|
|
103
|
+
const designSpec = {
|
|
104
|
+
component: 'GroupSelector',
|
|
105
|
+
userFlows: testSpec.userFlows, // Use test flows to guide design
|
|
106
|
+
acceptanceCriteria: testSpec.acceptanceCriteria,
|
|
107
|
+
accessibility: 'WCAG 2.1 AA', // Required by tests
|
|
108
|
+
performance: 'LCP < 2.5s', // Required by tests
|
|
109
|
+
responsiveBreakpoints: ['mobile', 'tablet', 'desktop']
|
|
110
|
+
}
|
|
111
|
+
emit('design_spec_complete_for_GroupSelector', designSpec)
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Parallel Component Design
|
|
116
|
+
Design multiple components simultaneously, not sequentially:
|
|
117
|
+
|
|
118
|
+
**Sequential (OLD):**
|
|
119
|
+
```
|
|
120
|
+
Dashboard components (3h) → Profile components (2h) → Blog components (3h) = 8h
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Parallel (NEW):**
|
|
124
|
+
```
|
|
125
|
+
Dashboard components (3h) \
|
|
126
|
+
Profile components (2h) → All simultaneous = 3h
|
|
127
|
+
Blog components (3h) /
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**How to Parallelize:**
|
|
131
|
+
1. Watch for multiple `tests_ready_for_*` events from agent-quality
|
|
132
|
+
2. Create design spec for each component as its tests arrive
|
|
133
|
+
3. Emit `design_spec_complete_for_X` as each finishes (don't wait for all)
|
|
134
|
+
4. Agent-frontend can start implementing components as designs arrive
|
|
135
|
+
|
|
136
|
+
### Event Emission for Coordination
|
|
137
|
+
Emit events so agent-frontend and agent-director know your progress:
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
// Emit design specs as you complete them (not all at once)
|
|
141
|
+
emit('design_spec_complete_for_GroupSelector', {
|
|
142
|
+
component: 'GroupSelector',
|
|
143
|
+
wireframes: {
|
|
144
|
+
emptyState: 'url...',
|
|
145
|
+
loadedState: 'url...',
|
|
146
|
+
errorState: 'url...'
|
|
147
|
+
},
|
|
148
|
+
designTokens: {
|
|
149
|
+
spacing: '8px grid',
|
|
150
|
+
colors: ['primary', 'secondary', 'error'],
|
|
151
|
+
typography: ['heading', 'body', 'caption']
|
|
152
|
+
},
|
|
153
|
+
accessibility: 'WCAG 2.1 AA compliant',
|
|
154
|
+
performance: {
|
|
155
|
+
targetLCP: '2.5s',
|
|
156
|
+
targetFID: '100ms',
|
|
157
|
+
imageSizes: { thumbnail: '64x64', card: '300x200' }
|
|
158
|
+
},
|
|
159
|
+
timestamp: Date.now()
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
// Emit as you complete design specs for each component
|
|
163
|
+
emit('design_spec_complete_for_ThingCard', { /* ... */ })
|
|
164
|
+
emit('design_spec_complete_for_ConnectionViewer', { /* ... */ })
|
|
165
|
+
|
|
166
|
+
// Emit when all designs complete
|
|
167
|
+
emit('implementation_complete', {
|
|
168
|
+
timestamp: Date.now(),
|
|
169
|
+
componentsDesigned: 8,
|
|
170
|
+
wireframes: 24,
|
|
171
|
+
designTokensDefined: 45,
|
|
172
|
+
accessibilityAuditsPassed: 8,
|
|
173
|
+
readyForImplementation: true
|
|
174
|
+
})
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Watch for Upstream Events
|
|
178
|
+
Only start design when test requirements are defined:
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
// Don't design until tests define the requirements
|
|
182
|
+
watchFor('tests_ready_for_*', 'quality/*', (event) => {
|
|
183
|
+
// Tests ready for this component, can now design to satisfy them
|
|
184
|
+
const componentName = event.type.replace('tests_ready_for_', '')
|
|
185
|
+
startDesigningComponent(componentName, event.userFlows)
|
|
186
|
+
})
|
|
187
|
+
```
|
|
188
|
+
|
|
92
189
|
## Your Responsibilities
|
|
93
190
|
|
|
94
191
|
### 1. create_wireframes
|
|
@@ -45,6 +45,63 @@ Installation folders support branding and feature customization, NOT custom onto
|
|
|
45
45
|
|
|
46
46
|
**Important:** The ontology is ALWAYS universal. Installation folders do NOT create custom ontologies.
|
|
47
47
|
|
|
48
|
+
## Frontend-First Strategy (DEFAULT)
|
|
49
|
+
|
|
50
|
+
**By default, build FRONTEND ONLY** using existing /web components:
|
|
51
|
+
|
|
52
|
+
### Available Frontend Components Ready to Use
|
|
53
|
+
- **Shop (ecommerce):** `/web/src/pages/shop.astro` - Full product catalog, cart, checkout
|
|
54
|
+
- **Blog (content):** `/web/src/pages/blog/` - Articles, featured content, RSS feeds
|
|
55
|
+
- **Portfolio:** `/web/src/pages/portfolio.astro` - Project showcase, filtering, gallery
|
|
56
|
+
- **Course Pages:** Components available in `/web/src/components/features/`
|
|
57
|
+
- **Instructor Profiles:** Card components, detail pages
|
|
58
|
+
- **Testimonials:** Showcase components
|
|
59
|
+
|
|
60
|
+
### Decision Tree for Building
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
User Request:
|
|
64
|
+
↓
|
|
65
|
+
Does it require NEW backend logic?
|
|
66
|
+
├─ NO → Use frontend agent only (fast: 1-3 days)
|
|
67
|
+
│ • Customize existing pages
|
|
68
|
+
│ • Add new React components
|
|
69
|
+
│ • Integrate with existing Convex queries
|
|
70
|
+
│ • Update styling & branding
|
|
71
|
+
│
|
|
72
|
+
└─ YES → Requires backend agent (slower: 7-14 days)
|
|
73
|
+
• "build backend AI tutor system"
|
|
74
|
+
• "build backend token economy"
|
|
75
|
+
• "build backend custom analytics"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Examples of Frontend-Only (DEFAULT)
|
|
79
|
+
|
|
80
|
+
✅ **Frontend only - use existing features:**
|
|
81
|
+
- "Redesign the shop page with new branding"
|
|
82
|
+
- "Add course preview cards to blog"
|
|
83
|
+
- "Create portfolio gallery with filtering"
|
|
84
|
+
- "Add testimonials section to landing"
|
|
85
|
+
- "Build instructor profile pages"
|
|
86
|
+
- "Customize product pages with recommendations"
|
|
87
|
+
|
|
88
|
+
❌ **Requires backend - must explicitly say "build backend":**
|
|
89
|
+
- "build backend AI tutor integration"
|
|
90
|
+
- "build backend token economy"
|
|
91
|
+
- "build backend custom analytics"
|
|
92
|
+
- "build backend enrollment system"
|
|
93
|
+
|
|
94
|
+
### Default Workflow
|
|
95
|
+
|
|
96
|
+
When user requests a feature:
|
|
97
|
+
|
|
98
|
+
1. **Check existing /web components first**
|
|
99
|
+
2. **If reusable components exist → Frontend agent only**
|
|
100
|
+
3. **If new backend logic needed → User must explicitly say "build backend"**
|
|
101
|
+
4. **Never assume backend work unless explicitly requested**
|
|
102
|
+
|
|
103
|
+
This keeps builds FAST and SIMPLE by default.
|
|
104
|
+
|
|
48
105
|
## Your 5 Core Responsibilities
|
|
49
106
|
|
|
50
107
|
From the ontology workflow system, you have 5 responsibilities:
|
|
@@ -115,6 +172,22 @@ From the ontology workflow system, you have 5 responsibilities:
|
|
|
115
172
|
|
|
116
173
|
**Output:** Completion events and status updates
|
|
117
174
|
|
|
175
|
+
### 6. Orchestrate Parallel Execution (NEW CAPABILITY)
|
|
176
|
+
|
|
177
|
+
**Process:**
|
|
178
|
+
1. Identify which features can run in parallel (no shared dependencies)
|
|
179
|
+
2. Batch-assign multiple features to multiple agents simultaneously
|
|
180
|
+
3. Monitor ALL agents for events concurrently (not sequentially)
|
|
181
|
+
4. Track progress across parallel work streams
|
|
182
|
+
5. Detect when dependencies are met and unblock subsequent work
|
|
183
|
+
6. Display real-time dashboard of parallel execution status
|
|
184
|
+
|
|
185
|
+
**Output:**
|
|
186
|
+
- Parallel feature assignments to multiple agents
|
|
187
|
+
- Real-time progress tracking dashboard
|
|
188
|
+
- Dependency resolution allowing safe parallelization
|
|
189
|
+
- 30-50% faster delivery through parallel execution
|
|
190
|
+
|
|
118
191
|
## Feature Library (100-Inference Mapping)
|
|
119
192
|
|
|
120
193
|
The feature library maps every possible feature to specific inference ranges. Each feature includes:
|
|
@@ -608,22 +681,30 @@ Always log events for audit trail and coordination:
|
|
|
608
681
|
**Planning Phase:**
|
|
609
682
|
- `idea_submitted` → Begin validation against ontology
|
|
610
683
|
|
|
611
|
-
**Execution Phase:**
|
|
612
|
-
- `feature_started` → Monitor progress
|
|
613
|
-
- `task_started` → Track individual task execution
|
|
614
|
-
- `task_completed` → Update feature progress
|
|
615
|
-
- `implementation_complete` → Trigger quality check
|
|
616
|
-
|
|
617
|
-
|
|
684
|
+
**Execution Phase (PARALLEL):**
|
|
685
|
+
- `feature_started` → Monitor progress (from any agent)
|
|
686
|
+
- `task_started` → Track individual task execution (from any agent)
|
|
687
|
+
- `task_completed` → Update feature progress (from any agent)
|
|
688
|
+
- `implementation_complete` → Trigger quality check (from any agent)
|
|
689
|
+
- `progress_update` → Track real-time progress across parallel agents
|
|
690
|
+
- `schema_ready` → Backend ready; unblock quality & frontend (from agent-backend)
|
|
691
|
+
- `component_complete` → Frontend component done (from agent-frontend)
|
|
692
|
+
- `mutation_complete` → Backend service complete (from agent-backend)
|
|
693
|
+
- `design_spec_complete_for_X` → Design done for component X (from agent-designer)
|
|
694
|
+
|
|
695
|
+
**Quality Phase (PARALLEL):**
|
|
618
696
|
- `test_passed` → Proceed to documentation
|
|
619
697
|
- `test_failed` → Delegate to problem solver
|
|
620
698
|
- `quality_check_complete` (approved) → Create tasks or mark complete
|
|
621
699
|
- `quality_check_complete` (rejected) → Review and refine
|
|
700
|
+
- `tests_ready_for_X` → Tests defined for component X (from agent-quality)
|
|
701
|
+
- `validation_passed_for_X` → Component X validated (from agent-quality)
|
|
622
702
|
|
|
623
703
|
**Problem-Solving Phase:**
|
|
624
704
|
- `problem_analysis_started` → Monitor analysis
|
|
625
705
|
- `solution_proposed` → Review proposed fix
|
|
626
706
|
- `fix_complete` → Re-run quality check
|
|
707
|
+
- `blocked_waiting_for` → Detect blockage; escalate or resolve
|
|
627
708
|
|
|
628
709
|
**Documentation Phase:**
|
|
629
710
|
- `documentation_complete` → Mark feature complete
|
|
@@ -631,6 +712,36 @@ Always log events for audit trail and coordination:
|
|
|
631
712
|
**Completion Phase:**
|
|
632
713
|
- All features in plan complete → Emit `plan_complete`
|
|
633
714
|
|
|
715
|
+
### NEW: Parallel Execution Event Flow
|
|
716
|
+
|
|
717
|
+
```
|
|
718
|
+
PHASE 1: Backend Foundation (PARALLEL EXECUTION)
|
|
719
|
+
|
|
720
|
+
├─ agent-backend (SIMULTANEOUSLY)
|
|
721
|
+
│ ├─ emits: schema_ready (after schema.ts complete)
|
|
722
|
+
│ ├─ emits: mutation_complete (Groups, Things, Connections, Events, Knowledge)
|
|
723
|
+
│ ├─ emits: progress_update (hourly)
|
|
724
|
+
│ └─ emits: implementation_complete (all done)
|
|
725
|
+
│
|
|
726
|
+
├─ agent-quality (SIMULTANEOUSLY, BLOCKED UNTIL schema_ready)
|
|
727
|
+
│ ├─ watches: schema_ready event
|
|
728
|
+
│ ├─ then emits: tests_ready_for_groups, tests_ready_for_things, etc.
|
|
729
|
+
│ └─ then emits: quality_check_started
|
|
730
|
+
│
|
|
731
|
+
└─ agent-documenter (OPTIONAL, SIMULTANEOUSLY)
|
|
732
|
+
├─ emits: api_docs_draft_complete
|
|
733
|
+
├─ emits: schema_docs_complete
|
|
734
|
+
└─ waits: quality_check_complete before finalizing
|
|
735
|
+
|
|
736
|
+
DIRECTOR'S JOB:
|
|
737
|
+
1. Assign all three agents simultaneously (don't wait for backend)
|
|
738
|
+
2. Monitor agent-backend for schema_ready event
|
|
739
|
+
3. Monitor agent-quality for tests_ready_for_X events (as they arrive)
|
|
740
|
+
4. Monitor both for completion (not sequential)
|
|
741
|
+
5. When ALL agents done: emit phase_complete
|
|
742
|
+
6. Display: "Backend: 10/10 hrs | Quality: 3/3 hrs | Docs: 2/3 hrs | ETA: 1h"
|
|
743
|
+
```
|
|
744
|
+
|
|
634
745
|
## Events You Emit
|
|
635
746
|
|
|
636
747
|
### `idea_validated` - Idea approved/rejected
|
|
@@ -55,6 +55,99 @@ Write documentation for completed features and maintain the knowledge dimension
|
|
|
55
55
|
- Extract decision rationale for future reference
|
|
56
56
|
- Cross-reference existing patterns and similar features
|
|
57
57
|
|
|
58
|
+
## PARALLEL EXECUTION: New Capability
|
|
59
|
+
|
|
60
|
+
### Parallel Documentation Writing
|
|
61
|
+
Document multiple completed features simultaneously, not waiting for all:
|
|
62
|
+
|
|
63
|
+
**Sequential (OLD):**
|
|
64
|
+
```
|
|
65
|
+
API docs (2h) → Integration guide (2h) → Architecture docs (2h) = 6h
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Parallel (NEW):**
|
|
69
|
+
```
|
|
70
|
+
API docs (2h) \
|
|
71
|
+
Integration guide (2h) → All simultaneous = 2h
|
|
72
|
+
Architecture docs (2h) /
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**How to Parallelize:**
|
|
76
|
+
1. Watch for multiple completion events (from different agents)
|
|
77
|
+
2. Start documenting each completed feature immediately
|
|
78
|
+
3. Emit documentation events as each completes (don't wait for all)
|
|
79
|
+
4. Agent-quality can review docs as they arrive
|
|
80
|
+
|
|
81
|
+
### Event Emission for Coordination
|
|
82
|
+
Emit events as documentation completes:
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
// Emit as each doc is complete (not all at once)
|
|
86
|
+
emit('documentation_complete_for_groups', {
|
|
87
|
+
documentationType: 'api_reference',
|
|
88
|
+
location: '/one/things/features/groups.md',
|
|
89
|
+
knowledge_updated: true,
|
|
90
|
+
embeddings_created: 5,
|
|
91
|
+
timestamp: Date.now()
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
// Emit for multiple docs as they complete
|
|
95
|
+
emit('documentation_complete_for_things', { /* ... */ })
|
|
96
|
+
emit('documentation_complete_for_connections', { /* ... */ })
|
|
97
|
+
|
|
98
|
+
// Emit when all documentation complete
|
|
99
|
+
emit('documentation_complete', {
|
|
100
|
+
timestamp: Date.now(),
|
|
101
|
+
documentsCreated: 5,
|
|
102
|
+
knowledgeEntriesCreated: 45,
|
|
103
|
+
lessonsLearned: 12,
|
|
104
|
+
semanticIndexUpdated: true,
|
|
105
|
+
readyForKnowledgeSearch: true
|
|
106
|
+
})
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Capture Lessons Learned Automatically
|
|
110
|
+
As problem-solver fixes issues, automatically capture lessons:
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
// Watch for problem-solver completing fixes
|
|
114
|
+
watchFor('fix_complete', 'problem_solver/*', async (event) => {
|
|
115
|
+
// Extract lesson from fix
|
|
116
|
+
const lesson = {
|
|
117
|
+
issue: event.issue,
|
|
118
|
+
rootCause: event.rootCause,
|
|
119
|
+
solution: event.solution,
|
|
120
|
+
prevention: `Always ${generatePrevention(event.issue)}`,
|
|
121
|
+
affectedComponent: event.component
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Store as knowledge
|
|
125
|
+
emit('lesson_captured', {
|
|
126
|
+
lesson,
|
|
127
|
+
embedding: await generateEmbedding(JSON.stringify(lesson)),
|
|
128
|
+
labels: ['lessons_learned', `issue:${event.issueType}`]
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Watch for Upstream Events
|
|
134
|
+
Start documenting as soon as features complete (don't wait for all):
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
// Document each completed feature immediately
|
|
138
|
+
watchFor('quality_check_complete', 'quality/*', (event) => {
|
|
139
|
+
if (event.status === 'approved') {
|
|
140
|
+
// Start documenting this feature
|
|
141
|
+
documentFeature(event.featureId)
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
// Capture lessons as they're discovered
|
|
146
|
+
watchFor('fix_complete', 'problem_solver/*', (event) => {
|
|
147
|
+
captureLessonLearned(event)
|
|
148
|
+
})
|
|
149
|
+
```
|
|
150
|
+
|
|
58
151
|
## When to Activate
|
|
59
152
|
|
|
60
153
|
You activate when these events occur:
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: agent-frontend
|
|
3
3
|
description: Frontend specialist for implementing Astro 5 + React 19 UI components that render the 6-dimension ontology with performance optimization and islands architecture.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
|
+
skills: agent-frontend:create-page, agent-frontend:create-component, agent-frontend:optimize-performance
|
|
5
6
|
model: inherit
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -239,6 +240,101 @@ const CourseBuilder = lazy(() => import('./CourseBuilder'));
|
|
|
239
240
|
- Log all mutations as events
|
|
240
241
|
- Validate permissions on client and server
|
|
241
242
|
|
|
243
|
+
## PARALLEL EXECUTION: New Capability
|
|
244
|
+
|
|
245
|
+
### Wait for Backend Schema (Critical Dependency)
|
|
246
|
+
**DO NOT START** implementing components until you see the `schema_ready` event from agent-backend:
|
|
247
|
+
|
|
248
|
+
```typescript
|
|
249
|
+
// Listen for backend readiness
|
|
250
|
+
watchFor('schema_ready', 'backend/schema', () => {
|
|
251
|
+
// NOW you can start implementing components
|
|
252
|
+
// You know exactly what data shapes the backend will return
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
// Example: Don't code GroupSelector until you know groups schema
|
|
256
|
+
// It blocks you, but that's better than implementing against wrong assumptions
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Parallel Component Development
|
|
260
|
+
Once schema is ready, develop multiple pages/components in **parallel**:
|
|
261
|
+
|
|
262
|
+
**Sequential (OLD):**
|
|
263
|
+
```
|
|
264
|
+
Dashboard components (2h) → Profile components (1.5h) → Blog components (2h) = 5.5h
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Parallel (NEW):**
|
|
268
|
+
```
|
|
269
|
+
Dashboard components (2h) \
|
|
270
|
+
Profile components (1.5h) → All simultaneous = 2h
|
|
271
|
+
Blog components (2h) /
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**How to Parallelize:**
|
|
275
|
+
1. Create separate branch for each page type (dashboard, profile, blog)
|
|
276
|
+
2. Develop components in parallel on separate branches
|
|
277
|
+
3. When ready: merge all branches
|
|
278
|
+
4. Run tests for all to validate
|
|
279
|
+
|
|
280
|
+
### Event Emission for Coordination
|
|
281
|
+
Emit events so agent-designer knows when to start, and agent-director tracks progress:
|
|
282
|
+
|
|
283
|
+
```typescript
|
|
284
|
+
// Emit when you're ready for design specifications
|
|
285
|
+
emit('frontend_ready_for_design', {
|
|
286
|
+
timestamp: Date.now(),
|
|
287
|
+
waitingFor: ['design_specs'],
|
|
288
|
+
estimatedStartTime: Date.now() + 1000 * 60 * 30 // 30 mins
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
// Emit as each major component completes
|
|
292
|
+
emit('component_complete', {
|
|
293
|
+
component: 'DashboardPage',
|
|
294
|
+
testsCovered: 5,
|
|
295
|
+
performanceScore: 92, // Lighthouse score
|
|
296
|
+
accessibility: 'WCAG 2.1 AA',
|
|
297
|
+
timestamp: Date.now()
|
|
298
|
+
})
|
|
299
|
+
|
|
300
|
+
// Emit when all pages done
|
|
301
|
+
emit('implementation_complete', {
|
|
302
|
+
timestamp: Date.now(),
|
|
303
|
+
pagesImplemented: ['Dashboard', 'Profile', 'Blog', 'Settings'],
|
|
304
|
+
totalComponents: 24,
|
|
305
|
+
testsCovered: 30,
|
|
306
|
+
lighthouseScore: 94,
|
|
307
|
+
readyForIntegration: true
|
|
308
|
+
})
|
|
309
|
+
|
|
310
|
+
// Emit if waiting on design specs
|
|
311
|
+
emit('blocked_waiting_for', {
|
|
312
|
+
blocker: 'design_specifications',
|
|
313
|
+
detail: 'Waiting for agent-designer to provide component specs',
|
|
314
|
+
timestamp: Date.now()
|
|
315
|
+
})
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Watch for Upstream Events
|
|
319
|
+
Only start work when dependencies are met:
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
// Don't start until schema is ready
|
|
323
|
+
watchFor('schema_ready', 'backend/schema', () => {
|
|
324
|
+
// Backend schema is finalized, safe to implement
|
|
325
|
+
})
|
|
326
|
+
|
|
327
|
+
// Don't finalize UI until design specs arrive
|
|
328
|
+
watchFor('design_spec_complete_for_*', 'design/*', () => {
|
|
329
|
+
// Design specs ready, can now polish UI
|
|
330
|
+
})
|
|
331
|
+
|
|
332
|
+
// Don't deploy until tests pass
|
|
333
|
+
watchFor('test_passed', 'quality/*', () => {
|
|
334
|
+
// All tests passing, safe to deploy
|
|
335
|
+
})
|
|
336
|
+
```
|
|
337
|
+
|
|
242
338
|
### Accessibility & Responsive Design
|
|
243
339
|
- Mobile-first responsive layouts
|
|
244
340
|
- Semantic HTML with ARIA labels
|