sinapse-ai 5.0.7 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +1 -1
- package/.claude/rules/agent-authority.md +10 -10
- package/.claude/rules/agent-memory-imports.md +4 -4
- package/.claude/rules/coderabbit-integration.md +4 -4
- package/.claude/rules/ids-principles.md +5 -5
- package/.claude/rules/story-lifecycle.md +15 -15
- package/.claude/rules/workflow-execution.md +11 -11
- package/.sinapse-ai/constitution.md +3 -3
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +7 -7
- package/.sinapse-ai/core/config/config-loader.js +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -1
- package/.sinapse-ai/core/ids/framework-governor.js +4 -4
- package/.sinapse-ai/core/ids/index.js +1 -1
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -1
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -1
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +2 -2
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +4 -4
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -1
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +3 -3
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -1
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +3 -3
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -1
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +1 -1
- package/.sinapse-ai/core/session/context-loader.js +1 -1
- package/.sinapse-ai/data/agent-config-requirements.yaml +3 -3
- package/.sinapse-ai/data/entity-registry.yaml +2126 -2570
- package/.sinapse-ai/data/registry-update-log.jsonl +316 -0
- package/.sinapse-ai/data/sinapse-kb.md +13 -13
- package/.sinapse-ai/data/tech-presets/csharp.md +2 -2
- package/.sinapse-ai/data/tech-presets/go.md +2 -2
- package/.sinapse-ai/data/tech-presets/java.md +2 -2
- package/.sinapse-ai/data/tech-presets/nextjs-react.md +1 -1
- package/.sinapse-ai/data/tech-presets/php.md +2 -2
- package/.sinapse-ai/data/tech-presets/rust.md +2 -2
- package/.sinapse-ai/data/technical-preferences.md +1 -1
- package/.sinapse-ai/data/workflow-chains.yaml +15 -15
- package/.sinapse-ai/development/README.md +1 -1
- package/.sinapse-ai/development/agent-teams/team-qa-focused.yaml +7 -7
- package/.sinapse-ai/development/agents/analyst.md +6 -6
- package/.sinapse-ai/development/agents/architect.md +4 -4
- package/.sinapse-ai/development/agents/data-engineer.md +2 -2
- package/.sinapse-ai/development/agents/{dev.md → developer.md} +7 -7
- package/.sinapse-ai/development/agents/devops.md +4 -4
- package/.sinapse-ai/development/agents/{po → product-lead}/MEMORY.md +3 -3
- package/.sinapse-ai/development/agents/{po.md → product-lead.md} +25 -25
- package/.sinapse-ai/development/agents/{pm → project-lead}/MEMORY.md +2 -2
- package/.sinapse-ai/development/agents/{pm.md → project-lead.md} +15 -15
- package/.sinapse-ai/development/agents/{qa.md → quality-gate.md} +8 -8
- package/.sinapse-ai/development/agents/{sinapse-master.md → sinapse-orqx.md} +12 -12
- package/.sinapse-ai/development/agents/{sm.md → sprint-lead.md} +18 -18
- package/.sinapse-ai/development/agents/squad-creator.md +4 -4
- package/.sinapse-ai/development/agents/ux-design-expert.md +2 -2
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +1 -1
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +1 -1
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -1
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -1
- package/.sinapse-ai/development/scripts/audit-agent-config.js +2 -2
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +2 -2
- package/.sinapse-ai/development/scripts/test-greeting-system.js +4 -4
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +2 -2
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +9 -9
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-project-structure.md +4 -4
- package/.sinapse-ai/development/tasks/apply-qa-fixes.md +1 -1
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/brownfield-create-epic.md +10 -10
- package/.sinapse-ai/development/tasks/brownfield-create-story.md +1 -1
- package/.sinapse-ai/development/tasks/build-autonomous.md +1 -1
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +6 -6
- package/.sinapse-ai/development/tasks/create-agent.md +1 -1
- package/.sinapse-ai/development/tasks/create-brownfield-story.md +4 -4
- package/.sinapse-ai/development/tasks/create-next-story.md +12 -12
- package/.sinapse-ai/development/tasks/create-service.md +2 -2
- package/.sinapse-ai/development/tasks/create-suite.md +1 -1
- package/.sinapse-ai/development/tasks/dev-backlog-debt.md +3 -3
- package/.sinapse-ai/development/tasks/dev-develop-story.md +5 -5
- package/.sinapse-ai/development/tasks/environment-bootstrap.md +2 -2
- package/.sinapse-ai/development/tasks/execute-checklist.md +1 -1
- package/.sinapse-ai/development/tasks/execute-epic-plan.md +11 -11
- package/.sinapse-ai/development/tasks/extract-patterns.md +2 -2
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +2 -2
- package/.sinapse-ai/development/tasks/github-devops-github-pr-automation.md +1 -1
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -1
- package/.sinapse-ai/development/tasks/ids-governor.md +3 -3
- package/.sinapse-ai/development/tasks/next.md +2 -2
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -1
- package/.sinapse-ai/development/tasks/patterns.md +2 -2
- package/.sinapse-ai/development/tasks/plan-create-context.md +2 -2
- package/.sinapse-ai/development/tasks/plan-execute-subtask.md +3 -3
- package/.sinapse-ai/development/tasks/po-close-story.md +3 -3
- package/.sinapse-ai/development/tasks/project-status.md +2 -2
- package/.sinapse-ai/development/tasks/qa-after-creation.md +2 -2
- package/.sinapse-ai/development/tasks/qa-backlog-add-followup.md +3 -3
- package/.sinapse-ai/development/tasks/qa-create-fix-request.md +8 -8
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -1
- package/.sinapse-ai/development/tasks/qa-fix-issues.md +10 -10
- package/.sinapse-ai/development/tasks/qa-gate.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-build.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-story.md +2 -2
- package/.sinapse-ai/development/tasks/qa-run-tests.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow-engine.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/security-scan.md +2 -2
- package/.sinapse-ai/development/tasks/setup-llm-routing.md +1 -1
- package/.sinapse-ai/development/tasks/spec-critique.md +4 -4
- package/.sinapse-ai/development/tasks/spec-gather-requirements.md +4 -4
- package/.sinapse-ai/development/tasks/spec-write-spec.md +2 -2
- package/.sinapse-ai/development/tasks/story-checkpoint.md +3 -3
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -1
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -1
- package/.sinapse-ai/development/tasks/validate-next-story.md +10 -10
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/verify-subtask.md +2 -2
- package/.sinapse-ai/development/templates/code-intel-integration-pattern.md +3 -3
- package/.sinapse-ai/development/templates/subagent-step-prompt.md +2 -2
- package/.sinapse-ai/development/workflows/README.md +2 -2
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +11 -11
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +6 -6
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/development-cycle.yaml +10 -10
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +6 -6
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +7 -7
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -1
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +2 -2
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -1
- package/.sinapse-ai/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +2 -2
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -1
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -1
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -6
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +2 -2
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +6 -6
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +3 -3
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +1 -1
- package/.sinapse-ai/install-manifest.yaml +344 -344
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +1 -1
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/story-draft-checklist.md +3 -3
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +3 -3
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +4 -4
- package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +1 -1
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +2 -2
- package/.sinapse-ai/product/templates/ide-rules/codex-rules.md +6 -6
- package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +1 -1
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -1
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +3 -3
- package/.sinapse-ai/product/templates/story-tmpl.yaml +8 -8
- package/.sinapse-ai/schemas/README.md +15 -15
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +2 -2
- package/.sinapse-ai/user-guide.md +4 -4
- package/.sinapse-ai/working-in-the-brownfield.md +3 -3
- package/LICENSE +4 -4
- package/README.en.md +6 -6
- package/README.md +8 -8
- package/bin/cli.js +10 -10
- package/bin/sinapse.js +17 -0
- package/docs/00-shared-activation-pipeline.md +16 -16
- package/docs/FEATURE_PROCESS.md +1 -1
- package/docs/ORQX-PLAN.md +264 -0
- package/docs/core-architecture.md +2 -2
- package/docs/en/sinapse-agent-flows/README.md +2 -2
- package/docs/en/sinapse-agent-flows/dev-system.md +2 -2
- package/docs/en/sinapse-agent-flows/pm-system.md +2 -2
- package/docs/en/sinapse-agent-flows/qa-system.md +2 -2
- package/docs/en/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +5 -5
- package/docs/en/sinapse-agent-flows/sm-system.md +2 -2
- package/docs/framework/entity-layer-classification.md +2 -2
- package/docs/framework/source-tree.md +17 -17
- package/docs/getting-started.md +13 -13
- package/docs/guides/IDS-CONCEITOS-EXPLICADOS.md +17 -17
- package/docs/guides/MEMORY-INTEGRATION.md +3 -3
- package/docs/guides/MEMORY-INTELLIGENCE-SYSTEM.md +4 -4
- package/docs/guides/ade-guide.md +25 -25
- package/docs/guides/agent-selection-guide.md +36 -36
- package/docs/guides/agents/ANALYST-SYSTEM.md +5 -5
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +9 -9
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +8 -8
- package/docs/guides/agents/DEV-SYSTEM.md +27 -27
- package/docs/guides/agents/DEVOPS-SYSTEM.md +5 -5
- package/docs/guides/agents/PM-SYSTEM.md +24 -24
- package/docs/guides/agents/QA-SYSTEM.md +24 -24
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +26 -26
- package/docs/guides/agents/SM-SYSTEM.md +31 -31
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +2 -2
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +10 -10
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +16 -16
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +16 -16
- package/docs/guides/agents/traces/README.md +20 -20
- package/docs/guides/agents/traces/analyst-execution-trace.md +6 -6
- package/docs/guides/agents/traces/architect-execution-trace.md +3 -3
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +4 -4
- package/docs/guides/agents/traces/dev-execution-trace.md +12 -12
- package/docs/guides/agents/traces/devops-execution-trace.md +6 -6
- package/docs/guides/agents/traces/pm-execution-trace.md +14 -14
- package/docs/guides/agents/traces/po-execution-trace.md +17 -17
- package/docs/guides/agents/traces/qa-execution-trace.md +15 -15
- package/docs/guides/agents/traces/{sinapse-master-execution-trace.md → sinapse-orqx-execution-trace.md} +22 -22
- package/docs/guides/agents/traces/sm-execution-trace.md +15 -15
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +9 -9
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +4 -4
- package/docs/guides/api-reference.md +27 -27
- package/docs/guides/coderabbit/README.md +9 -9
- package/docs/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/project-status-feature.md +2 -2
- package/docs/guides/quality-dashboard.md +2 -2
- package/docs/guides/quality-gates.md +6 -6
- package/docs/guides/template-engine-v2.md +2 -2
- package/docs/guides/user-guide.md +13 -13
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +6 -6
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +30 -30
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +38 -38
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +25 -25
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +37 -37
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +5 -5
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +19 -19
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +13 -13
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +19 -19
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +25 -25
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +28 -28
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +94 -94
- package/docs/guides/workflows/xref-phase2-templates.md +29 -29
- package/docs/guides/workflows/xref-phase3-scripts.md +33 -33
- package/docs/guides/workflows/xref-phase4-infra.md +2 -2
- package/docs/guides/workflows/xref-phase6-supporting.md +1 -1
- package/docs/guides/workflows-guide.md +2 -2
- package/docs/installation/faq.md +1 -1
- package/docs/installation/troubleshooting.md +2 -2
- package/docs/installation/v4-quick-start.md +2 -2
- package/docs/prd-cli-graph-dashboard.md +1 -1
- package/docs/pt/DOCUMENTATION-ROADMAP.md +1 -1
- package/docs/pt/FEATURE_PROCESS.md +1 -1
- package/docs/pt/README.md +2 -2
- package/docs/pt/agents/archetype-rationale.md +4 -4
- package/docs/pt/agents/persona-definitions.md +9 -9
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +15 -15
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +8 -8
- package/docs/pt/architecture/ade-architecture.md +4 -4
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +3 -3
- package/docs/pt/architecture/agent-config-audit.md +4 -4
- package/docs/pt/architecture/agent-responsibility-matrix.md +20 -20
- package/docs/pt/architecture/agent-tool-integration-guide.md +8 -8
- package/docs/pt/architecture/contribution-workflow-research.md +1 -1
- package/docs/pt/architecture/dashboard-architecture.md +1 -1
- package/docs/pt/architecture/hcs-check-specifications.md +1 -1
- package/docs/pt/architecture/hcs-execution-modes.md +1 -1
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -1
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/architecture/module-system.md +1 -1
- package/docs/pt/architecture/source-tree.md +1 -1
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +2 -2
- package/docs/pt/architecture/utility-integration-guide.md +2 -2
- package/docs/pt/contributing.md +1 -1
- package/docs/pt/core-architecture.md +2 -2
- package/docs/pt/framework/source-tree.md +1 -1
- package/docs/pt/guides/ade-guide.md +25 -25
- package/docs/pt/guides/agent-selection-guide.md +36 -36
- package/docs/pt/guides/api-reference.md +25 -25
- package/docs/pt/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/pt/guides/development-setup.md +1 -1
- package/docs/pt/guides/project-status-feature.md +2 -2
- package/docs/pt/guides/quality-dashboard.md +2 -2
- package/docs/pt/guides/quality-gates.md +6 -6
- package/docs/pt/guides/template-engine-v2.md +2 -2
- package/docs/pt/guides/user-guide.md +8 -8
- package/docs/pt/guides/workflows-guide.md +2 -2
- package/docs/pt/installation/faq.md +1 -1
- package/docs/pt/installation/troubleshooting.md +2 -2
- package/docs/pt/installation/v4-quick-start.md +2 -2
- package/docs/pt/platforms/antigravity.md +9 -9
- package/docs/pt/platforms/cursor.md +15 -15
- package/docs/pt/platforms/gemini-cli.md +3 -3
- package/docs/pt/roadmap.md +1 -1
- package/docs/pt/sinapse-nomenclature-specification.md +15 -15
- package/docs/pt/specifications/docs-agent-technical-specification.md +11 -11
- package/docs/roadmap.md +1 -1
- package/docs/sinapse-agent-flows/README.md +2 -2
- package/docs/sinapse-agent-flows/analyst-system.md +5 -5
- package/docs/sinapse-agent-flows/architect-system.md +9 -9
- package/docs/sinapse-agent-flows/data-engineer-system.md +8 -8
- package/docs/sinapse-agent-flows/dev-system.md +27 -27
- package/docs/sinapse-agent-flows/devops-system.md +5 -5
- package/docs/sinapse-agent-flows/pm-system.md +24 -24
- package/docs/sinapse-agent-flows/qa-system.md +24 -24
- package/docs/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +26 -26
- package/docs/sinapse-agent-flows/sm-system.md +31 -31
- package/docs/sinapse-agent-flows/squad-creator-system.md +2 -2
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +10 -10
- package/docs/sinapse-workflows/auto-worktree-workflow.md +3 -3
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +6 -6
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +30 -30
- package/docs/sinapse-workflows/brownfield-service-workflow.md +38 -38
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +25 -25
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +37 -37
- package/docs/sinapse-workflows/greenfield-service-workflow.md +5 -5
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +19 -19
- package/docs/sinapse-workflows/qa-loop-workflow.md +13 -13
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +25 -25
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +28 -28
- package/package.json +1 -1
- package/packages/gemini-sinapse-extension/README.md +1 -1
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +1 -1
- package/packages/gemini-sinapse-extension/commands/{sinapse-master.js → sinapse-orqx.js} +1 -1
- package/packages/gemini-sinapse-extension/extension.json +3 -3
- package/packages/gemini-sinapse-extension/gemini-extension.json +3 -3
- package/packages/installer/src/config/configure-environment.js +2 -2
- package/packages/installer/src/updater/index.js +105 -0
- package/packages/installer/src/wizard/feedback.js +38 -30
- package/packages/installer/src/wizard/i18n.js +25 -182
- package/packages/installer/src/wizard/ide-config-generator.js +1 -1
- package/packages/installer/src/wizard/index.js +253 -69
- package/packages/installer/src/wizard/questions.js +35 -7
- package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +1 -1
- package/packages/sinapse-install/README.md +1 -1
- package/packages/sinapse-install/src/installer.js +1 -1
- package/scripts/package-synapse.js +1 -1
- package/sinapse/agents/{sinapse-master.md → sinapse-orqx.md} +16 -16
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -1
- package/sinapse/knowledge-base/routing-catalog.md +1 -1
- package/sinapse/squad.yaml +1 -1
- package/sinapse/tasks/compose-multi-squad-plan.md +2 -2
- package/sinapse/tasks/coordinate-cross-squad.md +2 -2
- package/sinapse/tasks/diagnose-and-route.md +2 -2
- package/sinapse/tasks/onboard-user.md +2 -2
- package/sinapse/tasks/resolve-conflict.md +2 -2
- package/sinapse/tasks/squad-status-report.md +2 -2
- package/sinapse/tasks/strategic-brief.md +3 -3
- package/squads/squad-animations/agents/animations-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-creative-engineer.md +1 -1
- package/squads/squad-brand/agents/brand-motion-vfx.md +1 -1
- package/squads/squad-brand/agents/brand-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
- package/squads/squad-brand/agents/brand-system-architect.md +1 -1
- package/squads/squad-claude/agents/claude-orqx.md +2 -2
- package/squads/squad-cloning/agents/cloning-orqx.md +3 -3
- package/squads/squad-commercial/agents/commercial-orqx.md +1 -1
- package/squads/squad-commercial/agents/cs-business-auditor.md +1 -1
- package/squads/squad-commercial/agents/cs-client-success.md +1 -1
- package/squads/squad-commercial/agents/cs-crm-specialist.md +1 -1
- package/squads/squad-commercial/agents/cs-funnel-architect.md +1 -1
- package/squads/squad-commercial/agents/cs-lead-generation-strategist.md +1 -1
- package/squads/squad-commercial/agents/cs-offer-designer.md +1 -1
- package/squads/squad-commercial/agents/cs-revops-analyst.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-enablement.md +1 -1
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +1 -1
- package/squads/squad-content/agents/content-orqx.md +2 -2
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +1 -1
- package/squads/squad-copy/agents/copy-strategist.md +3 -3
- package/squads/squad-copy/knowledge-base/consequence-headline-patterns.md +1 -1
- package/squads/squad-council/agents/council-orqx.md +1 -1
- package/squads/squad-courses/agents/courses-orqx.md +1 -1
- package/squads/squad-cybersecurity/agents/cyber-orqx.md +2 -2
- package/squads/squad-design/agents/design-orqx.md +2 -2
- package/squads/squad-finance/agents/finance-orqx.md +2 -2
- package/squads/squad-growth/agents/growth-orqx.md +2 -2
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +2 -2
- package/squads/squad-product/agents/product-orqx.md +2 -2
- package/squads/squad-research/agents/research-orqx.md +2 -2
- package/squads/squad-research/tasks/create-executive-briefing.md +1 -1
- package/squads/squad-research/tasks/create-insight-deck.md +1 -1
- package/squads/squad-research/tasks/forecast-industry-trends.md +1 -1
- package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
- package/squads/squad-research/tasks/run-scenario-planning.md +2 -2
- package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
- package/squads/squad-research/tasks/track-emerging-technologies.md +1 -1
- package/squads/squad-storytelling/agents/storytelling-orqx.md +2 -2
- package/docs/es/CHANGELOG.md +0 -117
- package/docs/es/DOCUMENTATION-ROADMAP.md +0 -216
- package/docs/es/ENVIRONMENT.md +0 -140
- package/docs/es/FEATURE_PROCESS.md +0 -99
- package/docs/es/GUIDING-PRINCIPLES.md +0 -101
- package/docs/es/README.md +0 -134
- package/docs/es/agent-reference-guide.md +0 -570
- package/docs/es/agents/archetype-rationale.md +0 -566
- package/docs/es/agents/persona-definitions.md +0 -501
- package/docs/es/api/squads-api.md +0 -753
- package/docs/es/architecture/ADE-AGENT-CHANGES.md +0 -469
- package/docs/es/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/es/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/es/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/es/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/es/architecture/ARCHITECTURE-INDEX.md +0 -188
- package/docs/es/architecture/ade-architecture.md +0 -586
- package/docs/es/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/es/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/es/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/es/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/es/architecture/agent-config-audit.md +0 -222
- package/docs/es/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/es/architecture/agent-tool-integration-guide.md +0 -334
- package/docs/es/architecture/ci-cd.md +0 -151
- package/docs/es/architecture/coding-standards.md +0 -896
- package/docs/es/architecture/contribution-workflow-research.md +0 -376
- package/docs/es/architecture/dashboard-architecture.md +0 -926
- package/docs/es/architecture/dashboard-realtime.md +0 -1253
- package/docs/es/architecture/hcs-check-specifications.md +0 -897
- package/docs/es/architecture/hcs-execution-modes.md +0 -519
- package/docs/es/architecture/hcs-self-healing-spec.md +0 -695
- package/docs/es/architecture/high-level-architecture.md +0 -357
- package/docs/es/architecture/introduction.md +0 -21
- package/docs/es/architecture/mcp-api-keys-management.md +0 -246
- package/docs/es/architecture/mcp-system-diagrams.md +0 -113
- package/docs/es/architecture/module-system.md +0 -382
- package/docs/es/architecture/multi-repo-strategy.md +0 -390
- package/docs/es/architecture/source-tree.md +0 -708
- package/docs/es/architecture/squad-improvement-analysis.md +0 -204
- package/docs/es/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/es/architecture/tech-stack.md +0 -806
- package/docs/es/architecture/utility-integration-guide.md +0 -358
- package/docs/es/community/README-community-snippet-core.md +0 -57
- package/docs/es/community/README-community-snippet-mcp.md +0 -49
- package/docs/es/community/README-community-snippet-squads.md +0 -40
- package/docs/es/community.md +0 -227
- package/docs/es/core-architecture.md +0 -229
- package/docs/es/docker-mcp-setup.md +0 -426
- package/docs/es/framework/README.md +0 -99
- package/docs/es/framework/coding-standards.md +0 -892
- package/docs/es/framework/source-tree.md +0 -725
- package/docs/es/framework/tech-stack.md +0 -802
- package/docs/es/getting-started.md +0 -572
- package/docs/es/git-workflow-guide.md +0 -995
- package/docs/es/guides/README.md +0 -133
- package/docs/es/guides/ade-guide.md +0 -452
- package/docs/es/guides/agent-selection-guide.md +0 -295
- package/docs/es/guides/api-reference.md +0 -899
- package/docs/es/guides/build-recovery-guide.md +0 -270
- package/docs/es/guides/contextual-greeting-system-guide.md +0 -387
- package/docs/es/guides/contributing-squads.md +0 -256
- package/docs/es/guides/development-setup.md +0 -1111
- package/docs/es/guides/ide-sync-guide.md +0 -194
- package/docs/es/guides/installation-troubleshooting.md +0 -327
- package/docs/es/guides/llm-routing.md +0 -312
- package/docs/es/guides/mcp/desktop-commander.md +0 -368
- package/docs/es/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/es/guides/mcp-global-setup.md +0 -663
- package/docs/es/guides/permission-modes.md +0 -313
- package/docs/es/guides/project-status-feature.md +0 -473
- package/docs/es/guides/quality-dashboard.md +0 -367
- package/docs/es/guides/quality-gates.md +0 -614
- package/docs/es/guides/security-hardening.md +0 -1359
- package/docs/es/guides/service-discovery.md +0 -524
- package/docs/es/guides/squad-examples/README.md +0 -64
- package/docs/es/guides/squad-migration.md +0 -356
- package/docs/es/guides/squads-guide.md +0 -836
- package/docs/es/guides/squads-overview.md +0 -332
- package/docs/es/guides/template-engine-v2.md +0 -484
- package/docs/es/guides/testing-guide.md +0 -1215
- package/docs/es/guides/user-guide.md +0 -452
- package/docs/es/guides/workflows-guide.md +0 -400
- package/docs/es/how-to-contribute-with-pull-requests.md +0 -160
- package/docs/es/ide-integration.md +0 -425
- package/docs/es/installation/README.md +0 -108
- package/docs/es/installation/faq.md +0 -616
- package/docs/es/installation/linux.md +0 -311
- package/docs/es/installation/macos.md +0 -189
- package/docs/es/installation/troubleshooting.md +0 -735
- package/docs/es/installation/v4-quick-start.md +0 -269
- package/docs/es/installation/windows.md +0 -342
- package/docs/es/meta-agent-commands.md +0 -990
- package/docs/es/migration-guide.md +0 -310
- package/docs/es/npx-install.md +0 -193
- package/docs/es/performance-tuning-guide.md +0 -707
- package/docs/es/platforms/README.md +0 -283
- package/docs/es/platforms/antigravity.md +0 -510
- package/docs/es/platforms/claude-code.md +0 -650
- package/docs/es/platforms/cursor.md +0 -635
- package/docs/es/platforms/gemini-cli.md +0 -483
- package/docs/es/platforms/github-copilot.md +0 -480
- package/docs/es/roadmap.md +0 -119
- package/docs/es/security-best-practices.md +0 -613
- package/docs/es/security.md +0 -124
- package/docs/es/sinapse-agent-flows/README.md +0 -190
- package/docs/es/sinapse-agent-flows/analyst-system.md +0 -36
- package/docs/es/sinapse-agent-flows/architect-system.md +0 -36
- package/docs/es/sinapse-agent-flows/data-engineer-system.md +0 -36
- package/docs/es/sinapse-agent-flows/dev-system.md +0 -36
- package/docs/es/sinapse-agent-flows/devops-system.md +0 -36
- package/docs/es/sinapse-agent-flows/pm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/qa-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sinapse-master-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/squad-creator-system.md +0 -36
- package/docs/es/sinapse-agent-flows/ux-design-expert-system.md +0 -36
- package/docs/es/sinapse-nomenclature-specification.md +0 -673
- package/docs/es/sinapse-workflows/README.md +0 -247
- package/docs/es/sinapse-workflows/auto-worktree-workflow.md +0 -39
- package/docs/es/sinapse-workflows/brownfield-discovery-workflow.md +0 -41
- package/docs/es/sinapse-workflows/brownfield-fullstack-workflow.md +0 -42
- package/docs/es/sinapse-workflows/brownfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/brownfield-ui-workflow.md +0 -42
- package/docs/es/sinapse-workflows/design-system-build-quality-workflow.md +0 -40
- package/docs/es/sinapse-workflows/greenfield-fullstack-workflow.md +0 -44
- package/docs/es/sinapse-workflows/greenfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/greenfield-ui-workflow.md +0 -43
- package/docs/es/sinapse-workflows/qa-loop-workflow.md +0 -39
- package/docs/es/sinapse-workflows/spec-pipeline-workflow.md +0 -40
- package/docs/es/sinapse-workflows/story-development-cycle-workflow.md +0 -42
- package/docs/es/specifications/docs-agent-technical-specification.md +0 -2161
- package/docs/es/troubleshooting.md +0 -887
- package/docs/es/uninstallation.md +0 -556
- package/docs/es/versioning-and-releases.md +0 -146
- package/docs/zh/CHANGELOG.md +0 -191
- package/docs/zh/ENVIRONMENT.md +0 -136
- package/docs/zh/FEATURE_PROCESS.md +0 -92
- package/docs/zh/GLOSSARY.md +0 -179
- package/docs/zh/GUIDING-PRINCIPLES.md +0 -97
- package/docs/zh/README.md +0 -133
- package/docs/zh/TRANSLATION-PLAN.md +0 -508
- package/docs/zh/agent-reference-guide.md +0 -566
- package/docs/zh/agents/archetype-rationale.md +0 -631
- package/docs/zh/agents/persona-definitions.md +0 -560
- package/docs/zh/api/squads-api.md +0 -753
- package/docs/zh/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/zh/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/zh/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/zh/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/zh/architecture/ARCHITECTURE-INDEX.md +0 -190
- package/docs/zh/architecture/SINAPSE-VISUAL-OVERVIEW.md +0 -595
- package/docs/zh/architecture/ade-architecture.md +0 -474
- package/docs/zh/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/zh/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/zh/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/zh/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/zh/architecture/agent-config-audit.md +0 -220
- package/docs/zh/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/zh/architecture/agent-tool-integration-guide.md +0 -336
- package/docs/zh/architecture/ci-cd.md +0 -151
- package/docs/zh/architecture/coding-standards.md +0 -898
- package/docs/zh/architecture/command-authority-matrix.md +0 -18
- package/docs/zh/architecture/contribution-workflow-research.md +0 -376
- package/docs/zh/architecture/dashboard-architecture.md +0 -569
- package/docs/zh/architecture/dashboard-realtime.md +0 -415
- package/docs/zh/architecture/hcs-check-specifications.md +0 -102
- package/docs/zh/architecture/hcs-execution-modes.md +0 -114
- package/docs/zh/architecture/hcs-self-healing-spec.md +0 -148
- package/docs/zh/architecture/high-level-architecture.md +0 -355
- package/docs/zh/architecture/introduction.md +0 -21
- package/docs/zh/architecture/mcp-api-keys-management.md +0 -248
- package/docs/zh/architecture/mcp-system-diagrams.md +0 -113
- package/docs/zh/architecture/module-system.md +0 -382
- package/docs/zh/architecture/multi-repo-strategy.md +0 -237
- package/docs/zh/architecture/source-tree.md +0 -710
- package/docs/zh/architecture/squad-improvement-analysis.md +0 -204
- package/docs/zh/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/zh/architecture/tech-stack.md +0 -808
- package/docs/zh/architecture/utility-integration-guide.md +0 -358
- package/docs/zh/code-of-conduct.md +0 -113
- package/docs/zh/community/README-community-snippet-core.md +0 -57
- package/docs/zh/community/README-community-snippet-mcp.md +0 -49
- package/docs/zh/community/README-community-snippet-squads.md +0 -40
- package/docs/zh/community.md +0 -227
- package/docs/zh/contributing.md +0 -581
- package/docs/zh/core-architecture.md +0 -229
- package/docs/zh/docker-mcp-setup.md +0 -226
- package/docs/zh/framework/README.md +0 -97
- package/docs/zh/framework/coding-standards.md +0 -886
- package/docs/zh/framework/source-tree.md +0 -888
- package/docs/zh/framework/tech-stack.md +0 -796
- package/docs/zh/getting-started.md +0 -317
- package/docs/zh/git-workflow-guide.md +0 -988
- package/docs/zh/guides/MEMORY-INTEGRATION.md +0 -497
- package/docs/zh/guides/MEMORY-INTELLIGENCE-SYSTEM.md +0 -1083
- package/docs/zh/guides/MEMORY-SYSTEM.md +0 -1003
- package/docs/zh/guides/README.md +0 -127
- package/docs/zh/guides/ade-guide.md +0 -446
- package/docs/zh/guides/agent-selection-guide.md +0 -289
- package/docs/zh/guides/api-reference.md +0 -427
- package/docs/zh/guides/build-recovery-guide.md +0 -266
- package/docs/zh/guides/contextual-greeting-system-guide.md +0 -381
- package/docs/zh/guides/contributing-squads.md +0 -250
- package/docs/zh/guides/development-setup.md +0 -384
- package/docs/zh/guides/ide-sync-guide.md +0 -193
- package/docs/zh/guides/installation-troubleshooting.md +0 -321
- package/docs/zh/guides/llm-routing.md +0 -306
- package/docs/zh/guides/mcp/desktop-commander.md +0 -368
- package/docs/zh/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/zh/guides/mcp-global-setup.md +0 -696
- package/docs/zh/guides/permission-modes.md +0 -307
- package/docs/zh/guides/project-status-feature.md +0 -467
- package/docs/zh/guides/quality-dashboard.md +0 -361
- package/docs/zh/guides/quality-gates.md +0 -462
- package/docs/zh/guides/security-hardening.md +0 -1055
- package/docs/zh/guides/service-discovery.md +0 -518
- package/docs/zh/guides/squad-examples/README.md +0 -63
- package/docs/zh/guides/squad-migration.md +0 -336
- package/docs/zh/guides/template-engine-v2.md +0 -478
- package/docs/zh/guides/workflows-guide.md +0 -408
- package/docs/zh/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/zh/installation/README.md +0 -106
- package/docs/zh/installation/faq.md +0 -611
- package/docs/zh/installation/linux.md +0 -447
- package/docs/zh/installation/macos.md +0 -187
- package/docs/zh/installation/troubleshooting.md +0 -729
- package/docs/zh/installation/windows.md +0 -475
- package/docs/zh/meta-agent-commands.md +0 -990
- package/docs/zh/security-best-practices.md +0 -610
- package/docs/zh/security.md +0 -124
- package/docs/zh/sinapse-agent-flows/README.md +0 -196
- package/docs/zh/sinapse-agent-flows/analyst-system.md +0 -679
- package/docs/zh/sinapse-agent-flows/architect-system.md +0 -246
- package/docs/zh/sinapse-agent-flows/data-engineer-system.md +0 -418
- package/docs/zh/sinapse-agent-flows/dev-system.md +0 -209
- package/docs/zh/sinapse-agent-flows/devops-system.md +0 -643
- package/docs/zh/sinapse-agent-flows/pm-system.md +0 -733
- package/docs/zh/sinapse-agent-flows/qa-system.md +0 -268
- package/docs/zh/sinapse-agent-flows/sinapse-master-system.md +0 -81
- package/docs/zh/sinapse-agent-flows/sm-system.md +0 -501
- package/docs/zh/sinapse-agent-flows/squad-creator-system.md +0 -704
- package/docs/zh/sinapse-agent-flows/ux-design-expert-system.md +0 -160
- package/docs/zh/sinapse-workflows/README.md +0 -247
- package/docs/zh/sinapse-workflows/auto-worktree-workflow.md +0 -793
- package/docs/zh/sinapse-workflows/brownfield-discovery-workflow.md +0 -915
- package/docs/zh/sinapse-workflows/brownfield-fullstack-workflow.md +0 -764
- package/docs/zh/sinapse-workflows/brownfield-service-workflow.md +0 -812
- package/docs/zh/sinapse-workflows/brownfield-ui-workflow.md +0 -891
- package/docs/zh/sinapse-workflows/design-system-build-quality-workflow.md +0 -845
- package/docs/zh/sinapse-workflows/greenfield-fullstack-workflow.md +0 -796
- package/docs/zh/sinapse-workflows/greenfield-service-workflow.md +0 -786
- package/docs/zh/sinapse-workflows/greenfield-ui-workflow.md +0 -922
- package/docs/zh/sinapse-workflows/qa-loop-workflow.md +0 -1111
- package/docs/zh/sinapse-workflows/spec-pipeline-workflow.md +0 -1031
- package/docs/zh/sinapse-workflows/story-development-cycle-workflow.md +0 -843
- package/docs/zh/troubleshooting.md +0 -883
- package/docs/zh/uninstallation.md +0 -348
- package/docs/zh/versioning-and-releases.md +0 -140
- /package/.sinapse-ai/development/agents/{dev → developer}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{qa → quality-gate}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{sm → sprint-lead}/MEMORY.md +0 -0
|
@@ -1,1031 +0,0 @@
|
|
|
1
|
-
# Spec 流水线工作流 - 完整文档
|
|
2
|
-
|
|
3
|
-
> **版本:** 1.0
|
|
4
|
-
> **创建:** 2026-01-28
|
|
5
|
-
> **作者:** @architect (Aria)
|
|
6
|
-
> **Epic:** Epic 3 - Spec Pipeline
|
|
7
|
-
> **状态:** 活跃
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## 1. 概览
|
|
12
|
-
|
|
13
|
-
**Spec 流水线**是一个编排工作流,将非正式需求转换为可执行的规范。它是**Auto-Claude ADE** (自主开发引擎) 基础设施的一部分,实现了一个5阶段流程,根据需求复杂性动态适配。
|
|
14
|
-
|
|
15
|
-
### 1.1 目的
|
|
16
|
-
|
|
17
|
-
- 将用户的非正式描述转换为正式的、结构化的规范
|
|
18
|
-
- 通过验证网关确保质量和一致性
|
|
19
|
-
- 根据检测到的复杂性调整深度级别
|
|
20
|
-
- 从需求到实现生成可追溯的工件
|
|
21
|
-
|
|
22
|
-
### 1.2 基本原则
|
|
23
|
-
|
|
24
|
-
| 原则 | 描述 |
|
|
25
|
-
|------|------|
|
|
26
|
-
| **无发明** | 无信息发明 - 仅从输入衍生 |
|
|
27
|
-
| **可追溯性** | 每个声明必须追溯到需求或研究 |
|
|
28
|
-
| **自适应阶段** | 按复杂性自动调整阶段 |
|
|
29
|
-
| **质量网关** | 晋级前强制验证 |
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## 2. 工作流图示
|
|
34
|
-
|
|
35
|
-
### 2.1 主流程
|
|
36
|
-
|
|
37
|
-
```mermaid
|
|
38
|
-
flowchart TB
|
|
39
|
-
subgraph TRIGGER["触发器"]
|
|
40
|
-
T1["*create-spec 故事-ID"]
|
|
41
|
-
T2["story_created<br/>(autoSpec.enabled)"]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
subgraph PREFLIGHT["飞行前检查"]
|
|
45
|
-
PF1["story_exists<br/>验证/创建目录"]
|
|
46
|
-
PF2["no_existing_spec<br/>避免覆盖"]
|
|
47
|
-
PF3["agents_available<br/>验证配置"]
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
subgraph PHASE1["阶段 1: 收集需求"]
|
|
51
|
-
direction TB
|
|
52
|
-
G1["@pm (Morgan)"]
|
|
53
|
-
G2["交互式询问<br/>9个问题类别"]
|
|
54
|
-
G3["requirements.json"]
|
|
55
|
-
G1 --> G2 --> G3
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
subgraph PHASE2["阶段 2: 评估复杂性"]
|
|
59
|
-
direction TB
|
|
60
|
-
A1["@architect (Aria)"]
|
|
61
|
-
A2["评估 5 个维度:<br/>范围、集成、基础设施、<br/>知识、风险"]
|
|
62
|
-
A3["complexity.json<br/>简单 | 标准 | 复杂"]
|
|
63
|
-
A1 --> A2 --> A3
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
subgraph PHASE3["阶段 3: 研究依赖"]
|
|
67
|
-
direction TB
|
|
68
|
-
R1["@analyst (Atlas)"]
|
|
69
|
-
R2["Context7 + EXA<br/>验证依赖"]
|
|
70
|
-
R3["research.json"]
|
|
71
|
-
R1 --> R2 --> R3
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
subgraph PHASE4["阶段 4: 编写规范"]
|
|
75
|
-
direction TB
|
|
76
|
-
W1["@pm (Morgan)"]
|
|
77
|
-
W2["生成 spec.md<br/>无发明"]
|
|
78
|
-
W3["spec.md"]
|
|
79
|
-
W1 --> W2 --> W3
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
subgraph PHASE5["阶段 5: 批评规范"]
|
|
83
|
-
direction TB
|
|
84
|
-
C1["@qa (Quinn)"]
|
|
85
|
-
C2["评估 5 个维度:<br/>准确性、完整性、<br/>一致性、可行性、<br/>对齐"]
|
|
86
|
-
C3{"判决"}
|
|
87
|
-
C4["已批准"]
|
|
88
|
-
C5["需要修订"]
|
|
89
|
-
C6["阻止"]
|
|
90
|
-
C1 --> C2 --> C3
|
|
91
|
-
C3 --> C4
|
|
92
|
-
C3 --> C5
|
|
93
|
-
C3 --> C6
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
subgraph PHASE5B["阶段 5b: 修订 (复杂)"]
|
|
97
|
-
REV1["@pm (Morgan)"]
|
|
98
|
-
REV2["应用反馈<br/>和自动修复"]
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
subgraph PHASE6["阶段 6: 创建计划"]
|
|
102
|
-
direction TB
|
|
103
|
-
P1["@architect (Aria)"]
|
|
104
|
-
P2["生成 implementation.yaml<br/>原子子任务"]
|
|
105
|
-
P3["plan.json"]
|
|
106
|
-
P1 --> P2 --> P3
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
subgraph COMPLETION["完成"]
|
|
110
|
-
DONE["流水线完成"]
|
|
111
|
-
ARTIFACTS["生成的工件"]
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
T1 --> PREFLIGHT
|
|
115
|
-
T2 --> PREFLIGHT
|
|
116
|
-
PREFLIGHT --> PHASE1
|
|
117
|
-
PHASE1 --> PHASE2
|
|
118
|
-
PHASE2 --> PHASE3
|
|
119
|
-
PHASE3 --> PHASE4
|
|
120
|
-
PHASE4 --> PHASE5
|
|
121
|
-
C4 --> PHASE6
|
|
122
|
-
C5 --> PHASE5B
|
|
123
|
-
PHASE5B --> PHASE5
|
|
124
|
-
C6 -.-> |"上报给 @architect"| HALT["暂停"]
|
|
125
|
-
PHASE6 --> COMPLETION
|
|
126
|
-
|
|
127
|
-
style TRIGGER fill:#e1f5fe
|
|
128
|
-
style PREFLIGHT fill:#fff3e0
|
|
129
|
-
style PHASE1 fill:#e8f5e9
|
|
130
|
-
style PHASE2 fill:#fce4ec
|
|
131
|
-
style PHASE3 fill:#f3e5f5
|
|
132
|
-
style PHASE4 fill:#e8f5e9
|
|
133
|
-
style PHASE5 fill:#fff8e1
|
|
134
|
-
style PHASE5B fill:#ffebee
|
|
135
|
-
style PHASE6 fill:#e0f2f1
|
|
136
|
-
style COMPLETION fill:#c8e6c9
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### 2.2 按复杂性划分的流程
|
|
140
|
-
|
|
141
|
-
```mermaid
|
|
142
|
-
flowchart LR
|
|
143
|
-
subgraph SIMPLE["简单 (评分 <= 8)"]
|
|
144
|
-
S1["收集"] --> S2["规范"] --> S3["批评"]
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
subgraph STANDARD["标准 (评分 9-15)"]
|
|
148
|
-
ST1["收集"] --> ST2["评估"] --> ST3["研究"] --> ST4["规范"] --> ST5["批评"] --> ST6["计划"]
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
subgraph COMPLEX["复杂 (评分 >= 16)"]
|
|
152
|
-
C1["收集"] --> C2["评估"] --> C3["研究"] --> C4["规范"] --> C5["批评 1"] --> C6["修订"] --> C7["批评 2"] --> C8["计划"]
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
style SIMPLE fill:#c8e6c9
|
|
156
|
-
style STANDARD fill:#fff9c4
|
|
157
|
-
style COMPLEX fill:#ffcdd2
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### 2.3 序列图
|
|
161
|
-
|
|
162
|
-
```mermaid
|
|
163
|
-
sequenceDiagram
|
|
164
|
-
autonumber
|
|
165
|
-
participant U as 用户
|
|
166
|
-
participant PM as @pm (Morgan)
|
|
167
|
-
participant AR as @architect (Aria)
|
|
168
|
-
participant AN as @analyst (Atlas)
|
|
169
|
-
participant QA as @qa (Quinn)
|
|
170
|
-
participant FS as 文件系统
|
|
171
|
-
|
|
172
|
-
U->>PM: *create-spec 故事-42
|
|
173
|
-
|
|
174
|
-
Note over PM: 阶段 1: 收集
|
|
175
|
-
PM->>U: 询问问题 (9个类别)
|
|
176
|
-
U->>PM: 需求答案
|
|
177
|
-
PM->>FS: 保存 requirements.json
|
|
178
|
-
|
|
179
|
-
Note over AR: 阶段 2: 评估
|
|
180
|
-
AR->>FS: 读取 requirements.json
|
|
181
|
-
AR->>AR: 评估 5 个复杂性维度
|
|
182
|
-
AR->>FS: 保存 complexity.json
|
|
183
|
-
|
|
184
|
-
alt 复杂性 != 简单
|
|
185
|
-
Note over AN: 阶段 3: 研究
|
|
186
|
-
AN->>FS: 读取 requirements + complexity
|
|
187
|
-
AN->>AN: 通过 Context7 + EXA 研究
|
|
188
|
-
AN->>FS: 保存 research.json
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
Note over PM: 阶段 4: 编写规范
|
|
192
|
-
PM->>FS: 读取所有工件
|
|
193
|
-
PM->>PM: 生成 spec.md (无发明)
|
|
194
|
-
PM->>FS: 保存 spec.md
|
|
195
|
-
|
|
196
|
-
Note over QA: 阶段 5: 批评
|
|
197
|
-
QA->>FS: 读取 spec + requirements
|
|
198
|
-
QA->>QA: 评估 5 个质量维度
|
|
199
|
-
QA->>FS: 保存 critique.json
|
|
200
|
-
|
|
201
|
-
alt 判决 = 已批准
|
|
202
|
-
Note over AR: 阶段 6: 计划
|
|
203
|
-
AR->>FS: 读取已批准的规范
|
|
204
|
-
AR->>AR: 生成实现计划
|
|
205
|
-
AR->>FS: 保存 plan.json
|
|
206
|
-
AR->>U: 流水线完成!
|
|
207
|
-
else 判决 = 需要修订
|
|
208
|
-
QA->>PM: 带反馈返回
|
|
209
|
-
PM->>PM: 应用修正
|
|
210
|
-
PM->>QA: 提交修订
|
|
211
|
-
else 判决 = 阻止
|
|
212
|
-
QA->>AR: 上报架构审查
|
|
213
|
-
end
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## 3. 详细步骤
|
|
219
|
-
|
|
220
|
-
### 3.1 阶段 1: 收集需求
|
|
221
|
-
|
|
222
|
-
| 属性 | 值 |
|
|
223
|
-
|------|-----|
|
|
224
|
-
| **步骤 ID** | `gather` |
|
|
225
|
-
| **阶段号** | 1 |
|
|
226
|
-
| **代理** | @pm (Morgan) |
|
|
227
|
-
| **任务** | `spec-gather-requirements.md` |
|
|
228
|
-
| **需要交互** | 是 - 需要用户交互 |
|
|
229
|
-
|
|
230
|
-
#### 输入
|
|
231
|
-
|
|
232
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
233
|
-
|-----|------|------|------|
|
|
234
|
-
| `storyId` | 字符串 | 是 | 被指定的故事 ID |
|
|
235
|
-
| `source` | 枚举 | 否 | 来源: `prd`, `user`, `existing` |
|
|
236
|
-
| `prdPath` | 字符串 | 否 | PRD 路径 (如果 source=prd) |
|
|
237
|
-
|
|
238
|
-
#### 输出
|
|
239
|
-
|
|
240
|
-
| 输出 | 位置 |
|
|
241
|
-
|-----|------|
|
|
242
|
-
| `requirements.json` | `docs/stories/{storyId}/spec/requirements.json` |
|
|
243
|
-
|
|
244
|
-
#### 询问过程 (9 个类别)
|
|
245
|
-
|
|
246
|
-
```mermaid
|
|
247
|
-
mindmap
|
|
248
|
-
root((询问))
|
|
249
|
-
函数式
|
|
250
|
-
Q1: 系统应该做什么?
|
|
251
|
-
后续关于用户和触发器
|
|
252
|
-
约束
|
|
253
|
-
Q2: 技术/业务约束?
|
|
254
|
-
时间、集成、技术栈
|
|
255
|
-
非函数式需求
|
|
256
|
-
Q3: 非函数式需求?
|
|
257
|
-
性能、安全性、扩展性
|
|
258
|
-
验收
|
|
259
|
-
Q4: 验收标准?
|
|
260
|
-
Given-When-Then 格式
|
|
261
|
-
假设
|
|
262
|
-
Q5: 假设什么?
|
|
263
|
-
如果错误的风险
|
|
264
|
-
领域
|
|
265
|
-
Q6: 实体和关系?
|
|
266
|
-
域名模型
|
|
267
|
-
交互
|
|
268
|
-
Q7: 用户如何交互?
|
|
269
|
-
UX 流程、状态
|
|
270
|
-
边界情况
|
|
271
|
-
Q8: 什么可能出错?
|
|
272
|
-
错误处理
|
|
273
|
-
术语
|
|
274
|
-
Q9: 领域术语?
|
|
275
|
-
特定术语
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
#### 输出结构 (requirements.json)
|
|
279
|
-
|
|
280
|
-
```json
|
|
281
|
-
{
|
|
282
|
-
"storyId": "故事-42",
|
|
283
|
-
"gatheredAt": "2026-01-28T10:00:00Z",
|
|
284
|
-
"source": "user",
|
|
285
|
-
"gatheredBy": "@pm",
|
|
286
|
-
"elicitationVersion": "2.0",
|
|
287
|
-
"functional": [
|
|
288
|
-
{
|
|
289
|
-
"id": "FR-1",
|
|
290
|
-
"description": "允许使用 Google OAuth 登录",
|
|
291
|
-
"priority": "P0",
|
|
292
|
-
"rationale": "主要认证方法",
|
|
293
|
-
"acceptance": ["AC-1"]
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"nonFunctional": [...],
|
|
297
|
-
"constraints": [...],
|
|
298
|
-
"assumptions": [...],
|
|
299
|
-
"domainModel": [...],
|
|
300
|
-
"interactions": [...],
|
|
301
|
-
"edgeCases": [...],
|
|
302
|
-
"terminology": [...],
|
|
303
|
-
"openQuestions": [...]
|
|
304
|
-
}
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
### 3.2 阶段 2: 评估复杂性
|
|
310
|
-
|
|
311
|
-
| 属性 | 值 |
|
|
312
|
-
|------|-----|
|
|
313
|
-
| **步骤 ID** | `assess` |
|
|
314
|
-
| **阶段号** | 2 |
|
|
315
|
-
| **代理** | @architect (Aria) |
|
|
316
|
-
| **任务** | `spec-assess-complexity.md` |
|
|
317
|
-
| **跳过条件** | `source === 'simple'` 或 `overrideComplexity === 'SIMPLE'` |
|
|
318
|
-
|
|
319
|
-
#### 输入
|
|
320
|
-
|
|
321
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
322
|
-
|-----|------|------|------|
|
|
323
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
324
|
-
| `requirements` | 文件 | 是 | requirements.json |
|
|
325
|
-
| `overrideComplexity` | 枚举 | 否 | 手动覆盖: 简单、标准、复杂 |
|
|
326
|
-
|
|
327
|
-
#### 输出
|
|
328
|
-
|
|
329
|
-
| 输出 | 位置 |
|
|
330
|
-
|-----|------|
|
|
331
|
-
| `complexity.json` | `docs/stories/{storyId}/spec/complexity.json` |
|
|
332
|
-
|
|
333
|
-
#### 5 个复杂性维度
|
|
334
|
-
|
|
335
|
-
```mermaid
|
|
336
|
-
radar
|
|
337
|
-
title 复杂性维度 (1-5)
|
|
338
|
-
"范围" : 3
|
|
339
|
-
"集成" : 4
|
|
340
|
-
"基础设施" : 2
|
|
341
|
-
"知识" : 3
|
|
342
|
-
"风险" : 3
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
| 维度 | 评分 1 | 评分 3 | 评分 5 |
|
|
346
|
-
|------|---------|---------|---------|
|
|
347
|
-
| **范围** | 1-2 个文件 | 6-10 个文件 | 20+ 个文件 |
|
|
348
|
-
| **集成** | 无外部 | 1-2 个外部 API | 多个编排 |
|
|
349
|
-
| **基础设施** | 无变化 | 新依赖 | 新基础设施 |
|
|
350
|
-
| **知识** | 现有模式 | 新库 | 未知领域 |
|
|
351
|
-
| **风险** | 低、隔离 | 中、重要 | 关键、核心 |
|
|
352
|
-
|
|
353
|
-
#### 分类阈值
|
|
354
|
-
|
|
355
|
-
| 分类 | 总分 | 已激活阶段 | 估计时间 |
|
|
356
|
-
|-------|---------|-----------|---------|
|
|
357
|
-
| **简单** | <= 8 | 收集、规范、批评 | 30-60 分钟 |
|
|
358
|
-
| **标准** | 9-15 | 收集、评估、研究、规范、批评、计划 | 2-4 小时 |
|
|
359
|
-
| **复杂** | >= 16 | + 修订、批评_2 | 4-8 小时 |
|
|
360
|
-
|
|
361
|
-
---
|
|
362
|
-
|
|
363
|
-
### 3.3 阶段 3: 研究依赖
|
|
364
|
-
|
|
365
|
-
| 属性 | 值 |
|
|
366
|
-
|------|-----|
|
|
367
|
-
| **步骤 ID** | `research` |
|
|
368
|
-
| **阶段号** | 3 |
|
|
369
|
-
| **代理** | @analyst (Atlas) |
|
|
370
|
-
| **任务** | `spec-research-dependencies.md` |
|
|
371
|
-
| **跳过条件** | `complexity.result === 'SIMPLE'` |
|
|
372
|
-
| **工具** | Context7, EXA |
|
|
373
|
-
|
|
374
|
-
#### 输入
|
|
375
|
-
|
|
376
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
377
|
-
|-----|------|------|------|
|
|
378
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
379
|
-
| `requirements` | 文件 | 是 | requirements.json |
|
|
380
|
-
| `complexity` | 文件 | 是 | complexity.json |
|
|
381
|
-
|
|
382
|
-
#### 输出
|
|
383
|
-
|
|
384
|
-
| 输出 | 位置 |
|
|
385
|
-
|-----|------|
|
|
386
|
-
| `research.json` | `docs/stories/{storyId}/spec/research.json` |
|
|
387
|
-
|
|
388
|
-
#### 研究流程
|
|
389
|
-
|
|
390
|
-
```mermaid
|
|
391
|
-
flowchart LR
|
|
392
|
-
subgraph Extract["1. 提取目标"]
|
|
393
|
-
E1["库<br/>API<br/>概念<br/>基础设施"]
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
subgraph Check["2. 检查代码库"]
|
|
397
|
-
C1["package.json"]
|
|
398
|
-
C2["现有导入"]
|
|
399
|
-
C3["相似模式"]
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
subgraph Research["3. 研究"]
|
|
403
|
-
R1["Context7<br/>(主要)"]
|
|
404
|
-
R2["EXA<br/>(备用)"]
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
subgraph Validate["4. 验证"]
|
|
408
|
-
V1["technical-preferences.md"]
|
|
409
|
-
V2["冲突?<br/>替代方案?"]
|
|
410
|
-
end
|
|
411
|
-
|
|
412
|
-
subgraph Output["5. 输出"]
|
|
413
|
-
O1["research.json"]
|
|
414
|
-
end
|
|
415
|
-
|
|
416
|
-
Extract --> Check --> Research --> Validate --> Output
|
|
417
|
-
|
|
418
|
-
style Research fill:#e3f2fd
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
#### 工具优先级
|
|
422
|
-
|
|
423
|
-
| 工具 | 优先级 | 超时 | 用途 |
|
|
424
|
-
|------|--------|------|-----|
|
|
425
|
-
| **Context7** | 1 (主要) | 30 秒 | 库文档 |
|
|
426
|
-
| **EXA** | 2 (备用) | - | 常规网络搜索 |
|
|
427
|
-
| **代码库** | - | - | 检查现有实现 |
|
|
428
|
-
|
|
429
|
-
---
|
|
430
|
-
|
|
431
|
-
### 3.4 阶段 4: 编写规范
|
|
432
|
-
|
|
433
|
-
| 属性 | 值 |
|
|
434
|
-
|------|-----|
|
|
435
|
-
| **步骤 ID** | `spec` |
|
|
436
|
-
| **阶段号** | 4 |
|
|
437
|
-
| **代理** | @pm (Morgan) |
|
|
438
|
-
| **任务** | `spec-write-spec.md` |
|
|
439
|
-
| **宪法网关** | 第四条 - 无发明 |
|
|
440
|
-
|
|
441
|
-
#### 输入
|
|
442
|
-
|
|
443
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
444
|
-
|-----|------|------|------|
|
|
445
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
446
|
-
| `requirements` | 文件 | 是 | requirements.json |
|
|
447
|
-
| `complexity` | 文件 | 否 | complexity.json |
|
|
448
|
-
| `research` | 文件 | 否 | research.json |
|
|
449
|
-
|
|
450
|
-
#### 输出
|
|
451
|
-
|
|
452
|
-
| 输出 | 位置 |
|
|
453
|
-
|-----|------|
|
|
454
|
-
| `spec.md` | `docs/stories/{storyId}/spec/spec.md` |
|
|
455
|
-
|
|
456
|
-
#### 宪法网关: 无发明
|
|
457
|
-
|
|
458
|
-
```mermaid
|
|
459
|
-
flowchart TB
|
|
460
|
-
subgraph RULE["规则第四条 - 无发明"]
|
|
461
|
-
direction TB
|
|
462
|
-
R1["每个声明必须追溯到:"]
|
|
463
|
-
R2["FR-* (函数式需求)"]
|
|
464
|
-
R3["NFR-* (非函数式需求)"]
|
|
465
|
-
R4["CON-* (约束)"]
|
|
466
|
-
R5["验证的研究发现"]
|
|
467
|
-
end
|
|
468
|
-
|
|
469
|
-
subgraph VIOLATION["违规"]
|
|
470
|
-
V1["添加未列出的功能"]
|
|
471
|
-
V2["假设未研究的细节"]
|
|
472
|
-
V3["指定未验证的技术"]
|
|
473
|
-
V4["创建创意验收标准"]
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
subgraph ACTION["违规时的操作"]
|
|
477
|
-
A1["阻止"]
|
|
478
|
-
A2["删除发明内容"]
|
|
479
|
-
A3["或添加到未解决问题"]
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
RULE --> |"如果违规"| VIOLATION
|
|
483
|
-
VIOLATION --> ACTION
|
|
484
|
-
|
|
485
|
-
style RULE fill:#c8e6c9
|
|
486
|
-
style VIOLATION fill:#ffcdd2
|
|
487
|
-
style ACTION fill:#fff9c4
|
|
488
|
-
```
|
|
489
|
-
|
|
490
|
-
#### spec.md 的结构
|
|
491
|
-
|
|
492
|
-
```
|
|
493
|
-
1. 概览
|
|
494
|
-
1.1 目标
|
|
495
|
-
1.2 非目标
|
|
496
|
-
2. 需求总结
|
|
497
|
-
2.1 函数式需求
|
|
498
|
-
2.2 非函数式需求
|
|
499
|
-
2.3 约束
|
|
500
|
-
3. 技术方法
|
|
501
|
-
3.1 架构概览
|
|
502
|
-
3.2 组件设计
|
|
503
|
-
3.3 数据流
|
|
504
|
-
4. 依赖
|
|
505
|
-
4.1 外部依赖
|
|
506
|
-
4.2 内部依赖
|
|
507
|
-
5. 要修改/创建的文件
|
|
508
|
-
5.1 新文件
|
|
509
|
-
5.2 修改的文件
|
|
510
|
-
6. 测试策略
|
|
511
|
-
6.1 单元测试
|
|
512
|
-
6.2 集成测试
|
|
513
|
-
6.3 验收测试 (Given-When-Then)
|
|
514
|
-
7. 风险和缓解
|
|
515
|
-
8. 未解决的问题
|
|
516
|
-
9. 实现检查清单
|
|
517
|
-
```
|
|
518
|
-
|
|
519
|
-
---
|
|
520
|
-
|
|
521
|
-
### 3.5 阶段 5: 批评规范
|
|
522
|
-
|
|
523
|
-
| 属性 | 值 |
|
|
524
|
-
|------|-----|
|
|
525
|
-
| **步骤 ID** | `critique` |
|
|
526
|
-
| **阶段号** | 5 |
|
|
527
|
-
| **代理** | @qa (Quinn) |
|
|
528
|
-
| **任务** | `spec-critique.md` |
|
|
529
|
-
| **网关** | 阻止 (已批准/需要修订/阻止) |
|
|
530
|
-
|
|
531
|
-
#### 输入
|
|
532
|
-
|
|
533
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
534
|
-
|-----|------|------|------|
|
|
535
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
536
|
-
| `spec` | 文件 | 是 | spec.md |
|
|
537
|
-
| `requirements` | 文件 | 是 | requirements.json |
|
|
538
|
-
| `complexity` | 文件 | 否 | complexity.json |
|
|
539
|
-
| `research` | 文件 | 否 | research.json |
|
|
540
|
-
|
|
541
|
-
#### 输出
|
|
542
|
-
|
|
543
|
-
| 输出 | 位置 |
|
|
544
|
-
|-----|------|
|
|
545
|
-
| `critique.json` | `docs/stories/{storyId}/spec/critique.json` |
|
|
546
|
-
|
|
547
|
-
#### 5 个质量维度
|
|
548
|
-
|
|
549
|
-
```mermaid
|
|
550
|
-
pie showData
|
|
551
|
-
title 维度权重
|
|
552
|
-
"准确性" : 25
|
|
553
|
-
"完整性" : 25
|
|
554
|
-
"一致性" : 20
|
|
555
|
-
"可行性" : 15
|
|
556
|
-
"对齐" : 15
|
|
557
|
-
```
|
|
558
|
-
|
|
559
|
-
| 维度 | 权重 | 检查 |
|
|
560
|
-
|------|------|------|
|
|
561
|
-
| **准确性** | 25% | 规范是否正确反映需求? |
|
|
562
|
-
| **完整性** | 25% | 所有部分都填充? 测试覆盖 FR? |
|
|
563
|
-
| **一致性** | 20% | ID 有效? 无矛盾? |
|
|
564
|
-
| **可行性** | 15% | 技术上可行? 依赖存在? |
|
|
565
|
-
| **对齐** | 15% | 与堆栈和项目模式对齐? |
|
|
566
|
-
|
|
567
|
-
#### 判决逻辑
|
|
568
|
-
|
|
569
|
-
```mermaid
|
|
570
|
-
flowchart TB
|
|
571
|
-
START["开始评估"] --> EVAL["评估 5 个维度"]
|
|
572
|
-
|
|
573
|
-
EVAL --> CHECK1{"高严重性<br/>问题?"}
|
|
574
|
-
CHECK1 -->|是| BLOCKED["已阻止"]
|
|
575
|
-
CHECK1 -->|否| CHECK2{"平均<br/>评分 >= 4.0?"}
|
|
576
|
-
|
|
577
|
-
CHECK2 -->|是| CHECK3{"所有维度<br/>>=3?"}
|
|
578
|
-
CHECK3 -->|是| APPROVED["已批准"]
|
|
579
|
-
CHECK3 -->|否| NEEDS["需要修订"]
|
|
580
|
-
|
|
581
|
-
CHECK2 -->|否| CHECK4{"平均<br/>评分 >= 3.0?"}
|
|
582
|
-
CHECK4 -->|是| NEEDS
|
|
583
|
-
CHECK4 -->|否| BLOCKED
|
|
584
|
-
|
|
585
|
-
APPROVED --> PLAN["转到阶段 6: 计划"]
|
|
586
|
-
NEEDS --> REVISE["返回阶段 4"]
|
|
587
|
-
BLOCKED --> HALT["暂停 + 上报 @architect"]
|
|
588
|
-
|
|
589
|
-
style APPROVED fill:#c8e6c9
|
|
590
|
-
style NEEDS fill:#fff9c4
|
|
591
|
-
style BLOCKED fill:#ffcdd2
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
| 判决 | 条件 | 下一步 |
|
|
595
|
-
|------|------|--------|
|
|
596
|
-
| **已批准** | 无高问题,平均 >= 4.0,所有 >= 3 | 转到计划 |
|
|
597
|
-
| **需要修订** | 中问题或平均 3.0-3.9 | 返回规范编写 |
|
|
598
|
-
| **已阻止** | 高问题或平均 < 3.0 或任何 <= 1 | 上报给 @architect |
|
|
599
|
-
|
|
600
|
-
---
|
|
601
|
-
|
|
602
|
-
### 3.6 阶段 5b: 修订规范
|
|
603
|
-
|
|
604
|
-
| 属性 | 值 |
|
|
605
|
-
|------|-----|
|
|
606
|
-
| **步骤 ID** | `revise` |
|
|
607
|
-
| **阶段号** | 5b |
|
|
608
|
-
| **代理** | @pm (Morgan) |
|
|
609
|
-
| **条件** | `complexity.result === 'COMPLEX'` 或 `critique.verdict === 'NEEDS_REVISION'` |
|
|
610
|
-
|
|
611
|
-
#### 输入
|
|
612
|
-
|
|
613
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
614
|
-
|-----|------|------|------|
|
|
615
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
616
|
-
| `spec` | 文件 | 是 | 当前 spec.md |
|
|
617
|
-
| `critique` | 文件 | 是 | 带反馈的 critique.json |
|
|
618
|
-
|
|
619
|
-
#### 输出
|
|
620
|
-
|
|
621
|
-
| 输出 | 位置 |
|
|
622
|
-
|-----|------|
|
|
623
|
-
| `spec.md` (已更新) | `docs/stories/{storyId}/spec/spec.md` |
|
|
624
|
-
|
|
625
|
-
---
|
|
626
|
-
|
|
627
|
-
### 3.7 阶段 5c: 第二次批评
|
|
628
|
-
|
|
629
|
-
| 属性 | 值 |
|
|
630
|
-
|------|-----|
|
|
631
|
-
| **步骤 ID** | `critique_2` |
|
|
632
|
-
| **阶段号** | 5c |
|
|
633
|
-
| **代理** | @qa (Quinn) |
|
|
634
|
-
| **任务** | `spec-critique.md` |
|
|
635
|
-
| **条件** | `complexity.result === 'COMPLEX'` |
|
|
636
|
-
|
|
637
|
-
> **注:** 如果有改进演示,第二次批评对中问题更宽松。
|
|
638
|
-
|
|
639
|
-
---
|
|
640
|
-
|
|
641
|
-
### 3.8 阶段 6: 创建实现计划
|
|
642
|
-
|
|
643
|
-
| 属性 | 值 |
|
|
644
|
-
|------|-----|
|
|
645
|
-
| **步骤 ID** | `plan` |
|
|
646
|
-
| **阶段号** | 6 |
|
|
647
|
-
| **代理** | @architect (Aria) |
|
|
648
|
-
| **任务** | `plan-create-implementation.md` |
|
|
649
|
-
| **条件** | `critique.verdict === 'APPROVED'` |
|
|
650
|
-
|
|
651
|
-
#### 输入
|
|
652
|
-
|
|
653
|
-
| 输入 | 类型 | 必需 | 描述 |
|
|
654
|
-
|-----|------|------|------|
|
|
655
|
-
| `storyId` | 字符串 | 是 | 故事 ID |
|
|
656
|
-
| `spec` | 文件 | 是 | 已批准的 spec.md |
|
|
657
|
-
| `complexity` | 文件 | 否 | complexity.json |
|
|
658
|
-
|
|
659
|
-
#### 输出
|
|
660
|
-
|
|
661
|
-
| 输出 | 位置 |
|
|
662
|
-
|-----|------|
|
|
663
|
-
| `implementation.yaml` | `docs/stories/{storyId}/plan/implementation.yaml` |
|
|
664
|
-
|
|
665
|
-
#### 子任务规则
|
|
666
|
-
|
|
667
|
-
| 规则 | 描述 |
|
|
668
|
-
|------|------|
|
|
669
|
-
| **单一服务** | 每个子任务 1 个服务 (前端、后端、数据库、基础设施) |
|
|
670
|
-
| **文件限制** | 每个子任务最多 3 个文件 |
|
|
671
|
-
| **需要验证** | 每个子任务必须定义验证 |
|
|
672
|
-
| **依赖顺序** | 数据库 > 后端 > 前端 > 集成 |
|
|
673
|
-
|
|
674
|
-
---
|
|
675
|
-
|
|
676
|
-
## 4. 参与的代理
|
|
677
|
-
|
|
678
|
-
```mermaid
|
|
679
|
-
graph LR
|
|
680
|
-
subgraph AGENTS["Spec 流水线代理"]
|
|
681
|
-
PM["@pm<br/>Morgan<br/>产品经理"]
|
|
682
|
-
AR["@architect<br/>Aria<br/>架构师"]
|
|
683
|
-
AN["@analyst<br/>Atlas<br/>业务分析师"]
|
|
684
|
-
QA["@qa<br/>Quinn<br/>测试架构师"]
|
|
685
|
-
end
|
|
686
|
-
|
|
687
|
-
PM --> |"阶段 1, 4, 5b"| G1["收集<br/>编写规范<br/>修订"]
|
|
688
|
-
AR --> |"阶段 2, 6"| G2["评估<br/>计划"]
|
|
689
|
-
AN --> |"阶段 3"| G3["研究"]
|
|
690
|
-
QA --> |"阶段 5, 5c"| G4["批评"]
|
|
691
|
-
|
|
692
|
-
style PM fill:#e8f5e9
|
|
693
|
-
style AR fill:#fce4ec
|
|
694
|
-
style AN fill:#f3e5f5
|
|
695
|
-
style QA fill:#fff8e1
|
|
696
|
-
```
|
|
697
|
-
|
|
698
|
-
| 代理 | ID | 名字 | 流水线中的角色 | 阶段 |
|
|
699
|
-
|------|-----|------|-----------------|------|
|
|
700
|
-
| @pm | pm | Morgan | 产品经理 | 1 (收集), 4 (规范), 5b (修订) |
|
|
701
|
-
| @architect | architect | Aria | 系统架构师 | 2 (评估), 6 (计划) |
|
|
702
|
-
| @analyst | analyst | Atlas | 业务分析师 | 3 (研究) |
|
|
703
|
-
| @qa | qa | Quinn | 测试架构师 | 5 (批评), 5c (批评 2) |
|
|
704
|
-
|
|
705
|
-
### 4.1 档案: @pm (Morgan)
|
|
706
|
-
|
|
707
|
-
- **原型:** 战略家
|
|
708
|
-
- **焦点:** 需求收集、规范创建、文档
|
|
709
|
-
- **原则:** 以用户为中心、数据驱动、清晰精确
|
|
710
|
-
- **工具:** PRD 模板、结构化询问
|
|
711
|
-
|
|
712
|
-
### 4.2 档案: @architect (Aria)
|
|
713
|
-
|
|
714
|
-
- **原型:** 远见者
|
|
715
|
-
- **焦点:** 系统架构、技术评估、规划
|
|
716
|
-
- **原则:** 整体思考、实用选择、每层安全
|
|
717
|
-
- **工具:** Context7、EXA、代码库分析
|
|
718
|
-
|
|
719
|
-
### 4.3 档案: @analyst (Atlas)
|
|
720
|
-
|
|
721
|
-
- **原型:** 解码者
|
|
722
|
-
- **焦点:** 研究、市场分析、依赖验证
|
|
723
|
-
- **原则:** 好奇驱动、证据为基础、行动导向
|
|
724
|
-
- **工具:** EXA、Context7、Google Workspace
|
|
725
|
-
|
|
726
|
-
### 4.4 档案: @qa (Quinn)
|
|
727
|
-
|
|
728
|
-
- **原型:** 守护者
|
|
729
|
-
- **焦点:** 质量验证、批准网关、可追溯性
|
|
730
|
-
- **原则:** 需求可追溯性、风险基础测试、咨询卓越
|
|
731
|
-
- **工具:** CodeRabbit、浏览器测试、规范分析
|
|
732
|
-
|
|
733
|
-
---
|
|
734
|
-
|
|
735
|
-
## 5. 执行的任务
|
|
736
|
-
|
|
737
|
-
| 任务 | 阶段 | 代理 | 文件 |
|
|
738
|
-
|------|------|------|------|
|
|
739
|
-
| 收集需求 | 1 | @pm | `.sinapse-ai/development/tasks/spec-gather-requirements.md` |
|
|
740
|
-
| 评估复杂性 | 2 | @architect | `.sinapse-ai/development/tasks/spec-assess-complexity.md` |
|
|
741
|
-
| 研究依赖 | 3 | @analyst | `.sinapse-ai/development/tasks/spec-research-dependencies.md` |
|
|
742
|
-
| 编写规范 | 4 | @pm | `.sinapse-ai/development/tasks/spec-write-spec.md` |
|
|
743
|
-
| 批评规范 | 5, 5c | @qa | `.sinapse-ai/development/tasks/spec-critique.md` |
|
|
744
|
-
| 创建实现计划 | 6 | @architect | `.sinapse-ai/development/tasks/plan-create-implementation.md` |
|
|
745
|
-
|
|
746
|
-
---
|
|
747
|
-
|
|
748
|
-
## 6. 前置条件
|
|
749
|
-
|
|
750
|
-
### 6.1 飞行前检查
|
|
751
|
-
|
|
752
|
-
| 检查 | 描述 | 阻止 |
|
|
753
|
-
|------|------|------|
|
|
754
|
-
| `story_exists` | 故事目录存在或可创建 | 是 |
|
|
755
|
-
| `no_existing_spec` | 检查现有规范 (避免覆盖) | 否 (警告) |
|
|
756
|
-
| `agents_available` | 流水线代理已配置 | 是 |
|
|
757
|
-
|
|
758
|
-
### 6.2 必需的配置
|
|
759
|
-
|
|
760
|
-
```yaml
|
|
761
|
-
config:
|
|
762
|
-
autoSpec:
|
|
763
|
-
enabled: false # 创建故事时启用自动规范
|
|
764
|
-
showProgress: true # 显示进度
|
|
765
|
-
verbose: true # 详细日志
|
|
766
|
-
maxRetries: 2 # 失败时的重试次数
|
|
767
|
-
retryDelay: 1000 # 重试之间的延迟 (毫秒)
|
|
768
|
-
strictGate: true # 已阻止暂停流水线
|
|
769
|
-
outputDir: docs/stories/{storyId}/spec/
|
|
770
|
-
```
|
|
771
|
-
|
|
772
|
-
---
|
|
773
|
-
|
|
774
|
-
## 7. 输入和输出
|
|
775
|
-
|
|
776
|
-
### 7.1 流水线输入
|
|
777
|
-
|
|
778
|
-
| 输入 | 类型 | 描述 | 由谁提供 |
|
|
779
|
-
|-----|------|------|---------|
|
|
780
|
-
| `storyId` | 字符串 | 故事的唯一 ID | 用户 |
|
|
781
|
-
| `source` | 枚举 | `prd`、`user`、`existing` | 用户 (可选) |
|
|
782
|
-
| `prdPath` | 字符串 | 现有 PRD 的路径 | 用户 (可选) |
|
|
783
|
-
| `overrideComplexity` | 枚举 | 复杂性的手动覆盖 | 用户 (可选) |
|
|
784
|
-
|
|
785
|
-
### 7.2 流水线输出
|
|
786
|
-
|
|
787
|
-
```mermaid
|
|
788
|
-
flowchart LR
|
|
789
|
-
subgraph OUTPUT["生成的工件"]
|
|
790
|
-
direction TB
|
|
791
|
-
O1["requirements.json"]
|
|
792
|
-
O2["complexity.json"]
|
|
793
|
-
O3["research.json"]
|
|
794
|
-
O4["spec.md"]
|
|
795
|
-
O5["critique.json"]
|
|
796
|
-
O6["plan.json"]
|
|
797
|
-
end
|
|
798
|
-
|
|
799
|
-
subgraph LOCATION["位置"]
|
|
800
|
-
L["docs/stories/{storyId}/spec/"]
|
|
801
|
-
LP["docs/stories/{storyId}/plan/"]
|
|
802
|
-
end
|
|
803
|
-
|
|
804
|
-
O1 --> L
|
|
805
|
-
O2 --> L
|
|
806
|
-
O3 --> L
|
|
807
|
-
O4 --> L
|
|
808
|
-
O5 --> L
|
|
809
|
-
O6 --> LP
|
|
810
|
-
```
|
|
811
|
-
|
|
812
|
-
| 工件 | 阶段 | 描述 |
|
|
813
|
-
|------|------|------|
|
|
814
|
-
| `requirements.json` | 1 | 结构化需求 (9 个类别) |
|
|
815
|
-
| `complexity.json` | 2 | 复杂性评估 (5 个维度) |
|
|
816
|
-
| `research.json` | 3 | 已研究和验证的依赖 |
|
|
817
|
-
| `spec.md` | 4 | 完整的可执行规范 |
|
|
818
|
-
| `critique.json` | 5 | 质量评估的结果 |
|
|
819
|
-
| `plan.json` | 6 | 带子任务的实现计划 |
|
|
820
|
-
|
|
821
|
-
---
|
|
822
|
-
|
|
823
|
-
## 8. 决策点
|
|
824
|
-
|
|
825
|
-
### 8.1 决策: 跳过评估?
|
|
826
|
-
|
|
827
|
-
```mermaid
|
|
828
|
-
flowchart TB
|
|
829
|
-
D1{"source === 'simple'<br/>或<br/>overrideComplexity === 'SIMPLE'?"}
|
|
830
|
-
D1 -->|是| SKIP["跳转到规范<br/>(假设简单)"]
|
|
831
|
-
D1 -->|否| RUN["执行评估"]
|
|
832
|
-
```
|
|
833
|
-
|
|
834
|
-
### 8.2 决策: 跳过研究?
|
|
835
|
-
|
|
836
|
-
```mermaid
|
|
837
|
-
flowchart TB
|
|
838
|
-
D2{"complexity.result === 'SIMPLE'<br/>或<br/>没有外部依赖?"}
|
|
839
|
-
D2 -->|是| SKIP["跳过研究<br/>生成最小 research.json"]
|
|
840
|
-
D2 -->|否| RUN["执行研究"]
|
|
841
|
-
```
|
|
842
|
-
|
|
843
|
-
### 8.3 决策: 批评的判决
|
|
844
|
-
|
|
845
|
-
```mermaid
|
|
846
|
-
flowchart TB
|
|
847
|
-
START["批评完成"] --> C1{"高问题?"}
|
|
848
|
-
C1 -->|是| BLOCKED["已阻止"]
|
|
849
|
-
C1 -->|否| C2{"平均 >= 4.0?"}
|
|
850
|
-
C2 -->|是| C3{"所有维度 >= 3?"}
|
|
851
|
-
C3 -->|是| APPROVED["已批准"]
|
|
852
|
-
C3 -->|否| NEEDS["需要修订"]
|
|
853
|
-
C2 -->|否| C4{"平均 >= 3.0?"}
|
|
854
|
-
C4 -->|是| NEEDS
|
|
855
|
-
C4 -->|否| BLOCKED
|
|
856
|
-
```
|
|
857
|
-
|
|
858
|
-
### 8.4 决策: 执行修订?
|
|
859
|
-
|
|
860
|
-
```mermaid
|
|
861
|
-
flowchart TB
|
|
862
|
-
D4{"complexity === 'COMPLEX'<br/>或<br/>verdict === 'NEEDS_REVISION'?"}
|
|
863
|
-
D4 -->|是| RUN["执行修订<br/>(阶段 5b)"]
|
|
864
|
-
D4 -->|否| SKIP["跳过修订"]
|
|
865
|
-
```
|
|
866
|
-
|
|
867
|
-
### 8.5 决策: 第二次批评?
|
|
868
|
-
|
|
869
|
-
```mermaid
|
|
870
|
-
flowchart TB
|
|
871
|
-
D5{"complexity === 'COMPLEX'?"}
|
|
872
|
-
D5 -->|是| RUN["执行批评 2<br/>(阶段 5c)"]
|
|
873
|
-
D5 -->|否| SKIP["跳过第二次批评"]
|
|
874
|
-
```
|
|
875
|
-
|
|
876
|
-
---
|
|
877
|
-
|
|
878
|
-
## 9. 故障排查
|
|
879
|
-
|
|
880
|
-
### 9.1 常见错误
|
|
881
|
-
|
|
882
|
-
| 错误 | 原因 | 解决方案 |
|
|
883
|
-
|------|------|---------|
|
|
884
|
-
| `missing_story_id` | 未提供故事 ID | `*create-spec 故事-42` |
|
|
885
|
-
| `phase_failed` | 阶段执行期间失败 | 检查日志,使用 `--resume` |
|
|
886
|
-
| `max_iterations_reached` | 达到修订限制 | 上报给 @architect |
|
|
887
|
-
| `critique_blocked` | 规范被 QA 网关阻止 | 审查 critique.json,修复高问题 |
|
|
888
|
-
| `missing-requirements` | 未找到 requirements.json | 先执行收集阶段 |
|
|
889
|
-
| `empty-functional` | 无函数式需求 | 重新执行询问 |
|
|
890
|
-
| `context7-unavailable` | Context7 MCP 无响应 | 使用 EXA 作为备用 |
|
|
891
|
-
|
|
892
|
-
### 9.2 如何恢复执行
|
|
893
|
-
|
|
894
|
-
流水线通过检查点支持恢复:
|
|
895
|
-
|
|
896
|
-
```yaml
|
|
897
|
-
resume:
|
|
898
|
-
enabled: true
|
|
899
|
-
state_file: docs/stories/{storyId}/spec/.pipeline-state.json
|
|
900
|
-
|
|
901
|
-
checkpoints:
|
|
902
|
-
- after: gather -> requirements_gathered
|
|
903
|
-
- after: assess -> complexity_assessed
|
|
904
|
-
- after: research -> research_complete
|
|
905
|
-
- after: spec -> spec_written
|
|
906
|
-
- after: critique -> critique_complete
|
|
907
|
-
```
|
|
908
|
-
|
|
909
|
-
**恢复命令:**
|
|
910
|
-
```bash
|
|
911
|
-
*create-spec 故事-42 --resume
|
|
912
|
-
```
|
|
913
|
-
|
|
914
|
-
### 9.3 错误决策树
|
|
915
|
-
|
|
916
|
-
```mermaid
|
|
917
|
-
flowchart TB
|
|
918
|
-
E["流水线中的错误"] --> E1{"哪个阶段?"}
|
|
919
|
-
|
|
920
|
-
E1 -->|收集| G["检查询问"]
|
|
921
|
-
G --> G1["用户回答了所有问题?"]
|
|
922
|
-
G --> G2["requirements.json 有效?"]
|
|
923
|
-
|
|
924
|
-
E1 -->|评估| A["检查输入"]
|
|
925
|
-
A --> A1["requirements.json 存在?"]
|
|
926
|
-
A --> A2["JSON 格式有效?"]
|
|
927
|
-
|
|
928
|
-
E1 -->|研究| R["检查工具"]
|
|
929
|
-
R --> R1["Context7 活跃?"]
|
|
930
|
-
R --> R2["EXA 已配置?"]
|
|
931
|
-
|
|
932
|
-
E1 -->|规范| S["检查宪法网关"]
|
|
933
|
-
S --> S1["检测到发明内容?"]
|
|
934
|
-
S --> S2["可追溯性正常?"]
|
|
935
|
-
|
|
936
|
-
E1 -->|批评| C["检查判决"]
|
|
937
|
-
C --> C1["发现高问题?"]
|
|
938
|
-
C --> C2["平均评分 < 3.0?"]
|
|
939
|
-
```
|
|
940
|
-
|
|
941
|
-
---
|
|
942
|
-
|
|
943
|
-
## 10. 参考
|
|
944
|
-
|
|
945
|
-
### 10.1 工作流文件
|
|
946
|
-
|
|
947
|
-
| 文件 | 位置 |
|
|
948
|
-
|------|------|
|
|
949
|
-
| 工作流定义 | `.sinapse-ai/development/workflows/spec-pipeline.yaml` |
|
|
950
|
-
| 任务: 收集 | `.sinapse-ai/development/tasks/spec-gather-requirements.md` |
|
|
951
|
-
| 任务: 评估 | `.sinapse-ai/development/tasks/spec-assess-complexity.md` |
|
|
952
|
-
| 任务: 研究 | `.sinapse-ai/development/tasks/spec-research-dependencies.md` |
|
|
953
|
-
| 任务: 编写规范 | `.sinapse-ai/development/tasks/spec-write-spec.md` |
|
|
954
|
-
| 任务: 批评 | `.sinapse-ai/development/tasks/spec-critique.md` |
|
|
955
|
-
| 任务: 创建计划 | `.sinapse-ai/development/tasks/plan-create-implementation.md` |
|
|
956
|
-
|
|
957
|
-
### 10.2 相关代理
|
|
958
|
-
|
|
959
|
-
| 代理 | 位置 |
|
|
960
|
-
|------|------|
|
|
961
|
-
| @pm (Morgan) | `.sinapse-ai/development/agents/pm.md` |
|
|
962
|
-
| @architect (Aria) | `.sinapse-ai/development/agents/architect.md` |
|
|
963
|
-
| @analyst (Atlas) | `.sinapse-ai/development/agents/analyst.md` |
|
|
964
|
-
| @qa (Quinn) | `.sinapse-ai/development/agents/qa.md` |
|
|
965
|
-
|
|
966
|
-
### 10.3 相关文档
|
|
967
|
-
|
|
968
|
-
- [工作流 YAML 指南](../workflows-yaml-guide.md)
|
|
969
|
-
- [SINAPSE 文档索引](../SINAPSE-DOCUMENTATION-INDEX.md)
|
|
970
|
-
- [待办项管理系统](../BACKLOG-MANAGEMENT-SYSTEM.md)
|
|
971
|
-
|
|
972
|
-
### 10.4 快速命令
|
|
973
|
-
|
|
974
|
-
| 命令 | 描述 | 代理 |
|
|
975
|
-
|------|------|------|
|
|
976
|
-
| `*create-spec 故事-ID` | 执行完整流水线 | - |
|
|
977
|
-
| `*gather-requirements 故事-ID` | 仅收集阶段 | @pm |
|
|
978
|
-
| `*assess-complexity 故事-ID` | 仅评估阶段 | @architect |
|
|
979
|
-
| `*research-deps 故事-ID` | 仅研究阶段 | @analyst |
|
|
980
|
-
| `*write-spec 故事-ID` | 仅编写阶段 | @pm |
|
|
981
|
-
| `*critique-spec 故事-ID` | 仅批评阶段 | @qa |
|
|
982
|
-
|
|
983
|
-
---
|
|
984
|
-
|
|
985
|
-
## 11. 完成消息
|
|
986
|
-
|
|
987
|
-
成功完成时,流水线显示:
|
|
988
|
-
|
|
989
|
-
```
|
|
990
|
-
+==============================================================+
|
|
991
|
-
| Spec 流水线完成 |
|
|
992
|
-
+==============================================================+
|
|
993
|
-
|
|
994
|
-
故事: {storyId}
|
|
995
|
-
复杂性: {简单|标准|复杂}
|
|
996
|
-
判决: 已批准
|
|
997
|
-
评分: {评分}/5
|
|
998
|
-
|
|
999
|
-
工件:
|
|
1000
|
-
- docs/stories/{storyId}/spec/requirements.json
|
|
1001
|
-
- docs/stories/{storyId}/spec/complexity.json
|
|
1002
|
-
- docs/stories/{storyId}/spec/research.json
|
|
1003
|
-
- docs/stories/{storyId}/spec/spec.md
|
|
1004
|
-
- docs/stories/{storyId}/spec/critique.json
|
|
1005
|
-
|
|
1006
|
-
后续步骤:
|
|
1007
|
-
- 审查 spec.md
|
|
1008
|
-
- 运行 @dev *develop {storyId}
|
|
1009
|
-
```
|
|
1010
|
-
|
|
1011
|
-
---
|
|
1012
|
-
|
|
1013
|
-
## 元数据
|
|
1014
|
-
|
|
1015
|
-
```yaml
|
|
1016
|
-
metadata:
|
|
1017
|
-
documento: SPEC-PIPELINE-WORKFLOW.md
|
|
1018
|
-
versao: 1.0
|
|
1019
|
-
criado: 2026-02-04
|
|
1020
|
-
autor: 技术文档专家
|
|
1021
|
-
baseado_em:
|
|
1022
|
-
- .sinapse-ai/development/workflows/spec-pipeline.yaml
|
|
1023
|
-
- .sinapse-ai/development/tasks/spec-*.md
|
|
1024
|
-
- .sinapse-ai/development/agents/*.md
|
|
1025
|
-
tags:
|
|
1026
|
-
- spec-pipeline
|
|
1027
|
-
- workflow
|
|
1028
|
-
- documentation
|
|
1029
|
-
- sinapse
|
|
1030
|
-
- auto-claude
|
|
1031
|
-
```
|