oneie 2.0.1 → 2.0.3
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/AGENTS.md +245 -0
- package/CLAUDE.md +534 -0
- package/README.md +61 -4
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/events.md +545 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2819 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/organisation/one.md +599 -0
- package/one/organisation/organisation.md +438 -0
- package/one/organisation/revenue.md +673 -0
- package/one/organisation/strategy.md +869 -0
- package/one/organisation/vision.md +98 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/repomix-output.md +92634 -0
- package/one/things/agentkit.md +349 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli-code.md +652 -0
- package/one/things/cli-compiler-code.md +652 -0
- package/one/things/cli.md +1045 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/copilotkit.md +1559 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/package.json +5 -2
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
# Design for Feature 1-2: Workflow Orchestration
|
|
2
|
+
|
|
3
|
+
**Feature:** 1-2-yaml-orchestrator
|
|
4
|
+
**Status:** Design → Implementation
|
|
5
|
+
**Design Agent:** agent-designer.md
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Design Goal
|
|
10
|
+
|
|
11
|
+
Enable `/one` CLI command to orchestrate the 6-stage workflow naturally by having Claude Code read stage instructions and follow them. Design focuses on workflow progression clarity without building orchestrator infrastructure.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## CLI Context
|
|
16
|
+
|
|
17
|
+
**Command:** `/one [stage/action]`
|
|
18
|
+
|
|
19
|
+
**Examples:**
|
|
20
|
+
```bash
|
|
21
|
+
/one idea "Build a course platform" # Stage 1: Validate idea
|
|
22
|
+
/one plan 1 # Stage 2: Create plan
|
|
23
|
+
/one feature 1-1 # Stage 3: Write feature spec
|
|
24
|
+
/one test 1-1 # Stage 4: Define tests
|
|
25
|
+
/one design 1-1 # Stage 5: Create design
|
|
26
|
+
/one implement 1-1 # Stage 6: Implement + validate
|
|
27
|
+
/one workflow # Show current workflow status
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Design Decisions (Test-Driven)
|
|
33
|
+
|
|
34
|
+
### Decision 1: No Orchestrator Code - Claude Reads Instructions
|
|
35
|
+
**Test requirement:** Claude must follow 6-stage workflow from documentation
|
|
36
|
+
**Design solution:**
|
|
37
|
+
- Workflow guide exists as markdown (Feature 1-2 spec)
|
|
38
|
+
- Each stage references which agent prompt to read
|
|
39
|
+
- Claude Code reads guide → reads agent → follows instructions
|
|
40
|
+
- Natural progression through stages
|
|
41
|
+
|
|
42
|
+
**Reasoning:** Claude Code already understands instructions. No need to build parsing/execution infrastructure.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### Decision 2: Stage Progression Visible to User
|
|
47
|
+
**Test requirement:** User understands current stage and what's next
|
|
48
|
+
**Design solution:**
|
|
49
|
+
```
|
|
50
|
+
Claude Code (Engineering Director - Stage 1: Ideas):
|
|
51
|
+
> Validating idea against ontology...
|
|
52
|
+
> ✅ Idea validated!
|
|
53
|
+
>
|
|
54
|
+
> Next: Stage 2 (Plans) - Create feature breakdown
|
|
55
|
+
> Command: /one plan 1-create-workflow
|
|
56
|
+
|
|
57
|
+
Claude Code (Engineering Director - Stage 2: Plans):
|
|
58
|
+
> Creating plan 1-create-workflow...
|
|
59
|
+
> Breaking down into 6 features...
|
|
60
|
+
> ✅ Plan created!
|
|
61
|
+
>
|
|
62
|
+
> Next: Stage 3 (Features) - Write specs
|
|
63
|
+
> Commands: /one feature 1-1, /one feature 1-2, ...
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Reasoning:** Clear stage indicators help user follow workflow progression.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### Decision 3: Workflow Status at a Glance
|
|
71
|
+
**Test requirement:** User can check workflow progress anytime
|
|
72
|
+
**Design solution:**
|
|
73
|
+
```
|
|
74
|
+
$ /one workflow
|
|
75
|
+
|
|
76
|
+
Claude Code:
|
|
77
|
+
Current Workflow: Plan 1 (Create Workflow System)
|
|
78
|
+
|
|
79
|
+
Progress:
|
|
80
|
+
✅ Stage 1: Ideas - Validated
|
|
81
|
+
✅ Stage 2: Plans - Complete (6 features)
|
|
82
|
+
✅ Stage 3: Features - All specs written
|
|
83
|
+
✅ Stage 4: Tests - All criteria defined
|
|
84
|
+
🔄 Stage 5: Design - 1/6 complete (1-1 done)
|
|
85
|
+
⏳ Stage 6: Implementation - Not started
|
|
86
|
+
|
|
87
|
+
Next Actions:
|
|
88
|
+
- /one design 1-2 (complete designs)
|
|
89
|
+
- /one implement 1-1 (start implementation)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Reasoning:** Status overview prevents confusion about what's done and what's next.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### Decision 4: Parallel Execution Guidance
|
|
97
|
+
**Test requirement:** User knows which tasks can run in parallel
|
|
98
|
+
**Design solution:**
|
|
99
|
+
```
|
|
100
|
+
Claude Code (Engineering Director):
|
|
101
|
+
Stage 3 complete! All 6 feature specs written.
|
|
102
|
+
|
|
103
|
+
You can now work on Stage 4 (Tests) in parallel:
|
|
104
|
+
/one test 1-1 (Backend: Agent Prompts)
|
|
105
|
+
/one test 1-2 (Backend: Orchestrator)
|
|
106
|
+
/one test 1-3 (Backend: Events)
|
|
107
|
+
/one test 1-4 (Integration: Knowledge)
|
|
108
|
+
/one test 1-5 (Quality: Quality Loops)
|
|
109
|
+
/one test 1-6 (Integration: Numbering)
|
|
110
|
+
|
|
111
|
+
💡 Tip: These are independent - no dependencies between them
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Reasoning:** Explicit parallel guidance helps user optimize workflow speed.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
### Decision 5: Automatic Stage Detection
|
|
119
|
+
**Test requirement:** Claude detects current stage automatically
|
|
120
|
+
**Design solution:**
|
|
121
|
+
- Claude checks existing files to determine stage
|
|
122
|
+
- If `one/things/plans/1-*.md` exists → Stage 2 complete
|
|
123
|
+
- If `one/things/features/1-*/tests.md` exists → Stage 4 complete
|
|
124
|
+
- If `one/things/features/1-*/design.md` exists → Stage 5 complete
|
|
125
|
+
- No need for user to specify stage explicitly
|
|
126
|
+
|
|
127
|
+
**Example:**
|
|
128
|
+
```
|
|
129
|
+
User: /one 1-1
|
|
130
|
+
|
|
131
|
+
Claude: [Checks what exists for feature 1-1]
|
|
132
|
+
[Has: spec ✅, tests ✅, no design ❌]
|
|
133
|
+
[Determines: Should create design]
|
|
134
|
+
|
|
135
|
+
Claude Code (Design Agent - Stage 5):
|
|
136
|
+
Creating design for Feature 1-1 (Agent Prompts)...
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Reasoning:** Smart stage detection reduces cognitive load on user.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Component Architecture
|
|
144
|
+
|
|
145
|
+
### 1. Workflow Stage Map (Claude's Mental Model)
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
// Conceptual - Claude understands this naturally
|
|
149
|
+
Stage 1: Ideas → /one idea [text] → agent-director.md (Validate)
|
|
150
|
+
Stage 2: Plans → /one plan [N] → agent-director.md (Create Plan)
|
|
151
|
+
Stage 3: Features → /one feature [N-M] → agent-{specialist}.md (Write Spec)
|
|
152
|
+
Stage 4: Tests → /one test [N-M] → agent-quality.md (Define Tests)
|
|
153
|
+
Stage 5: Design → /one design [N-M] → agent-designer.md (Create Design)
|
|
154
|
+
Stage 6: Implement → /one implement [N-M] → agent-{specialist}.md (Code)
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**No code needed** - Claude maps commands to stages naturally.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 2. Stage Progression Logic (AI-Native)
|
|
162
|
+
|
|
163
|
+
```markdown
|
|
164
|
+
# How Claude determines what to do
|
|
165
|
+
|
|
166
|
+
User: /one feature 1-1
|
|
167
|
+
|
|
168
|
+
Claude thinks:
|
|
169
|
+
1. "User wants to work on feature 1-1"
|
|
170
|
+
2. Check: Does one/things/features/1-1-*.md exist?
|
|
171
|
+
- No → Create feature spec (Stage 3)
|
|
172
|
+
- Yes → Move to next incomplete stage
|
|
173
|
+
3. Check: Does one/things/features/1-1-*/tests.md exist?
|
|
174
|
+
- No → Create tests (Stage 4)
|
|
175
|
+
- Yes → Check design
|
|
176
|
+
4. Check: Does one/things/features/1-1-*/design.md exist?
|
|
177
|
+
- No → Create design (Stage 5)
|
|
178
|
+
- Yes → Check implementation
|
|
179
|
+
5. Check: Is implementation complete?
|
|
180
|
+
- No → Implement (Stage 6)
|
|
181
|
+
- Yes → Report complete
|
|
182
|
+
|
|
183
|
+
Claude acts based on determination
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**No stage detection code needed** - Claude understands file existence checks naturally.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### 3. Response Patterns
|
|
191
|
+
|
|
192
|
+
**Stage Start:**
|
|
193
|
+
```
|
|
194
|
+
🔄 [Agent Role - Stage N: Name]
|
|
195
|
+
[What I'm doing]
|
|
196
|
+
[Progress indicator]
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Stage Complete:**
|
|
200
|
+
```
|
|
201
|
+
✅ [Stage name] complete!
|
|
202
|
+
[Summary of what was created]
|
|
203
|
+
[Files created with paths]
|
|
204
|
+
|
|
205
|
+
Next: [Stage name] - [What to do]
|
|
206
|
+
Command: [Suggested next command]
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**Workflow Complete:**
|
|
210
|
+
```
|
|
211
|
+
🎉 Workflow Complete!
|
|
212
|
+
|
|
213
|
+
Plan: [Plan name]
|
|
214
|
+
Features: [N] features implemented
|
|
215
|
+
Duration: [Time]
|
|
216
|
+
Files created: [Count]
|
|
217
|
+
|
|
218
|
+
Summary:
|
|
219
|
+
- [Feature 1]: ✅ Complete
|
|
220
|
+
- [Feature 2]: ✅ Complete
|
|
221
|
+
...
|
|
222
|
+
|
|
223
|
+
All features tested ✅
|
|
224
|
+
All features documented ✅
|
|
225
|
+
Ready for use!
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Wireframes (CLI Outputs)
|
|
231
|
+
|
|
232
|
+
### Wireframe 1: Start Workflow (Stage 1)
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
$ /one idea "course platform for creators"
|
|
236
|
+
|
|
237
|
+
Claude Code (Engineering Director - Stage 1: Ideas):
|
|
238
|
+
Validating idea against ontology...
|
|
239
|
+
|
|
240
|
+
✅ Idea validated!
|
|
241
|
+
|
|
242
|
+
Ontology Mapping:
|
|
243
|
+
Things: course, lesson, creator, student
|
|
244
|
+
Connections: owns (creator→course), part_of (lesson→course),
|
|
245
|
+
enrolled_in (student→course)
|
|
246
|
+
Events: course_created, lesson_completed, course_completed
|
|
247
|
+
|
|
248
|
+
Complexity: Medium (2-3 weeks, 4 features)
|
|
249
|
+
|
|
250
|
+
Next: Stage 2 (Plans) - Break down into features
|
|
251
|
+
Create plan now? [Y/n] _
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
### Wireframe 2: Create Plan (Stage 2)
|
|
257
|
+
|
|
258
|
+
```
|
|
259
|
+
$ /one plan 2-course-platform
|
|
260
|
+
|
|
261
|
+
Claude Code (Engineering Director - Stage 2: Plans):
|
|
262
|
+
Creating plan 2-course-platform...
|
|
263
|
+
|
|
264
|
+
Breaking down into features:
|
|
265
|
+
2-1: Course CRUD (Backend Specialist)
|
|
266
|
+
2-2: Lesson Management (Backend Specialist)
|
|
267
|
+
2-3: Course UI (Frontend Specialist)
|
|
268
|
+
2-4: Student Enrollment (Integration Specialist)
|
|
269
|
+
|
|
270
|
+
Duration estimate: 2-3 weeks
|
|
271
|
+
Team: Backend, Frontend, Integration
|
|
272
|
+
|
|
273
|
+
✅ Plan created: one/things/plans/2-course-platform.md
|
|
274
|
+
|
|
275
|
+
Next: Stage 3 (Features) - Write specifications
|
|
276
|
+
Commands (can run in parallel):
|
|
277
|
+
/one feature 2-1
|
|
278
|
+
/one feature 2-2
|
|
279
|
+
/one feature 2-3
|
|
280
|
+
/one feature 2-4
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
### Wireframe 3: Parallel Feature Specs (Stage 3)
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
$ /one feature 2-1
|
|
289
|
+
|
|
290
|
+
Claude Code (Backend Specialist - Stage 3: Features):
|
|
291
|
+
Writing feature spec for 2-1-course-crud...
|
|
292
|
+
|
|
293
|
+
Loading context:
|
|
294
|
+
✓ Ontology types (200 tokens)
|
|
295
|
+
✓ Backend patterns (500 tokens)
|
|
296
|
+
✓ Lessons learned (300 tokens)
|
|
297
|
+
|
|
298
|
+
Mapping to ontology:
|
|
299
|
+
Things: course (with properties: title, description, price, creatorId)
|
|
300
|
+
Connections: owns (creator→course)
|
|
301
|
+
Events: course_created, course_updated, course_deleted
|
|
302
|
+
|
|
303
|
+
✅ Feature spec complete!
|
|
304
|
+
File: one/things/features/2-1-course-crud.md
|
|
305
|
+
|
|
306
|
+
Next: Stage 4 (Tests) - Define quality criteria
|
|
307
|
+
Command: /one test 2-1
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
### Wireframe 4: Workflow Status Check
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
$ /one workflow
|
|
316
|
+
|
|
317
|
+
Claude Code:
|
|
318
|
+
Current Workflow: Plan 2 (Course Platform)
|
|
319
|
+
|
|
320
|
+
Progress:
|
|
321
|
+
✅ Stage 1: Ideas - Validated
|
|
322
|
+
✅ Stage 2: Plans - Complete (4 features)
|
|
323
|
+
✅ Stage 3: Features - All specs written
|
|
324
|
+
- 2-1: Course CRUD ✅
|
|
325
|
+
- 2-2: Lesson Management ✅
|
|
326
|
+
- 2-3: Course UI ✅
|
|
327
|
+
- 2-4: Student Enrollment ✅
|
|
328
|
+
🔄 Stage 4: Tests - 2/4 complete
|
|
329
|
+
- 2-1: ✅ Tests defined
|
|
330
|
+
- 2-2: ✅ Tests defined
|
|
331
|
+
- 2-3: ⏳ Not started
|
|
332
|
+
- 2-4: ⏳ Not started
|
|
333
|
+
⏳ Stage 5: Design - Not started
|
|
334
|
+
⏳ Stage 6: Implementation - Not started
|
|
335
|
+
|
|
336
|
+
Next Actions (continue Stage 4):
|
|
337
|
+
/one test 2-3
|
|
338
|
+
/one test 2-4
|
|
339
|
+
|
|
340
|
+
Or start Stage 5 for completed features:
|
|
341
|
+
/one design 2-1
|
|
342
|
+
/one design 2-2
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
### Wireframe 5: Multi-Stage Progression
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
$ /one 2-1
|
|
351
|
+
|
|
352
|
+
Claude Code:
|
|
353
|
+
Feature 2-1 (Course CRUD) - Stage check...
|
|
354
|
+
✅ Stage 3: Feature spec exists
|
|
355
|
+
✅ Stage 4: Tests defined
|
|
356
|
+
✅ Stage 5: Design complete
|
|
357
|
+
⏳ Stage 6: Implementation not started
|
|
358
|
+
|
|
359
|
+
Claude Code (Backend Specialist - Stage 6: Implementation):
|
|
360
|
+
Implementing feature 2-1-course-crud...
|
|
361
|
+
|
|
362
|
+
Creating files:
|
|
363
|
+
✓ backend/services/CourseService.ts (course CRUD logic)
|
|
364
|
+
✓ backend/schema.ts (course schema added)
|
|
365
|
+
✓ backend/mutations/courses.ts (create, update, delete)
|
|
366
|
+
✓ backend/queries/courses.ts (get, list)
|
|
367
|
+
|
|
368
|
+
Running tests...
|
|
369
|
+
✓ CourseService.create() logs event
|
|
370
|
+
✓ CourseService.list() filters by creator
|
|
371
|
+
✓ CourseService.delete() checks ownership
|
|
372
|
+
✓ All tests passing (12/12)
|
|
373
|
+
|
|
374
|
+
Writing documentation...
|
|
375
|
+
✓ FEATURES.md updated
|
|
376
|
+
✓ API docs generated
|
|
377
|
+
|
|
378
|
+
✅ Feature 2-1 complete!
|
|
379
|
+
Duration: 15 minutes
|
|
380
|
+
Files created: 4
|
|
381
|
+
Tests: 12/12 passing
|
|
382
|
+
|
|
383
|
+
Feature complete! Moving to next feature automatically.
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Design Tokens
|
|
389
|
+
|
|
390
|
+
### Stage Indicators
|
|
391
|
+
```
|
|
392
|
+
Stage 1: Ideas → 💡
|
|
393
|
+
Stage 2: Plans → 📋
|
|
394
|
+
Stage 3: Features → 📝
|
|
395
|
+
Stage 4: Tests → 🧪
|
|
396
|
+
Stage 5: Design → 🎨
|
|
397
|
+
Stage 6: Implement → 🔧
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
### Progress Indicators
|
|
401
|
+
```
|
|
402
|
+
✅ Complete
|
|
403
|
+
🔄 In Progress
|
|
404
|
+
⏳ Not Started
|
|
405
|
+
❌ Failed (with retry suggestion)
|
|
406
|
+
💡 Suggestion
|
|
407
|
+
⚠️ Warning
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Agent Role Indicators
|
|
411
|
+
```
|
|
412
|
+
Claude Code (Engineering Director - Stage 1: Ideas):
|
|
413
|
+
Claude Code (Backend Specialist - Stage 3: Features):
|
|
414
|
+
Claude Code (Quality Agent - Stage 4: Tests):
|
|
415
|
+
Claude Code (Design Agent - Stage 5: Design):
|
|
416
|
+
Claude Code (Backend Specialist - Stage 6: Implementation):
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
## Accessibility
|
|
422
|
+
|
|
423
|
+
### Screen Reader Friendly
|
|
424
|
+
- Clear stage names in agent indicators
|
|
425
|
+
- Status emojis have text equivalents
|
|
426
|
+
- Progress explicitly stated ("2 of 4 complete")
|
|
427
|
+
- File paths spoken clearly
|
|
428
|
+
|
|
429
|
+
### Keyboard Navigation
|
|
430
|
+
- All commands text-based (fully keyboard accessible)
|
|
431
|
+
- No mouse required
|
|
432
|
+
- Tab completion friendly (`/one <tab>` shows options)
|
|
433
|
+
|
|
434
|
+
### Error Recovery
|
|
435
|
+
- Clear error messages with stage context
|
|
436
|
+
- Suggestions for fixes
|
|
437
|
+
- Resume workflow from any stage
|
|
438
|
+
- Help available (`/one help workflow`)
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
## Success Criteria from Tests
|
|
443
|
+
|
|
444
|
+
### User Flows
|
|
445
|
+
- ✅ User completes full workflow (< 1 hour for simple feature)
|
|
446
|
+
- ✅ User checks workflow status anytime
|
|
447
|
+
- ✅ User resumes interrupted workflow
|
|
448
|
+
- ✅ User runs parallel stages correctly
|
|
449
|
+
- ✅ User understands next actions
|
|
450
|
+
|
|
451
|
+
### Acceptance Criteria
|
|
452
|
+
- ✅ Stage detection: < 100ms (file existence checks)
|
|
453
|
+
- ✅ Stage execution: Follows agent prompts correctly
|
|
454
|
+
- ✅ Progress tracking: Accurate file-based status
|
|
455
|
+
- ✅ User clarity: Always knows current stage and next action
|
|
456
|
+
- ✅ Workflow completion: All 6 stages documented
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
## Implementation Notes
|
|
461
|
+
|
|
462
|
+
**No orchestrator to build** - Just ensure workflow guide is clear:
|
|
463
|
+
1. Stage sequence documented ✅ (in Feature 1-2 spec)
|
|
464
|
+
2. Agent prompt references ✅ (each stage lists agent file)
|
|
465
|
+
3. File structure conventions ✅ (Feature 1-6)
|
|
466
|
+
4. CLI response patterns ✅ (this document)
|
|
467
|
+
|
|
468
|
+
**Claude Code handles orchestration** by:
|
|
469
|
+
- Reading workflow guide
|
|
470
|
+
- Checking file existence for stage detection
|
|
471
|
+
- Reading appropriate agent prompts
|
|
472
|
+
- Following agent instructions
|
|
473
|
+
- Creating files as needed
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
## Next Steps
|
|
478
|
+
|
|
479
|
+
Ready for Level 6 (Implementation):
|
|
480
|
+
- Workflow guide complete ✅ (Feature 1-2 spec)
|
|
481
|
+
- Stage instructions clear ✅
|
|
482
|
+
- Agent prompt references defined ✅
|
|
483
|
+
- CLI patterns documented ✅ (this document)
|
|
484
|
+
- Implementation is using the guide
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
**Status:** ✅ Design Complete
|
|
489
|
+
|
|
490
|
+
**Key Design Insights:**
|
|
491
|
+
1. **No UI to build** - CLI responses are natural conversation
|
|
492
|
+
2. **Stage awareness** - User always knows where they are in workflow
|
|
493
|
+
3. **Smart progression** - Claude detects stage from file existence
|
|
494
|
+
4. **Parallel guidance** - Clear indication when tasks can run in parallel
|
|
495
|
+
5. **Status at glance** - `/one workflow` shows complete progress
|
|
496
|
+
|
|
497
|
+
**The design is Claude's understanding of workflow stages + file-based status detection.** 🎯
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Tests for Feature 1-2: YAML-Driven Orchestrator
|
|
2
|
+
|
|
3
|
+
**Feature:** 1-2-yaml-orchestrator
|
|
4
|
+
**Status:** Tests Defined → Design Phase
|
|
5
|
+
**Quality Agent:** agent-quality.md
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## User Flows
|
|
10
|
+
|
|
11
|
+
### Flow 1: Load Workflow Configuration
|
|
12
|
+
**User goal:** Orchestrator reads YAML and understands workflow
|
|
13
|
+
**Time budget:** < 100ms
|
|
14
|
+
**Steps:**
|
|
15
|
+
1. Orchestrator starts
|
|
16
|
+
2. Reads `ontology-minimal.yaml`
|
|
17
|
+
3. Parses workflow section
|
|
18
|
+
4. Validates configuration structure
|
|
19
|
+
5. Ready to execute
|
|
20
|
+
|
|
21
|
+
**Acceptance Criteria:**
|
|
22
|
+
- [ ] Reads YAML file successfully
|
|
23
|
+
- [ ] Parses workflow.stages (6 levels)
|
|
24
|
+
- [ ] Parses workflow.agents (8 agents)
|
|
25
|
+
- [ ] Validates required fields present
|
|
26
|
+
- [ ] Load time: < 100ms
|
|
27
|
+
- [ ] Clear error if YAML invalid
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### Flow 2: Execute Complete Workflow
|
|
32
|
+
**User goal:** Orchestrator runs idea → implementation
|
|
33
|
+
**Time budget:** < 1 hour for simple feature
|
|
34
|
+
**Steps:**
|
|
35
|
+
1. User provides idea
|
|
36
|
+
2. Orchestrator executes Stage 1 (Ideas) - Director validates
|
|
37
|
+
3. Orchestrator executes Stage 2 (Plans) - Director creates plan
|
|
38
|
+
4. Orchestrator executes Stage 3 (Features) - Specialists write specs
|
|
39
|
+
5. Orchestrator executes Stage 4 (Tests) - Quality defines tests
|
|
40
|
+
6. Orchestrator executes Stage 5 (Design) - Design creates wireframes
|
|
41
|
+
7. Orchestrator executes Stage 6 (Implementation) - Specialists implement
|
|
42
|
+
8. Feature complete
|
|
43
|
+
|
|
44
|
+
**Acceptance Criteria:**
|
|
45
|
+
- [ ] All 6 stages execute in order
|
|
46
|
+
- [ ] Each stage produces expected output
|
|
47
|
+
- [ ] Context passed correctly between stages
|
|
48
|
+
- [ ] Events logged at each step
|
|
49
|
+
- [ ] Total time: < 1 hour (simple feature)
|
|
50
|
+
- [ ] No manual intervention needed
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Flow 3: Invoke Agent with Context
|
|
55
|
+
**User goal:** Orchestrator loads agent and provides correct context
|
|
56
|
+
**Time budget:** < 5 seconds per agent invocation
|
|
57
|
+
**Steps:**
|
|
58
|
+
1. Orchestrator determines which agent needed
|
|
59
|
+
2. Loads agent prompt from file
|
|
60
|
+
3. Assembles context within token budget
|
|
61
|
+
4. Invokes AI assistant with prompt + context
|
|
62
|
+
5. Receives agent output
|
|
63
|
+
6. Logs event
|
|
64
|
+
|
|
65
|
+
**Acceptance Criteria:**
|
|
66
|
+
- [ ] Correct agent selected for stage
|
|
67
|
+
- [ ] Agent prompt loaded (< 100ms)
|
|
68
|
+
- [ ] Context assembled within budget
|
|
69
|
+
- [ ] AI assistant invoked successfully
|
|
70
|
+
- [ ] Output captured completely
|
|
71
|
+
- [ ] Event logged with metadata
|
|
72
|
+
- [ ] Total time: < 5 seconds
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### Flow 4: Handle Parallel Execution
|
|
77
|
+
**User goal:** Multiple features execute simultaneously
|
|
78
|
+
**Time budget:** Same as sequential (parallelization = free performance)
|
|
79
|
+
**Steps:**
|
|
80
|
+
1. Orchestrator reaches Stage 3 (Features)
|
|
81
|
+
2. Multiple features assigned to specialists
|
|
82
|
+
3. Specialists work in parallel
|
|
83
|
+
4. Orchestrator waits for all to complete
|
|
84
|
+
5. Proceeds to next stage
|
|
85
|
+
|
|
86
|
+
**Acceptance Criteria:**
|
|
87
|
+
- [ ] Multiple agents invoked in parallel
|
|
88
|
+
- [ ] All agents complete successfully
|
|
89
|
+
- [ ] Results collected from all agents
|
|
90
|
+
- [ ] No race conditions
|
|
91
|
+
- [ ] Performance gain (3 features in parallel = ~1x time, not 3x)
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### Flow 5: Recover from Errors
|
|
96
|
+
**User goal:** Orchestrator handles failures gracefully
|
|
97
|
+
**Time budget:** < 30 seconds to detect and respond
|
|
98
|
+
**Steps:**
|
|
99
|
+
1. Orchestrator invokes agent
|
|
100
|
+
2. Agent throws error (network, timeout, invalid output)
|
|
101
|
+
3. Orchestrator catches error
|
|
102
|
+
4. Orchestrator retries (up to 3x)
|
|
103
|
+
5. If still failing, logs error and escalates
|
|
104
|
+
6. User notified with helpful message
|
|
105
|
+
|
|
106
|
+
**Acceptance Criteria:**
|
|
107
|
+
- [ ] Errors caught and logged
|
|
108
|
+
- [ ] Retry up to 3x
|
|
109
|
+
- [ ] Exponential backoff between retries
|
|
110
|
+
- [ ] Clear error messages to user
|
|
111
|
+
- [ ] State saved (can resume)
|
|
112
|
+
- [ ] Escalation after 3 failures
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Technical Tests
|
|
117
|
+
|
|
118
|
+
### Unit Tests
|
|
119
|
+
|
|
120
|
+
**Configuration Loading:**
|
|
121
|
+
- [ ] `loadWorkflowConfig()` parses YAML correctly
|
|
122
|
+
- [ ] `loadWorkflowConfig()` validates required fields
|
|
123
|
+
- [ ] `loadWorkflowConfig()` returns error on invalid YAML
|
|
124
|
+
- [ ] `loadWorkflowConfig()` caches configuration
|
|
125
|
+
|
|
126
|
+
**Stage Execution:**
|
|
127
|
+
- [ ] `executeStage("1_ideas", input)` calls director agent
|
|
128
|
+
- [ ] `executeStage("2_plans", input)` calls director agent
|
|
129
|
+
- [ ] `executeStage("3_features", input)` calls specialists (parallel)
|
|
130
|
+
- [ ] `executeStage("4_tests", input)` calls quality agent
|
|
131
|
+
- [ ] `executeStage("5_design", input)` calls design agent
|
|
132
|
+
- [ ] `executeStage("6_implementation", input)` calls specialists + quality
|
|
133
|
+
|
|
134
|
+
**Agent Invocation:**
|
|
135
|
+
- [ ] `runAgent(role, task, context)` loads correct prompt
|
|
136
|
+
- [ ] `runAgent(role, task, context)` assembles context
|
|
137
|
+
- [ ] `runAgent(role, task, context)` invokes AI assistant
|
|
138
|
+
- [ ] `runAgent(role, task, context)` logs event
|
|
139
|
+
- [ ] `runAgent(role, task, context)` returns output
|
|
140
|
+
|
|
141
|
+
**Parallel Execution:**
|
|
142
|
+
- [ ] `runAgentParallel(role, task, contexts)` invokes multiple agents
|
|
143
|
+
- [ ] `runAgentParallel()` waits for all to complete
|
|
144
|
+
- [ ] `runAgentParallel()` collects all results
|
|
145
|
+
- [ ] `runAgentParallel()` handles partial failures
|
|
146
|
+
|
|
147
|
+
**Context Assembly:**
|
|
148
|
+
- [ ] `assembleContext(role, input)` loads ontology types
|
|
149
|
+
- [ ] `assembleContext(role, input)` loads patterns
|
|
150
|
+
- [ ] `assembleContext(role, input)` stays within budget
|
|
151
|
+
- [ ] `assembleContext(role, input)` prioritizes recent lessons
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### Integration Tests
|
|
156
|
+
|
|
157
|
+
**Complete Workflow Execution:**
|
|
158
|
+
- [ ] Idea → Plan → Features → Tests → Design → Implementation
|
|
159
|
+
- [ ] All stages execute successfully
|
|
160
|
+
- [ ] Context passed correctly
|
|
161
|
+
- [ ] Events logged at each step
|
|
162
|
+
- [ ] Output files created in correct locations
|
|
163
|
+
|
|
164
|
+
**Multi-Feature Parallel Execution:**
|
|
165
|
+
- [ ] Plan with 3 features executes
|
|
166
|
+
- [ ] Features execute in parallel at Stage 3
|
|
167
|
+
- [ ] All features complete
|
|
168
|
+
- [ ] Results collected correctly
|
|
169
|
+
|
|
170
|
+
**Error Handling:**
|
|
171
|
+
- [ ] Agent failure triggers retry
|
|
172
|
+
- [ ] 3 retries attempted
|
|
173
|
+
- [ ] Escalation after 3 failures
|
|
174
|
+
- [ ] State saved for resume
|
|
175
|
+
|
|
176
|
+
**Event Integration:**
|
|
177
|
+
- [ ] All workflow events logged
|
|
178
|
+
- [ ] Events contain correct metadata
|
|
179
|
+
- [ ] Events enable coordination
|
|
180
|
+
- [ ] Complete audit trail available
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
### E2E Tests
|
|
185
|
+
|
|
186
|
+
**Simple Feature (End-to-End):**
|
|
187
|
+
- [ ] User provides: "Add password reset"
|
|
188
|
+
- [ ] Orchestrator validates idea (Stage 1)
|
|
189
|
+
- [ ] Orchestrator creates plan (Stage 2)
|
|
190
|
+
- [ ] Orchestrator assigns to specialists (Stage 3)
|
|
191
|
+
- [ ] Quality defines tests (Stage 4)
|
|
192
|
+
- [ ] Design creates wireframes (Stage 5)
|
|
193
|
+
- [ ] Specialists implement (Stage 6)
|
|
194
|
+
- [ ] Feature complete
|
|
195
|
+
- [ ] Total time: < 1 hour
|
|
196
|
+
|
|
197
|
+
**Complex Feature (Multiple Specialists):**
|
|
198
|
+
- [ ] User provides: "Build course platform"
|
|
199
|
+
- [ ] Orchestrator creates plan with 4 features
|
|
200
|
+
- [ ] Features execute in parallel
|
|
201
|
+
- [ ] All specialists coordinate
|
|
202
|
+
- [ ] Quality validates all features
|
|
203
|
+
- [ ] All features complete
|
|
204
|
+
- [ ] Total time: < 4 hours
|
|
205
|
+
|
|
206
|
+
**Performance:**
|
|
207
|
+
- [ ] Configuration load: < 100ms
|
|
208
|
+
- [ ] Agent invocation: < 5 seconds
|
|
209
|
+
- [ ] Stage execution: < 10 minutes per stage
|
|
210
|
+
- [ ] Total workflow: < 1 hour (simple feature)
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Definition of Done
|
|
215
|
+
|
|
216
|
+
- [ ] Orchestrator reads YAML configuration
|
|
217
|
+
- [ ] All 6 stages execute correctly
|
|
218
|
+
- [ ] Agents invoked with correct context
|
|
219
|
+
- [ ] Parallel execution works
|
|
220
|
+
- [ ] Error handling and retry logic works
|
|
221
|
+
- [ ] Events logged throughout
|
|
222
|
+
- [ ] Code under 200 lines total
|
|
223
|
+
- [ ] All tests pass
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
**Next:** Design phase - Orchestrator architecture and class structure
|