@xulthekl/team-flow 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/.agents/skills +1 -0
- package/.claude/always/phase-guard.md +3 -0
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +31 -0
- package/.codex-plugin/plugin.json +45 -0
- package/.codexignore +6 -0
- package/.cursor-plugin/marketplace.json +17 -0
- package/.cursor-plugin/plugin.json +31 -0
- package/.github/copilot-instructions.md +15 -0
- package/.github/dependabot.yml +10 -0
- package/.github/plugin/marketplace.json +42 -0
- package/.github/workflows/ci.yml +98 -0
- package/.github/workflows/hol-plugin-scanner.yml +17 -0
- package/.opencode/INSTALL.md +61 -0
- package/.opencode/plugins/team-flow.js +70 -0
- package/AGENTS.md +280 -0
- package/CHANGELOG.md +635 -0
- package/CONTRIBUTING.md +115 -0
- package/GEMINI.md +14 -0
- package/HANDOFF.md +219 -0
- package/INSTALL.md +810 -0
- package/LICENSE +21 -0
- package/README.md +185 -0
- package/SECURITY.md +37 -0
- package/agents/bug-investigator.md +180 -0
- package/agents/change-split-auditor.md +257 -0
- package/agents/code-reviewer.md +171 -0
- package/agents/cross-change-consistency-checker.md +215 -0
- package/agents/prd-completeness-reviewer.md +197 -0
- package/agents/prototype-builder.md +230 -0
- package/agents/prototype-env-scout.md +156 -0
- package/agents/prototype-reviewer.md +226 -0
- package/assets/icon.svg +6 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +5 -0
- package/dist/parsing/change-parser.d.ts +12 -0
- package/dist/parsing/change-parser.js +54 -0
- package/dist/parsing/requirement-blocks.d.ts +31 -0
- package/dist/parsing/requirement-blocks.js +192 -0
- package/dist/schema/base.d.ts +7 -0
- package/dist/schema/base.js +1 -0
- package/dist/schema/change.d.ts +25 -0
- package/dist/schema/change.js +1 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/spec.d.ts +11 -0
- package/dist/schema/spec.js +1 -0
- package/dist/validation/constants.d.ts +42 -0
- package/dist/validation/constants.js +42 -0
- package/dist/validation/tokenizer.d.ts +17 -0
- package/dist/validation/tokenizer.js +173 -0
- package/dist/validation/types.d.ts +40 -0
- package/dist/validation/types.js +1 -0
- package/dist/validation/validator.d.ts +21 -0
- package/dist/validation/validator.js +489 -0
- package/docs/README_en.md +358 -0
- package/docs/artifact-contract.md +96 -0
- package/docs/decision-points.md +88 -0
- package/docs/e2e-integration-design.md +207 -0
- package/docs/examples/README.md +25 -0
- package/docs/examples/add-dark-mode/README.md +13 -0
- package/docs/examples/add-dark-mode/design.md +49 -0
- package/docs/examples/add-dark-mode/execution-contract.md +56 -0
- package/docs/examples/add-dark-mode/proposal.md +46 -0
- package/docs/examples/add-dark-mode/specs/ui-theme/spec.md +35 -0
- package/docs/examples/add-dark-mode/tasks.md +26 -0
- package/docs/examples/refactor-auth-boundary/README.md +15 -0
- package/docs/examples/refactor-auth-boundary/design.md +41 -0
- package/docs/examples/refactor-auth-boundary/execution-contract.md +61 -0
- package/docs/examples/refactor-auth-boundary/proposal.md +47 -0
- package/docs/examples/refactor-auth-boundary/specs/auth-boundary/spec.md +45 -0
- package/docs/examples/refactor-auth-boundary/tasks.md +25 -0
- package/docs/plans/2026-07-07-fix-batch-design.md +68 -0
- package/docs/plans/2026-07-20-001-refactor-skill-collaboration-protocol-plan.md +128 -0
- package/docs/platform-matrix.md +45 -0
- package/docs/prototype-design-research.md +206 -0
- package/docs/release-checklist.md +96 -0
- package/docs/showcase.html +699 -0
- package/docs/skill-rename-v0.8.0.md +49 -0
- package/docs/state-machine.md +162 -0
- package/gemini-extension.json +6 -0
- package/hooks/hooks-cursor.json +8 -0
- package/hooks/hooks.json +26 -0
- package/hooks/pre-tool-use-guard +116 -0
- package/hooks/session-start +14 -0
- package/llms.txt +51 -0
- package/package.json +48 -0
- package/plugin.json +27 -0
- package/prd/v1/plan.md +443 -0
- package/prd/v1/prd.md +580 -0
- package/scripts/check-update.mjs +91 -0
- package/scripts/check-version-consistency.mjs +345 -0
- package/scripts/ensure-branch.mjs +71 -0
- package/scripts/get-config +31 -0
- package/scripts/guard/checks/artifacts-exist.mjs +36 -0
- package/scripts/guard/checks/contract-current.mjs +33 -0
- package/scripts/guard/checks/contract-fresh.mjs +17 -0
- package/scripts/guard/checks/dp-gate-passed.mjs +35 -0
- package/scripts/guard/checks/dp3-approved.mjs +22 -0
- package/scripts/guard/checks/execution-plan-ready.mjs +40 -0
- package/scripts/guard/checks/execution-reviews-passed.mjs +36 -0
- package/scripts/guard/checks/schema-valid.mjs +63 -0
- package/scripts/guard/checks/specs-merged.mjs +51 -0
- package/scripts/guard/checks/tasks-complete.mjs +31 -0
- package/scripts/guard/checks/tests-passing.mjs +31 -0
- package/scripts/guard/design-token-guard.mjs +237 -0
- package/scripts/guard/guard.mjs +205 -0
- package/scripts/infer-workflow.mjs +136 -0
- package/scripts/install-amazon-q.mjs +9 -0
- package/scripts/install-cline.mjs +9 -0
- package/scripts/install-continue.mjs +9 -0
- package/scripts/install-cursor.mjs +265 -0
- package/scripts/install-git-hooks.mjs +82 -0
- package/scripts/install-kiro.mjs +9 -0
- package/scripts/install-pi.mjs +9 -0
- package/scripts/install-qoder.mjs +9 -0
- package/scripts/install-qwen.mjs +9 -0
- package/scripts/install-roocode.mjs +9 -0
- package/scripts/install-windsurf.mjs +9 -0
- package/scripts/install-zcode.mjs +265 -0
- package/scripts/lib/cmd-audit.mjs +127 -0
- package/scripts/lib/cmd-checkpoint.mjs +118 -0
- package/scripts/lib/cmd-config.mjs +88 -0
- package/scripts/lib/cmd-doctor.mjs +267 -0
- package/scripts/lib/cmd-execution.mjs +206 -0
- package/scripts/lib/cmd-handoff.mjs +94 -0
- package/scripts/lib/cmd-inject.mjs +310 -0
- package/scripts/lib/cmd-install-amazon-q.mjs +11 -0
- package/scripts/lib/cmd-install-cline.mjs +11 -0
- package/scripts/lib/cmd-install-continue.mjs +11 -0
- package/scripts/lib/cmd-install-cursor.mjs +14 -0
- package/scripts/lib/cmd-install-kiro.mjs +11 -0
- package/scripts/lib/cmd-install-pi.mjs +11 -0
- package/scripts/lib/cmd-install-qoder.mjs +11 -0
- package/scripts/lib/cmd-install-qwen.mjs +11 -0
- package/scripts/lib/cmd-install-roocode.mjs +11 -0
- package/scripts/lib/cmd-install-windsurf.mjs +11 -0
- package/scripts/lib/cmd-install-workbuddy.mjs +359 -0
- package/scripts/lib/cmd-install-zcode.mjs +14 -0
- package/scripts/lib/cmd-isolate.mjs +37 -0
- package/scripts/lib/cmd-list.mjs +71 -0
- package/scripts/lib/cmd-runtime.mjs +85 -0
- package/scripts/lib/cmd-solutions.mjs +71 -0
- package/scripts/lib/cmd-state.mjs +231 -0
- package/scripts/lib/cmd-sync.mjs +102 -0
- package/scripts/lib/cmd-validate.mjs +105 -0
- package/scripts/lib/cmd-version.mjs +148 -0
- package/scripts/lib/config-loader.mjs +107 -0
- package/scripts/lib/execution-plan.mjs +492 -0
- package/scripts/lib/execution-recommendation.mjs +221 -0
- package/scripts/lib/hash.mjs +74 -0
- package/scripts/lib/install.mjs +267 -0
- package/scripts/lib/platform-runtime-inventory.mjs +27 -0
- package/scripts/lib/platforms.mjs +165 -0
- package/scripts/lib/prototype-sync.mjs +192 -0
- package/scripts/lib/sdd-overlay.mjs +262 -0
- package/scripts/lib/shell-quote.mjs +4 -0
- package/scripts/lib/solutions-capture.mjs +102 -0
- package/scripts/lib/solutions-index-gen.mjs +112 -0
- package/scripts/lib/solutions-inject.mjs +77 -0
- package/scripts/lib/solutions-promote.mjs +145 -0
- package/scripts/lib/spec-paths.mjs +85 -0
- package/scripts/lib/state-loader.mjs +154 -0
- package/scripts/lint/lint-skills.mjs +149 -0
- package/scripts/lint/rules/behavior-consistency.mjs +56 -0
- package/scripts/lint/rules/dp-trigger-points.mjs +60 -0
- package/scripts/lint/rules/exception-handling.mjs +59 -0
- package/scripts/lint/rules/no-contradictory-instructions.mjs +67 -0
- package/scripts/lint/rules/no-redundant-checks.mjs +50 -0
- package/scripts/lint/rules/token-rules.mjs +122 -0
- package/scripts/review-package +44 -0
- package/scripts/task-brief +40 -0
- package/scripts/team-flow.mjs +164 -0
- package/scripts/token-baseline.mjs +158 -0
- package/scripts/validate-artifacts +96 -0
- package/scripts/verify-marketplace-release.mjs +59 -0
- package/skills/architecture-design/SKILL.md +140 -0
- package/skills/architecture-design/chapters/ch01-4a-domains.md +27 -0
- package/skills/architecture-design/chapters/ch02-change-cascade.md +27 -0
- package/skills/architecture-design/chapters/ch03-architecture-outputs.md +25 -0
- package/skills/architecture-design/chapters/ch04-entity-to-aggregate.md +27 -0
- package/skills/architecture-design/chapters/ch05-cqrs.md +32 -0
- package/skills/architecture-design/chapters/ch06-integration.md +54 -0
- package/skills/architecture-design/cheatsheet.md +51 -0
- package/skills/architecture-design/glossary.md +23 -0
- package/skills/architecture-design/patterns.md +32 -0
- package/skills/bug-investigator/SKILL.md +77 -0
- package/skills/build-executor/SKILL.md +163 -0
- package/skills/build-executor/implementer-prompt.md +162 -0
- package/skills/build-executor/references/execution-modes.md +86 -0
- package/skills/build-executor/task-reviewer-prompt.md +195 -0
- package/skills/ce-brainstorm/SKILL.md +415 -0
- package/skills/ce-brainstorm/references/agents/slack-researcher.md +127 -0
- package/skills/ce-brainstorm/references/blindspot-pass.md +70 -0
- package/skills/ce-brainstorm/references/brainstorm-sections.md +285 -0
- package/skills/ce-brainstorm/references/handoff.md +168 -0
- package/skills/ce-brainstorm/references/html-rendering.md +634 -0
- package/skills/ce-brainstorm/references/markdown-rendering.md +241 -0
- package/skills/ce-brainstorm/references/model-tiers.md +9 -0
- package/skills/ce-brainstorm/references/prd-mapping.md +71 -0
- package/skills/ce-brainstorm/references/product-pressure-test.md +42 -0
- package/skills/ce-brainstorm/references/reasoning-elevation.md +63 -0
- package/skills/ce-brainstorm/references/settled-decisions.md +45 -0
- package/skills/ce-brainstorm/references/synthesis-summary.md +282 -0
- package/skills/ce-brainstorm/references/universal-brainstorming.md +73 -0
- package/skills/ce-brainstorm/references/verdict-routing.md +26 -0
- package/skills/ce-brainstorm/references/visual-probes.md +158 -0
- package/skills/ce-brainstorm/scripts/visual-probe-server.js +418 -0
- package/skills/ce-compound/SKILL.md +114 -0
- package/skills/ce-compound/assets/resolution-template.md +94 -0
- package/skills/ce-compound/references/agents/best-practices-researcher.md +115 -0
- package/skills/ce-compound/references/agents/data-integrity-guardian.md +68 -0
- package/skills/ce-compound/references/agents/framework-docs-researcher.md +93 -0
- package/skills/ce-compound/references/agents/pattern-recognition-specialist.md +55 -0
- package/skills/ce-compound/references/agents/performance-oracle.md +108 -0
- package/skills/ce-compound/references/agents/security-sentinel.md +91 -0
- package/skills/ce-compound/references/agents/session-historian.md +83 -0
- package/skills/ce-compound/references/concepts-vocabulary.md +78 -0
- package/skills/ce-compound/references/full-mode-workflow.md +413 -0
- package/skills/ce-compound/references/grounding-validation.md +84 -0
- package/skills/ce-compound/references/lightweight-mode.md +53 -0
- package/skills/ce-compound/references/output-standards.md +182 -0
- package/skills/ce-compound/references/promotion-rules.md +38 -0
- package/skills/ce-compound/references/schema.yaml +231 -0
- package/skills/ce-compound/references/three-tier-index.md +55 -0
- package/skills/ce-compound/references/v0.5-upgrade.md +32 -0
- package/skills/ce-compound/references/write-flow.md +36 -0
- package/skills/ce-compound/references/yaml-schema.md +118 -0
- package/skills/ce-compound/scripts/session-history/discover-sessions.sh +130 -0
- package/skills/ce-compound/scripts/session-history/extract-errors.py +254 -0
- package/skills/ce-compound/scripts/session-history/extract-metadata.py +456 -0
- package/skills/ce-compound/scripts/session-history/extract-skeleton.py +575 -0
- package/skills/ce-compound/scripts/validate-doc-claims.py +346 -0
- package/skills/ce-compound/scripts/validate-frontmatter.py +137 -0
- package/skills/ce-ideate/SKILL.md +402 -0
- package/skills/ce-ideate/references/agents/issue-intelligence-analyst.md +200 -0
- package/skills/ce-ideate/references/agents/learnings-researcher.md +247 -0
- package/skills/ce-ideate/references/agents/slack-researcher.md +127 -0
- package/skills/ce-ideate/references/agents/web-researcher.md +121 -0
- package/skills/ce-ideate/references/divergent-ideation.md +89 -0
- package/skills/ce-ideate/references/html-rendering.md +634 -0
- package/skills/ce-ideate/references/ideation-sections.md +191 -0
- package/skills/ce-ideate/references/markdown-rendering.md +238 -0
- package/skills/ce-ideate/references/post-ideation-workflow.md +167 -0
- package/skills/ce-ideate/references/universal-ideation.md +107 -0
- package/skills/ce-ideate/references/web-research-cache.md +56 -0
- package/skills/ce-plan/SKILL.md +137 -0
- package/skills/ce-plan/references/agents/agent-native-planning-strategist.md +62 -0
- package/skills/ce-plan/references/agents/architecture-strategist.md +46 -0
- package/skills/ce-plan/references/agents/best-practices-researcher.md +114 -0
- package/skills/ce-plan/references/agents/data-integrity-guardian.md +68 -0
- package/skills/ce-plan/references/agents/data-migration-reviewer.md +103 -0
- package/skills/ce-plan/references/agents/deployment-verification-agent.md +157 -0
- package/skills/ce-plan/references/agents/framework-docs-researcher.md +93 -0
- package/skills/ce-plan/references/agents/git-history-analyzer.md +40 -0
- package/skills/ce-plan/references/agents/learnings-researcher.md +247 -0
- package/skills/ce-plan/references/agents/pattern-recognition-specialist.md +55 -0
- package/skills/ce-plan/references/agents/performance-oracle.md +108 -0
- package/skills/ce-plan/references/agents/repo-research-analyst.md +258 -0
- package/skills/ce-plan/references/agents/security-sentinel.md +91 -0
- package/skills/ce-plan/references/agents/slack-researcher.md +127 -0
- package/skills/ce-plan/references/agents/spec-flow-analyzer.md +80 -0
- package/skills/ce-plan/references/agents/web-researcher.md +121 -0
- package/skills/ce-plan/references/approach-altitude.md +55 -0
- package/skills/ce-plan/references/change-splitting.md +65 -0
- package/skills/ce-plan/references/completion-contract.md +33 -0
- package/skills/ce-plan/references/core-principles.md +40 -0
- package/skills/ce-plan/references/deepening-workflow.md +263 -0
- package/skills/ce-plan/references/dependency-graph.md +36 -0
- package/skills/ce-plan/references/html-rendering.md +634 -0
- package/skills/ce-plan/references/intake-routing.md +189 -0
- package/skills/ce-plan/references/markdown-rendering.md +238 -0
- package/skills/ce-plan/references/plan-handoff.md +150 -0
- package/skills/ce-plan/references/plan-sections.md +427 -0
- package/skills/ce-plan/references/plan-structure.md +120 -0
- package/skills/ce-plan/references/planning-modes.md +69 -0
- package/skills/ce-plan/references/reasoning-elevation.md +63 -0
- package/skills/ce-plan/references/research-workflow.md +165 -0
- package/skills/ce-plan/references/review-and-write.md +127 -0
- package/skills/ce-plan/references/settled-decisions.md +45 -0
- package/skills/ce-plan/references/synthesis-summary.md +418 -0
- package/skills/ce-plan/references/universal-planning.md +168 -0
- package/skills/ce-proof/SKILL.md +346 -0
- package/skills/ce-strategy/SKILL.md +97 -0
- package/skills/ce-strategy/references/interview.md +143 -0
- package/skills/ce-strategy/references/strategy-template.md +89 -0
- package/skills/code-reviewer/SKILL.md +84 -0
- package/skills/code-reviewer/code-reviewer-prompt.md +195 -0
- package/skills/contract-builder/SKILL.md +72 -0
- package/skills/design-system/SKILL.md +75 -0
- package/skills/design-system/references/agents/design-system-architect.md +138 -0
- package/skills/design-system/references/creation-flow.md +170 -0
- package/skills/design-system/references/preview-template.html +319 -0
- package/skills/design-system/references/token-derivation.md +115 -0
- package/skills/design-system/references/variant-schema.md +60 -0
- package/skills/e2e/SKILL.md +56 -0
- package/skills/e2e/references/test-verifier.md +40 -0
- package/skills/need-explorer/SKILL.md +79 -0
- package/skills/prototype/SKILL.md +98 -0
- package/skills/prototype/references/agents/design-system-architect.md +122 -0
- package/skills/prototype/references/checklist.md +82 -0
- package/skills/prototype/references/craft/accessibility-baseline.md +71 -0
- package/skills/prototype/references/craft/anti-ai-slop.md +87 -0
- package/skills/prototype/references/craft/laws-of-ux.md +60 -0
- package/skills/prototype/references/craft/state-coverage.md +81 -0
- package/skills/prototype/references/craft/typography-hierarchy.md +50 -0
- package/skills/prototype/references/layouts.md +223 -0
- package/skills/prototype/references/orchestration-flow.md +101 -0
- package/skills/prototype/references/prototype-scaffold/assets/design-tokens.css +19 -0
- package/skills/prototype/references/prototype-scaffold/components/button.html +3 -0
- package/skills/prototype/references/prototype-scaffold/design-system.md +7 -0
- package/skills/prototype/references/prototype-scaffold/flow.md +11 -0
- package/skills/prototype/references/prototype-scaffold/index.html +20 -0
- package/skills/prototype/references/prototype-scaffold/pages/index.html +11 -0
- package/skills/prototype/references/template.html +396 -0
- package/skills/release-archivist/SKILL.md +166 -0
- package/skills/release-archivist/references/closing-procedures.md +81 -0
- package/skills/session-handoff/SKILL.md +110 -0
- package/skills/session-handoff/references/context-extraction.md +70 -0
- package/skills/session-handoff/references/handoff-template.md +90 -0
- package/skills/session-handoff/references/skill-recommendation.md +43 -0
- package/skills/spec-merger/SKILL.md +66 -0
- package/skills/spec-writer/SKILL.md +149 -0
- package/skills/workflow-bootstrap/SKILL.md +148 -0
- package/skills/workflow-bootstrap/references/agents/codebase-recon-analyst.md +121 -0
- package/skills/workflow-bootstrap/references/b1-reconnaissance.md +80 -0
- package/skills/workflow-bootstrap/scripts/recon-probe.sh +328 -0
- package/skills/workflow-feedback/SKILL.md +120 -0
- package/skills/workflow-feedback/references/category-guide.md +121 -0
- package/skills/workflow-feedback/references/feedback-template.md +73 -0
- package/skills/workflow-feedback/references/review-mode.md +92 -0
- package/skills/workflow-orchestrator/SKILL.md +94 -0
- package/skills/workflow-orchestrator/references/feedback-loops.md +56 -0
- package/skills/workflow-orchestrator/references/s1-path-router.md +81 -0
- package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +96 -0
- package/skills/workflow-orchestrator/references/s3-plan-pipeline.md +50 -0
- package/skills/workflow-orchestrator/references/s4-split-validate.md +108 -0
- package/skills/workflow-orchestrator/references/s5-monitoring.md +61 -0
- package/skills/workflow-orchestrator/references/state-model.md +185 -0
- package/skills/workflow-start/SKILL.md +147 -0
- package/skills/workflow-start/references/routing-rules.md +155 -0
- package/src/index.ts +16 -0
- package/src/parsing/change-parser.ts +79 -0
- package/src/parsing/requirement-blocks.ts +244 -0
- package/src/schema/base.ts +8 -0
- package/src/schema/change.ts +29 -0
- package/src/schema/index.ts +3 -0
- package/src/schema/spec.ts +12 -0
- package/src/validation/constants.ts +53 -0
- package/src/validation/tokenizer.ts +180 -0
- package/src/validation/types.ts +47 -0
- package/src/validation/validator.ts +552 -0
- package/templates/abandonment-summary.md +29 -0
- package/templates/design.md +37 -0
- package/templates/execution-contract.md +99 -0
- package/templates/plan.md +86 -0
- package/templates/prd.md +468 -0
- package/templates/proposal.md +37 -0
- package/templates/spec.md +31 -0
- package/templates/tasks.md +47 -0
- package/tests/e2e.test.mjs +266 -0
- package/tests/lib/cmd-audit.test.mjs +202 -0
- package/tests/lib/cmd-checkpoint.test.mjs +98 -0
- package/tests/lib/cmd-config.test.mjs +101 -0
- package/tests/lib/cmd-doctor.test.mjs +450 -0
- package/tests/lib/cmd-execution.test.mjs +647 -0
- package/tests/lib/cmd-handoff.test.mjs +137 -0
- package/tests/lib/cmd-inject.test.mjs +218 -0
- package/tests/lib/cmd-install-workbuddy.test.mjs +113 -0
- package/tests/lib/cmd-install-zcode.test.mjs +42 -0
- package/tests/lib/cmd-isolate.test.mjs +68 -0
- package/tests/lib/cmd-list.test.mjs +127 -0
- package/tests/lib/cmd-runtime.test.mjs +83 -0
- package/tests/lib/cmd-state-missing.test.mjs +65 -0
- package/tests/lib/cmd-state.test.mjs +365 -0
- package/tests/lib/cmd-sync-paths.test.mjs +84 -0
- package/tests/lib/cmd-validate-paths.test.mjs +90 -0
- package/tests/lib/config-loader.test.mjs +175 -0
- package/tests/lib/ensure-branch.test.mjs +59 -0
- package/tests/lib/execution-control-plane.test.mjs +168 -0
- package/tests/lib/execution-plan.test.mjs +474 -0
- package/tests/lib/guard-specs-merged.test.mjs +108 -0
- package/tests/lib/guard-tests-passing.test.mjs +112 -0
- package/tests/lib/guard-transitions.test.mjs +262 -0
- package/tests/lib/guard.test.mjs +611 -0
- package/tests/lib/hash.test.mjs +138 -0
- package/tests/lib/infer-workflow.test.mjs +161 -0
- package/tests/lib/install-git-hooks.test.mjs +20 -0
- package/tests/lib/marketplace-release-docs.test.mjs +31 -0
- package/tests/lib/minimality-discipline.test.mjs +37 -0
- package/tests/lib/model-profiles-docs.test.mjs +33 -0
- package/tests/lib/node20-compatibility.test.mjs +73 -0
- package/tests/lib/node20-test-entry.test.mjs +17 -0
- package/tests/lib/platform-runtime-distribution.test.mjs +150 -0
- package/tests/lib/raw-mode-smoke.test.mjs +42 -0
- package/tests/lib/sdd-overlay.test.mjs +118 -0
- package/tests/lib/spec-paths.test.mjs +80 -0
- package/tests/lib/state-loader.test.mjs +251 -0
- package/tests/lib/token-baseline.test.mjs +72 -0
- package/tests/lib/token-rules.test.mjs +94 -0
- package/tests/lib/verify-marketplace-release.test.mjs +128 -0
- package/tests/tsconfig.json +12 -0
- package/token-baseline.json +95 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
<h1 align="center">team-flow</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>A self-contained AI coding workflow plugin fusing OpenSpec planning + Superpowers execution discipline</strong>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="../LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License"></a>
|
|
9
|
+
<a href="https://github.com/MageByte-Zero/team-flow/stargazers"><img src="https://img.shields.io/github/stars/MageByte-Zero/team-flow" alt="GitHub Stars"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/team-flow"><img src="https://img.shields.io/npm/v/team-flow" alt="npm version"></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="#quick-start">Quick Start</a> |
|
|
15
|
+
<a href="#installation">Install</a> |
|
|
16
|
+
<a href="#why">Why</a> |
|
|
17
|
+
<a href="#core-skills">Skills</a> |
|
|
18
|
+
<a href="#workflow">Workflow</a> |
|
|
19
|
+
<a href="../README.md">中文</a> |
|
|
20
|
+
<a href="showcase.html">Showcase</a> |
|
|
21
|
+
<a href="#faq">FAQ</a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
Once installed, just tell your agent:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
use workflow-start to begin
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The agent inspects your current artifacts, performs **content-level detection** (comparing proposal scope vs. contract intent lock, not just file timestamps), determines your workflow stage, and routes to the correct next skill.
|
|
35
|
+
|
|
36
|
+
- New change → `use workflow-start to begin`
|
|
37
|
+
- Resume work → `continue the workflow`
|
|
38
|
+
- Unsure → `check what state we're in`
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
### Claude Code (Marketplace)
|
|
43
|
+
|
|
44
|
+
Claude Code's primary installation path is the plugin marketplace:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
/plugin marketplace add MageByte-Zero/team-flow
|
|
48
|
+
/plugin install team-flow@team-flow
|
|
49
|
+
/plugin update team-flow@team-flow # upgrade
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Cursor (Skills directories / GitHub import)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx team-flow@latest install-cursor
|
|
56
|
+
|
|
57
|
+
# Or run the installer directly:
|
|
58
|
+
curl -fsSL https://raw.githubusercontent.com/MageByte-Zero/team-flow/main/scripts/install-cursor.mjs | node -
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Cursor discovers `.cursor/skills/`, `.agents/skills/`, `~/.cursor/skills/`, and compatible Claude/Codex skill directories. You can also import a GitHub repo from Customize → Rules → Remote Rule (Github).
|
|
62
|
+
|
|
63
|
+
### OpenAI Codex CLI / App
|
|
64
|
+
|
|
65
|
+
Codex uses the Plugin Directory / marketplace model. This repo ships `.codex-plugin/plugin.json` and `.agents/plugins/marketplace.json`.
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
codex
|
|
69
|
+
/plugins
|
|
70
|
+
|
|
71
|
+
# Or add the community marketplace and install:
|
|
72
|
+
codex plugin marketplace add hashgraph-online/awesome-codex-plugins
|
|
73
|
+
codex plugin add team-flow@team-flow
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
In the Codex app, open **Plugins** and install or enable `team-flow`. If installed from the CLI, restart the app and enable it in the Plugins panel.
|
|
77
|
+
|
|
78
|
+
### GitHub Copilot CLI
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
copilot plugin marketplace add MageByte-Zero/team-flow
|
|
82
|
+
copilot plugin install team-flow@team-flow
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Gemini CLI
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
gemini extensions install https://github.com/MageByte-Zero/team-flow
|
|
89
|
+
gemini extensions update team-flow # upgrade
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### OpenCode / WorkBuddy / Trae
|
|
93
|
+
|
|
94
|
+
| Platform | Method | Status |
|
|
95
|
+
|----------|--------|--------|
|
|
96
|
+
| **OpenCode** | `.opencode/plugins/team-flow.js` or `.agents/skills -> skills/` | Entry provided |
|
|
97
|
+
| **WorkBuddy** | `npx team-flow@latest install-workbuddy` | Installer provided |
|
|
98
|
+
| **Trae IDE / TRAE Work** | `.trae/skills/`, `~/.trae/skills/`, or zip/.skill upload | Manual/import |
|
|
99
|
+
|
|
100
|
+
> Full installation guide: [INSTALL.md](../INSTALL.md)
|
|
101
|
+
|
|
102
|
+
### CLI Toolchain
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
npm install -g team-flow
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
| Command | Purpose |
|
|
109
|
+
|---------|---------|
|
|
110
|
+
| `tf list` | List all changes and status |
|
|
111
|
+
| `tf validate <dir>` | Validate artifact completeness |
|
|
112
|
+
| `tf doctor` | Health check (versions, hooks, skills, docs) |
|
|
113
|
+
| `tf version <semver>` | Sync version across all manifests |
|
|
114
|
+
| `tf state <sub> <dir>` | Manage `.team-flow.yaml` state file |
|
|
115
|
+
| `tf inject <dir>` | Generate phase-guard artifacts; omit `--platforms` only when exactly one platform marker is detected |
|
|
116
|
+
| `tf audit <dir>` | Generate decision-point audit report |
|
|
117
|
+
| `tf checkpoint save <dir> --task <id> --next <text>` | Save a task-level recovery checkpoint |
|
|
118
|
+
| `tf checkpoint list <dir>` | List checkpoints and stale status |
|
|
119
|
+
| `tf checkpoint show <dir> <id>` | Show one recovery checkpoint |
|
|
120
|
+
| `tf handoff create <dir> --type <type> ...` | Create a prototype/research/experiment handoff |
|
|
121
|
+
| `tf handoff list <dir>` | List handoff lifecycle status |
|
|
122
|
+
| `tf handoff finish <dir> <id>` | Validate a handoff result |
|
|
123
|
+
| `tf handoff resolve <dir> <id> --decision <decision>` | Record an explicit handoff decision |
|
|
124
|
+
| `tf install-cursor` | Deploy to `.cursor/` directory |
|
|
125
|
+
| `tf install-workbuddy` | Deploy to WorkBuddy marketplace and enable skills |
|
|
126
|
+
|
|
127
|
+
### Version
|
|
128
|
+
|
|
129
|
+
- Current: `v0.22.4`
|
|
130
|
+
- v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
|
|
131
|
+
- Self-contained — no OpenSpec or Superpowers runtime required
|
|
132
|
+
- Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
|
|
133
|
+
- Changelog: [CHANGELOG.md](../CHANGELOG.md)
|
|
134
|
+
|
|
135
|
+
`tf inject` examples:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
tf inject changes/my-change --platforms cursor
|
|
139
|
+
tf inject changes/my-change --platforms all
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
If `--platforms` is omitted, injection only proceeds when exactly one project marker is detected. Ambiguous projects must use `--platforms <platform>` or `--platforms all`.
|
|
143
|
+
|
|
144
|
+
Session recovery and optional prototypes:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
tf checkpoint save changes/my-change --task 1.1 --next "Run focused tests"
|
|
148
|
+
tf checkpoint list changes/my-change
|
|
149
|
+
tf handoff create changes/my-change --type research --objective "Compare approaches" --expected-output "Recommendation" --acceptance "Evidence recorded"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Prototype work starts only after explicit user confirmation. Backend, CLI,
|
|
153
|
+
configuration, and internal-refactor work does not enter the prototype route
|
|
154
|
+
automatically. Handoff results never edit `design.md` or `tasks.md` automatically.
|
|
155
|
+
|
|
156
|
+
Canonical delta specs live at `specs/<capability>/spec.md`; flat `specs/<capability>.md` and root-level `specs/spec.md` are not valid canonical paths.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Why
|
|
161
|
+
|
|
162
|
+
AI coding sessions fail in one of two ways:
|
|
163
|
+
|
|
164
|
+
- **The AI starts coding before you've decided what to build.** You say "add authorization" and it touches 40 files before you realize — RBAC or ABAC?
|
|
165
|
+
|
|
166
|
+
- **The plan is solid, but execution drifts.** The proposal, specs, and design are written, but nobody enforces testing, nobody gates reviews, and by merge time the behavior doesn't match.
|
|
167
|
+
|
|
168
|
+
**team-flow builds a hard wall between these two failure points:** intent exploration → formal artifacts (Schema-validated) → execution contract bridge → TDD + SDD + Review Gate enforcement → verified closure → delta spec sync to prevent spec rot.
|
|
169
|
+
|
|
170
|
+
| Principle | Meaning |
|
|
171
|
+
|---|---|
|
|
172
|
+
| Spec First | No stable planning artifacts → implementation blocked |
|
|
173
|
+
| Guarded Handoff | `execution-contract.md` is the only bridge to implementation |
|
|
174
|
+
| Strong Guardrails | Contract violations intercepted and rolled back |
|
|
175
|
+
| Schema Validated | Planning artifacts validated by embedded engine |
|
|
176
|
+
| Execute Disciplined | TDD Iron Law + SDD subagents + Review Gates |
|
|
177
|
+
| Self-Contained | No external runtime dependencies |
|
|
178
|
+
|
|
179
|
+
### When to Use
|
|
180
|
+
|
|
181
|
+
**✅ Recommended:** Large features, multi-person collaboration, long-term maintenance, brownfield projects needing TDD + review gates.
|
|
182
|
+
|
|
183
|
+
**❌ Skip:** One-off scripts, pure Q&A conversations.
|
|
184
|
+
|
|
185
|
+
> **v0.6.0+ auto mode detection:** hotfix (≤2 files, minimal contract + DP-3 before execution) and tweak (≤4 files, config/docs only, skips planning + bridging) make lightweight changes efficient too.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Core Skills
|
|
190
|
+
|
|
191
|
+
| # | Skill | Stage | Purpose |
|
|
192
|
+
|---|-------|-------|---------|
|
|
193
|
+
| 1 | `workflow-start` | Entry | Content-level state detection, 8-state routing, blocks illegal transitions |
|
|
194
|
+
| 2 | `need-explorer` | Exploring | One question at a time, approach comparison, recommendation |
|
|
195
|
+
| 3 | `spec-writer` | Specifying | Generate proposal/specs/design/tasks with Schema engine validation |
|
|
196
|
+
| 4 | `contract-builder` | Bridging | Parse 4 artifacts → compress into execution-contract.md |
|
|
197
|
+
| 5 | `build-executor` | Executing | TDD Iron Law + SDD subagent-driven + Review Gates |
|
|
198
|
+
| 6 | `bug-investigator` | Debugging | 4-phase root cause analysis; 3+ failures → escalate |
|
|
199
|
+
| 7 | `code-reviewer` | Review | Structured review with 3-level severity classification |
|
|
200
|
+
| 8 | `release-archivist` | Closing | Verification-before-completion + archive + risk summary |
|
|
201
|
+
| 9 | `spec-merger` | Syncing | Delta spec → main spec merge with conflict detection |
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Workflow
|
|
206
|
+
|
|
207
|
+
```text
|
|
208
|
+
You: "add authorization to the API"
|
|
209
|
+
│
|
|
210
|
+
▼
|
|
211
|
+
workflow-start ← Single entry. Content-level detection, routes to correct skill
|
|
212
|
+
│
|
|
213
|
+
▼
|
|
214
|
+
exploring need-explorer: "RBAC or ABAC? What granularity?"
|
|
215
|
+
▼
|
|
216
|
+
specifying spec-writer generates 4 artifacts + Schema validation
|
|
217
|
+
▼
|
|
218
|
+
bridging contract-builder auto-extracts → execution-contract.md
|
|
219
|
+
│
|
|
220
|
+
◇ User Approval ◇ ← The only human gate
|
|
221
|
+
│
|
|
222
|
+
▼
|
|
223
|
+
executing build-executor: TDD → SDD → Review Gate
|
|
224
|
+
│
|
|
225
|
+
├──[bug]──→ debugging → bug-investigator
|
|
226
|
+
▼
|
|
227
|
+
closing release-archivist: verify + archive
|
|
228
|
+
▼
|
|
229
|
+
syncing spec-merger (delta specs → main specs)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Hard constraints:** No `execution-contract.md` or no approval → implementation blocked. Requirements change mid-execution → forced rollback. Bug encountered → must enter debugging state, no ad-hoc fixes.
|
|
233
|
+
|
|
234
|
+
### Guarded execution plans
|
|
235
|
+
|
|
236
|
+
For full/hotfix, DP-4 is a persisted, current execution plan at
|
|
237
|
+
`<change>/.superpowers/sdd/execution-plan.json`, rather than an arbitrary text
|
|
238
|
+
field or content stored in `execution-contract.md`. Run `tf execution recommend`
|
|
239
|
+
first: it lists `inline`, `batch-inline`, and `sdd` from task count and wave
|
|
240
|
+
strategy, with auditable reasons, and saves a recommendation receipt at
|
|
241
|
+
`<change>/.superpowers/sdd/execution-recommendation.json`. The agent presents that recommendation and the
|
|
242
|
+
user records a choice with `--confirm`; `plan` and `revise` require a receipt matching the current
|
|
243
|
+
artifacts, contract, and waves. A non-recommended choice also requires
|
|
244
|
+
`--acknowledge-recommendation`. Batch Inline remains serial and never claims
|
|
245
|
+
parallel work.
|
|
246
|
+
`tweak` is exempt from this execution-plan and review-receipt gate.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
tf execution recommend changes/my-change \
|
|
250
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
251
|
+
--wave integration:serial:2.1:foundation --json
|
|
252
|
+
tf execution plan changes/my-change --mode sdd --confirm --reason "independent work" \
|
|
253
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
254
|
+
--wave integration:serial:2.1:foundation
|
|
255
|
+
tf execution show changes/my-change --json
|
|
256
|
+
# Retains/upgrades an existing plan as sdd; it can replan waves and dependencies,
|
|
257
|
+
# creates a new revision, and clears old review receipts. Downgrades are rejected.
|
|
258
|
+
tf execution recommend changes/my-change \
|
|
259
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
260
|
+
--wave integration:serial:2.1:foundation --json
|
|
261
|
+
tf execution revise changes/my-change --mode sdd --confirm --reason "need parallel work" \
|
|
262
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
263
|
+
--wave integration:serial:2.1:foundation
|
|
264
|
+
tf execution review changes/my-change --wave foundation --base <sha> --head <sha> \
|
|
265
|
+
--report .superpowers/sdd/reviews/foundation.md --verdict pass
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
The `--report` path is resolved relative to `<change>` and must remain under
|
|
269
|
+
`<change>/.superpowers/sdd/reviews/`. `--base` and `--head` must be real commits
|
|
270
|
+
in the `<change>` Git worktree, and `base` must be an ancestor of `head`.
|
|
271
|
+
The `<change>/.superpowers/sdd/reviews/` directory hierarchy must be physical,
|
|
272
|
+
non-symlink directories. The report itself must be a regular, non-empty,
|
|
273
|
+
non-symlink file.
|
|
274
|
+
|
|
275
|
+
Every planned wave needs a current `pass` review receipt before dependent
|
|
276
|
+
waves or closing may proceed; revising a plan invalidates earlier receipts.
|
|
277
|
+
The recovery, switching, and manual-save slash commands proposed in #47 are
|
|
278
|
+
not implemented, so this documentation does not claim `/tf:*` commands.
|
|
279
|
+
|
|
280
|
+
### Fast Paths (hotfix / tweak)
|
|
281
|
+
|
|
282
|
+
- **hotfix** — ≤2 files, no new modules → `exploring -> bridging -> approved-for-build -> executing`. It may skip full planning artifacts such as `proposal.md`, `design.md`, `tasks.md`, and `specs/`, but it still requires a fresh minimal `execution-contract.md` plus DP-3 approval before implementation
|
|
283
|
+
- **tweak** — ≤4 files, config/docs only → skip planning + bridging, direct edit
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## Model Profiles (Optional Configuration)
|
|
288
|
+
|
|
289
|
+
Configure platform model IDs for execution roles in the project-root `team-flow.config.json`:
|
|
290
|
+
|
|
291
|
+
```json
|
|
292
|
+
{
|
|
293
|
+
"models": {
|
|
294
|
+
"mechanical": "vendor-small",
|
|
295
|
+
"standard": "vendor-standard",
|
|
296
|
+
"strong": "vendor-strong",
|
|
297
|
+
"review": "vendor-review"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
| Profile | Role |
|
|
303
|
+
|---|---|
|
|
304
|
+
| `mechanical` | Low-cost, routine edits |
|
|
305
|
+
| `standard` | Integration and judgment work |
|
|
306
|
+
| `strong` | Architecture, design, and final review |
|
|
307
|
+
| `review` | Code review that matches the diff |
|
|
308
|
+
|
|
309
|
+
Resolve a profile in read-only mode:
|
|
310
|
+
|
|
311
|
+
```bash
|
|
312
|
+
tf config --resolve-model mechanical
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
This command only resolves local configuration, does not call platform APIs, and does not switch models in the current session. The controller explicitly passes the returned model ID only to platforms whose dispatch supports a `model` field. A `configured: false` result means automatic selection is unavailable: never invent a provider model and continue to meet the existing explicit `model` requirement.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## FAQ
|
|
320
|
+
|
|
321
|
+
<details>
|
|
322
|
+
<summary><strong>How is this different from OpenSpec or Superpowers?</strong></summary>
|
|
323
|
+
|
|
324
|
+
team-flow is a source-level fusion, not side-by-side installation. It absorbs OpenSpec's Schema/validation/parsing engine and Superpowers' TDD/SDD/debugging/review discipline, while adding a unique contract-builder bridge layer and 8-state routing. Self-contained — no upstream runtimes needed.
|
|
325
|
+
|
|
326
|
+
</details>
|
|
327
|
+
|
|
328
|
+
<details>
|
|
329
|
+
<summary><strong>Can I use this alongside existing OpenSpec or Superpowers?</strong></summary>
|
|
330
|
+
|
|
331
|
+
Not recommended in the same session. Projects with existing OpenSpec artifacts can be adopted directly — `contract-builder` reads your existing proposal/specs/design/tasks to generate the execution contract.
|
|
332
|
+
|
|
333
|
+
</details>
|
|
334
|
+
|
|
335
|
+
<details>
|
|
336
|
+
<summary><strong>How does the execution contract detect staleness?</strong></summary>
|
|
337
|
+
|
|
338
|
+
Content-level detection, not timestamps: proposal scope changed, approved spec behavior changed, design constraints changed, or task batches changed → contract marked stale → route back to `contract-builder`.
|
|
339
|
+
|
|
340
|
+
</details>
|
|
341
|
+
|
|
342
|
+
<details>
|
|
343
|
+
<summary><strong>How does SDD (Subagent-Driven Development) work?</strong></summary>
|
|
344
|
+
|
|
345
|
+
For full/hotfix, `tf execution recommend` first presents Inline, Batch Inline,
|
|
346
|
+
and SDD with evidence from the change, then recommends one. The user confirms a
|
|
347
|
+
selection with `--confirm`; a different selection requires
|
|
348
|
+
`--acknowledge-recommendation`. The saved execution plan at
|
|
349
|
+
`<change>/.superpowers/sdd/execution-plan.json` names waves, dependencies, and
|
|
350
|
+
strategies before dispatching implementers. Each wave gets a review report and a
|
|
351
|
+
`pass`/`fail` receipt. Batch Inline remains serial, and the progress ledger
|
|
352
|
+
prevents session-compression loss.
|
|
353
|
+
|
|
354
|
+
</details>
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
**Star the repo — find it when you need it.**
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Artifact Contract
|
|
2
|
+
|
|
3
|
+
`team-flow` uses five primary artifacts in each change:
|
|
4
|
+
|
|
5
|
+
1. `proposal.md`
|
|
6
|
+
2. `specs/`
|
|
7
|
+
3. `design.md`
|
|
8
|
+
4. `tasks.md`
|
|
9
|
+
5. `execution-contract.md`
|
|
10
|
+
|
|
11
|
+
The first four are planning artifacts. The fifth is the execution handshake.
|
|
12
|
+
|
|
13
|
+
## Artifact Roles
|
|
14
|
+
|
|
15
|
+
### `proposal.md`
|
|
16
|
+
|
|
17
|
+
Defines:
|
|
18
|
+
|
|
19
|
+
- why the change exists
|
|
20
|
+
- what is in scope
|
|
21
|
+
- what is explicitly out of scope
|
|
22
|
+
- which capabilities are affected
|
|
23
|
+
|
|
24
|
+
### `specs/`
|
|
25
|
+
|
|
26
|
+
Defines:
|
|
27
|
+
|
|
28
|
+
- required behavior
|
|
29
|
+
- scenarios and acceptance conditions
|
|
30
|
+
- behavioral edges the implementation must respect
|
|
31
|
+
|
|
32
|
+
### `design.md`
|
|
33
|
+
|
|
34
|
+
Defines:
|
|
35
|
+
|
|
36
|
+
- architecture and component boundaries
|
|
37
|
+
- interface and dependency decisions
|
|
38
|
+
- trade-offs and risk areas
|
|
39
|
+
|
|
40
|
+
### `tasks.md`
|
|
41
|
+
|
|
42
|
+
Defines:
|
|
43
|
+
|
|
44
|
+
- implementation ordering
|
|
45
|
+
- dependency-aware work breakdown
|
|
46
|
+
- completion units that become named execution waves in the execution plan
|
|
47
|
+
|
|
48
|
+
### `execution-contract.md`
|
|
49
|
+
|
|
50
|
+
Defines:
|
|
51
|
+
|
|
52
|
+
- the approved intent lock
|
|
53
|
+
- the approved behavior summary
|
|
54
|
+
- implementation constraints
|
|
55
|
+
- the instructions for the execution plan and named execution waves
|
|
56
|
+
- test obligations
|
|
57
|
+
- review gates and their review receipts
|
|
58
|
+
- escalation rules
|
|
59
|
+
|
|
60
|
+
For full/hotfix, `tf execution recommend` lists applicable execution modes and
|
|
61
|
+
recommends one from task count and wave strategy, and persists a recommendation
|
|
62
|
+
receipt at `<change>/.superpowers/sdd/execution-recommendation.json`. `plan`
|
|
63
|
+
and `revise` require the receipt to match the current artifacts, contract, and
|
|
64
|
+
waves. The user confirms the selected mode with `--confirm`; a non-recommended mode additionally requires
|
|
65
|
+
`--acknowledge-recommendation`. Batch Inline remains serial. After approval,
|
|
66
|
+
`tf execution plan` writes
|
|
67
|
+
the persisted execution plan to `<change>/.superpowers/sdd/execution-plan.json`.
|
|
68
|
+
That JSON records each wave's dependencies and parallel/serial strategy; it is
|
|
69
|
+
not stored in `execution-contract.md`. A current `pass` review receipt is
|
|
70
|
+
required for every wave before dependent work or closing proceeds. `tweak` is
|
|
71
|
+
exempt from execution-plan and review-receipt gates. `tf execution revise`
|
|
72
|
+
retains or upgrades an existing plan as `sdd`, requires fresh confirmation,
|
|
73
|
+
creates a new revision, and
|
|
74
|
+
clears prior review receipts; it never permits a downgrade. #47 slash commands for recovery,
|
|
75
|
+
switching, and manual save are not implemented, so `/tf:*` commands must not
|
|
76
|
+
be claimed.
|
|
77
|
+
|
|
78
|
+
## Mapping
|
|
79
|
+
|
|
80
|
+
`team-flow` converts planning artifacts into execution inputs:
|
|
81
|
+
|
|
82
|
+
- `proposal.md` -> intent lock and scope fence
|
|
83
|
+
- `specs/` -> test obligations and acceptance checks
|
|
84
|
+
- `design.md` -> implementation constraints
|
|
85
|
+
- `tasks.md` -> execution-plan waves in `<change>/.superpowers/sdd/execution-plan.json`
|
|
86
|
+
|
|
87
|
+
## Guardrail
|
|
88
|
+
|
|
89
|
+
Implementation starts only after:
|
|
90
|
+
|
|
91
|
+
- planning artifacts exist
|
|
92
|
+
- `execution-contract.md` exists
|
|
93
|
+
- the user approves the execution contract
|
|
94
|
+
- full/hotfix have a current `tf execution plan` with a user-confirmed mode and
|
|
95
|
+
persisted recommendation evidence
|
|
96
|
+
- every completed wave records a current `pass` review receipt before closing
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Decision Points Protocol
|
|
2
|
+
|
|
3
|
+
本文档集中定义了 team-flow 工作流中所有需要用户明确确认的决策点。每个决策点(Decision Point)都是工作流中的关键门禁,确保用户在自动化流程中始终保持最终决策权。工作流中的 skill 在到达决策点时必须暂停执行、向用户呈现所需信息,并等待明确指令后方可继续。
|
|
4
|
+
|
|
5
|
+
## DP-0: 设计前确认(User Confirmation Gate)
|
|
6
|
+
|
|
7
|
+
- **编号**:DP-0
|
|
8
|
+
- **名称**:设计前确认
|
|
9
|
+
- **触发条件**:`workflow-start` 检测到规划工件不存在或不完整,准备路由到 `spec-writer` 之前
|
|
10
|
+
- **所需输入**:变更名称与意图、已知约束(命名风格、兼容性、受影响平台)、是否包含相关优化、用户沟通偏好
|
|
11
|
+
- **预期输出**:用户确认关键决策,或提出修改意见;`workflow-start` 将确认结果写入 `.team-flow.yaml` 的 `dp_0_*` 字段
|
|
12
|
+
- **关联 skill**:`team-flow:workflow-start`
|
|
13
|
+
|
|
14
|
+
## DP-1: 需求确认
|
|
15
|
+
|
|
16
|
+
- **编号**:DP-1
|
|
17
|
+
- **名称**:需求确认
|
|
18
|
+
- **触发条件**:need-explorer 完成需求澄清与范围界定之前,用户需要确认最终的 scope 和 capabilities
|
|
19
|
+
- **所需输入**:need-explorer 整理的需求摘要、变更范围(scope)、能力清单(capabilities)、约束条件与成功标准
|
|
20
|
+
- **预期输出**:用户明确确认需求范围和关键能力,或提出修改意见供 need-explorer 迭代
|
|
21
|
+
- **关联 skill**:`team-flow:need-explorer`
|
|
22
|
+
|
|
23
|
+
## DP-2: 工件审查
|
|
24
|
+
|
|
25
|
+
- **编号**:DP-2
|
|
26
|
+
- **名称**:工件审查
|
|
27
|
+
- **触发条件**:spec-writer 完成全部规划工件的创建或更新后,用户需要审查产出的完整性和质量
|
|
28
|
+
- **所需输入**:spec-writer 产出的 `proposal.md`、`specs/` 目录下的规格文档、`design.md` 设计文档、`tasks.md` 任务清单
|
|
29
|
+
- **预期输出**:用户审查通过并批准全部工件,或指出需要修改的具体内容和方向
|
|
30
|
+
- **关联 skill**:`team-flow:spec-writer`
|
|
31
|
+
|
|
32
|
+
## DP-3: 契约批准
|
|
33
|
+
|
|
34
|
+
- **编号**:DP-3
|
|
35
|
+
- **名称**:契约批准
|
|
36
|
+
- **触发条件**:contract-builder 完成 `execution-contract.md` 的生成后,用户必须明确批准该契约方可进入执行阶段(硬门禁,不可跳过)
|
|
37
|
+
- **所需输入**:`execution-contract.md` 全文,包含执行批次、任务依赖、验收标准、回滚策略
|
|
38
|
+
- **预期输出**:用户明确批准(approve)执行契约,或提出修改要求;未获批准前 build-executor 不得启动
|
|
39
|
+
- **关联 skill**:`team-flow:contract-builder`
|
|
40
|
+
|
|
41
|
+
## DP-4: 执行模式选择
|
|
42
|
+
|
|
43
|
+
- **编号**:DP-4
|
|
44
|
+
- **名称**:执行模式选择
|
|
45
|
+
- **触发条件**:build-executor 启动执行前,用户需要选择本次执行的开发模式
|
|
46
|
+
- **所需输入**:已批准的 `execution-contract.md`、项目测试基础设施现状、用户对 TDD(测试驱动开发)和 SDD(规格驱动开发)两种模式的说明
|
|
47
|
+
- **预期输出**:用户明确选择 TDD 模式或 SDD 模式,build-executor 据此调整执行策略
|
|
48
|
+
- **关联 skill**:`team-flow:build-executor`
|
|
49
|
+
|
|
50
|
+
## DP-5: 调试升级
|
|
51
|
+
|
|
52
|
+
- **编号**:DP-5
|
|
53
|
+
- **名称**:调试升级
|
|
54
|
+
- **触发条件**:bug-investigator 连续 3 次或更多修复尝试失败后,无法自动解决当前问题
|
|
55
|
+
- **所需输入**:失败日志、每次修复尝试的具体方案与结果、错误根因分析、剩余可行方案(如有)
|
|
56
|
+
- **预期输出**:用户决定继续调试(可附带方向指引)或放弃当前任务并标记为阻塞
|
|
57
|
+
- **关联 skill**:`team-flow:bug-investigator`
|
|
58
|
+
|
|
59
|
+
## DP-6: 验证失败
|
|
60
|
+
|
|
61
|
+
- **编号**:DP-6
|
|
62
|
+
- **名称**:验证失败
|
|
63
|
+
- **触发条件**:release-archivist 在执行收尾验证时发现验证项未通过
|
|
64
|
+
- **所需输入**:验证报告(包含通过项与失败项)、失败项的具体差异说明、原始规格要求与实际实现的对比
|
|
65
|
+
- **预期输出**:用户决定返回修复失败项(重新进入执行阶段)或放弃验证直接关闭变更
|
|
66
|
+
- **关联 skill**:`team-flow:release-archivist`
|
|
67
|
+
|
|
68
|
+
## DP-7: 归档确认
|
|
69
|
+
|
|
70
|
+
- **编号**:DP-7
|
|
71
|
+
- **名称**:归档确认
|
|
72
|
+
- **触发条件**:release-archivist 完成归档准备和 delta spec 合并方案后,用户确认最终归档操作
|
|
73
|
+
- **所需输入**:变更总结报告、delta spec 合并方案(哪些增量规格将合并到主规格基线)、归档文件清单
|
|
74
|
+
- **预期输出**:用户确认归档并批准 delta spec 合并,或要求调整合并范围后再执行
|
|
75
|
+
- **关联 skill**:`team-flow:release-archivist`
|
|
76
|
+
|
|
77
|
+
## 决策点与 Skill 映射总览
|
|
78
|
+
|
|
79
|
+
| 编号 | 名称 | 关联 Skill | 阶段 |
|
|
80
|
+
|------|------|------------|------|
|
|
81
|
+
| DP-0 | 设计前确认 | `team-flow:workflow-start` | 入口 |
|
|
82
|
+
| DP-1 | 需求确认 | `team-flow:need-explorer` | 探索 |
|
|
83
|
+
| DP-2 | 工件审查 | `team-flow:spec-writer` | 规划 |
|
|
84
|
+
| DP-3 | 契约批准 | `team-flow:contract-builder` | 桥接 |
|
|
85
|
+
| DP-4 | 执行模式选择 | `team-flow:build-executor` | 执行 |
|
|
86
|
+
| DP-5 | 调试升级 | `team-flow:bug-investigator` | 执行 |
|
|
87
|
+
| DP-6 | 验证失败 | `team-flow:release-archivist` | 收尾 |
|
|
88
|
+
| DP-7 | 归档确认 | `team-flow:release-archivist` | 收尾 |
|