sinapse-ai 5.0.8 → 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 +9 -9
- 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,915 +0,0 @@
|
|
|
1
|
-
# 工作流:棕地项目发现
|
|
2
|
-
|
|
3
|
-
**ID:** `brownfield-discovery`
|
|
4
|
-
**版本:** 2.0
|
|
5
|
-
**类型:** 棕地项目(现有项目)
|
|
6
|
-
**估计时长:** 4-8小时
|
|
7
|
-
**最后更新:** 2026-02-04
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## 概述
|
|
12
|
-
|
|
13
|
-
**棕地项目发现**是一个完整的多代理工作流,用于评估现有项目中的技术债务。专门为从Lovable、v0.dev或遗留代码库迁移的项目设计,该工作流:
|
|
14
|
-
|
|
15
|
-
- 全面记录系统
|
|
16
|
-
- 识别所有层(系统、数据库、前端)的技术债务
|
|
17
|
-
- 通过领域专家验证发现
|
|
18
|
-
- 为利益相关者生成执行报告
|
|
19
|
-
- 创建准备好开发的史诗和故事
|
|
20
|
-
|
|
21
|
-
### 主要用例
|
|
22
|
-
|
|
23
|
-
| 场景 | 推荐 |
|
|
24
|
-
|------|------|
|
|
25
|
-
| Lovable/v0.dev项目迁移 | 是 |
|
|
26
|
-
| 完整代码库审计 | 是 |
|
|
27
|
-
| 现代化规划 | 是 |
|
|
28
|
-
| 投资前评估 | 是 |
|
|
29
|
-
| 遗留项目入职 | 是 |
|
|
30
|
-
| 技术尽职调查 | 是 |
|
|
31
|
-
| 新项目(绿地项目) | 否 - 使用 `greenfield-*` 工作流 |
|
|
32
|
-
| 隔离增强 | 否 - 使用 `brownfield-create-story` |
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## 工作流图
|
|
37
|
-
|
|
38
|
-
```mermaid
|
|
39
|
-
flowchart TD
|
|
40
|
-
subgraph FASE_1_3["阶段1-3:数据收集"]
|
|
41
|
-
A[("启动:棕地项目发现")] --> B["@architect<br/>系统文档"]
|
|
42
|
-
B --> C{项目有<br/>数据库?}
|
|
43
|
-
C -->|是| D["@data-engineer<br/>Schema + 审计"]
|
|
44
|
-
C -->|否| E["@ux-design-expert<br/>前端规范"]
|
|
45
|
-
D --> E
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
subgraph FASE_4["阶段4:初步整合"]
|
|
49
|
-
E --> F["@architect<br/>整合DRAFT"]
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
subgraph FASE_5_7["阶段5-7:专家验证"]
|
|
53
|
-
F --> G["@data-engineer<br/>验证DB部分"]
|
|
54
|
-
G --> H["@ux-design-expert<br/>验证UX部分"]
|
|
55
|
-
H --> I["@qa<br/>质量关卡审查"]
|
|
56
|
-
I --> J{QA关卡?}
|
|
57
|
-
J -->|需要修复| K["返工:<br/>应用修正到DRAFT"]
|
|
58
|
-
K --> F
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
subgraph FASE_8_9["阶段8-9:最终报告"]
|
|
62
|
-
J -->|已批准| L["@architect<br/>最终评估"]
|
|
63
|
-
L --> M["@analyst<br/>执行报告"]
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
subgraph FASE_10["阶段10:规划"]
|
|
67
|
-
M --> N["@pm<br/>创建史诗"]
|
|
68
|
-
N --> O["@pm<br/>创建故事"]
|
|
69
|
-
O --> P(["发现完成"])
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
style A fill:#E8F5E9,stroke:#4CAF50,stroke-width:2px
|
|
73
|
-
style P fill:#90EE90,stroke:#2E7D32,stroke-width:3px
|
|
74
|
-
style B fill:#FFE4B5,stroke:#F57C00
|
|
75
|
-
style D fill:#FFE4B5,stroke:#F57C00
|
|
76
|
-
style E fill:#FFE4B5,stroke:#F57C00
|
|
77
|
-
style F fill:#ADD8E6,stroke:#1976D2
|
|
78
|
-
style L fill:#ADD8E6,stroke:#1976D2
|
|
79
|
-
style G fill:#F0E68C,stroke:#FBC02D
|
|
80
|
-
style H fill:#F0E68C,stroke:#FBC02D
|
|
81
|
-
style I fill:#F0E68C,stroke:#FBC02D
|
|
82
|
-
style M fill:#DDA0DD,stroke:#7B1FA2
|
|
83
|
-
style N fill:#DDA0DD,stroke:#7B1FA2
|
|
84
|
-
style O fill:#DDA0DD,stroke:#7B1FA2
|
|
85
|
-
style J fill:#FFCDD2,stroke:#D32F2F,stroke-width:2px
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## 详细序列图
|
|
91
|
-
|
|
92
|
-
```mermaid
|
|
93
|
-
sequenceDiagram
|
|
94
|
-
autonumber
|
|
95
|
-
participant U as 用户
|
|
96
|
-
participant AR as @architect<br/>Aria
|
|
97
|
-
participant DE as @data-engineer<br/>Dara
|
|
98
|
-
participant UX as @ux-design-expert<br/>Uma
|
|
99
|
-
participant QA as @qa<br/>Quinn
|
|
100
|
-
participant AN as @analyst<br/>Atlas
|
|
101
|
-
participant PM as @pm<br/>Morgan
|
|
102
|
-
|
|
103
|
-
rect rgb(255, 248, 220)
|
|
104
|
-
Note over AR,UX: 阶段1-3:数据收集(可并行化)
|
|
105
|
-
U->>AR: 启动棕地项目发现
|
|
106
|
-
AR->>AR: *document-project
|
|
107
|
-
AR-->>U: docs/architecture/system-architecture.md
|
|
108
|
-
|
|
109
|
-
alt 项目有数据库
|
|
110
|
-
U->>DE: 审计数据库
|
|
111
|
-
DE->>DE: *db-schema-audit + *security-audit
|
|
112
|
-
DE-->>U: supabase/docs/SCHEMA.md + DB-AUDIT.md
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
U->>UX: 记录前端
|
|
116
|
-
UX->>UX: *create-front-end-spec
|
|
117
|
-
UX-->>U: docs/frontend/frontend-spec.md
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
rect rgb(173, 216, 230)
|
|
121
|
-
Note over AR: 阶段4:初步整合
|
|
122
|
-
U->>AR: 整合所有发现
|
|
123
|
-
AR->>AR: 阅读所有文档
|
|
124
|
-
AR-->>U: docs/prd/technical-debt-DRAFT.md
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
rect rgb(240, 230, 140)
|
|
128
|
-
Note over DE,QA: 阶段5-7:专家验证
|
|
129
|
-
U->>DE: 审查数据库部分
|
|
130
|
-
DE->>DE: 验证 + 估算 + 优先级排序
|
|
131
|
-
DE-->>U: docs/reviews/db-specialist-review.md
|
|
132
|
-
|
|
133
|
-
U->>UX: 审查UX/前端部分
|
|
134
|
-
UX->>UX: 验证 + 估算 + 优先级排序
|
|
135
|
-
UX-->>U: docs/reviews/ux-specialist-review.md
|
|
136
|
-
|
|
137
|
-
U->>QA: 质量关卡审查
|
|
138
|
-
QA->>QA: 检查缺口 + 风险 + 依赖关系
|
|
139
|
-
|
|
140
|
-
alt QA关卡已批准
|
|
141
|
-
QA-->>U: docs/reviews/qa-review.md (已批准)
|
|
142
|
-
else QA关卡需要修复
|
|
143
|
-
QA-->>U: docs/reviews/qa-review.md (需要修复)
|
|
144
|
-
Note over AR: 返回阶段4
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
rect rgb(221, 160, 221)
|
|
149
|
-
Note over AR,PM: 阶段8-10:完成
|
|
150
|
-
U->>AR: 创建最终评估
|
|
151
|
-
AR->>AR: 整合所有审查
|
|
152
|
-
AR-->>U: docs/prd/technical-debt-assessment.md
|
|
153
|
-
|
|
154
|
-
U->>AN: 创建执行报告
|
|
155
|
-
AN->>AN: 计算成本 + ROI
|
|
156
|
-
AN-->>U: docs/reports/TECHNICAL-DEBT-REPORT.md
|
|
157
|
-
|
|
158
|
-
U->>PM: 创建史诗和故事
|
|
159
|
-
PM->>PM: *brownfield-create-epic
|
|
160
|
-
PM->>PM: *brownfield-create-story (重复)
|
|
161
|
-
PM-->>U: docs/stories/epic-technical-debt.md + 故事
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
Note over U,PM: 发现完成!
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
---
|
|
168
|
-
|
|
169
|
-
## 详细步骤
|
|
170
|
-
|
|
171
|
-
### 阶段1:收集 - 系统
|
|
172
|
-
|
|
173
|
-
| 属性 | 值 |
|
|
174
|
-
|------|-----|
|
|
175
|
-
| **步骤ID** | `system_documentation` |
|
|
176
|
-
| **阶段** | 1 |
|
|
177
|
-
| **阶段名称** | 收集:系统 |
|
|
178
|
-
| **代理** | `@architect` (Aria) |
|
|
179
|
-
| **操作** | `*document-project` |
|
|
180
|
-
| **需要询问** | 是 |
|
|
181
|
-
| **估计时长** | 30-60分钟 |
|
|
182
|
-
| **输出** | `docs/architecture/system-architecture.md` |
|
|
183
|
-
|
|
184
|
-
**代理分析的内容:**
|
|
185
|
-
- 技术栈(React、Vite、Tailwind等)
|
|
186
|
-
- 文件夹结构和组件
|
|
187
|
-
- 依赖关系和版本
|
|
188
|
-
- 现有代码模式
|
|
189
|
-
- 集成点
|
|
190
|
-
- 配置(env、build、deploy)
|
|
191
|
-
|
|
192
|
-
**识别的债务(系统级别):**
|
|
193
|
-
- 过时的依赖关系
|
|
194
|
-
- 代码重复
|
|
195
|
-
- 缺少测试
|
|
196
|
-
- 硬编码配置
|
|
197
|
-
- 过度耦合
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
### 阶段2:收集 - 数据库
|
|
202
|
-
|
|
203
|
-
| 属性 | 值 |
|
|
204
|
-
|------|-----|
|
|
205
|
-
| **步骤ID** | `database_documentation` |
|
|
206
|
-
| **阶段** | 2 |
|
|
207
|
-
| **阶段名称** | 收集:数据库 |
|
|
208
|
-
| **代理** | `@data-engineer` (Dara - Sage) |
|
|
209
|
-
| **操作** | `*db-schema-audit` + `*security-audit` |
|
|
210
|
-
| **条件** | `project_has_database` |
|
|
211
|
-
| **需要询问** | 是 |
|
|
212
|
-
| **估计时长** | 20-40分钟 |
|
|
213
|
-
| **输出** | `supabase/docs/SCHEMA.md`、`supabase/docs/DB-AUDIT.md` |
|
|
214
|
-
|
|
215
|
-
**代理分析的内容:**
|
|
216
|
-
- 完整schema(表、列、类型)
|
|
217
|
-
- 关系和外键
|
|
218
|
-
- 现有和缺失的索引
|
|
219
|
-
- RLS策略(覆盖和质量)
|
|
220
|
-
- 视图和函数
|
|
221
|
-
- 性能(已知的慢查询)
|
|
222
|
-
|
|
223
|
-
**识别的债务(数据级别):**
|
|
224
|
-
- 无RLS的表
|
|
225
|
-
- 缺失的索引
|
|
226
|
-
- 不当的规范化
|
|
227
|
-
- 缺少约束
|
|
228
|
-
- 未版本化的迁移
|
|
229
|
-
- 孤立数据
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
### 阶段3:收集 - 前端/UX
|
|
234
|
-
|
|
235
|
-
| 属性 | 值 |
|
|
236
|
-
|------|-----|
|
|
237
|
-
| **步骤ID** | `frontend_documentation` |
|
|
238
|
-
| **阶段** | 3 |
|
|
239
|
-
| **阶段名称** | 收集:前端/UX |
|
|
240
|
-
| **代理** | `@ux-design-expert` (Uma - Empathizer) |
|
|
241
|
-
| **操作** | `*create-front-end-spec` |
|
|
242
|
-
| **需要询问** | 是 |
|
|
243
|
-
| **估计时长** | 30-45分钟 |
|
|
244
|
-
| **输出** | `docs/frontend/frontend-spec.md` |
|
|
245
|
-
|
|
246
|
-
**代理分析的内容:**
|
|
247
|
-
- 现有UI组件
|
|
248
|
-
- 使用的设计系统/令牌
|
|
249
|
-
- 布局模式
|
|
250
|
-
- 用户流程
|
|
251
|
-
- 响应性
|
|
252
|
-
- 可访问性(a11y)
|
|
253
|
-
- 视觉一致性
|
|
254
|
-
- 感知性能
|
|
255
|
-
|
|
256
|
-
**识别的债务(UX/UI级别):**
|
|
257
|
-
- 视觉不一致
|
|
258
|
-
- 重复的组件
|
|
259
|
-
- 缺少设计系统
|
|
260
|
-
- 可访问性问题
|
|
261
|
-
- 移动端未优化
|
|
262
|
-
- 缺少加载/错误状态
|
|
263
|
-
- 缺少用户反馈
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
### 阶段4:初步整合
|
|
268
|
-
|
|
269
|
-
| 属性 | 值 |
|
|
270
|
-
|------|-----|
|
|
271
|
-
| **步骤ID** | `initial_consolidation` |
|
|
272
|
-
| **阶段** | 4 |
|
|
273
|
-
| **阶段名称** | 初步整合 |
|
|
274
|
-
| **代理** | `@architect` (Aria) |
|
|
275
|
-
| **操作** | `consolidate_findings_draft` (工作流-操作) |
|
|
276
|
-
| **需要询问** | 是 |
|
|
277
|
-
| **估计时长** | 30-45分钟 |
|
|
278
|
-
| **输出** | `docs/prd/technical-debt-DRAFT.md` |
|
|
279
|
-
|
|
280
|
-
**要求作为输入:**
|
|
281
|
-
- `docs/architecture/system-architecture.md`
|
|
282
|
-
- `supabase/docs/SCHEMA.md` (如果存在)
|
|
283
|
-
- `supabase/docs/DB-AUDIT.md` (如果存在)
|
|
284
|
-
- `docs/frontend/frontend-spec.md`
|
|
285
|
-
|
|
286
|
-
**生成的DRAFT结构:**
|
|
287
|
-
|
|
288
|
-
```markdown
|
|
289
|
-
# 技术债务评估 - DRAFT
|
|
290
|
-
## 专家审查待处理
|
|
291
|
-
|
|
292
|
-
### 1. 系统债务
|
|
293
|
-
[来自system-architecture.md的列表]
|
|
294
|
-
|
|
295
|
-
### 2. 数据库债务
|
|
296
|
-
[来自DB-AUDIT.md的列表]
|
|
297
|
-
待处理:@data-engineer的审查
|
|
298
|
-
|
|
299
|
-
### 3. 前端/UX债务
|
|
300
|
-
[来自frontend-spec.md的列表]
|
|
301
|
-
待处理:@ux-design-expert的审查
|
|
302
|
-
|
|
303
|
-
### 4. 初步矩阵
|
|
304
|
-
| ID | 债务 | 区域 | 影响 | 工作量 | 优先级 |
|
|
305
|
-
|----|------|------|------|--------|--------|
|
|
306
|
-
|
|
307
|
-
### 5. 专家问题
|
|
308
|
-
- @data-engineer:[关于数据库的问题]
|
|
309
|
-
- @ux-design-expert:[关于UX的问题]
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
---
|
|
313
|
-
|
|
314
|
-
### 阶段5:验证 - 数据库
|
|
315
|
-
|
|
316
|
-
| 属性 | 值 |
|
|
317
|
-
|------|-----|
|
|
318
|
-
| **步骤ID** | `database_specialist_review` |
|
|
319
|
-
| **阶段** | 5 |
|
|
320
|
-
| **阶段名称** | 验证:数据库 |
|
|
321
|
-
| **代理** | `@data-engineer` (Dara) |
|
|
322
|
-
| **操作** | `review_and_validate` (工作流-操作) |
|
|
323
|
-
| **需要询问** | 是 |
|
|
324
|
-
| **估计时长** | 20-30分钟 |
|
|
325
|
-
| **输出** | `docs/reviews/db-specialist-review.md` |
|
|
326
|
-
|
|
327
|
-
**专家的职责:**
|
|
328
|
-
|
|
329
|
-
1. **验证识别的债务**
|
|
330
|
-
- 确认是否真的是问题
|
|
331
|
-
- 调整严重性(如需要)
|
|
332
|
-
- 添加未识别的债务
|
|
333
|
-
|
|
334
|
-
2. **估算成本**
|
|
335
|
-
- 解决每个债务的小时数
|
|
336
|
-
- 复杂性(简单/中等/复杂)
|
|
337
|
-
- 技术依赖关系
|
|
338
|
-
|
|
339
|
-
3. **优先级排序(DB视角)**
|
|
340
|
-
- 安全风险
|
|
341
|
-
- 性能影响
|
|
342
|
-
- 维护负债
|
|
343
|
-
|
|
344
|
-
4. **回答问题**
|
|
345
|
-
- 回答@architect的问题
|
|
346
|
-
- 澄清技术要点
|
|
347
|
-
|
|
348
|
-
---
|
|
349
|
-
|
|
350
|
-
### 阶段6:验证 - UX/前端
|
|
351
|
-
|
|
352
|
-
| 属性 | 值 |
|
|
353
|
-
|------|-----|
|
|
354
|
-
| **步骤ID** | `ux_specialist_review` |
|
|
355
|
-
| **阶段** | 6 |
|
|
356
|
-
| **阶段名称** | 验证:UX/前端 |
|
|
357
|
-
| **代理** | `@ux-design-expert` (Uma) |
|
|
358
|
-
| **操作** | `review_and_validate` (工作流-操作) |
|
|
359
|
-
| **需要询问** | 是 |
|
|
360
|
-
| **估计时长** | 20-30分钟 |
|
|
361
|
-
| **输出** | `docs/reviews/ux-specialist-review.md` |
|
|
362
|
-
|
|
363
|
-
**专家的职责:**
|
|
364
|
-
|
|
365
|
-
1. **验证识别的债务**
|
|
366
|
-
- 确认是否影响UX
|
|
367
|
-
- 调整严重性(如需要)
|
|
368
|
-
- 添加未识别的债务
|
|
369
|
-
|
|
370
|
-
2. **估算成本**
|
|
371
|
-
- 解决每个债务的小时数
|
|
372
|
-
- 视觉对比功能影响
|
|
373
|
-
- 需要设计审查
|
|
374
|
-
|
|
375
|
-
3. **优先级排序(UX视角)**
|
|
376
|
-
- 用户体验影响
|
|
377
|
-
- 可访问性问题
|
|
378
|
-
- 视觉一致性
|
|
379
|
-
|
|
380
|
-
4. **回答问题**
|
|
381
|
-
- 回答@architect的问题
|
|
382
|
-
- 建议设计解决方案
|
|
383
|
-
|
|
384
|
-
---
|
|
385
|
-
|
|
386
|
-
### 阶段7:验证 - QA审查
|
|
387
|
-
|
|
388
|
-
| 属性 | 值 |
|
|
389
|
-
|------|-----|
|
|
390
|
-
| **步骤ID** | `qa_general_review` |
|
|
391
|
-
| **阶段** | 7 |
|
|
392
|
-
| **阶段名称** | 验证:QA审查 |
|
|
393
|
-
| **代理** | `@qa` (Quinn - Guardian) |
|
|
394
|
-
| **操作** | `review_assessment` (工作流-操作) |
|
|
395
|
-
| **需要询问** | 是 |
|
|
396
|
-
| **估计时长** | 30-45分钟 |
|
|
397
|
-
| **输出** | `docs/reviews/qa-review.md` |
|
|
398
|
-
|
|
399
|
-
**QA的职责:**
|
|
400
|
-
|
|
401
|
-
1. **识别缺口**
|
|
402
|
-
- 未覆盖的债务
|
|
403
|
-
- 未分析的区域
|
|
404
|
-
- 跨域风险
|
|
405
|
-
|
|
406
|
-
2. **评估风险**
|
|
407
|
-
- 安全风险
|
|
408
|
-
- 回归风险
|
|
409
|
-
- 集成风险
|
|
410
|
-
|
|
411
|
-
3. **验证依赖关系**
|
|
412
|
-
- 解决顺序是否有意义?
|
|
413
|
-
- 债务之间的依赖关系
|
|
414
|
-
- 潜在的阻碍
|
|
415
|
-
|
|
416
|
-
4. **建议测试**
|
|
417
|
-
- 解决后所需的测试
|
|
418
|
-
- 债务的验收标准
|
|
419
|
-
- 质量指标
|
|
420
|
-
|
|
421
|
-
5. **质量关卡**
|
|
422
|
-
- 评估是否完整?
|
|
423
|
-
- 是否可以继续规划?
|
|
424
|
-
- **决策:** `已批准` | `需要修复`
|
|
425
|
-
|
|
426
|
-
---
|
|
427
|
-
|
|
428
|
-
### 阶段8:最终评估
|
|
429
|
-
|
|
430
|
-
| 属性 | 值 |
|
|
431
|
-
|------|-----|
|
|
432
|
-
| **步骤ID** | `final_assessment` |
|
|
433
|
-
| **阶段** | 8 |
|
|
434
|
-
| **阶段名称** | 最终评估 |
|
|
435
|
-
| **代理** | `@architect` (Aria) |
|
|
436
|
-
| **操作** | `finalize_assessment` (工作流-操作) |
|
|
437
|
-
| **条件** | `qa_review_approved` |
|
|
438
|
-
| **需要询问** | 是 |
|
|
439
|
-
| **估计时长** | 30-45分钟 |
|
|
440
|
-
| **输出** | `docs/prd/technical-debt-assessment.md` |
|
|
441
|
-
|
|
442
|
-
**最终整合包括:**
|
|
443
|
-
1. 整合@data-engineer的调整
|
|
444
|
-
2. 整合@ux-design-expert的调整
|
|
445
|
-
3. 处理@qa的缺口
|
|
446
|
-
4. 使用专家的输入重新计算优先级
|
|
447
|
-
5. 定义最终解决顺序
|
|
448
|
-
|
|
449
|
-
**最终文档的结构:**
|
|
450
|
-
|
|
451
|
-
```markdown
|
|
452
|
-
# 技术债务评估 - 最终
|
|
453
|
-
|
|
454
|
-
## 执行摘要
|
|
455
|
-
- 总债务数:X
|
|
456
|
-
- 关键:Y | 高:Z | 中等:W
|
|
457
|
-
- 估计总工作量:XXX小时
|
|
458
|
-
|
|
459
|
-
## 完整债务清单
|
|
460
|
-
|
|
461
|
-
### 系统(由@architect验证)
|
|
462
|
-
| ID | 债务 | 严重性 | 小时 | 优先级 |
|
|
463
|
-
|
|
464
|
-
### 数据库(由@data-engineer验证)
|
|
465
|
-
| ID | 债务 | 严重性 | 小时 | 优先级 |
|
|
466
|
-
|
|
467
|
-
### 前端/UX(由@ux-design-expert验证)
|
|
468
|
-
| ID | 债务 | 严重性 | 小时 | 优先级 |
|
|
469
|
-
|
|
470
|
-
## 最终优先级矩阵
|
|
471
|
-
|
|
472
|
-
## 解决计划
|
|
473
|
-
|
|
474
|
-
## 风险和缓解
|
|
475
|
-
|
|
476
|
-
## 成功标准
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
---
|
|
480
|
-
|
|
481
|
-
### 阶段9:执行报告
|
|
482
|
-
|
|
483
|
-
| 属性 | 值 |
|
|
484
|
-
|------|-----|
|
|
485
|
-
| **步骤ID** | `executive_awareness_report` |
|
|
486
|
-
| **阶段** | 9 |
|
|
487
|
-
| **阶段名称** | 执行报告 |
|
|
488
|
-
| **代理** | `@analyst` (Atlas - Decoder) |
|
|
489
|
-
| **操作** | `create_awareness_report` (工作流-操作) |
|
|
490
|
-
| **需要询问** | 是 |
|
|
491
|
-
| **估计时长** | 30-45分钟 |
|
|
492
|
-
| **输出** | `docs/reports/TECHNICAL-DEBT-REPORT.md` |
|
|
493
|
-
|
|
494
|
-
**目的:** 为利益相关者理解所识别技术债务的成本和影响的文档。
|
|
495
|
-
|
|
496
|
-
**报告结构:**
|
|
497
|
-
|
|
498
|
-
```markdown
|
|
499
|
-
# 技术债务报告
|
|
500
|
-
**项目:** [名称]
|
|
501
|
-
**日期:** [日期]
|
|
502
|
-
|
|
503
|
-
## 执行摘要(1页)
|
|
504
|
-
### 当前状况
|
|
505
|
-
### 关键数字
|
|
506
|
-
| 指标 | 值 |
|
|
507
|
-
|------|-----|
|
|
508
|
-
| 总债务数 | X |
|
|
509
|
-
| 关键债务 | Y |
|
|
510
|
-
| 总工作量 | Z小时 |
|
|
511
|
-
| 估计成本 | 人民币XX,XXX |
|
|
512
|
-
|
|
513
|
-
## 成本分析
|
|
514
|
-
### 解决的成本
|
|
515
|
-
### 不解决的成本(累积风险)
|
|
516
|
-
|
|
517
|
-
## 业务影响
|
|
518
|
-
### 性能
|
|
519
|
-
### 安全
|
|
520
|
-
### 用户体验
|
|
521
|
-
### 可维护性
|
|
522
|
-
|
|
523
|
-
## 推荐时间表
|
|
524
|
-
### 阶段1:快速胜利(1-2周)
|
|
525
|
-
### 阶段2:基础(2-4周)
|
|
526
|
-
### 阶段3:优化(4-6周)
|
|
527
|
-
|
|
528
|
-
## 解决的ROI
|
|
529
|
-
|
|
530
|
-
## 后续步骤
|
|
531
|
-
```
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
### 阶段10:规划(史诗+故事)
|
|
536
|
-
|
|
537
|
-
| 属性 | 值 |
|
|
538
|
-
|------|-----|
|
|
539
|
-
| **步骤ID** | `epic_creation` + `story_creation` |
|
|
540
|
-
| **阶段** | 10 |
|
|
541
|
-
| **阶段名称** | 规划 |
|
|
542
|
-
| **代理** | `@pm` (Morgan - Strategist) |
|
|
543
|
-
| **操作** | `*brownfield-create-epic`、`*brownfield-create-story` |
|
|
544
|
-
| **需要询问** | 是 |
|
|
545
|
-
| **估计时长** | 30-60分钟 |
|
|
546
|
-
| **输出** | `docs/stories/epic-technical-debt.md`、`docs/stories/story-*.md` |
|
|
547
|
-
|
|
548
|
-
**史诗包括:**
|
|
549
|
-
- 史诗的目标
|
|
550
|
-
- 范围(哪些债务)
|
|
551
|
-
- 成功标准
|
|
552
|
-
- 时间表(来自报告)
|
|
553
|
-
- 批准的预算
|
|
554
|
-
- 故事列表
|
|
555
|
-
|
|
556
|
-
**每个故事包括:**
|
|
557
|
-
- 清晰的任务
|
|
558
|
-
- 具体的验收标准
|
|
559
|
-
- 所需的测试(来自QA审查)
|
|
560
|
-
- 由专家验证的估算
|
|
561
|
-
- 完成定义
|
|
562
|
-
|
|
563
|
-
---
|
|
564
|
-
|
|
565
|
-
## 参与的代理
|
|
566
|
-
|
|
567
|
-
```mermaid
|
|
568
|
-
mindmap
|
|
569
|
-
root((棕地项目<br/>发现))
|
|
570
|
-
收集
|
|
571
|
-
architect["@architect<br/>Aria (愿景家)<br/>系统和整合"]
|
|
572
|
-
data-engineer["@data-engineer<br/>Dara (智者)<br/>数据库"]
|
|
573
|
-
ux-design-expert["@ux-design-expert<br/>Uma (同情者)<br/>前端/UX"]
|
|
574
|
-
验证
|
|
575
|
-
data-engineer2["@data-engineer<br/>审查DB"]
|
|
576
|
-
ux-design-expert2["@ux-design-expert<br/>审查UX"]
|
|
577
|
-
qa["@qa<br/>Quinn (守护者)<br/>质量关卡"]
|
|
578
|
-
完成
|
|
579
|
-
architect2["@architect<br/>最终评估"]
|
|
580
|
-
analyst["@analyst<br/>Atlas (解码器)<br/>执行报告"]
|
|
581
|
-
pm["@pm<br/>Morgan (战略家)<br/>史诗和故事"]
|
|
582
|
-
```
|
|
583
|
-
|
|
584
|
-
### 代理配置
|
|
585
|
-
|
|
586
|
-
| 代理 | ID | 原型 | 主要专长 |
|
|
587
|
-
|------|-----|------|---------|
|
|
588
|
-
| Aria | `@architect` | 愿景家 | 系统架构、整体设计 |
|
|
589
|
-
| Dara | `@data-engineer` | 智者 | PostgreSQL、Supabase、RLS、迁移 |
|
|
590
|
-
| Uma | `@ux-design-expert` | 同情者 | 原子设计、设计令牌、可访问性 |
|
|
591
|
-
| Quinn | `@qa` | 守护者 | 质量关卡、测试、可追溯性 |
|
|
592
|
-
| Atlas | `@analyst` | 解码器 | 研究、分析、ROI |
|
|
593
|
-
| Morgan | `@pm` | 战略家 | PRD、史诗、优先级 |
|
|
594
|
-
|
|
595
|
-
---
|
|
596
|
-
|
|
597
|
-
## 执行的任务
|
|
598
|
-
|
|
599
|
-
### 自动化任务(任务参考)
|
|
600
|
-
|
|
601
|
-
| 任务 | 代理 | 阶段 | 描述 |
|
|
602
|
-
|------|------|------|------|
|
|
603
|
-
| `document-project` | @architect | 1 | 系统完整文档 |
|
|
604
|
-
| `db-schema-audit` | @data-engineer | 2 | 数据库schema审计 |
|
|
605
|
-
| `security-audit` | @data-engineer | 2 | 安全审计(RLS、PII) |
|
|
606
|
-
| `create-front-end-spec` | @ux-design-expert | 3 | 前端规范 |
|
|
607
|
-
| `brownfield-create-epic` | @pm | 10 | 技术债务史诗创建 |
|
|
608
|
-
| `brownfield-create-story` | @pm | 10 | 故事创建(可重复) |
|
|
609
|
-
|
|
610
|
-
### 手动操作(工作流-操作)
|
|
611
|
-
|
|
612
|
-
| 操作 | 代理 | 阶段 | 描述 |
|
|
613
|
-
|------|------|------|------|
|
|
614
|
-
| `consolidate_findings_draft` | @architect | 4 | 整合DRAFT初稿 |
|
|
615
|
-
| `review_and_validate` | @data-engineer | 5 | 验证数据库债务 |
|
|
616
|
-
| `review_and_validate` | @ux-design-expert | 6 | 验证UX债务 |
|
|
617
|
-
| `review_assessment` | @qa | 7 | 质量关卡审查 |
|
|
618
|
-
| `finalize_assessment` | @architect | 8 | 最终评估 |
|
|
619
|
-
| `create_awareness_report` | @analyst | 9 | 执行报告 |
|
|
620
|
-
|
|
621
|
-
---
|
|
622
|
-
|
|
623
|
-
## 前置条件
|
|
624
|
-
|
|
625
|
-
### 环境
|
|
626
|
-
|
|
627
|
-
- [ ] 访问项目存储库
|
|
628
|
-
- [ ] 已安装Supabase CLI(如有数据库)
|
|
629
|
-
- [ ] 数据库凭证可用
|
|
630
|
-
- [ ] 对所有文件的读取权限
|
|
631
|
-
|
|
632
|
-
### 先前的文档
|
|
633
|
-
|
|
634
|
-
- [ ] 对项目目的的基本理解
|
|
635
|
-
- [ ] 知道报告的利益相关者
|
|
636
|
-
|
|
637
|
-
### 使用的工具
|
|
638
|
-
|
|
639
|
-
| 工具 | 代理 | 目的 |
|
|
640
|
-
|------|------|------|
|
|
641
|
-
| `git` | @architect | 存储库分析 |
|
|
642
|
-
| `supabase-cli` | @data-engineer | 数据库审计 |
|
|
643
|
-
| `psql` | @data-engineer | 审计查询 |
|
|
644
|
-
| `coderabbit` | @qa | 自动代码审查 |
|
|
645
|
-
| `exa` | @analyst | 市场研究/基准 |
|
|
646
|
-
|
|
647
|
-
---
|
|
648
|
-
|
|
649
|
-
## 输入和输出
|
|
650
|
-
|
|
651
|
-
### 工件映射
|
|
652
|
-
|
|
653
|
-
```mermaid
|
|
654
|
-
flowchart LR
|
|
655
|
-
subgraph 输入
|
|
656
|
-
E1[源代码]
|
|
657
|
-
E2[数据库Schema]
|
|
658
|
-
E3[UI/组件]
|
|
659
|
-
E4[配置]
|
|
660
|
-
end
|
|
661
|
-
|
|
662
|
-
subgraph 阶段1_3[阶段1-3]
|
|
663
|
-
A1[system-architecture.md]
|
|
664
|
-
A2[SCHEMA.md]
|
|
665
|
-
A3[DB-AUDIT.md]
|
|
666
|
-
A4[frontend-spec.md]
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
subgraph 阶段4[阶段4]
|
|
670
|
-
B1[technical-debt-DRAFT.md]
|
|
671
|
-
end
|
|
672
|
-
|
|
673
|
-
subgraph 阶段5_7[阶段5-7]
|
|
674
|
-
C1[db-specialist-review.md]
|
|
675
|
-
C2[ux-specialist-review.md]
|
|
676
|
-
C3[qa-review.md]
|
|
677
|
-
end
|
|
678
|
-
|
|
679
|
-
subgraph 阶段8_10[阶段8-10]
|
|
680
|
-
D1[technical-debt-assessment.md]
|
|
681
|
-
D2[TECHNICAL-DEBT-REPORT.md]
|
|
682
|
-
D3[epic-technical-debt.md]
|
|
683
|
-
D4[story-*.md]
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
E1 --> A1
|
|
687
|
-
E2 --> A2
|
|
688
|
-
E2 --> A3
|
|
689
|
-
E3 --> A4
|
|
690
|
-
E4 --> A1
|
|
691
|
-
|
|
692
|
-
A1 --> B1
|
|
693
|
-
A2 --> B1
|
|
694
|
-
A3 --> B1
|
|
695
|
-
A4 --> B1
|
|
696
|
-
|
|
697
|
-
B1 --> C1
|
|
698
|
-
B1 --> C2
|
|
699
|
-
C1 --> C3
|
|
700
|
-
C2 --> C3
|
|
701
|
-
|
|
702
|
-
C1 --> D1
|
|
703
|
-
C2 --> D1
|
|
704
|
-
C3 --> D1
|
|
705
|
-
|
|
706
|
-
D1 --> D2
|
|
707
|
-
D2 --> D3
|
|
708
|
-
D3 --> D4
|
|
709
|
-
```
|
|
710
|
-
|
|
711
|
-
### 最终工件结构
|
|
712
|
-
|
|
713
|
-
```text
|
|
714
|
-
docs/
|
|
715
|
-
├── architecture/
|
|
716
|
-
│ └── system-architecture.md [阶段1]
|
|
717
|
-
├── frontend/
|
|
718
|
-
│ └── frontend-spec.md [阶段3]
|
|
719
|
-
├── reviews/
|
|
720
|
-
│ ├── db-specialist-review.md [阶段5]
|
|
721
|
-
│ ├── ux-specialist-review.md [阶段6]
|
|
722
|
-
│ └── qa-review.md [阶段7]
|
|
723
|
-
├── prd/
|
|
724
|
-
│ ├── technical-debt-DRAFT.md [阶段4]
|
|
725
|
-
│ └── technical-debt-assessment.md [阶段8]
|
|
726
|
-
├── reports/
|
|
727
|
-
│ └── TECHNICAL-DEBT-REPORT.md [阶段9] ← 利益相关者
|
|
728
|
-
└── stories/
|
|
729
|
-
├── epic-technical-debt.md [阶段10]
|
|
730
|
-
├── story-1.1-*.md
|
|
731
|
-
└── story-1.2-*.md
|
|
732
|
-
|
|
733
|
-
supabase/
|
|
734
|
-
└── docs/
|
|
735
|
-
├── SCHEMA.md [阶段2]
|
|
736
|
-
└── DB-AUDIT.md [阶段2]
|
|
737
|
-
```
|
|
738
|
-
|
|
739
|
-
---
|
|
740
|
-
|
|
741
|
-
## 决策点
|
|
742
|
-
|
|
743
|
-
### 决策点1:项目有数据库?
|
|
744
|
-
|
|
745
|
-
```mermaid
|
|
746
|
-
flowchart TD
|
|
747
|
-
Q1{项目有<br/>数据库?}
|
|
748
|
-
Q1 -->|是| A1[执行阶段2:<br/>@data-engineer审计DB]
|
|
749
|
-
Q1 -->|否| A2[跳过阶段2:<br/>直接到阶段3]
|
|
750
|
-
A1 --> B[阶段3:前端]
|
|
751
|
-
A2 --> B
|
|
752
|
-
```
|
|
753
|
-
|
|
754
|
-
**标准:**
|
|
755
|
-
- 存在 `supabase/` 文件夹或类似?
|
|
756
|
-
- 有迁移文件?
|
|
757
|
-
- 项目使用Supabase、PostgreSQL或其他DB?
|
|
758
|
-
|
|
759
|
-
---
|
|
760
|
-
|
|
761
|
-
### 决策点2:QA关卡
|
|
762
|
-
|
|
763
|
-
```mermaid
|
|
764
|
-
flowchart TD
|
|
765
|
-
Q2{QA关卡状态?}
|
|
766
|
-
Q2 -->|已批准| A3[继续阶段8:<br/>最终评估]
|
|
767
|
-
Q2 -->|需要修复| A4[返回阶段4:<br/>返工DRAFT]
|
|
768
|
-
A4 --> A5[整合QA反馈]
|
|
769
|
-
A5 --> A6[重新提交验证]
|
|
770
|
-
A6 --> Q2
|
|
771
|
-
```
|
|
772
|
-
|
|
773
|
-
**批准标准:**
|
|
774
|
-
- 所有债务由专家验证
|
|
775
|
-
- 无未识别的关键缺口
|
|
776
|
-
- 依赖关系有意义
|
|
777
|
-
- 风险已映射
|
|
778
|
-
|
|
779
|
-
**需要修复标准:**
|
|
780
|
-
- 未处理的缺口
|
|
781
|
-
- 债务缺少验证
|
|
782
|
-
- 未缓解的跨域风险
|
|
783
|
-
- 不一致的依赖关系
|
|
784
|
-
|
|
785
|
-
---
|
|
786
|
-
|
|
787
|
-
### 决策点3:范围增长
|
|
788
|
-
|
|
789
|
-
```mermaid
|
|
790
|
-
flowchart TD
|
|
791
|
-
Q3{史诗范围}
|
|
792
|
-
Q3 -->|1-3个故事| A7[使用brownfield-create-epic<br/>简单工作流]
|
|
793
|
-
Q3 -->|4+个故事| A8[考虑完整PRD<br/>扩展工作流]
|
|
794
|
-
Q3 -->|新架构| A9[使用greenfield工作流]
|
|
795
|
-
```
|
|
796
|
-
|
|
797
|
-
---
|
|
798
|
-
|
|
799
|
-
## 故障排除
|
|
800
|
-
|
|
801
|
-
### 问题:阶段2由于缺少DB访问权限而失败
|
|
802
|
-
|
|
803
|
-
**症状:** `psql:连接被拒绝` 或凭证无效
|
|
804
|
-
|
|
805
|
-
**解决方案:**
|
|
806
|
-
1. 检查环境中的 `SUPABASE_DB_URL`
|
|
807
|
-
2. 手动测试连接:`psql "$SUPABASE_DB_URL" -c "SELECT 1"`
|
|
808
|
-
3. 确认网络权限(VPN、防火墙)
|
|
809
|
-
4. 如果无法访问,跳过阶段2并记录为债务
|
|
810
|
-
|
|
811
|
-
---
|
|
812
|
-
|
|
813
|
-
### 问题:评估太大
|
|
814
|
-
|
|
815
|
-
**症状:** DRAFT中识别了超过50个债务
|
|
816
|
-
|
|
817
|
-
**解决方案:**
|
|
818
|
-
1. 按严重性优先级债务(关键>高>中等)
|
|
819
|
-
2. 将类似债务分组到类别中
|
|
820
|
-
3. 考虑按区域的多个史诗(DB、前端、基础设施)
|
|
821
|
-
4. 关注前10-15个债务的第一个周期
|
|
822
|
-
|
|
823
|
-
---
|
|
824
|
-
|
|
825
|
-
### 问题:专家意见不同
|
|
826
|
-
|
|
827
|
-
**症状:** @data-engineer和@ux-design-expert优先级冲突
|
|
828
|
-
|
|
829
|
-
**解决方案:**
|
|
830
|
-
1. @architect作为调解人
|
|
831
|
-
2. 使用客观优先级框架(RICE、ICE)
|
|
832
|
-
3. 考虑跨域影响(慢DB影响UX)
|
|
833
|
-
4. 在最终评估中记录权衡
|
|
834
|
-
|
|
835
|
-
---
|
|
836
|
-
|
|
837
|
-
### 问题:QA关卡无限循环
|
|
838
|
-
|
|
839
|
-
**症状:** 多次需要修复
|
|
840
|
-
|
|
841
|
-
**解决方案:**
|
|
842
|
-
1. 与@qa审查批准标准
|
|
843
|
-
2. 关注特定缺口(不是所有)
|
|
844
|
-
3. 考虑在条件下批准
|
|
845
|
-
4. 如果被阻止,升级到利益相关者
|
|
846
|
-
|
|
847
|
-
---
|
|
848
|
-
|
|
849
|
-
### 问题:执行报告与利益相关者不共鸣
|
|
850
|
-
|
|
851
|
-
**症状:** 反馈报告太技术性
|
|
852
|
-
|
|
853
|
-
**解决方案:**
|
|
854
|
-
1. 使用业务语言,而不是技术
|
|
855
|
-
2. 关注人民币成本(而不是小时数)
|
|
856
|
-
3. 包括类比和比较
|
|
857
|
-
4. 添加影响的视觉图表
|
|
858
|
-
|
|
859
|
-
---
|
|
860
|
-
|
|
861
|
-
## 参考
|
|
862
|
-
|
|
863
|
-
### 工作流文件
|
|
864
|
-
|
|
865
|
-
| 文件 | 位置 |
|
|
866
|
-
|------|------|
|
|
867
|
-
| 工作流定义 | `.sinapse-ai/development/workflows/brownfield-discovery.yaml` |
|
|
868
|
-
| 任务:brownfield-create-epic | `.sinapse-ai/development/tasks/brownfield-create-epic.md` |
|
|
869
|
-
| 任务:brownfield-create-story | `.sinapse-ai/development/tasks/brownfield-create-story.md` |
|
|
870
|
-
| 任务:db-schema-audit | `.sinapse-ai/development/tasks/db-schema-audit.md` |
|
|
871
|
-
| 任务:security-audit | `.sinapse-ai/development/tasks/security-audit.md` |
|
|
872
|
-
|
|
873
|
-
### 代理
|
|
874
|
-
|
|
875
|
-
| 代理 | 位置 |
|
|
876
|
-
|------|------|
|
|
877
|
-
| @architect | `.sinapse-ai/development/agents/architect.md` |
|
|
878
|
-
| @data-engineer | `.sinapse-ai/development/agents/data-engineer.md` |
|
|
879
|
-
| @ux-design-expert | `.sinapse-ai/development/agents/ux-design-expert.md` |
|
|
880
|
-
| @qa | `.sinapse-ai/development/agents/qa.md` |
|
|
881
|
-
| @analyst | `.sinapse-ai/development/agents/analyst.md` |
|
|
882
|
-
| @pm | `.sinapse-ai/development/agents/pm.md` |
|
|
883
|
-
|
|
884
|
-
---
|
|
885
|
-
|
|
886
|
-
## 时间估计
|
|
887
|
-
|
|
888
|
-
| 复杂度 | 最小时间 | 典型时间 | 最大时间 |
|
|
889
|
-
|--------|---------|---------|---------|
|
|
890
|
-
| 简单项目(无DB) | 3小时 | 4小时 | 5小时 |
|
|
891
|
-
| 中等项目 | 4小时 | 5-6小时 | 7小时 |
|
|
892
|
-
| 复杂项目 | 6小时 | 7-8小时 | 10+小时 |
|
|
893
|
-
|
|
894
|
-
**增加时间的因素:**
|
|
895
|
-
- 大数据库,有许多表
|
|
896
|
-
- 具有许多组件的前端
|
|
897
|
-
- 多个外部集成
|
|
898
|
-
- QA关卡的返工
|
|
899
|
-
- 利益相关者有许多问题
|
|
900
|
-
|
|
901
|
-
---
|
|
902
|
-
|
|
903
|
-
## 发现后的后续步骤
|
|
904
|
-
|
|
905
|
-
1. **呈现** `TECHNICAL-DEBT-REPORT.md` 给利益相关者
|
|
906
|
-
2. **获取批准** 预算
|
|
907
|
-
3. **优先级** 待办事项中的故事
|
|
908
|
-
4. **启动开发**:`@dev` 实现 `story-1.1`
|
|
909
|
-
5. **监控进度** 通过ClickUp/GitHub
|
|
910
|
-
|
|
911
|
-
---
|
|
912
|
-
|
|
913
|
-
*生成时间:2026-02-04*
|
|
914
|
-
*工作流版本:2.0*
|
|
915
|
-
*维护者:@devops*
|