@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
package/INSTALL.md
ADDED
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
# Install
|
|
2
|
+
|
|
3
|
+
`team-flow` 是一个自包含插件,**不需要**在运行时安装 OpenSpec 或 Superpowers。
|
|
4
|
+
|
|
5
|
+
源码血缘:
|
|
6
|
+
|
|
7
|
+
- [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec) — 规划引擎(Schema 验证、Delta Spec、工件解析)
|
|
8
|
+
- [obra/superpowers](https://github.com/obra/superpowers) — 执行纪律(TDD 铁律、SDD、系统化调试、代码审查)
|
|
9
|
+
|
|
10
|
+
当前发布版本:**v0.22.4**。
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 平台总览
|
|
15
|
+
|
|
16
|
+
| 平台 | 安装 | 升级 | 卸载 |
|
|
17
|
+
|------|------|------|------|
|
|
18
|
+
| Claude Code | marketplace | `/plugin update` | `/plugin uninstall` |
|
|
19
|
+
| Cursor | skills 目录 / GitHub 导入 / 一键脚本 | 重新运行脚本 | 删除 `.cursor/skills/` |
|
|
20
|
+
| OpenAI Codex CLI | Plugin Directory / marketplace | marketplace refresh + re-add | `codex plugin remove` |
|
|
21
|
+
| OpenAI Codex App | Plugins 面板 / marketplace | CLI 更新后 App 面板启用 | App 面板禁用 |
|
|
22
|
+
| GitHub Copilot CLI | marketplace | `copilot plugin update` | `copilot plugin uninstall` |
|
|
23
|
+
| Gemini CLI | `gemini extensions install` | `gemini extensions update` | `gemini extensions uninstall` |
|
|
24
|
+
| OpenCode | plugin entry / skills 目录 | `git pull` | 删除 plugin/skills |
|
|
25
|
+
| WorkBuddy | `tf install-workbuddy` | 重新运行安装器 | 删除 marketplace 插件并禁用 |
|
|
26
|
+
| Trae IDE / TRAE Work | `.trae/skills` / 上传 zip 或 .skill / marketplace | `git pull` + 重新导入 | UI 卸载或删除技能目录 |
|
|
27
|
+
| Cline | `tf install-cline` | 重新运行脚本 | 删除 `.cline/skills/`、`.clinerules/` |
|
|
28
|
+
| Kiro | `tf install-kiro` | 重新运行脚本 | 删除 `.kiro/skills/`、`.kiro/steering/` |
|
|
29
|
+
| Windsurf | `tf install-windsurf` | 重新运行脚本 | 删除 `.windsurf/skills/`、`.windsurf/rules/` |
|
|
30
|
+
| Qwen Code | `tf install-qwen` | 重新运行脚本 | 删除 `.qwen/skills/`、`.qwen/rules/` |
|
|
31
|
+
| Amazon Q Developer | `tf install-amazon-q` | 重新运行脚本 | 删除 `.amazonq/skills/`、`.amazonq/rules/` |
|
|
32
|
+
| Roo Code | `tf install-roocode` | 重新运行脚本 | 删除 `.roo/skills/`、`.roo/rules/` |
|
|
33
|
+
| Continue | `tf install-continue` | 重新运行脚本 | 删除 `.continue/skills/`、`.continue/rules/` |
|
|
34
|
+
| Pi | `tf install-pi` | 重新运行脚本 | 删除 `.pi/skills/` |
|
|
35
|
+
| ZCODE | `tf install-zcode` | 重新运行脚本 | 删除 `.zcode/skills/`、`.zcode/rules/` |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Claude Code
|
|
40
|
+
|
|
41
|
+
### 安装(推荐:Marketplace)
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
/plugin marketplace add MageByte-Zero/team-flow
|
|
45
|
+
/plugin install team-flow@team-flow
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
两行命令搞定。零拷贝、零配置。安装后自动加载 `hooks/hooks.json`,每次新会话自动注入上下文。
|
|
49
|
+
|
|
50
|
+
### 升级
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
/plugin update team-flow@team-flow
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
另外,每次启动 workflow 时,`workflow-start` 也会检查版本并提示是否需要升级。
|
|
57
|
+
|
|
58
|
+
### 卸载
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
/plugin uninstall team-flow@team-flow
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 本地安装(开发 / 离线)
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
68
|
+
|
|
69
|
+
# 在 Claude Code 中执行:
|
|
70
|
+
/plugin install file:/absolute/path/to/team-flow
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Cursor
|
|
76
|
+
|
|
77
|
+
Cursor 原生发现 `.cursor/skills/`、`.agents/skills/`、`~/.cursor/skills/`,并兼容 `.claude/skills/`、`.codex/skills/` 等目录。安装脚本会把 `skills/` 复制到 `.cursor/skills/`,并生成 `.cursor/rules/phase-guard.mdc`(`alwaysApply: true`)。
|
|
78
|
+
|
|
79
|
+
### 安装(推荐:一键脚本)
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
curl -fsSL https://raw.githubusercontent.com/MageByte-Zero/team-flow/main/scripts/install-cursor.mjs | node -
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
脚本会自动从 GitHub latest release 拉取最新版。
|
|
86
|
+
|
|
87
|
+
### 升级
|
|
88
|
+
|
|
89
|
+
重新运行安装命令即可(自动覆盖旧文件):
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
curl -fsSL https://raw.githubusercontent.com/MageByte-Zero/team-flow/main/scripts/install-cursor.mjs | node -
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 卸载
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
rm -rf .cursor/skills/
|
|
99
|
+
rm -f .cursor/rules/phase-guard.mdc
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> `.cursor/` 是本地生成目录,已在 `.gitignore` 中,不需要提交到仓库。
|
|
103
|
+
|
|
104
|
+
### 从本地仓库部署(开发 / 测试)
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
108
|
+
cd your-project
|
|
109
|
+
node /absolute/path/to/team-flow/scripts/install-cursor.mjs --local /absolute/path/to/team-flow
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 手动部署
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
116
|
+
mkdir -p .cursor/skills
|
|
117
|
+
cp -R /absolute/path/to/team-flow/skills/* .cursor/skills/
|
|
118
|
+
mkdir -p .cursor/rules
|
|
119
|
+
# 手动创建 phase-guard.mdc,内容参考 scripts/install-cursor.mjs
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Session-Start Hook(Cursor)
|
|
123
|
+
|
|
124
|
+
安装脚本会自动把 `hooks/hooks-cursor.json` 写入 `.cursor/hooks.json`。如果手动部署,需要自行复制:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
cp /path/to/team-flow/hooks/hooks-cursor.json .cursor/hooks.json
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### GitHub 导入
|
|
131
|
+
|
|
132
|
+
也可以在 Cursor 的 **Customize → Rules → Add Rule → Remote Rule (Github)** 中输入仓库 URL 导入。对于需要 `scripts/`、`docs/`、`templates/` 的完整工作流,仍推荐一键脚本。
|
|
133
|
+
|
|
134
|
+
### 验证
|
|
135
|
+
|
|
136
|
+
在 Cursor Agent 中输入:
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
/workflow-start
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
如果能被调用,说明安装成功。
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## OpenAI Codex CLI
|
|
147
|
+
|
|
148
|
+
Codex CLI 的主流方式是打开 `/plugins` 插件目录安装;自动化或社区分发场景使用 `codex plugin marketplace add`。
|
|
149
|
+
|
|
150
|
+
### 安装(推荐:插件目录)
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
codex
|
|
154
|
+
/plugins
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
在插件目录中切换到相应 marketplace,选择 `team-flow` 并安装。
|
|
158
|
+
|
|
159
|
+
### 安装(命令行 marketplace)
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
codex plugin marketplace add hashgraph-online/awesome-codex-plugins
|
|
163
|
+
codex plugin add team-flow@awesome-codex-plugins
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### 直接安装指定 release tag
|
|
167
|
+
|
|
168
|
+
当社区 marketplace 镜像尚未同步时,可直接指定本仓库的 release tag:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
codex plugin marketplace add MageByte-Zero/team-flow --ref v0.9.0
|
|
172
|
+
codex plugin add team-flow@team-flow
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
这条路径绕过社区镜像延迟。
|
|
176
|
+
|
|
177
|
+
### 升级
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
codex plugin marketplace upgrade awesome-codex-plugins
|
|
181
|
+
codex plugin add team-flow@awesome-codex-plugins
|
|
182
|
+
codex plugin list | rg team-flow
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 卸载
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
codex plugin remove team-flow@awesome-codex-plugins
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### 验证
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
codex plugin list | rg team-flow
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## OpenAI Codex App
|
|
200
|
+
|
|
201
|
+
Codex App 的主流方式是 **Plugins** 面板。仓库已提供 `.codex-plugin/plugin.json` 和 `.agents/plugins/marketplace.json`,可被 Codex marketplace/目录读取。
|
|
202
|
+
|
|
203
|
+
### 安装(推荐:App 面板)
|
|
204
|
+
|
|
205
|
+
打开 **Plugins**,搜索或切换到对应 marketplace,选择 `team-flow`,点击 **Add to Codex** / install。
|
|
206
|
+
|
|
207
|
+
### 安装(CLI 预装)
|
|
208
|
+
|
|
209
|
+
先通过 CLI 添加 marketplace 和插件:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
codex plugin marketplace add hashgraph-online/awesome-codex-plugins
|
|
213
|
+
codex plugin add team-flow@awesome-codex-plugins
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
然后**重启 Codex App**,在 **Plugins** 面板中启用 `team-flow`。
|
|
217
|
+
|
|
218
|
+
### 升级
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
codex plugin marketplace upgrade awesome-codex-plugins
|
|
222
|
+
codex plugin add team-flow@awesome-codex-plugins
|
|
223
|
+
codex plugin list | rg team-flow
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
更新后重启 Codex App 并新开会话;旧会话不会热加载 skills。
|
|
227
|
+
|
|
228
|
+
### 卸载
|
|
229
|
+
|
|
230
|
+
在 Codex App 的 **Plugins** 面板中禁用即可。也可以 CLI 移除:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
codex plugin remove team-flow
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## GitHub Copilot CLI
|
|
239
|
+
|
|
240
|
+
Copilot CLI 的主流方式是 marketplace。仓库已提供根目录 `plugin.json` 和 `.github/plugin/marketplace.json`;Copilot CLI 也兼容 `.claude-plugin/marketplace.json`。
|
|
241
|
+
|
|
242
|
+
### 安装
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
copilot plugin marketplace add MageByte-Zero/team-flow
|
|
246
|
+
copilot plugin install team-flow@team-flow
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 升级
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
copilot plugin update team-flow
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### 卸载
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
copilot plugin uninstall team-flow
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
> 如果安装失败,请检查根目录 `plugin.json` 的 `author` 字段是否为对象格式(`{ "name": "..." }`),而非字符串。
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Gemini CLI
|
|
266
|
+
|
|
267
|
+
### 安装
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
gemini extensions install https://github.com/MageByte-Zero/team-flow
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### 升级
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
gemini extensions update team-flow
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### 卸载
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
gemini extensions uninstall team-flow
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## OpenCode
|
|
288
|
+
|
|
289
|
+
OpenCode 支持本地 plugin 文件和 Agent Skills 目录。仓库已提供 `.opencode/plugins/team-flow.js` 插件入口,以及 `.agents/skills -> ../skills` 兼容入口。
|
|
290
|
+
|
|
291
|
+
### 安装(推荐:Plugin Mode)
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
在 OpenCode 的插件配置或 UI 中指向仓库内的插件文件:
|
|
298
|
+
|
|
299
|
+
```text
|
|
300
|
+
/absolute/path/to/team-flow/.opencode/plugins/team-flow.js
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
不要只复制这个 `.js` 文件到另一个项目;它会按相对路径读取仓库里的 `skills/` 和 `GEMINI.md`。如果希望项目内零配置,使用下面的 skills symlink 方式。
|
|
304
|
+
|
|
305
|
+
### 安装(Skills Symlink)
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
309
|
+
mkdir -p your-project/.agents
|
|
310
|
+
ln -s /absolute/path/to/team-flow/skills your-project/.agents/skills
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
如果 symlink 不方便,直接复制:
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
mkdir -p your-project/.agents
|
|
317
|
+
cp -R /absolute/path/to/team-flow/skills your-project/.agents/skills
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### 升级
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
cd /path/to/team-flow && git pull
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
如果用的是复制而非 symlink,升级后需要重新复制。
|
|
327
|
+
|
|
328
|
+
### 卸载
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
rm -rf your-project/.agents/skills
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
详细说明见 [.opencode/INSTALL.md](.opencode/INSTALL.md)。
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## WorkBuddy
|
|
339
|
+
|
|
340
|
+
WorkBuddy 把 Skill 作为 marketplace 插件管理。安装器把 team-flow 部署为单个插件,包含 9 个 skill、运行时依赖(scripts/docs/templates/dist/hooks)、phase-guard 规则和 `.codebuddy-plugin/plugin.json` 清单,写入 `~/.workbuddy/plugins/marketplaces/<marketplace>/plugins/team-flow/`。
|
|
341
|
+
|
|
342
|
+
### 安装(推荐:一键脚本)
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
npx team-flow@latest install-workbuddy
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
本地仓库调试:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
node /absolute/path/to/team-flow/scripts/team-flow.mjs install-workbuddy --local /absolute/path/to/team-flow
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
`--dry-run` 预览部署计划:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
tf install-workbuddy --dry-run
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
### 部署结构
|
|
361
|
+
|
|
362
|
+
```text
|
|
363
|
+
~/.workbuddy/plugins/marketplaces/cb_teams_marketplace/plugins/team-flow/
|
|
364
|
+
├── .codebuddy-plugin/plugin.json ← 插件清单(name, version, skills[])
|
|
365
|
+
├── skills/ ← 9 个 skill(${CLAUDE_PLUGIN_ROOT} 已重写)
|
|
366
|
+
├── rules/phase-guard.md ← phase-guard 规则(WorkBuddy 自动加载)
|
|
367
|
+
├── scripts/ docs/ templates/ ← 运行时依赖
|
|
368
|
+
├── dist/ hooks/
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
`~/.workbuddy/settings.json` 中启用键为 `team-flow@cb_teams_marketplace`(单个键,非每 skill 一个)。
|
|
372
|
+
|
|
373
|
+
### 升级
|
|
374
|
+
|
|
375
|
+
重新运行安装命令即可覆盖旧插件并保留已有 `enabledPlugins` 配置。
|
|
376
|
+
|
|
377
|
+
### 卸载
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
rm -rf ~/.workbuddy/plugins/marketplaces/cb_teams_marketplace/plugins/team-flow
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
然后从 `~/.workbuddy/settings.json` 的 `enabledPlugins` 中移除 `team-flow@cb_teams_marketplace`。
|
|
384
|
+
|
|
385
|
+
### 验证
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
ls ~/.workbuddy/plugins/marketplaces/cb_teams_marketplace/plugins/team-flow/skills # 应有 9 个 skill 目录
|
|
389
|
+
cat ~/.workbuddy/plugins/marketplaces/cb_teams_marketplace/plugins/team-flow/rules/phase-guard.md
|
|
390
|
+
cat ~/.workbuddy/plugins/marketplaces/cb_teams_marketplace/plugins/team-flow/.codebuddy-plugin/plugin.json
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
重启 WorkBuddy 后,在对话中输入「用 workflow-start 开始」即可启动工作流。
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## Trae
|
|
398
|
+
|
|
399
|
+
Trae IDE / TRAE Work 原生支持 `SKILL.md`。项目技能目录是 `.trae/skills/`,全局技能目录是 `~/.trae/skills/`;TRAE Work 也支持上传包含根级 `SKILL.md` 的 zip 或 `.skill` 文件,并可从内置 skill marketplace 安装。
|
|
400
|
+
|
|
401
|
+
### 安装(本地目录)
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
405
|
+
mkdir -p .trae/skills
|
|
406
|
+
cp -R team-flow/skills/* .trae/skills/
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
全局安装:
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
mkdir -p ~/.trae/skills
|
|
413
|
+
cp -R team-flow/skills/* ~/.trae/skills/
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### 升级
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
cd /path/to/team-flow && git pull
|
|
420
|
+
cp -R skills/* ~/.trae/skills/
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### 卸载
|
|
424
|
+
|
|
425
|
+
```bash
|
|
426
|
+
rm -rf .trae/skills/
|
|
427
|
+
rm -rf ~/.trae/skills/
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## Qoder
|
|
433
|
+
|
|
434
|
+
Qoder 读取 `.qoder/rules/*.md` 作为常驻上下文。安装脚本部署 skills 到 `.qoder/skills/`、运行时依赖到 `.qoder/team-flow/`、phase-guard 规则到 `.qoder/rules/phase-guard.md`(Qoder 自动加载,无需手动引用)。
|
|
435
|
+
|
|
436
|
+
### 安装
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
npx team-flow@latest install-qoder
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
或从本地仓库(开发 / 离线):
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
node scripts/install-qoder.mjs --local /path/to/team-flow
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
### 升级
|
|
449
|
+
|
|
450
|
+
```bash
|
|
451
|
+
npx team-flow@latest install-qoder
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### 卸载
|
|
455
|
+
|
|
456
|
+
```bash
|
|
457
|
+
rm -rf .qoder/skills .qoder/team-flow .qoder/rules/phase-guard.md
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### 验证
|
|
461
|
+
|
|
462
|
+
```bash
|
|
463
|
+
ls .qoder/skills # 应有 9 个 skill 目录
|
|
464
|
+
cat .qoder/rules/phase-guard.md
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Trae CN / 其他本地技能客户端
|
|
470
|
+
|
|
471
|
+
任何支持本地 `skills/` 目录的客户端,都可以用同样方式接入:
|
|
472
|
+
|
|
473
|
+
### 安装
|
|
474
|
+
|
|
475
|
+
```bash
|
|
476
|
+
git clone https://github.com/MageByte-Zero/team-flow.git
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
然后配置客户端从以下路径加载技能:
|
|
480
|
+
|
|
481
|
+
- `<repo>/skills`(直接指向仓库)
|
|
482
|
+
- 或复制 / symlink 到客户端指定的技能目录
|
|
483
|
+
|
|
484
|
+
### 升级
|
|
485
|
+
|
|
486
|
+
```bash
|
|
487
|
+
cd /path/to/team-flow && git pull
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
如果用的是复制方式,升级后需要重新复制到客户端技能目录。
|
|
491
|
+
|
|
492
|
+
### 卸载
|
|
493
|
+
|
|
494
|
+
删除客户端技能目录中的 team-flow 技能即可。
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## Cline
|
|
499
|
+
|
|
500
|
+
Cline 原生读取 `.clinerules/*.md` 作为常驻上下文。安装脚本部署 skills 到 `.cline/skills/`、运行时依赖到 `.cline/team-flow/`、phase-guard 规则到 `.clinerules/phase-guard.md`(Cline 自动加载,无需手动引用)。
|
|
501
|
+
|
|
502
|
+
### 安装
|
|
503
|
+
|
|
504
|
+
```bash
|
|
505
|
+
npx team-flow@latest install-cline
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
或从本地仓库(开发 / 离线):
|
|
509
|
+
|
|
510
|
+
```bash
|
|
511
|
+
node scripts/install-cline.mjs --local /path/to/team-flow
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
### 升级
|
|
515
|
+
|
|
516
|
+
```bash
|
|
517
|
+
npx team-flow@latest install-cline
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### 卸载
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
rm -rf .cline/skills .cline/team-flow .clinerules/phase-guard.md
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
### 验证
|
|
527
|
+
|
|
528
|
+
```bash
|
|
529
|
+
ls .cline/skills # 应有 9 个 skill 目录
|
|
530
|
+
cat .clinerules/phase-guard.md
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
## Kiro
|
|
536
|
+
|
|
537
|
+
AWS Kiro IDE 读取 `.kiro/steering/*.md` 作为 steering 规则。安装脚本部署 skills 到 `.kiro/skills/`、运行时依赖到 `.kiro/team-flow/`、phase-guard 规则到 `.kiro/steering/phase-guard.md`。
|
|
538
|
+
|
|
539
|
+
### 安装
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
npx team-flow@latest install-kiro
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### 升级
|
|
546
|
+
|
|
547
|
+
```bash
|
|
548
|
+
npx team-flow@latest install-kiro
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### 卸载
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
rm -rf .kiro/skills .kiro/team-flow .kiro/steering/phase-guard.md
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
### 验证
|
|
558
|
+
|
|
559
|
+
```bash
|
|
560
|
+
ls .kiro/skills
|
|
561
|
+
cat .kiro/steering/phase-guard.md
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
---
|
|
565
|
+
|
|
566
|
+
## Windsurf
|
|
567
|
+
|
|
568
|
+
Codeium Windsurf 读取 `.windsurf/rules/*.md` 作为规则。安装脚本部署 skills 到 `.windsurf/skills/`、运行时依赖到 `.windsurf/team-flow/`、phase-guard 规则到 `.windsurf/rules/phase-guard.md`。
|
|
569
|
+
|
|
570
|
+
### 安装
|
|
571
|
+
|
|
572
|
+
```bash
|
|
573
|
+
npx team-flow@latest install-windsurf
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
### 升级 / 卸载 / 验证
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
# 升级
|
|
580
|
+
npx team-flow@latest install-windsurf
|
|
581
|
+
# 卸载
|
|
582
|
+
rm -rf .windsurf/skills .windsurf/team-flow .windsurf/rules/phase-guard.md
|
|
583
|
+
# 验证
|
|
584
|
+
ls .windsurf/skills && cat .windsurf/rules/phase-guard.md
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
---
|
|
588
|
+
|
|
589
|
+
## Qwen Code
|
|
590
|
+
|
|
591
|
+
Qwen Code CLI(Gemini CLI fork)读取 `.qwen/rules/*.md` 作为规则。安装脚本部署 skills 到 `.qwen/skills/`、运行时依赖到 `.qwen/team-flow/`、phase-guard 规则到 `.qwen/rules/phase-guard.md`。
|
|
592
|
+
|
|
593
|
+
### 安装
|
|
594
|
+
|
|
595
|
+
```bash
|
|
596
|
+
npx team-flow@latest install-qwen
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### 升级 / 卸载 / 验证
|
|
600
|
+
|
|
601
|
+
```bash
|
|
602
|
+
npx team-flow@latest install-qwen
|
|
603
|
+
rm -rf .qwen/skills .qwen/team-flow .qwen/rules/phase-guard.md
|
|
604
|
+
ls .qwen/skills && cat .qwen/rules/phase-guard.md
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
---
|
|
608
|
+
|
|
609
|
+
## Amazon Q Developer
|
|
610
|
+
|
|
611
|
+
Amazon Q Developer CLI 读取 `.amazonq/rules/*.md` 作为规则。安装脚本部署 skills 到 `.amazonq/skills/`、运行时依赖到 `.amazonq/team-flow/`、phase-guard 规则到 `.amazonq/rules/phase-guard.md`。
|
|
612
|
+
|
|
613
|
+
### 安装
|
|
614
|
+
|
|
615
|
+
```bash
|
|
616
|
+
npx team-flow@latest install-amazon-q
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
### 升级 / 卸载 / 验证
|
|
620
|
+
|
|
621
|
+
```bash
|
|
622
|
+
npx team-flow@latest install-amazon-q
|
|
623
|
+
rm -rf .amazonq/skills .amazonq/team-flow .amazonq/rules/phase-guard.md
|
|
624
|
+
ls .amazonq/skills && cat .amazonq/rules/phase-guard.md
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
---
|
|
628
|
+
|
|
629
|
+
## Roo Code
|
|
630
|
+
|
|
631
|
+
Roo Code(Roo Cline)读取 `.roo/rules/*.md` 作为规则。安装脚本部署 skills 到 `.roo/skills/`、运行时依赖到 `.roo/team-flow/`、phase-guard 规则到 `.roo/rules/phase-guard.md`。
|
|
632
|
+
|
|
633
|
+
### 安装
|
|
634
|
+
|
|
635
|
+
```bash
|
|
636
|
+
npx team-flow@latest install-roocode
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
### 升级 / 卸载 / 验证
|
|
640
|
+
|
|
641
|
+
```bash
|
|
642
|
+
npx team-flow@latest install-roocode
|
|
643
|
+
rm -rf .roo/skills .roo/team-flow .roo/rules/phase-guard.md
|
|
644
|
+
ls .roo/skills && cat .roo/rules/phase-guard.md
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
## Continue
|
|
650
|
+
|
|
651
|
+
Continue(VS Code 扩展)读取 `.continue/rules/*.md` 作为规则。安装脚本部署 skills 到 `.continue/skills/`、运行时依赖到 `.continue/team-flow/`、phase-guard 规则到 `.continue/rules/phase-guard.md`。
|
|
652
|
+
|
|
653
|
+
### 安装
|
|
654
|
+
|
|
655
|
+
```bash
|
|
656
|
+
npx team-flow@latest install-continue
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
### 升级 / 卸载 / 验证
|
|
660
|
+
|
|
661
|
+
```bash
|
|
662
|
+
npx team-flow@latest install-continue
|
|
663
|
+
rm -rf .continue/skills .continue/team-flow .continue/rules/phase-guard.md
|
|
664
|
+
ls .continue/skills && cat .continue/rules/phase-guard.md
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
---
|
|
668
|
+
|
|
669
|
+
## Pi
|
|
670
|
+
|
|
671
|
+
Pi agent 从 `.pi/skills/`(全局 `.pi/agent/skills/`)读取技能。Pi 没有规则目录,安装脚本只部署 skills 到 `.pi/skills/`、运行时依赖到 `.pi/team-flow/`;启动工作流时需手动调用 `/workflow-start`。
|
|
672
|
+
|
|
673
|
+
### 安装
|
|
674
|
+
|
|
675
|
+
```bash
|
|
676
|
+
npx team-flow@latest install-pi
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
### 升级 / 卸载 / 验证
|
|
680
|
+
|
|
681
|
+
```bash
|
|
682
|
+
npx team-flow@latest install-pi
|
|
683
|
+
rm -rf .pi/skills .pi/team-flow
|
|
684
|
+
ls .pi/skills # 应有 9 个 skill 目录
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
> Pi 无 phase-guard 规则自动注入,会话中请显式 `用 workflow-start 开始`。
|
|
688
|
+
|
|
689
|
+
---
|
|
690
|
+
|
|
691
|
+
## 使用
|
|
692
|
+
|
|
693
|
+
安装完成后,告诉 Agent:
|
|
694
|
+
|
|
695
|
+
```
|
|
696
|
+
用 workflow-start 开始
|
|
697
|
+
```
|
|
698
|
+
|
|
699
|
+
`workflow-start` 会检查当前工件目录,判断你处于探索 / 规格 / 桥接 / 执行 / 收口的哪个阶段,然后自动路由到正确的下一个 skill。
|
|
700
|
+
|
|
701
|
+
- 启动新的变更 → `用 workflow-start 开始`
|
|
702
|
+
- 恢复旧的变更 → `继续上次的工作流`
|
|
703
|
+
- 不确定当前状态 → `帮我看看现在该干什么`
|
|
704
|
+
|
|
705
|
+
## 工作流目录约定
|
|
706
|
+
|
|
707
|
+
对于名为 `<change-name>` 的变更:
|
|
708
|
+
|
|
709
|
+
```text
|
|
710
|
+
changes/<change-name>/
|
|
711
|
+
├── proposal.md
|
|
712
|
+
├── design.md
|
|
713
|
+
├── tasks.md
|
|
714
|
+
├── specs/
|
|
715
|
+
│ └── <capability>/
|
|
716
|
+
│ └── spec.md
|
|
717
|
+
└── execution-contract.md
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
流程线:`proposal/specs/design/tasks -> execution-contract.md -> 用户批准 -> execution plan -> 开始实现`
|
|
721
|
+
|
|
722
|
+
规划本身不等于可以实现。如果 `execution-contract.md` 缺失、过时或未被用户批准,工作流会拒绝进入实现阶段。
|
|
723
|
+
|
|
724
|
+
### 受 guard 保护的执行计划
|
|
725
|
+
|
|
726
|
+
full/hotfix 在 DP-4 必须保存 current execution plan 到
|
|
727
|
+
`<change>/.superpowers/sdd/execution-plan.json`;它不属于 `execution-contract.md`。
|
|
728
|
+
先运行 `tf execution recommend`:它按任务量和 wave 策略列出 `inline`、
|
|
729
|
+
`batch-inline`、`sdd` 并给出推荐,并保存当前 wave 的推荐凭据到
|
|
730
|
+
`<change>/.superpowers/sdd/execution-recommendation.json`。Agent 展示候选项和理由后,
|
|
731
|
+
`plan` 与 `revise` 必须消费匹配当前 artifact、contract 和 wave 的凭据;用户用 `--confirm`
|
|
732
|
+
确认;若选择非推荐方式,必须用 `--acknowledge-recommendation` 记录风险确认。Batch
|
|
733
|
+
Inline 始终串行,不会表示并行。`tweak`
|
|
734
|
+
免除 execution plan 与 review receipt gate。
|
|
735
|
+
|
|
736
|
+
```bash
|
|
737
|
+
tf execution recommend changes/my-change \
|
|
738
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
739
|
+
--wave integration:serial:2.1:foundation --json
|
|
740
|
+
tf execution plan changes/my-change --mode sdd --confirm --reason "independent work" \
|
|
741
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
742
|
+
--wave integration:serial:2.1:foundation
|
|
743
|
+
tf execution show changes/my-change --json
|
|
744
|
+
# 可将已有 inline/batch-inline 计划升级为 sdd,或重规划已有 sdd 的 wave/依赖;不能降级。
|
|
745
|
+
tf execution recommend changes/my-change \
|
|
746
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
747
|
+
--wave integration:serial:2.1:foundation --json
|
|
748
|
+
tf execution revise changes/my-change --mode sdd --confirm --reason "need parallel work" \
|
|
749
|
+
--wave foundation:parallel:1.1,1.2 \
|
|
750
|
+
--wave integration:serial:2.1:foundation
|
|
751
|
+
tf execution review changes/my-change --wave foundation --base <sha> --head <sha> \
|
|
752
|
+
--report .superpowers/sdd/reviews/foundation.md --verdict pass
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
`--report` 相对于 `<change>` 解析,且必须位于
|
|
756
|
+
`<change>/.superpowers/sdd/reviews/` 之下。`--base` 和 `--head` 必须是该
|
|
757
|
+
`<change>` Git 工作树中的真实 commit,且 `base` 必须是 `head` 的祖先。
|
|
758
|
+
`<change>/.superpowers/sdd/reviews/` 的目录层级必须是物理、非符号链接目录;
|
|
759
|
+
report 本身必须为普通、非空、非符号链接文件。
|
|
760
|
+
|
|
761
|
+
每一个 wave 均须有当前 `pass` review receipt,才可启动依赖 wave 或进入 closing;
|
|
762
|
+
修订计划会废止旧 receipt。#47 所提出的恢复、切换与手动保存 slash command 尚未实现,
|
|
763
|
+
不能假定有 `/tf:*` 命令。
|
|
764
|
+
|
|
765
|
+
Delta spec 的规范路径是 `specs/<capability>/spec.md`。扁平的 `specs/<capability>.md` 和根级 `specs/spec.md` 都不会被当作合法规范静默通过。
|
|
766
|
+
|
|
767
|
+
### `tf inject` 用法
|
|
768
|
+
|
|
769
|
+
```bash
|
|
770
|
+
tf inject changes/my-change --platforms cursor
|
|
771
|
+
tf inject changes/my-change --platforms all
|
|
772
|
+
```
|
|
773
|
+
|
|
774
|
+
省略 `--platforms` 时,只有在项目里**恰好检测到一个**平台标记时才会自动注入;如果检测到多个平台,必须显式传 `--platforms <platform>` 或 `--platforms all`。
|
|
775
|
+
|
|
776
|
+
### 会话恢复与可选 prototype
|
|
777
|
+
|
|
778
|
+
```bash
|
|
779
|
+
tf checkpoint save changes/my-change --task 1.1 --next "Run focused tests"
|
|
780
|
+
tf checkpoint list changes/my-change
|
|
781
|
+
tf checkpoint show changes/my-change 1.1
|
|
782
|
+
tf handoff create changes/my-change --type research --objective "Compare approaches" --expected-output "Recommendation" --acceptance "Evidence recorded"
|
|
783
|
+
tf handoff list changes/my-change
|
|
784
|
+
tf handoff finish changes/my-change <handoff-id>
|
|
785
|
+
tf handoff resolve changes/my-change <handoff-id> --decision accept
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
Checkpoint 是任务级恢复上下文。`result-ready` handoff 在继续受影响的工作前必须显式审阅并 resolve。Prototype 只在用户明确确认后创建;后端、CLI、配置和内部重构不会自动进入 prototype 流程。handoff 结果不会自动修改 `design.md` 或 `tasks.md`。
|
|
789
|
+
|
|
790
|
+
## 验证
|
|
791
|
+
|
|
792
|
+
安装后验证:
|
|
793
|
+
|
|
794
|
+
- `workflow-start` skill 已可用
|
|
795
|
+
- 其余 8 个 skill 全部可见
|
|
796
|
+
|
|
797
|
+
## 故障排查
|
|
798
|
+
|
|
799
|
+
### Agent 找不到 skill
|
|
800
|
+
|
|
801
|
+
- 检查 skill 目录名是否与 skill 名一致
|
|
802
|
+
- 检查目录下是否存在 `SKILL.md`
|
|
803
|
+
|
|
804
|
+
### 工作流过早开始实现
|
|
805
|
+
|
|
806
|
+
从 `workflow-start` 入口开始,不要直接调用 `build-executor`。
|
|
807
|
+
|
|
808
|
+
推荐流程:`exploring -> specifying -> bridging -> approved-for-build -> execution plan -> executing -> closing`
|
|
809
|
+
|
|
810
|
+
hotfix 快速路径:`exploring -> bridging -> approved-for-build -> executing`。hotfix 可以跳过完整的 `proposal.md`、`design.md`、`tasks.md`、`specs/`,但仍然必须先生成一份新的最小 `execution-contract.md`,并完成 DP-3 批准后才能开始实现。
|