@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,49 @@
|
|
|
1
|
+
# Skill 重命名迁移指南(v0.8.0)
|
|
2
|
+
|
|
3
|
+
v0.8.0 把 9 个 skill 的名字改为“动作 + 对象”风格,让入口和每个阶段的作用一目了然。旧名字不再保留 alias,因此升级后需要按下面的对照表使用新名字。
|
|
4
|
+
|
|
5
|
+
## 名字对照表
|
|
6
|
+
|
|
7
|
+
| 旧名称 | 新名称 | 阶段 | 作用 |
|
|
8
|
+
|--------|--------|------|------|
|
|
9
|
+
| `workflow-orchestrator` | `workflow-start` | 入口 | 工作流启动入口,检测状态并路由到下一个 skill |
|
|
10
|
+
| `spec-explorer` | `need-explorer` | 探索 | 澄清需求、比较方案、确认范围 |
|
|
11
|
+
| `spec-forger` | `spec-writer` | 规划 | 撰写 proposal、specs、design、tasks |
|
|
12
|
+
| `bridge-contract` | `contract-builder` | 桥接 | 把规划工件压缩成 `execution-contract.md` |
|
|
13
|
+
| `execution-governor` | `build-executor` | 执行 | 按契约实现代码,支持 Inline / Batch Inline / SDD |
|
|
14
|
+
| `systematic-debugger` | `bug-investigator` | 调试 | 4 阶段根因调试 |
|
|
15
|
+
| `code-reviewer` | `code-reviewer` | 审查 | 代码审查(未改名) |
|
|
16
|
+
| `closure-archivist` | `release-archivist` | 收尾 | 验证、总结、归档 |
|
|
17
|
+
| `spec-syncer` | `spec-merger` | 同步 | 把 delta spec 合并进主规格 |
|
|
18
|
+
|
|
19
|
+
## 用户需要改什么
|
|
20
|
+
|
|
21
|
+
### Claude Code
|
|
22
|
+
|
|
23
|
+
- 触发入口从 `/workflow-orchestrator` 改为 `/workflow-start`。
|
|
24
|
+
- 其他 skill 名称在路由时会自动被 `workflow-start` 引用,通常不需要手动输入。
|
|
25
|
+
|
|
26
|
+
### Cursor
|
|
27
|
+
|
|
28
|
+
- 重新运行 `node scripts/install-cursor.mjs`,把 skill 复制到 `.cursor/skills/`。
|
|
29
|
+
- `.cursor/rules/phase-guard.mdc` 会同步更新。
|
|
30
|
+
- `.cursor/` 是本地生成目录,不需要提交到仓库。
|
|
31
|
+
|
|
32
|
+
### GitHub Copilot CLI
|
|
33
|
+
|
|
34
|
+
- 通过 root `plugin.json` 重新加载插件。
|
|
35
|
+
- `plugin.json` 中的 `skills` 字段指向 `skills/` 目录,目录重命名后无需手动修改 manifest,只需确保插件刷新。
|
|
36
|
+
|
|
37
|
+
### Gemini CLI
|
|
38
|
+
|
|
39
|
+
- 重新激活插件,读取更新后的 `GEMINI.md`。
|
|
40
|
+
|
|
41
|
+
## 为什么重命名
|
|
42
|
+
|
|
43
|
+
- **降低认知成本**:`workflow-start` 比 `workflow-orchestrator` 更直接地表达“这是入口”。
|
|
44
|
+
- **动作 + 对象**:`spec-writer`、`contract-builder`、`bug-investigator` 等名字看到就知道职责。
|
|
45
|
+
- **去掉生僻词**:`orchestrator`、`forger`、`archivist` 等词需要额外解释。
|
|
46
|
+
|
|
47
|
+
## 兼容性
|
|
48
|
+
|
|
49
|
+
v0.8.0 起旧 skill 名称不再可用。如果你在任何脚本、别名或个人笔记中引用了旧名字,请按上表替换。
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# State Machine
|
|
2
|
+
|
|
3
|
+
`team-flow` treats workflow progression as explicit state transitions.
|
|
4
|
+
|
|
5
|
+
## States
|
|
6
|
+
|
|
7
|
+
### `exploring`
|
|
8
|
+
|
|
9
|
+
- intent is still fuzzy
|
|
10
|
+
- options are still being compared
|
|
11
|
+
- no implementation is allowed
|
|
12
|
+
- `need-explorer` is active
|
|
13
|
+
|
|
14
|
+
### `specifying`
|
|
15
|
+
|
|
16
|
+
- planning artifacts are being written or revised
|
|
17
|
+
- proposal, specs, design, and tasks are refined
|
|
18
|
+
- `spec-writer` is active
|
|
19
|
+
- schema validation runs on every artifact generation
|
|
20
|
+
|
|
21
|
+
### `bridging`
|
|
22
|
+
|
|
23
|
+
- planning artifacts are translated into `execution-contract.md`
|
|
24
|
+
- ambiguity is compressed into explicit approved decisions
|
|
25
|
+
- `contract-builder` is active
|
|
26
|
+
- parsing engine auto-extracts intent/scope/test-obligations/constraints/batches
|
|
27
|
+
- hotfix also passes through this state with a fresh minimal contract and DP-3 approval before build
|
|
28
|
+
|
|
29
|
+
### `approved-for-build`
|
|
30
|
+
|
|
31
|
+
- the execution contract exists
|
|
32
|
+
- the user has approved it
|
|
33
|
+
- full/hotfix still require a current execution plan before implementation can begin
|
|
34
|
+
|
|
35
|
+
### `executing`
|
|
36
|
+
|
|
37
|
+
- implementation follows the execution contract
|
|
38
|
+
- TDD, SDD (subagent-driven), review gates, and escalation rules apply
|
|
39
|
+
- `build-executor` is active
|
|
40
|
+
- `code-reviewer` invoked after each execution batch
|
|
41
|
+
|
|
42
|
+
## Execution Plan Control Plane
|
|
43
|
+
|
|
44
|
+
For full/hotfix, DP-4 is the persisted execution plan created by `tf execution
|
|
45
|
+
plan` at `<change>/.superpowers/sdd/execution-plan.json`, not an arbitrary
|
|
46
|
+
state value or content stored in `execution-contract.md`. Before planning, run
|
|
47
|
+
`tf execution recommend`; it lists applicable `inline`, `batch-inline`, and
|
|
48
|
+
`sdd` modes with evidence and one recommendation, and persists a receipt at
|
|
49
|
+
`<change>/.superpowers/sdd/execution-recommendation.json`. `plan` and `revise`
|
|
50
|
+
accept only a receipt whose artifacts, contract, and waves still match. The user must record the
|
|
51
|
+
selected mode with `--confirm`; a non-recommended selection also requires
|
|
52
|
+
`--acknowledge-recommendation`. Batch Inline remains serial and is never a
|
|
53
|
+
substitute for parallel execution.
|
|
54
|
+
`tweak` is exempt from execution-plan and review-receipt requirements.
|
|
55
|
+
|
|
56
|
+
The plan names ordered execution waves, dependencies, and parallel/serial
|
|
57
|
+
strategy. `tf execution show <change-dir> --json` reports which current waves
|
|
58
|
+
are eligible. Each completed wave must have a current
|
|
59
|
+
`pass` review receipt, recorded with `tf execution review`, before a dependent
|
|
60
|
+
wave or `closing` can proceed. `tf execution revise` retains or upgrades an
|
|
61
|
+
existing plan as `sdd`; that new revision requires a fresh confirmation (and
|
|
62
|
+
acknowledgement when it differs from the new recommendation), invalidates old
|
|
63
|
+
review receipts, and does not permit a downgrade. #47 recovery/switch/save
|
|
64
|
+
slash commands are not implemented; do not assume `/tf:*` commands exist.
|
|
65
|
+
|
|
66
|
+
### `debugging`
|
|
67
|
+
|
|
68
|
+
- execution has hit a bug, test failure, or unexpected behavior
|
|
69
|
+
- `bug-investigator` is active
|
|
70
|
+
- 4-phase debugging (Root Cause → Pattern Analysis → Hypothesis → Implementation)
|
|
71
|
+
- After debugging completes, returns to `executing`
|
|
72
|
+
|
|
73
|
+
### `closing`
|
|
74
|
+
|
|
75
|
+
- verification is complete with evidence
|
|
76
|
+
- `release-archivist` is active
|
|
77
|
+
- `verification-before-completion` gate enforced
|
|
78
|
+
- `spec-merger` invoked if delta specs need merging into main specs
|
|
79
|
+
- the change can be summarized, archived, or handed off
|
|
80
|
+
|
|
81
|
+
### `abandoned`
|
|
82
|
+
|
|
83
|
+
- the change has been abandoned by the user or after bug-investigator escalation
|
|
84
|
+
- no delta spec merge is allowed
|
|
85
|
+
- no further state transitions are allowed
|
|
86
|
+
- delta specs are preserved for reference only
|
|
87
|
+
|
|
88
|
+
## Terminal States
|
|
89
|
+
|
|
90
|
+
- `closing` — successful completion with verification
|
|
91
|
+
- `abandoned` — change abandoned (no delta spec merge, no further transitions allowed)
|
|
92
|
+
|
|
93
|
+
## Recovery Overlays
|
|
94
|
+
|
|
95
|
+
Checkpoints, handoffs, and prototypes are durable overlays, not workflow states.
|
|
96
|
+
They do not add transitions to the state machine or change the meaning of the
|
|
97
|
+
eight core states.
|
|
98
|
+
|
|
99
|
+
- `tf checkpoint save <change-dir> --task <id> --next <text>` records task-level
|
|
100
|
+
recovery context under `.superpowers/sdd/checkpoints/`.
|
|
101
|
+
- `tf handoff create <change-dir> --type <type> ...` creates explicit side-work
|
|
102
|
+
contracts under `.superpowers/sdd/handoffs/`.
|
|
103
|
+
- `workflow-start` lists overlays before normal routing. `result-ready` handoffs
|
|
104
|
+
require explicit review and resolution before affected work resumes; stale
|
|
105
|
+
checkpoints remain historical evidence only.
|
|
106
|
+
- Prototype work is optional and requires explicit user confirmation. Results
|
|
107
|
+
are reviewed manually and never mutate `design.md` or `tasks.md`.
|
|
108
|
+
|
|
109
|
+
## Transitions
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
exploring ──── hotfix ─────────> bridging (fast-path)
|
|
113
|
+
bridging ──── hotfix ─────────> approved-for-build
|
|
114
|
+
exploring ──── tweak ──────────> approved-for-build (fast-path)
|
|
115
|
+
|
|
116
|
+
exploring -> specifying -> bridging -> approved-for-build -> executing -> closing
|
|
117
|
+
^ ^ | ^ |
|
|
118
|
+
| | v | |
|
|
119
|
+
| | debugging ────────────┘ |
|
|
120
|
+
| | |
|
|
121
|
+
| +------------------------------------+
|
|
122
|
+
| (contract drift → re-bridge)
|
|
123
|
+
+---------------------------------------------------+
|
|
124
|
+
(scope change → re-specify)
|
|
125
|
+
|
|
126
|
+
(any non-terminal state) ──> abandoned
|
|
127
|
+
(terminal, no further transitions)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Mandatory Rewind
|
|
131
|
+
|
|
132
|
+
The workflow must move back to `specifying` or `bridging` when:
|
|
133
|
+
|
|
134
|
+
- new scope appears
|
|
135
|
+
- a critical interface changes
|
|
136
|
+
- a key design assumption is wrong
|
|
137
|
+
- current artifacts no longer define the intended behavior
|
|
138
|
+
- `execution-contract.md` intent lock no longer matches `proposal.md` scope
|
|
139
|
+
- the execution plan is stale, its mode no longer matches state, or its waves
|
|
140
|
+
need different dependencies
|
|
141
|
+
|
|
142
|
+
## Debugging State
|
|
143
|
+
|
|
144
|
+
During `executing`, if a bug, test failure, or unexpected behavior blocks progress:
|
|
145
|
+
|
|
146
|
+
1. Pause `executing` and enter `debugging`
|
|
147
|
+
2. `bug-investigator` performs 4-phase root cause analysis
|
|
148
|
+
3. If root cause found → fix (with TDD) → return to `executing`
|
|
149
|
+
4. If 3+ fix attempts fail → question architecture → escalate to user
|
|
150
|
+
|
|
151
|
+
## Anti-Pattern
|
|
152
|
+
|
|
153
|
+
Do not stay in `executing` and "just adjust things in chat" when scope or behavior changes.
|
|
154
|
+
|
|
155
|
+
If the contract changed, the artifacts changed.
|
|
156
|
+
|
|
157
|
+
## Fast-Path Notes
|
|
158
|
+
|
|
159
|
+
- `hotfix` follows `exploring -> bridging -> approved-for-build -> executing`.
|
|
160
|
+
- `hotfix` may skip full planning artifacts such as `proposal.md`, `design.md`, `tasks.md`, and `specs/`.
|
|
161
|
+
- `hotfix` still requires a fresh minimal `execution-contract.md` and explicit DP-3 approval before implementation.
|
|
162
|
+
- `tweak` remains the only path that can jump directly from `exploring` to `approved-for-build`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "team-flow",
|
|
3
|
+
"description": "Unified workflow plugin: team-flow (spec-driven dev) + compound-engineering core subset + architecture-design (4A/DDD) + prototype (local HTML). 17 skills, one install.",
|
|
4
|
+
"version": "0.22.4",
|
|
5
|
+
"contextFileName": "GEMINI.md"
|
|
6
|
+
}
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "team-flow workflow hooks - session-start context injection + pre-tool-use implementation-edit state guard",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"SessionStart": [
|
|
5
|
+
{
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\""
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"PreToolUse": [
|
|
15
|
+
{
|
|
16
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
17
|
+
"hooks": [
|
|
18
|
+
{
|
|
19
|
+
"type": "command",
|
|
20
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use-guard\""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# pre-tool-use-guard — spec-superflow implementation-edit state guard (PreToolUse)
|
|
4
|
+
#
|
|
5
|
+
# ----------------------------------------------------------------------------
|
|
6
|
+
# Purpose
|
|
7
|
+
# ----------------------------------------------------------------------------
|
|
8
|
+
# Blocks Write/Edit/MultiEdit implementation edits unless the active
|
|
9
|
+
# spec-superflow change is in a state that permits building. This enforces the
|
|
10
|
+
# state-machine rule that "no implementation is allowed" outside the
|
|
11
|
+
# build-permitted states (exploring / specifying / bridging must finish and be
|
|
12
|
+
# approved before any code is written).
|
|
13
|
+
#
|
|
14
|
+
# ----------------------------------------------------------------------------
|
|
15
|
+
# Guard logic
|
|
16
|
+
# ----------------------------------------------------------------------------
|
|
17
|
+
# 1. Walk up from $PWD (current dir + max 3 parent levels) looking for
|
|
18
|
+
# `.spec-superflow.yaml`.
|
|
19
|
+
# - Not found -> ALLOW (no active spec-superflow change in scope).
|
|
20
|
+
# 2. Read the current workflow state from the `state:` line of the yaml.
|
|
21
|
+
# 3. For Write/Edit/MultiEdit only:
|
|
22
|
+
# - state in {approved-for-build, executing, debugging} -> ALLOW
|
|
23
|
+
# - any other state (exploring/specifying/bridging/closing/abandoned/
|
|
24
|
+
# unknown) -> BLOCK with an explanatory reason.
|
|
25
|
+
# 4. Any other tool -> ALLOW.
|
|
26
|
+
#
|
|
27
|
+
# ----------------------------------------------------------------------------
|
|
28
|
+
# Defensive contract (IMPORTANT — read before editing)
|
|
29
|
+
# ----------------------------------------------------------------------------
|
|
30
|
+
# This hook must NEVER block the user because of a hook bug. On ANY error
|
|
31
|
+
# (unreadable/unparseable yaml, unexpected stdin, missing binaries, a failed
|
|
32
|
+
# command) it defaults to ALLOW: exit 0 with no output. Only an explicit,
|
|
33
|
+
# successfully detected disallowed state may emit a block decision. The single
|
|
34
|
+
# `printf` that prints a block is reachable ONLY after every parse step has
|
|
35
|
+
# succeeded, so a failure anywhere upstream can never produce a false block.
|
|
36
|
+
#
|
|
37
|
+
# ----------------------------------------------------------------------------
|
|
38
|
+
# I/O contract (Claude Code PreToolUse)
|
|
39
|
+
# ----------------------------------------------------------------------------
|
|
40
|
+
# stdin : JSON with `tool_name` and `tool_input` (Write/Edit/MultiEdit carry
|
|
41
|
+
# `tool_input.file_path`).
|
|
42
|
+
# block : print {"decision":"block","reason":"..."} then exit 0.
|
|
43
|
+
# allow : print nothing, exit 0.
|
|
44
|
+
#
|
|
45
|
+
# ----------------------------------------------------------------------------
|
|
46
|
+
# Design reference
|
|
47
|
+
# ----------------------------------------------------------------------------
|
|
48
|
+
# docs/state-machine.md — state definitions + "no implementation is allowed"
|
|
49
|
+
# rule. Build-permitted states: approved-for-build, executing, debugging.
|
|
50
|
+
#
|
|
51
|
+
# Perf: pure bash + grep/sed (no node/python). Target < 50ms.
|
|
52
|
+
|
|
53
|
+
# Master safety net: any unexpected failing command falls through to ALLOW.
|
|
54
|
+
# We intentionally do NOT use `set -e`/`set -u`; an aborted script must never
|
|
55
|
+
# be misread as a block. The trap only ever exits 0 (allow).
|
|
56
|
+
trap 'exit 0' ERR
|
|
57
|
+
|
|
58
|
+
allow() { exit 0; }
|
|
59
|
+
|
|
60
|
+
# --- read tool invocation from stdin ---------------------------------------
|
|
61
|
+
INPUT="$(cat 2>/dev/null)" || allow
|
|
62
|
+
[ -n "$INPUT" ] || allow
|
|
63
|
+
|
|
64
|
+
# --- only guard implementation-edit tools ----------------------------------
|
|
65
|
+
# hooks.json already restricts the matcher to Write|Edit|MultiEdit; we re-check
|
|
66
|
+
# defensively so a future broader matcher can never over-block other tools.
|
|
67
|
+
TOOL_NAME="$(printf '%s' "$INPUT" \
|
|
68
|
+
| grep -o '"tool_name"[[:space:]]*:[[:space:]]*"[^"]*"' \
|
|
69
|
+
| head -1 \
|
|
70
|
+
| sed 's/.*:"//; s/"$//')"
|
|
71
|
+
case "$TOOL_NAME" in
|
|
72
|
+
Write|Edit|MultiEdit) : ;; # guarded tools — continue
|
|
73
|
+
*) allow ;; # anything else — allow
|
|
74
|
+
esac
|
|
75
|
+
|
|
76
|
+
# --- locate .spec-superflow.yaml (cwd + max 3 parent levels) ---------------
|
|
77
|
+
dir="$PWD"
|
|
78
|
+
yaml=""
|
|
79
|
+
i=0
|
|
80
|
+
while [ "$i" -le 3 ]; do
|
|
81
|
+
if [ -f "$dir/.spec-superflow.yaml" ]; then
|
|
82
|
+
yaml="$dir/.spec-superflow.yaml"
|
|
83
|
+
break
|
|
84
|
+
fi
|
|
85
|
+
[ "$dir" = "/" ] && break # reached filesystem root
|
|
86
|
+
dir="$(dirname "$dir")"
|
|
87
|
+
i=$((i + 1))
|
|
88
|
+
done
|
|
89
|
+
|
|
90
|
+
# No active spec-superflow change in scope -> allow.
|
|
91
|
+
[ -n "$yaml" ] || allow
|
|
92
|
+
[ -r "$yaml" ] || allow
|
|
93
|
+
|
|
94
|
+
# --- read current state ----------------------------------------------------
|
|
95
|
+
# First `state:` line, e.g. `state: executing`. Strip leading/trailing
|
|
96
|
+
# whitespace and any surrounding quotes.
|
|
97
|
+
state="$(grep -E '^[[:space:]]*state:[[:space:]]*' "$yaml" 2>/dev/null \
|
|
98
|
+
| head -1 \
|
|
99
|
+
| sed -E 's/^[[:space:]]*state:[[:space:]]*//; s/[[:space:]]*$//; s/^["'\'']//; s/["'\'']$//')"
|
|
100
|
+
|
|
101
|
+
# Could not determine state -> defensive allow (never block on parse failure).
|
|
102
|
+
[ -n "$state" ] || allow
|
|
103
|
+
|
|
104
|
+
# --- decision --------------------------------------------------------------
|
|
105
|
+
case "$state" in
|
|
106
|
+
approved-for-build|executing|debugging)
|
|
107
|
+
allow
|
|
108
|
+
;;
|
|
109
|
+
*)
|
|
110
|
+
reason="spec-superflow guard: implementation edits (Write/Edit/MultiEdit) are blocked while the change is in state '$state'. Edits are only allowed in states: approved-for-build, executing, debugging. Advance the workflow to an approved build state first (see docs/state-machine.md or /spec-superflow:workflow-start). If no change is actually active, remove or fix the stray .spec-superflow.yaml."
|
|
111
|
+
# Escape backslashes and double quotes for safe JSON string embedding.
|
|
112
|
+
reason_esc="$(printf '%s' "$reason" | sed 's/\\/\\\\/g; s/"/\\"/g')"
|
|
113
|
+
printf '{"decision":"block","reason":"%s"}\n' "$reason_esc"
|
|
114
|
+
exit 0
|
|
115
|
+
;;
|
|
116
|
+
esac
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# v0.22.4: conditional injection — detects artifacts, injects workflow-start pointer
|
|
3
|
+
msg="<EXTREMELY_IMPORTANT>\nYou have spec-superflow installed. Use /spec-superflow:workflow-start ONLY when you detect an active spec-superflow change in the workspace (look for \`.spec-superflow.yaml\`, \`proposal.md\`, \`execution-contract.md\`, or \`specs/\` directories), OR when the user explicitly invokes it by name. For ordinary coding tasks without spec-superflow artifacts, do NOT invoke workflow-start — just handle the request directly.\n</EXTREMELY_IMPORTANT>"
|
|
4
|
+
|
|
5
|
+
# Three platforms share the same message, only output format differs.
|
|
6
|
+
if [ -n "${CURSOR_PLUGIN_ROOT:-}" ]; then
|
|
7
|
+
printf '{\n "additional_context": "%s"\n}\n' "$msg"
|
|
8
|
+
elif [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -z "${COPILOT_CLI:-}" ]; then
|
|
9
|
+
printf '{\n "hookSpecificOutput": {\n "hookEventName": "SessionStart",\n "additionalContext": "%s"\n }\n}\n' "$msg"
|
|
10
|
+
else
|
|
11
|
+
printf '{\n "additionalContext": "%s"\n}\n' "$msg"
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
exit 0
|
package/llms.txt
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# spec-superflow
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
spec-superflow is a self-contained workflow integration plugin for Claude Code, Cursor, OpenAI Codex CLI/App, GitHub Copilot CLI, Gemini CLI, OpenCode, WorkBuddy, and Trae. It merges spec-driven planning artifacts (proposal, specs, design, tasks) with disciplined execution guardrails (TDD, review gates, controlled handoff) into one unified workflow.
|
|
5
|
+
|
|
6
|
+
Current version: v0.22.4.
|
|
7
|
+
|
|
8
|
+
## Key Documents
|
|
9
|
+
- README.md: Chinese homepage with full usage guide and FAQ
|
|
10
|
+
- docs/README_en.md: English documentation
|
|
11
|
+
- INSTALL.md: Multi-platform installation guide
|
|
12
|
+
- docs/state-machine.md: Workflow state machine (exploring -> specifying -> bridging -> approved-for-build -> executing -> closing)
|
|
13
|
+
- docs/artifact-contract.md: Artifact mapping from planning to execution contract
|
|
14
|
+
- docs/decision-points.md: Standard decision-point protocol
|
|
15
|
+
- CHANGELOG.md: Version history
|
|
16
|
+
- CONTRIBUTING.md: Contribution guidelines
|
|
17
|
+
|
|
18
|
+
## Core Skills (in skills/)
|
|
19
|
+
- workflow-start: Entry point, content-level state detection, 8-state routing, blocks illegal transitions
|
|
20
|
+
- need-explorer: Clarifies intent, scope, constraints, and success criteria
|
|
21
|
+
- spec-writer: Generates proposal, specs, design, and tasks with Schema validation
|
|
22
|
+
- contract-builder: Parses 4 artifacts and compresses into execution-contract.md
|
|
23
|
+
- build-executor: Enforces TDD, SDD subagent execution, and Review Gates
|
|
24
|
+
- bug-investigator: 4-phase root cause analysis, escalates after repeated failures
|
|
25
|
+
- code-reviewer: Structured review with Critical / Important / Minor severity
|
|
26
|
+
- release-archivist: Verification-before-completion, archiving, risk summary
|
|
27
|
+
- spec-merger: Merges delta specs into main specs with conflict detection
|
|
28
|
+
|
|
29
|
+
## Templates (in templates/)
|
|
30
|
+
- proposal.md: Change proposal template
|
|
31
|
+
- spec.md: Capability specification template
|
|
32
|
+
- design.md: Technical design template
|
|
33
|
+
- tasks.md: Implementation tasks template
|
|
34
|
+
- execution-contract.md: Bridge artifact template
|
|
35
|
+
|
|
36
|
+
## Examples (in docs/examples/)
|
|
37
|
+
- add-dark-mode: New UI feature example (dark mode)
|
|
38
|
+
- refactor-auth-boundary: Brownfield backend refactor example (auth layer)
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
See INSTALL.md for platform-specific instructions. Quick install for Claude Code:
|
|
42
|
+
```
|
|
43
|
+
/plugin marketplace add MageByte-Zero/spec-superflow
|
|
44
|
+
/plugin install spec-superflow@spec-superflow
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Cursor: `npx spec-superflow@latest install-cursor`
|
|
48
|
+
WorkBuddy: `npx spec-superflow@latest install-workbuddy`
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
Start from workflow-start. The workflow inspects current artifacts and routes to the correct stage automatically.
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xulthekl/team-flow",
|
|
3
|
+
"version": "0.22.4",
|
|
4
|
+
"description": "Unified plugin (23 skills + 8 agents) integrating team-flow, compound-engineering, architecture-design, prototype, design-system, workflow-orchestrator, workflow-bootstrap, e2e, session-handoff, workflow-feedback for multi-agent coding tools.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"tf": "./scripts/team-flow.mjs",
|
|
9
|
+
"team-flow": "./scripts/team-flow.mjs"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"test": "node --test tests/e2e.test.mjs tests/lib/*.test.mjs",
|
|
15
|
+
"test:raw-mode": "node --test tests/lib/raw-mode-smoke.test.mjs",
|
|
16
|
+
"validate": "node scripts/validate-artifacts",
|
|
17
|
+
"version": "node scripts/team-flow.mjs version $npm_new_version && node scripts/check-version-consistency.mjs && git add -A",
|
|
18
|
+
"check-versions": "node scripts/check-version-consistency.mjs",
|
|
19
|
+
"setup-hooks": "node scripts/install-git-hooks.mjs"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"spec-driven-development",
|
|
23
|
+
"tdd",
|
|
24
|
+
"workflow",
|
|
25
|
+
"skills",
|
|
26
|
+
"contract-driven",
|
|
27
|
+
"claude-code",
|
|
28
|
+
"cursor",
|
|
29
|
+
"trae",
|
|
30
|
+
"codex",
|
|
31
|
+
"gemini-cli",
|
|
32
|
+
"copilot-cli",
|
|
33
|
+
"opencode",
|
|
34
|
+
"workbuddy"
|
|
35
|
+
],
|
|
36
|
+
"author": "xulthekl",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/MageByte-Zero/team-flow"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=20"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"typescript": "^6.0.3"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/plugin.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "team-flow",
|
|
3
|
+
"version": "0.22.4",
|
|
4
|
+
"description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "LT"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/LT/team-flow",
|
|
9
|
+
"repository": "https://github.com/LT/team-flow",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"workflow",
|
|
13
|
+
"skills",
|
|
14
|
+
"spec-driven-development",
|
|
15
|
+
"tdd",
|
|
16
|
+
"sdd",
|
|
17
|
+
"architecture",
|
|
18
|
+
"ddd",
|
|
19
|
+
"compound-engineering",
|
|
20
|
+
"prototype",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"cursor",
|
|
23
|
+
"trae"
|
|
24
|
+
],
|
|
25
|
+
"category": "Productivity",
|
|
26
|
+
"skills": "skills/"
|
|
27
|
+
}
|