@zigrivers/scaffold 2.1.2 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +505 -119
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +94 -14
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/build.test.js +30 -5
- package/dist/cli/commands/build.test.js.map +1 -1
- package/dist/cli/commands/check.d.ts +12 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +311 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/check.test.d.ts +2 -0
- package/dist/cli/commands/check.test.d.ts.map +1 -0
- package/dist/cli/commands/check.test.js +412 -0
- package/dist/cli/commands/check.test.js.map +1 -0
- package/dist/cli/commands/complete.d.ts +12 -0
- package/dist/cli/commands/complete.d.ts.map +1 -0
- package/dist/cli/commands/complete.js +101 -0
- package/dist/cli/commands/complete.js.map +1 -0
- package/dist/cli/commands/complete.test.d.ts +2 -0
- package/dist/cli/commands/complete.test.d.ts.map +1 -0
- package/dist/cli/commands/complete.test.js +133 -0
- package/dist/cli/commands/complete.test.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -1
- package/dist/cli/commands/dashboard.js +12 -8
- package/dist/cli/commands/dashboard.js.map +1 -1
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +4 -0
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/commands/knowledge.d.ts.map +1 -1
- package/dist/cli/commands/knowledge.js +6 -2
- package/dist/cli/commands/knowledge.js.map +1 -1
- package/dist/cli/commands/knowledge.test.js +16 -11
- package/dist/cli/commands/knowledge.test.js.map +1 -1
- package/dist/cli/commands/next.d.ts.map +1 -1
- package/dist/cli/commands/next.js +41 -13
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/next.test.js +3 -0
- package/dist/cli/commands/next.test.js.map +1 -1
- package/dist/cli/commands/reset.d.ts +1 -0
- package/dist/cli/commands/reset.d.ts.map +1 -1
- package/dist/cli/commands/reset.js +179 -67
- package/dist/cli/commands/reset.js.map +1 -1
- package/dist/cli/commands/reset.test.js +360 -0
- package/dist/cli/commands/reset.test.js.map +1 -1
- package/dist/cli/commands/rework.d.ts +20 -0
- package/dist/cli/commands/rework.d.ts.map +1 -0
- package/dist/cli/commands/rework.js +332 -0
- package/dist/cli/commands/rework.js.map +1 -0
- package/dist/cli/commands/rework.test.d.ts +2 -0
- package/dist/cli/commands/rework.test.d.ts.map +1 -0
- package/dist/cli/commands/rework.test.js +297 -0
- package/dist/cli/commands/rework.test.js.map +1 -0
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +59 -31
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/run.test.js +288 -6
- package/dist/cli/commands/run.test.js.map +1 -1
- package/dist/cli/commands/skill.d.ts +12 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +123 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/commands/skill.test.d.ts +2 -0
- package/dist/cli/commands/skill.test.d.ts.map +1 -0
- package/dist/cli/commands/skill.test.js +297 -0
- package/dist/cli/commands/skill.test.js.map +1 -0
- package/dist/cli/commands/skip.d.ts +1 -1
- package/dist/cli/commands/skip.d.ts.map +1 -1
- package/dist/cli/commands/skip.js +123 -57
- package/dist/cli/commands/skip.js.map +1 -1
- package/dist/cli/commands/skip.test.js +91 -0
- package/dist/cli/commands/skip.test.js.map +1 -1
- package/dist/cli/commands/status.d.ts +1 -0
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +57 -10
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/status.test.js +81 -0
- package/dist/cli/commands/status.test.js.map +1 -1
- package/dist/cli/commands/update.test.js +252 -0
- package/dist/cli/commands/update.test.js.map +1 -1
- package/dist/cli/commands/version.test.js +171 -1
- package/dist/cli/commands/version.test.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +8 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/adapters/adapter.d.ts +14 -0
- package/dist/core/adapters/adapter.d.ts.map +1 -1
- package/dist/core/adapters/adapter.js.map +1 -1
- package/dist/core/adapters/adapter.test.js +10 -0
- package/dist/core/adapters/adapter.test.js.map +1 -1
- package/dist/core/adapters/claude-code.d.ts.map +1 -1
- package/dist/core/adapters/claude-code.js +47 -10
- package/dist/core/adapters/claude-code.js.map +1 -1
- package/dist/core/adapters/claude-code.test.js +41 -20
- package/dist/core/adapters/claude-code.test.js.map +1 -1
- package/dist/core/adapters/codex.d.ts.map +1 -1
- package/dist/core/adapters/codex.js +5 -1
- package/dist/core/adapters/codex.js.map +1 -1
- package/dist/core/adapters/codex.test.js +5 -0
- package/dist/core/adapters/codex.test.js.map +1 -1
- package/dist/core/adapters/universal.d.ts.map +1 -1
- package/dist/core/adapters/universal.js +0 -1
- package/dist/core/adapters/universal.js.map +1 -1
- package/dist/core/adapters/universal.test.js +5 -0
- package/dist/core/adapters/universal.test.js.map +1 -1
- package/dist/core/assembly/context-gatherer.d.ts.map +1 -1
- package/dist/core/assembly/context-gatherer.js +5 -2
- package/dist/core/assembly/context-gatherer.js.map +1 -1
- package/dist/core/assembly/engine.d.ts.map +1 -1
- package/dist/core/assembly/engine.js +10 -2
- package/dist/core/assembly/engine.js.map +1 -1
- package/dist/core/assembly/engine.test.js +19 -0
- package/dist/core/assembly/engine.test.js.map +1 -1
- package/dist/core/assembly/knowledge-loader.d.ts +25 -0
- package/dist/core/assembly/knowledge-loader.d.ts.map +1 -1
- package/dist/core/assembly/knowledge-loader.js +75 -2
- package/dist/core/assembly/knowledge-loader.js.map +1 -1
- package/dist/core/assembly/knowledge-loader.test.js +388 -1
- package/dist/core/assembly/knowledge-loader.test.js.map +1 -1
- package/dist/core/assembly/meta-prompt-loader.d.ts +6 -0
- package/dist/core/assembly/meta-prompt-loader.d.ts.map +1 -1
- package/dist/core/assembly/meta-prompt-loader.js +41 -25
- package/dist/core/assembly/meta-prompt-loader.js.map +1 -1
- package/dist/core/assembly/preset-loader.d.ts +10 -0
- package/dist/core/assembly/preset-loader.d.ts.map +1 -1
- package/dist/core/assembly/preset-loader.js +26 -1
- package/dist/core/assembly/preset-loader.js.map +1 -1
- package/dist/core/assembly/preset-loader.test.js +65 -1
- package/dist/core/assembly/preset-loader.test.js.map +1 -1
- package/dist/core/assembly/update-mode.d.ts.map +1 -1
- package/dist/core/assembly/update-mode.js +10 -4
- package/dist/core/assembly/update-mode.js.map +1 -1
- package/dist/core/assembly/update-mode.test.js +47 -0
- package/dist/core/assembly/update-mode.test.js.map +1 -1
- package/dist/core/dependency/dependency.d.ts.map +1 -1
- package/dist/core/dependency/dependency.js +3 -2
- package/dist/core/dependency/dependency.js.map +1 -1
- package/dist/core/dependency/dependency.test.js +2 -0
- package/dist/core/dependency/dependency.test.js.map +1 -1
- package/dist/core/dependency/eligibility.js +3 -3
- package/dist/core/dependency/eligibility.js.map +1 -1
- package/dist/core/dependency/eligibility.test.js +2 -0
- package/dist/core/dependency/eligibility.test.js.map +1 -1
- package/dist/core/dependency/graph.d.ts.map +1 -1
- package/dist/core/dependency/graph.js +4 -0
- package/dist/core/dependency/graph.js.map +1 -1
- package/dist/core/dependency/graph.test.d.ts +2 -0
- package/dist/core/dependency/graph.test.d.ts.map +1 -0
- package/dist/core/dependency/graph.test.js +262 -0
- package/dist/core/dependency/graph.test.js.map +1 -0
- package/dist/core/rework/phase-selector.d.ts +24 -0
- package/dist/core/rework/phase-selector.d.ts.map +1 -0
- package/dist/core/rework/phase-selector.js +98 -0
- package/dist/core/rework/phase-selector.js.map +1 -0
- package/dist/core/rework/phase-selector.test.d.ts +2 -0
- package/dist/core/rework/phase-selector.test.d.ts.map +1 -0
- package/dist/core/rework/phase-selector.test.js +138 -0
- package/dist/core/rework/phase-selector.test.js.map +1 -0
- package/dist/dashboard/generator.d.ts +48 -17
- package/dist/dashboard/generator.d.ts.map +1 -1
- package/dist/dashboard/generator.js +75 -5
- package/dist/dashboard/generator.js.map +1 -1
- package/dist/dashboard/generator.test.js +213 -5
- package/dist/dashboard/generator.test.js.map +1 -1
- package/dist/dashboard/template.d.ts +1 -1
- package/dist/dashboard/template.d.ts.map +1 -1
- package/dist/dashboard/template.js +755 -114
- package/dist/dashboard/template.js.map +1 -1
- package/dist/e2e/knowledge.test.js +4 -3
- package/dist/e2e/knowledge.test.js.map +1 -1
- package/dist/e2e/pipeline.test.js +2 -0
- package/dist/e2e/pipeline.test.js.map +1 -1
- package/dist/e2e/rework.test.d.ts +6 -0
- package/dist/e2e/rework.test.d.ts.map +1 -0
- package/dist/e2e/rework.test.js +226 -0
- package/dist/e2e/rework.test.js.map +1 -0
- package/dist/index.js +0 -0
- package/dist/project/adopt.test.js +2 -0
- package/dist/project/adopt.test.js.map +1 -1
- package/dist/project/claude-md.js +2 -2
- package/dist/project/claude-md.js.map +1 -1
- package/dist/project/claude-md.test.js +4 -4
- package/dist/project/claude-md.test.js.map +1 -1
- package/dist/project/detector.d.ts.map +1 -1
- package/dist/project/detector.js +4 -1
- package/dist/project/detector.js.map +1 -1
- package/dist/project/frontmatter.d.ts.map +1 -1
- package/dist/project/frontmatter.js +54 -15
- package/dist/project/frontmatter.js.map +1 -1
- package/dist/project/frontmatter.test.js +2 -2
- package/dist/project/frontmatter.test.js.map +1 -1
- package/dist/state/rework-manager.d.ts +16 -0
- package/dist/state/rework-manager.d.ts.map +1 -0
- package/dist/state/rework-manager.js +126 -0
- package/dist/state/rework-manager.js.map +1 -0
- package/dist/state/rework-manager.test.d.ts +2 -0
- package/dist/state/rework-manager.test.d.ts.map +1 -0
- package/dist/state/rework-manager.test.js +191 -0
- package/dist/state/rework-manager.test.js.map +1 -0
- package/dist/state/state-manager.d.ts +13 -0
- package/dist/state/state-manager.d.ts.map +1 -1
- package/dist/state/state-manager.js +39 -2
- package/dist/state/state-manager.js.map +1 -1
- package/dist/state/state-manager.test.js +74 -1
- package/dist/state/state-manager.test.js.map +1 -1
- package/dist/state/state-migration.d.ts +23 -0
- package/dist/state/state-migration.d.ts.map +1 -0
- package/dist/state/state-migration.js +144 -0
- package/dist/state/state-migration.js.map +1 -0
- package/dist/state/state-migration.test.d.ts +2 -0
- package/dist/state/state-migration.test.d.ts.map +1 -0
- package/dist/state/state-migration.test.js +451 -0
- package/dist/state/state-migration.test.js.map +1 -0
- package/dist/types/assembly.d.ts +2 -0
- package/dist/types/assembly.d.ts.map +1 -1
- package/dist/types/dependency.d.ts +2 -2
- package/dist/types/dependency.d.ts.map +1 -1
- package/dist/types/frontmatter.d.ts +100 -7
- package/dist/types/frontmatter.d.ts.map +1 -1
- package/dist/types/frontmatter.js +89 -1
- package/dist/types/frontmatter.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/lock.d.ts +1 -1
- package/dist/types/lock.d.ts.map +1 -1
- package/dist/types/rework.d.ts +36 -0
- package/dist/types/rework.d.ts.map +1 -0
- package/dist/types/rework.js +2 -0
- package/dist/types/rework.js.map +1 -0
- package/dist/utils/errors.d.ts +1 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +8 -0
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/fs.d.ts +6 -0
- package/dist/utils/fs.d.ts.map +1 -1
- package/dist/utils/fs.js +13 -0
- package/dist/utils/fs.js.map +1 -1
- package/dist/validation/config-validator.test.d.ts +2 -0
- package/dist/validation/config-validator.test.d.ts.map +1 -0
- package/dist/validation/config-validator.test.js +210 -0
- package/dist/validation/config-validator.test.js.map +1 -0
- package/dist/validation/dependency-validator.test.d.ts +2 -0
- package/dist/validation/dependency-validator.test.d.ts.map +1 -0
- package/dist/validation/dependency-validator.test.js +215 -0
- package/dist/validation/dependency-validator.test.js.map +1 -0
- package/dist/validation/frontmatter-validator.test.d.ts +2 -0
- package/dist/validation/frontmatter-validator.test.d.ts.map +1 -0
- package/dist/validation/frontmatter-validator.test.js +371 -0
- package/dist/validation/frontmatter-validator.test.js.map +1 -0
- package/dist/validation/state-validator.test.d.ts +2 -0
- package/dist/validation/state-validator.test.d.ts.map +1 -0
- package/dist/validation/state-validator.test.js +325 -0
- package/dist/validation/state-validator.test.js.map +1 -0
- package/dist/wizard/suggestion.test.d.ts +2 -0
- package/dist/wizard/suggestion.test.d.ts.map +1 -0
- package/dist/wizard/suggestion.test.js +115 -0
- package/dist/wizard/suggestion.test.js.map +1 -0
- package/dist/wizard/wizard.d.ts.map +1 -1
- package/dist/wizard/wizard.js +34 -1
- package/dist/wizard/wizard.js.map +1 -1
- package/knowledge/core/adr-craft.md +57 -0
- package/knowledge/core/ai-memory-management.md +246 -0
- package/knowledge/core/api-design.md +8 -0
- package/knowledge/core/automated-review-tooling.md +203 -0
- package/knowledge/core/claude-md-patterns.md +254 -0
- package/knowledge/core/coding-conventions.md +246 -0
- package/knowledge/core/database-design.md +8 -0
- package/knowledge/core/design-system-tokens.md +469 -0
- package/knowledge/core/dev-environment.md +223 -0
- package/knowledge/core/domain-modeling.md +8 -0
- package/knowledge/core/eval-craft.md +1008 -0
- package/knowledge/core/git-workflow-patterns.md +200 -0
- package/knowledge/core/multi-model-review-dispatch.md +250 -0
- package/knowledge/core/operations-runbook.md +40 -225
- package/knowledge/core/project-structure-patterns.md +231 -0
- package/knowledge/core/review-step-template.md +247 -0
- package/knowledge/core/{security-review.md → security-best-practices.md} +9 -1
- package/knowledge/core/system-architecture.md +5 -1
- package/knowledge/core/task-decomposition.md +174 -36
- package/knowledge/core/task-tracking.md +225 -0
- package/knowledge/core/tech-stack-selection.md +214 -0
- package/knowledge/core/testing-strategy.md +63 -70
- package/knowledge/core/user-stories.md +69 -60
- package/knowledge/core/user-story-innovation.md +70 -0
- package/knowledge/core/ux-specification.md +18 -148
- package/knowledge/execution/enhancement-workflow.md +201 -0
- package/knowledge/execution/task-claiming-strategy.md +130 -0
- package/knowledge/execution/tdd-execution-loop.md +172 -0
- package/knowledge/execution/worktree-management.md +205 -0
- package/knowledge/finalization/apply-fixes-and-freeze.md +177 -14
- package/knowledge/finalization/developer-onboarding.md +4 -0
- package/knowledge/finalization/implementation-playbook.md +83 -5
- package/knowledge/product/gap-analysis.md +5 -1
- package/knowledge/product/prd-craft.md +55 -34
- package/knowledge/product/prd-innovation.md +12 -0
- package/knowledge/product/vision-craft.md +213 -0
- package/knowledge/review/review-adr.md +44 -0
- package/knowledge/review/{review-api-contracts.md → review-api-design.md} +47 -1
- package/knowledge/review/{review-database-schema.md → review-database-design.md} +40 -1
- package/knowledge/review/review-domain-modeling.md +38 -1
- package/knowledge/review/review-implementation-tasks.md +108 -1
- package/knowledge/review/review-methodology.md +11 -0
- package/knowledge/review/review-operations.md +67 -0
- package/knowledge/review/review-prd.md +46 -0
- package/knowledge/review/review-security.md +65 -0
- package/knowledge/review/review-system-architecture.md +32 -2
- package/knowledge/review/review-testing-strategy.md +62 -0
- package/knowledge/review/review-user-stories.md +65 -0
- package/knowledge/review/{review-ux-spec.md → review-ux-specification.md} +50 -2
- package/knowledge/review/review-vision.md +255 -0
- package/knowledge/tools/release-management.md +222 -0
- package/knowledge/tools/session-analysis.md +215 -0
- package/knowledge/tools/version-strategy.md +200 -0
- package/knowledge/validation/critical-path-analysis.md +1 -1
- package/knowledge/validation/cross-phase-consistency.md +12 -0
- package/knowledge/validation/decision-completeness.md +13 -1
- package/knowledge/validation/dependency-validation.md +12 -0
- package/knowledge/validation/scope-management.md +12 -0
- package/knowledge/validation/traceability.md +12 -0
- package/methodology/README.md +37 -0
- package/methodology/custom-defaults.yml +44 -4
- package/methodology/deep.yml +43 -3
- package/methodology/mvp.yml +43 -3
- package/package.json +4 -3
- package/pipeline/architecture/review-architecture.md +36 -13
- package/pipeline/architecture/system-architecture.md +24 -9
- package/pipeline/build/multi-agent-resume.md +245 -0
- package/pipeline/build/multi-agent-start.md +236 -0
- package/pipeline/build/new-enhancement.md +456 -0
- package/pipeline/build/quick-task.md +381 -0
- package/pipeline/build/single-agent-resume.md +210 -0
- package/pipeline/build/single-agent-start.md +207 -0
- package/pipeline/consolidation/claude-md-optimization.md +76 -0
- package/pipeline/consolidation/workflow-audit.md +77 -0
- package/pipeline/decisions/adrs.md +21 -7
- package/pipeline/decisions/review-adrs.md +32 -11
- package/pipeline/environment/ai-memory-setup.md +76 -0
- package/pipeline/environment/automated-pr-review.md +76 -0
- package/pipeline/environment/design-system.md +75 -0
- package/pipeline/environment/dev-env-setup.md +68 -0
- package/pipeline/environment/git-workflow.md +73 -0
- package/pipeline/finalization/apply-fixes-and-freeze.md +17 -6
- package/pipeline/finalization/developer-onboarding-guide.md +23 -9
- package/pipeline/finalization/implementation-playbook.md +43 -14
- package/pipeline/foundation/beads.md +71 -0
- package/pipeline/foundation/coding-standards.md +71 -0
- package/pipeline/foundation/project-structure.md +73 -0
- package/pipeline/foundation/tdd.md +64 -0
- package/pipeline/foundation/tech-stack.md +74 -0
- package/pipeline/integration/add-e2e-testing.md +80 -0
- package/pipeline/modeling/domain-modeling.md +23 -8
- package/pipeline/modeling/review-domain-modeling.md +35 -11
- package/pipeline/parity/platform-parity-review.md +90 -0
- package/pipeline/planning/implementation-plan-review.md +67 -0
- package/pipeline/planning/implementation-plan.md +110 -0
- package/pipeline/pre/create-prd.md +34 -10
- package/pipeline/pre/innovate-prd.md +46 -15
- package/pipeline/pre/innovate-user-stories.md +47 -14
- package/pipeline/pre/review-prd.md +29 -8
- package/pipeline/pre/review-user-stories.md +34 -8
- package/pipeline/pre/user-stories.md +23 -8
- package/pipeline/quality/create-evals.md +106 -0
- package/pipeline/quality/operations.md +46 -17
- package/pipeline/quality/review-operations.md +32 -11
- package/pipeline/quality/review-security.md +34 -12
- package/pipeline/quality/review-testing.md +37 -14
- package/pipeline/quality/security.md +36 -10
- package/pipeline/quality/story-tests.md +75 -0
- package/pipeline/specification/api-contracts.md +28 -8
- package/pipeline/specification/database-schema.md +29 -8
- package/pipeline/specification/review-api.md +32 -11
- package/pipeline/specification/review-database.md +32 -11
- package/pipeline/specification/review-ux.md +34 -12
- package/pipeline/specification/ux-spec.md +35 -13
- package/pipeline/validation/critical-path-walkthrough.md +45 -11
- package/pipeline/validation/cross-phase-consistency.md +45 -11
- package/pipeline/validation/decision-completeness.md +45 -11
- package/pipeline/validation/dependency-graph-validation.md +46 -11
- package/pipeline/validation/implementability-dry-run.md +46 -11
- package/pipeline/validation/scope-creep-check.md +46 -11
- package/pipeline/validation/traceability-matrix.md +51 -11
- package/pipeline/vision/create-vision.md +267 -0
- package/pipeline/vision/innovate-vision.md +157 -0
- package/pipeline/vision/review-vision.md +149 -0
- package/skills/multi-model-dispatch/SKILL.md +326 -0
- package/skills/scaffold-pipeline/SKILL.md +210 -0
- package/skills/scaffold-runner/SKILL.md +619 -0
- package/pipeline/planning/implementation-tasks.md +0 -57
- package/pipeline/planning/review-tasks.md +0 -38
- package/pipeline/quality/testing-strategy.md +0 -42
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd
|
|
3
|
+
description: Define testing conventions and TDD standards for the tech stack
|
|
4
|
+
summary: "Defines your testing approach — which types of tests to write at each layer, coverage targets, what to mock and what not to, test data patterns — so agents write the right tests from the start."
|
|
5
|
+
phase: "foundation"
|
|
6
|
+
order: 240
|
|
7
|
+
dependencies: [coding-standards]
|
|
8
|
+
outputs: [docs/tdd-standards.md]
|
|
9
|
+
reads: [create-prd, system-architecture]
|
|
10
|
+
conditional: null
|
|
11
|
+
knowledge-base: [testing-strategy]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
Define the project's testing conventions, TDD workflow, test pyramid, coverage
|
|
16
|
+
goals, quality gates, and testing patterns. This tells agents how to test the
|
|
17
|
+
code they write and establishes testing standards before implementation begins.
|
|
18
|
+
Includes concrete reference examples for each test category using the project's
|
|
19
|
+
actual test framework and assertion library.
|
|
20
|
+
|
|
21
|
+
## Inputs
|
|
22
|
+
- docs/tech-stack.md (required) — determines test runner, assertion library, and framework-specific testing patterns
|
|
23
|
+
- docs/coding-standards.md (required) — naming conventions and code patterns that apply to test files
|
|
24
|
+
- docs/plan.md (required) — features inform which testing scenarios matter most
|
|
25
|
+
- docs/system-architecture.md (optional) — if available, layers to test
|
|
26
|
+
- docs/domain-models/ (optional) — if available, business rules to verify
|
|
27
|
+
- docs/adrs/ (optional) — if available, testing technology choices
|
|
28
|
+
|
|
29
|
+
## Expected Outputs
|
|
30
|
+
- docs/tdd-standards.md — testing approach with coverage goals and patterns
|
|
31
|
+
|
|
32
|
+
## Quality Criteria
|
|
33
|
+
- (mvp) Test pyramid defined with coverage targets per layer
|
|
34
|
+
- (mvp) Testing patterns specified for each layer (unit, integration, e2e)
|
|
35
|
+
- (mvp) Quality gates defined (what must pass before merge)
|
|
36
|
+
- Edge cases from domain invariants are test scenarios
|
|
37
|
+
- (deep) Performance testing approach for critical paths
|
|
38
|
+
- (deep) Contract testing strategy documented for service boundaries
|
|
39
|
+
|
|
40
|
+
## Methodology Scaling
|
|
41
|
+
- **deep**: Comprehensive strategy. Test matrix by layer and component. Specific
|
|
42
|
+
test patterns per architecture pattern. Performance benchmarks. CI integration.
|
|
43
|
+
Test data strategy. Mutation testing approach.
|
|
44
|
+
- **mvp**: Test pyramid overview. Key testing patterns. What must pass before deploy.
|
|
45
|
+
- **custom:depth(1-5)**: Depth 1-2: test pyramid overview with key patterns and example test for each layer. Depth 3: add per-layer test patterns, coverage targets, CI integration, and test data strategy. Depth 4: add performance benchmarks, mutation testing approach, and cross-module integration patterns. Depth 5: full suite with contract testing, visual regression strategy, and automated quality gate calibration.
|
|
46
|
+
|
|
47
|
+
## Mode Detection
|
|
48
|
+
Check for docs/tdd-standards.md. If it exists, operate in update mode: read
|
|
49
|
+
existing strategy and diff against current tech stack, coding standards, and
|
|
50
|
+
PRD. Preserve testing patterns, layer definitions, custom assertions, and test
|
|
51
|
+
data strategy. Update coverage goals if PRD scope or tech stack changed.
|
|
52
|
+
Re-generate only sections affected by upstream changes — do not rewrite
|
|
53
|
+
stable layer definitions or custom assertion patterns.
|
|
54
|
+
|
|
55
|
+
## Update Mode Specifics
|
|
56
|
+
- **Detect prior artifact**: docs/tdd-standards.md exists
|
|
57
|
+
- **Preserve**: test pyramid layer definitions, custom assertion helpers, test
|
|
58
|
+
data strategy, quality gate thresholds, framework-specific patterns
|
|
59
|
+
- **Triggers for update**: tech-stack.md changed (new test runner or framework),
|
|
60
|
+
coding-standards.md changed (naming conventions), PRD scope expanded (new
|
|
61
|
+
features needing test scenarios)
|
|
62
|
+
- **Conflict resolution**: if tech stack changed test runner, migrate pattern
|
|
63
|
+
examples to new runner syntax; preserve coverage targets unless user requests
|
|
64
|
+
adjustment
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-stack
|
|
3
|
+
description: Research and document tech stack decisions with rationale for each choice
|
|
4
|
+
summary: "Researches technology options for your project — language, framework, database, hosting, auth — evaluates each against your requirements, and documents every choice with rationale and alternatives considered."
|
|
5
|
+
phase: "foundation"
|
|
6
|
+
order: 220
|
|
7
|
+
dependencies: []
|
|
8
|
+
outputs: [docs/tech-stack.md]
|
|
9
|
+
reads: [create-prd]
|
|
10
|
+
conditional: null
|
|
11
|
+
knowledge-base: [tech-stack-selection, multi-model-review-dispatch]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
Research frameworks, languages, databases, and tools that fit the PRD requirements,
|
|
16
|
+
then document every technology choice with rationale, alternatives considered, and
|
|
17
|
+
AI compatibility notes. This becomes the definitive technology reference that all
|
|
18
|
+
subsequent phases depend on for framework-specific decisions.
|
|
19
|
+
|
|
20
|
+
At depth 4+, dispatches to external AI models (Codex, Gemini) for
|
|
21
|
+
independent technology research — different models have different knowledge
|
|
22
|
+
about ecosystem maturity, alternatives, and gotchas.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
- docs/plan.md (required) — PRD features, integrations, and technical requirements
|
|
26
|
+
- User preferences (gathered via questions) — language, framework, deployment target, constraints
|
|
27
|
+
|
|
28
|
+
## Expected Outputs
|
|
29
|
+
- docs/tech-stack.md — complete technology reference with architecture overview,
|
|
30
|
+
backend, database, frontend (if applicable), infrastructure, developer tooling,
|
|
31
|
+
and third-party services sections, plus a Quick Reference dependency list
|
|
32
|
+
- docs/reviews/tech-stack/review-summary.md (depth 4+) — multi-model research synthesis
|
|
33
|
+
- docs/reviews/tech-stack/codex-review.json (depth 4+, if available) — raw Codex recommendations
|
|
34
|
+
- docs/reviews/tech-stack/gemini-review.json (depth 4+, if available) — raw Gemini recommendations
|
|
35
|
+
|
|
36
|
+
## Quality Criteria
|
|
37
|
+
- (mvp) Every PRD feature cross-referenced against the proposed stack (no capability gaps)
|
|
38
|
+
- (mvp) Each technology choice documents what, why, why not alternatives, and AI compatibility
|
|
39
|
+
- (mvp) Architecture pattern chosen and justified (monolith vs. microservices, MVC vs. clean, etc.)
|
|
40
|
+
- (mvp) No speculative technologies ("might need someday")
|
|
41
|
+
- (mvp) Every choice is a decision, not a menu of options
|
|
42
|
+
- (mvp) Quick Reference section lists every dependency with version
|
|
43
|
+
- (deep) Each technology choice documents AI compatibility assessment (training data availability, convention strength); total direct dependencies counted and justified
|
|
44
|
+
- (depth 4+) Multi-model recommendations cross-referenced — agreements flagged as high-confidence, disagreements flagged for human decision
|
|
45
|
+
|
|
46
|
+
## Methodology Scaling
|
|
47
|
+
- **deep**: Comprehensive research with competitive analysis for each category.
|
|
48
|
+
Detailed AI compatibility notes per library. Version pinning with upgrade
|
|
49
|
+
strategy. Infrastructure and DevOps recommendations. 10-15 pages. Multi-model
|
|
50
|
+
research dispatched to Codex and Gemini if available, with graceful fallback
|
|
51
|
+
to Claude-only enhanced research.
|
|
52
|
+
- **mvp**: Core stack decisions only (language, framework, database, test runner).
|
|
53
|
+
Brief rationale. Quick Reference with versions. 2-3 pages.
|
|
54
|
+
- **custom:depth(1-5)**: Depth 1-2: MVP decisions. Depth 3: add infrastructure
|
|
55
|
+
and tooling. Depth 4: add AI compatibility analysis + one external model
|
|
56
|
+
(if CLI available). Depth 5: full competitive analysis and upgrade strategy
|
|
57
|
+
+ multi-model with cross-referencing.
|
|
58
|
+
|
|
59
|
+
## Mode Detection
|
|
60
|
+
Update mode if docs/tech-stack.md exists. In update mode: never change a
|
|
61
|
+
technology choice without user approval, preserve version pins exactly, update
|
|
62
|
+
Quick Reference to match any structural changes. If multi-model artifacts exist
|
|
63
|
+
under docs/reviews/tech-stack/, preserve prior recommendation dispositions.
|
|
64
|
+
|
|
65
|
+
## Update Mode Specifics
|
|
66
|
+
- **Detect prior artifact**: docs/tech-stack.md exists
|
|
67
|
+
- **Preserve**: all technology choices and their rationale, version pins,
|
|
68
|
+
Quick Reference dependency list, multi-model review artifacts and dispositions
|
|
69
|
+
- **Triggers for update**: PRD requirements changed (new integrations needed),
|
|
70
|
+
user requests technology swap, security vulnerability in a dependency,
|
|
71
|
+
new PRD features require capabilities not covered by current stack
|
|
72
|
+
- **Conflict resolution**: if a new requirement conflicts with an existing
|
|
73
|
+
technology choice, document the conflict and propose alternatives with
|
|
74
|
+
migration cost — never silently swap a technology
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-e2e-testing
|
|
3
|
+
description: Configure end-to-end testing (Playwright for web, Maestro for mobile) based on detected project platform
|
|
4
|
+
summary: "Detects whether your project is web or mobile, then configures Playwright (web) or Maestro (mobile) with a working smoke test, baseline screenshots, and guidance on when to use E2E vs. unit tests."
|
|
5
|
+
phase: "integration"
|
|
6
|
+
order: 410
|
|
7
|
+
dependencies: [git-workflow, tdd]
|
|
8
|
+
outputs: [tests/screenshots/, maestro/]
|
|
9
|
+
reads: [coding-standards, user-stories]
|
|
10
|
+
conditional: "if-needed"
|
|
11
|
+
knowledge-base: [testing-strategy]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
Automatically detects project platform type from tech-stack.md and package.json
|
|
16
|
+
to determine which E2E framework(s) to configure. Configures Playwright for web
|
|
17
|
+
frontends, Maestro for mobile/Expo apps, or both for multi-platform projects.
|
|
18
|
+
Self-skips for backend-only or library projects with no UI.
|
|
19
|
+
|
|
20
|
+
## Inputs
|
|
21
|
+
- docs/tech-stack.md (required) — frontend framework and rendering approach
|
|
22
|
+
- docs/tdd-standards.md (required) — E2E placeholder section to fill
|
|
23
|
+
- docs/coding-standards.md (required for mobile) — testID conventions to add
|
|
24
|
+
- CLAUDE.md (required) — browser/mobile testing section to add
|
|
25
|
+
- package.json (read-only) — dependency detection for platform and brownfield signals
|
|
26
|
+
- docs/user-stories.md (optional) — key user flows for visual verification
|
|
27
|
+
|
|
28
|
+
## Expected Outputs
|
|
29
|
+
Outputs vary by detected platform:
|
|
30
|
+
- (web) Playwright config file, tests/screenshots/ directories, CLAUDE.md and
|
|
31
|
+
tdd-standards.md browser testing sections
|
|
32
|
+
- (mobile) maestro/ directory with config, flows, shared sub-flows, screenshots,
|
|
33
|
+
package.json test scripts, coding-standards.md testID conventions, CLAUDE.md
|
|
34
|
+
and tdd-standards.md mobile testing sections
|
|
35
|
+
- (both) All of the above
|
|
36
|
+
|
|
37
|
+
## Quality Criteria
|
|
38
|
+
- (mvp) Platform detection is explicit and logged (web, mobile, both, or skip)
|
|
39
|
+
- (mvp) (web) Playwright config uses framework-specific dev server command and port
|
|
40
|
+
- (mvp) (web) Smoke test passes (navigate, screenshot, close)
|
|
41
|
+
- (mvp) (mobile) Maestro CLI installed, sample flow executes, screenshot captured
|
|
42
|
+
- (mobile) testID naming convention defined and documented
|
|
43
|
+
- (mvp) E2E section in tdd-standards.md distinguishes when to use E2E vs unit tests
|
|
44
|
+
- Baseline screenshots committed, current screenshots gitignored
|
|
45
|
+
- CLAUDE.md contains browser/mobile testing section
|
|
46
|
+
- tdd-standards.md E2E section updated with when-to-use guidance
|
|
47
|
+
- (deep) CI integration configured for E2E test execution
|
|
48
|
+
- (deep) Sub-flows defined for common user journeys
|
|
49
|
+
|
|
50
|
+
## Methodology Scaling
|
|
51
|
+
- **deep**: Full setup for all detected platforms. All visual testing patterns,
|
|
52
|
+
baseline management, responsive verification, CI integration, sub-flows for
|
|
53
|
+
common journeys, and comprehensive documentation updates.
|
|
54
|
+
- **mvp**: Basic config and smoke test for detected platform. Minimal docs
|
|
55
|
+
updates. Two viewports for web, single platform for mobile.
|
|
56
|
+
- **custom:depth(1-5)**: Depth 1-2: config + smoke test. Depth 3: add patterns,
|
|
57
|
+
naming, testID rules. Depth 4: add CI integration, both mobile platforms.
|
|
58
|
+
Depth 5: full suite with baseline management and sub-flows.
|
|
59
|
+
|
|
60
|
+
## Conditional Evaluation
|
|
61
|
+
Enable when: tech-stack.md indicates a web frontend (Playwright) or mobile app
|
|
62
|
+
(Maestro). Detection signals: React/Vue/Angular/Svelte in tech-stack (web),
|
|
63
|
+
Expo/React Native (mobile), or explicit UI layer in architecture. Self-skips for
|
|
64
|
+
backend-only or library projects with no UI.
|
|
65
|
+
|
|
66
|
+
## Mode Detection
|
|
67
|
+
Check for existing E2E config: Playwright config file (playwright.config.ts or
|
|
68
|
+
.js) and/or maestro/ directory. If either exists, run in update mode for that
|
|
69
|
+
platform. Preserve baseline screenshots, custom viewports, existing flows,
|
|
70
|
+
and environment variables.
|
|
71
|
+
|
|
72
|
+
## Update Mode Specifics
|
|
73
|
+
- **Detect prior artifact**: playwright.config.ts/.js exists and/or maestro/
|
|
74
|
+
directory exists with flow files
|
|
75
|
+
- **Preserve**: baseline screenshots, custom viewports, existing test flows,
|
|
76
|
+
environment variables, testID naming conventions
|
|
77
|
+
- **Triggers for update**: new user stories with UI interactions added,
|
|
78
|
+
platform targets changed in tech-stack.md, tdd-standards.md E2E section updated
|
|
79
|
+
- **Conflict resolution**: preserve existing baselines, add new flows alongside
|
|
80
|
+
existing ones rather than replacing
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: domain-modeling
|
|
3
3
|
description: Deep domain modeling across all identified project domains
|
|
4
|
+
summary: "Analyzes your user stories to identify the core concepts in your project (entities, their relationships, the rules that must always hold true), and establishes a shared vocabulary that all docs and code will use."
|
|
4
5
|
phase: "modeling"
|
|
5
|
-
order:
|
|
6
|
+
order: 510
|
|
6
7
|
dependencies: [review-user-stories]
|
|
7
8
|
outputs: [docs/domain-models/]
|
|
9
|
+
reads: [coding-standards, innovate-user-stories]
|
|
8
10
|
conditional: null
|
|
9
11
|
knowledge-base: [domain-modeling]
|
|
10
12
|
---
|
|
@@ -17,7 +19,7 @@ Use user stories and their acceptance criteria to discover entities, events,
|
|
|
17
19
|
and aggregate boundaries. User actions reveal the domain model.
|
|
18
20
|
|
|
19
21
|
## Inputs
|
|
20
|
-
- docs/
|
|
22
|
+
- docs/plan.md (required) — requirements defining the problem space
|
|
21
23
|
- docs/reviews/pre-review-prd.md (optional) — review findings for context
|
|
22
24
|
- docs/prd-innovation.md (optional) — innovation findings and approved enhancements
|
|
23
25
|
- docs/user-stories.md (required) — user stories with acceptance criteria for domain discovery
|
|
@@ -33,13 +35,15 @@ and aggregate boundaries. User actions reveal the domain model.
|
|
|
33
35
|
- docs/domain-models/index.md — overview of all domains and their relationships
|
|
34
36
|
|
|
35
37
|
## Quality Criteria
|
|
36
|
-
- Every PRD feature maps to at least one domain
|
|
37
|
-
- Entity relationships are explicit (not implied)
|
|
38
|
-
-
|
|
39
|
-
- Domain events cover all state transitions
|
|
40
|
-
-
|
|
38
|
+
- (mvp) Every PRD feature maps to at least one domain
|
|
39
|
+
- (mvp) Entity relationships are explicit (not implied)
|
|
40
|
+
- (mvp) Each aggregate boundary documents: the invariant it protects, the consistency boundary it enforces, and why included entities must change together
|
|
41
|
+
- (deep) Domain events cover all state transitions
|
|
42
|
+
- (deep) Each invariant is phrased as a boolean condition checkable in code (e.g., `order.total >= 0`, `user.email matches /^[^@]+@[^@]+$/`), not a narrative description
|
|
41
43
|
- Ubiquitous language is consistent across all domain models
|
|
42
|
-
-
|
|
44
|
+
- (mvp) All entity and concept names used consistently across domain model files (ubiquitous language enforced)
|
|
45
|
+
- (deep) Cross-aggregate event flows documented for every state change that crosses aggregate boundaries
|
|
46
|
+
- (deep) Cross-domain relationships are documented at context boundaries
|
|
43
47
|
|
|
44
48
|
## Methodology Scaling
|
|
45
49
|
- **deep**: Full DDD tactical patterns. Detailed entity specs with TypeScript-style
|
|
@@ -55,3 +59,14 @@ and aggregate boundaries. User actions reveal the domain model.
|
|
|
55
59
|
If docs/domain-models/ exists, operate in update mode: read existing models,
|
|
56
60
|
identify changes needed based on updated PRD or new understanding. Preserve
|
|
57
61
|
existing decisions unless explicitly revisiting them.
|
|
62
|
+
|
|
63
|
+
## Update Mode Specifics
|
|
64
|
+
- **Detect prior artifact**: docs/domain-models/ directory exists with model files
|
|
65
|
+
- **Preserve**: existing entity definitions, aggregate boundaries, domain events,
|
|
66
|
+
invariants, ubiquitous language terms, bounded context interfaces
|
|
67
|
+
- **Triggers for update**: PRD features added or changed, user stories revealed
|
|
68
|
+
new domain concepts, innovation suggestions accepted new capabilities,
|
|
69
|
+
implementation revealed modeling gaps
|
|
70
|
+
- **Conflict resolution**: if a new feature introduces an entity name that
|
|
71
|
+
conflicts with existing ubiquitous language, resolve by renaming the new
|
|
72
|
+
entity and documenting the distinction; never silently merge aggregates
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-domain-modeling
|
|
3
3
|
description: Review domain models for completeness, consistency, and downstream readiness
|
|
4
|
+
summary: "Verifies every PRD feature maps to a domain entity, checks that business rules are enforceable, and ensures the shared vocabulary is consistent across all project files."
|
|
4
5
|
phase: "modeling"
|
|
5
|
-
order:
|
|
6
|
+
order: 520
|
|
6
7
|
dependencies: [domain-modeling]
|
|
7
|
-
outputs: [docs/reviews/review-domain-modeling.md]
|
|
8
|
+
outputs: [docs/reviews/review-domain-modeling.md, docs/reviews/domain-modeling/review-summary.md, docs/reviews/domain-modeling/codex-review.json, docs/reviews/domain-modeling/gemini-review.json]
|
|
8
9
|
conditional: null
|
|
9
|
-
knowledge-base: [review-methodology, review-domain-modeling]
|
|
10
|
+
knowledge-base: [review-methodology, review-domain-modeling, multi-model-review-dispatch, review-step-template]
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
## Purpose
|
|
@@ -14,28 +15,51 @@ Deep multi-pass review of the domain models, targeting the specific failure mode
|
|
|
14
15
|
of domain modeling artifacts. Identify issues, create a fix plan, execute fixes,
|
|
15
16
|
and re-validate.
|
|
16
17
|
|
|
18
|
+
At depth 4+, dispatches to external AI models (Codex, Gemini) for
|
|
19
|
+
independent review validation.
|
|
20
|
+
|
|
17
21
|
## Inputs
|
|
18
22
|
- docs/domain-models/ (required) — domain models to review
|
|
19
|
-
- docs/
|
|
23
|
+
- docs/plan.md (required) — source requirements for coverage checking
|
|
20
24
|
|
|
21
25
|
## Expected Outputs
|
|
22
26
|
- docs/reviews/review-domain-modeling.md — review findings, fix plan, and resolution log
|
|
23
27
|
- docs/domain-models/ — updated with fixes
|
|
28
|
+
- docs/reviews/domain-modeling/review-summary.md (depth 4+) — multi-model review synthesis
|
|
29
|
+
- docs/reviews/domain-modeling/codex-review.json (depth 4+, if available) — raw Codex findings
|
|
30
|
+
- docs/reviews/domain-modeling/gemini-review.json (depth 4+, if available) — raw Gemini findings
|
|
24
31
|
|
|
25
32
|
## Quality Criteria
|
|
26
|
-
- All review passes executed with findings documented
|
|
27
|
-
- Every finding categorized by severity (P0-P3)
|
|
28
|
-
- Fix plan created for P0 and P1 findings
|
|
29
|
-
- Fixes applied and re-validated
|
|
30
|
-
- Downstream readiness confirmed (decisions phase can proceed)
|
|
33
|
+
- (mvp) All review passes executed with findings documented
|
|
34
|
+
- (mvp) Every finding categorized by severity (P0-P3)
|
|
35
|
+
- (mvp) Fix plan created for P0 and P1 findings
|
|
36
|
+
- (mvp) Fixes applied and re-validated
|
|
37
|
+
- (mvp) Downstream readiness confirmed (decisions phase can proceed)
|
|
38
|
+
- (mvp) Entity coverage verified (every PRD feature maps to at least one entity)
|
|
39
|
+
- (deep) Aggregate boundaries verified (each aggregate protects at least one invariant)
|
|
40
|
+
- (deep) Ubiquitous language consistency verified across all domain model files
|
|
41
|
+
- (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
|
|
31
42
|
|
|
32
43
|
## Methodology Scaling
|
|
33
44
|
- **deep**: All review passes from the knowledge base. Full findings report
|
|
34
|
-
with severity categorization. Fixes applied and re-validated.
|
|
45
|
+
with severity categorization. Fixes applied and re-validated. Multi-model
|
|
46
|
+
review dispatched to Codex and Gemini if available, with graceful fallback
|
|
47
|
+
to Claude-only enhanced review.
|
|
35
48
|
- **mvp**: Quick consistency check. Focus on blocking issues only.
|
|
36
49
|
- **custom:depth(1-5)**: Depth 1-2: blocking issues only. Depth 3: add coverage
|
|
37
|
-
and consistency passes. Depth 4
|
|
50
|
+
and consistency passes. Depth 4: full multi-pass review + one external model
|
|
51
|
+
(if CLI available). Depth 5: full multi-pass review + multi-model with
|
|
52
|
+
reconciliation.
|
|
38
53
|
|
|
39
54
|
## Mode Detection
|
|
40
55
|
If docs/reviews/review-domain-modeling.md exists, this is a re-review. Read previous
|
|
41
56
|
findings, check which were addressed, run review passes again on updated models.
|
|
57
|
+
If multi-model review artifacts exist under docs/reviews/domain-modeling/,
|
|
58
|
+
preserve prior findings still valid.
|
|
59
|
+
|
|
60
|
+
## Update Mode Specifics
|
|
61
|
+
|
|
62
|
+
- **Detect**: `docs/reviews/review-domain-modeling.md` exists with tracking comment
|
|
63
|
+
- **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
|
|
64
|
+
- **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
|
|
65
|
+
- **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: platform-parity-review
|
|
3
|
+
description: Audit all documentation for platform-specific gaps across target platforms
|
|
4
|
+
summary: "Audits all documentation for platform-specific gaps — features missing on one platform, input pattern differences (touch vs. mouse), and platform-specific testing coverage."
|
|
5
|
+
phase: "parity"
|
|
6
|
+
order: 1010
|
|
7
|
+
dependencies: [review-architecture, review-database, review-api, review-ux]
|
|
8
|
+
outputs: [docs/reviews/platform-parity-review.md, docs/reviews/platform-parity/review-summary.md, docs/reviews/platform-parity/codex-review.json, docs/reviews/platform-parity/gemini-review.json]
|
|
9
|
+
reads: [user-stories, coding-standards, tech-stack, project-structure, tdd, design-system]
|
|
10
|
+
conditional: "if-needed"
|
|
11
|
+
knowledge-base: [cross-phase-consistency, multi-model-review-dispatch, review-step-template, review-methodology]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
When the project targets multiple platforms (web, iOS, Android, desktop), audit
|
|
16
|
+
all documentation to ensure every target platform is thoroughly addressed.
|
|
17
|
+
Identify gaps where one platform was assumed but another was not considered,
|
|
18
|
+
verify feature parity across targets, and ensure platform-specific testing,
|
|
19
|
+
input patterns, and UX considerations are documented.
|
|
20
|
+
|
|
21
|
+
At depth 4+, dispatches to external AI models (Codex, Gemini) for
|
|
22
|
+
independent platform gap analysis.
|
|
23
|
+
|
|
24
|
+
## Conditional Evaluation
|
|
25
|
+
This step is conditional ("if-needed"). Enable when:
|
|
26
|
+
- The project targets 2+ platforms (e.g., web + mobile, iOS + Android)
|
|
27
|
+
- `docs/tech-stack.md` lists a cross-platform framework (React Native, Flutter, Expo)
|
|
28
|
+
- `docs/plan.md` mentions multiple deployment targets
|
|
29
|
+
|
|
30
|
+
Skip when the project targets a single platform only.
|
|
31
|
+
|
|
32
|
+
## Inputs
|
|
33
|
+
- docs/plan.md (required) — target platforms and version requirements
|
|
34
|
+
- docs/tech-stack.md (required) — cross-platform framework and build approach
|
|
35
|
+
- docs/user-stories.md (required) — stories to check for platform coverage
|
|
36
|
+
- docs/coding-standards.md (required) — platform-specific conventions
|
|
37
|
+
- docs/project-structure.md (optional) — platform-specific file organization
|
|
38
|
+
- docs/tdd-standards.md (optional) — platform-specific testing approach
|
|
39
|
+
- docs/design-system.md (optional) — responsive breakpoints and platform patterns
|
|
40
|
+
- docs/implementation-plan.md (optional — not available, runs before implementation-plan) — tasks covering each platform
|
|
41
|
+
- CLAUDE.md (required) — platform-specific workflow notes
|
|
42
|
+
|
|
43
|
+
## Expected Outputs
|
|
44
|
+
- docs/reviews/platform-parity-review.md — platform gap analysis report with
|
|
45
|
+
findings per document, feature parity matrix, and recommended fixes
|
|
46
|
+
- docs/reviews/platform-parity/review-summary.md (depth 4+) — multi-model review synthesis
|
|
47
|
+
- docs/reviews/platform-parity/codex-review.json (depth 4+, if available) — raw Codex findings
|
|
48
|
+
- docs/reviews/platform-parity/gemini-review.json (depth 4+, if available) — raw Gemini findings
|
|
49
|
+
|
|
50
|
+
## Quality Criteria
|
|
51
|
+
- (mvp) All target platforms identified from PRD and tech-stack.md
|
|
52
|
+
- (mvp) Every user story checked for platform-specific acceptance criteria
|
|
53
|
+
- (deep) Feature parity matrix shows which features work on which platforms
|
|
54
|
+
- (deep) Input pattern differences documented (touch vs. mouse, keyboard shortcuts, gestures)
|
|
55
|
+
- (deep) Platform-specific testing documented (Playwright for web, Maestro for mobile)
|
|
56
|
+
- (deep) Navigation patterns appropriate per platform (sidebar vs. tab bar, etc.)
|
|
57
|
+
- (deep) Offline/connectivity handling addressed per platform (if applicable)
|
|
58
|
+
- (deep) Web version is treated as first-class (not afterthought) if PRD specifies it
|
|
59
|
+
- Fix plan documented for all P0/P1 findings with specific document and section to update
|
|
60
|
+
- (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
|
|
61
|
+
|
|
62
|
+
## Methodology Scaling
|
|
63
|
+
- **deep**: Comprehensive platform audit across all documents, feature parity
|
|
64
|
+
matrix, input pattern analysis, navigation pattern review, offline handling,
|
|
65
|
+
accessibility per platform, and detailed fix recommendations. Multi-model
|
|
66
|
+
review dispatched to Codex and Gemini if available, with graceful fallback
|
|
67
|
+
to Claude-only enhanced review.
|
|
68
|
+
- **mvp**: Quick check of user stories and tech-stack for platform coverage.
|
|
69
|
+
Identify top 3 platform gaps. Skip detailed feature parity matrix.
|
|
70
|
+
- **custom:depth(1-5)**: Depth 1-2: user stories platform check. Depth 3: add
|
|
71
|
+
tech-stack and coding-standards. Depth 4: add feature parity matrix + one
|
|
72
|
+
external model (if CLI available). Depth 5: full suite across all documents
|
|
73
|
+
+ multi-model with reconciliation.
|
|
74
|
+
|
|
75
|
+
## Mode Detection
|
|
76
|
+
Update mode if docs/reviews/platform-parity-review.md exists. In update mode:
|
|
77
|
+
re-run audit against current documents, preserve prior findings still valid,
|
|
78
|
+
note which gaps have been addressed since last review. If multi-model review
|
|
79
|
+
artifacts exist under docs/reviews/platform-parity/, preserve prior findings
|
|
80
|
+
still valid.
|
|
81
|
+
|
|
82
|
+
## Update Mode Specifics
|
|
83
|
+
- **Detect prior artifact**: docs/reviews/platform-parity-review.md exists
|
|
84
|
+
- **Preserve**: existing parity findings still valid, platform-specific decisions,
|
|
85
|
+
feature parity matrix entries for unchanged features
|
|
86
|
+
- **Triggers for update**: specification changes (tech-stack.md, user-stories.md,
|
|
87
|
+
system-architecture.md updated), new target platform added to PRD, platform-specific
|
|
88
|
+
coding standards changed
|
|
89
|
+
- **Conflict resolution**: preserve platform-specific decisions already made,
|
|
90
|
+
merge new findings alongside existing ones rather than replacing
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-plan-review
|
|
3
|
+
description: Review implementation tasks for coverage, feasibility, and multi-model validation
|
|
4
|
+
summary: "Verifies every feature has implementation tasks, no task is too large for one session, the dependency graph has no cycles, and every acceptance criterion maps to at least one task."
|
|
5
|
+
phase: "planning"
|
|
6
|
+
order: 1220
|
|
7
|
+
dependencies: [implementation-plan]
|
|
8
|
+
outputs: [docs/reviews/review-tasks.md, docs/reviews/implementation-plan/task-coverage.json, docs/reviews/implementation-plan/review-summary.md]
|
|
9
|
+
conditional: null
|
|
10
|
+
knowledge-base: [review-methodology, review-implementation-tasks, task-decomposition, multi-model-review-dispatch, review-step-template]
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
Review implementation tasks targeting task-specific failure modes: architecture
|
|
15
|
+
coverage gaps, missing dependencies, tasks too large or too vague for agents,
|
|
16
|
+
agent executability violations, critical path inaccuracy, and invalid
|
|
17
|
+
parallelization assumptions. At depth 4+,
|
|
18
|
+
dispatch to independent AI models (Codex/Gemini CLIs) for multi-model validation
|
|
19
|
+
and produce a structured coverage matrix and review summary.
|
|
20
|
+
|
|
21
|
+
## Inputs
|
|
22
|
+
- docs/implementation-plan.md (required) — tasks to review
|
|
23
|
+
- docs/system-architecture.md (required) — for coverage checking
|
|
24
|
+
- docs/domain-models/ (required) — for completeness
|
|
25
|
+
- docs/user-stories.md (required) — for AC coverage mapping
|
|
26
|
+
- docs/plan.md (required) — for traceability
|
|
27
|
+
- docs/project-structure.md (required) — for file contention analysis
|
|
28
|
+
- docs/tdd-standards.md (required) — for test requirement verification
|
|
29
|
+
|
|
30
|
+
## Expected Outputs
|
|
31
|
+
- docs/reviews/review-tasks.md — findings and resolution log
|
|
32
|
+
- docs/implementation-plan.md — updated with fixes
|
|
33
|
+
- docs/reviews/implementation-plan/task-coverage.json — AC-to-task coverage matrix (depth 3+)
|
|
34
|
+
- docs/reviews/implementation-plan/review-summary.md — multi-model review summary (depth 4+)
|
|
35
|
+
- docs/reviews/implementation-plan/codex-review.json — raw Codex findings (depth 4+, if available)
|
|
36
|
+
- docs/reviews/implementation-plan/gemini-review.json — raw Gemini findings (depth 4+, if available)
|
|
37
|
+
|
|
38
|
+
## Quality Criteria
|
|
39
|
+
- (mvp) Architecture coverage verified (every component has tasks)
|
|
40
|
+
- (mvp) Dependency graph is valid DAG
|
|
41
|
+
- (mvp) No task is too large for a single agent session
|
|
42
|
+
- (deep) Critical path is accurate
|
|
43
|
+
- (deep) Parallelization assumptions are valid
|
|
44
|
+
- (deep) Every acceptance criterion maps to at least one task (100% AC coverage)
|
|
45
|
+
- (deep) Every task has verb-first description, >= 1 input file reference, >= 1 acceptance criterion, and defined output artifact
|
|
46
|
+
- (mvp) Every task complies with agent executability rules (3-file, 150-line, single-concern, decision-free, test co-location)
|
|
47
|
+
- (mvp) Tasks exceeding limits have explicit `<!-- agent-size-exception -->` justification
|
|
48
|
+
- (depth 4+) Independent model reviews completed and reconciled
|
|
49
|
+
|
|
50
|
+
## Methodology Scaling
|
|
51
|
+
- **deep**: Full multi-pass review with multi-model validation. AC coverage
|
|
52
|
+
matrix. Independent Codex/Gemini dispatches. Detailed reconciliation report.
|
|
53
|
+
- **mvp**: Coverage check only. No external model dispatch.
|
|
54
|
+
- **custom:depth(1-5)**: Depth 1-2: coverage check. Depth 3: add dependency
|
|
55
|
+
analysis and AC coverage matrix. Depth 4: add one external model. Depth 5:
|
|
56
|
+
full multi-model with reconciliation.
|
|
57
|
+
|
|
58
|
+
## Mode Detection
|
|
59
|
+
Re-review mode if previous review exists. If multi-model review artifacts exist
|
|
60
|
+
under docs/reviews/implementation-plan/, preserve prior findings still valid.
|
|
61
|
+
|
|
62
|
+
## Update Mode Specifics
|
|
63
|
+
|
|
64
|
+
- **Detect**: `docs/reviews/review-implementation-plan.md` exists with tracking comment
|
|
65
|
+
- **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
|
|
66
|
+
- **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
|
|
67
|
+
- **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-plan
|
|
3
|
+
description: Break architecture into implementable tasks with dependencies
|
|
4
|
+
summary: "Breaks your user stories and architecture into concrete tasks — each scoped to ~150 lines of code and 3 files max, with clear acceptance criteria, no ambiguous decisions, and explicit dependencies."
|
|
5
|
+
phase: "planning"
|
|
6
|
+
order: 1210
|
|
7
|
+
dependencies: [tdd, operations, security, review-architecture, create-evals]
|
|
8
|
+
outputs: [docs/implementation-plan.md]
|
|
9
|
+
reads: [create-prd, story-tests, database-schema, api-contracts, ux-spec]
|
|
10
|
+
conditional: null
|
|
11
|
+
knowledge-base: [task-decomposition]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
Decompose user stories and system architecture into concrete, implementable
|
|
16
|
+
tasks suitable for AI agents. Each task should be independently executable,
|
|
17
|
+
have clear inputs/outputs, and be small enough for a single agent session.
|
|
18
|
+
The primary mapping is Story → Task(s), with PRD as the traceability root.
|
|
19
|
+
|
|
20
|
+
## Inputs
|
|
21
|
+
- docs/system-architecture.md (optional — not available in MVP) — components to implement
|
|
22
|
+
- docs/domain-models/ (optional — not available in MVP) — domain logic to implement
|
|
23
|
+
- docs/adrs/ (optional — not available in MVP) — technology constraints
|
|
24
|
+
- docs/plan.md (required) — features to trace tasks back to
|
|
25
|
+
- docs/user-stories.md (required) — stories to derive tasks from
|
|
26
|
+
- docs/tdd-standards.md (required) — testing requirements to incorporate into tasks
|
|
27
|
+
- docs/operations-runbook.md (optional) — ops requirements to incorporate into tasks
|
|
28
|
+
- docs/security-review.md (optional) — security requirements to incorporate into tasks
|
|
29
|
+
- docs/database-schema.md (optional) — data layer tasks
|
|
30
|
+
- docs/api-contracts.md (optional) — API implementation tasks
|
|
31
|
+
- docs/ux-spec.md (optional) — frontend tasks
|
|
32
|
+
- tests/acceptance/ (optional) — test skeletons to reference in task descriptions
|
|
33
|
+
- docs/story-tests-map.md (optional) — AC-to-test mapping for task coverage verification
|
|
34
|
+
|
|
35
|
+
## Expected Outputs
|
|
36
|
+
- docs/implementation-plan.md — task list with dependencies, sizing, and
|
|
37
|
+
assignment recommendations
|
|
38
|
+
|
|
39
|
+
## Quality Criteria
|
|
40
|
+
- (mvp) Every architecture component has implementation tasks
|
|
41
|
+
- (mvp) Task dependencies form a valid DAG (no cycles)
|
|
42
|
+
- (mvp) Each task produces ~150 lines of net-new application code (excluding tests and generated files)
|
|
43
|
+
- (mvp) Tasks include acceptance criteria (how to know it's done)
|
|
44
|
+
- (mvp) Tasks incorporate testing requirements from the testing strategy
|
|
45
|
+
- (deep) Tasks reference corresponding test skeletons from tests/acceptance/ where applicable
|
|
46
|
+
- (deep) Tasks incorporate security controls from the security review where applicable
|
|
47
|
+
- (deep) Tasks incorporate operational requirements (monitoring, deployment) where applicable
|
|
48
|
+
- (deep) Critical path is identified
|
|
49
|
+
- (deep) Parallelization opportunities are marked with wave plan
|
|
50
|
+
- (mvp) Every user story maps to at least one task
|
|
51
|
+
- (deep) High-risk tasks are flagged with risk type and mitigation
|
|
52
|
+
- (deep) Wave summary produced with agent allocation recommendation
|
|
53
|
+
- (mvp) No task modifies more than 3 application files (test files excluded; exceptions require justification)
|
|
54
|
+
- (mvp) No task contains unresolved design decisions (agents implement, they don't architect)
|
|
55
|
+
- (mvp) Every code-producing task includes co-located test requirements
|
|
56
|
+
- (deep) Critical path identified with estimated total duration
|
|
57
|
+
|
|
58
|
+
## Methodology Scaling
|
|
59
|
+
- **deep**: Detailed task breakdown with story-to-task tracing. Dependency graph.
|
|
60
|
+
Sizing estimates. Parallelization plan. Agent context requirements per task.
|
|
61
|
+
Phased delivery milestones.
|
|
62
|
+
- **mvp**: Ordered task list derived from PRD features and user stories only
|
|
63
|
+
(architecture, domain models, and ADRs are not available at this depth).
|
|
64
|
+
Each task has a brief description, rough size estimate, and key dependency.
|
|
65
|
+
Enough to start working sequentially. Skip architecture decomposition —
|
|
66
|
+
work directly from user story acceptance criteria.
|
|
67
|
+
- **custom:depth(1-5)**: Depth 1-2: ordered list. Depth 3: add dependencies
|
|
68
|
+
and sizing. Depth 4-5: full breakdown with parallelization.
|
|
69
|
+
|
|
70
|
+
## Mode Detection
|
|
71
|
+
Check for docs/implementation-plan.md. If it exists, operate in update mode:
|
|
72
|
+
read existing task list and diff against current architecture, user stories,
|
|
73
|
+
and specification documents. Preserve completed task statuses and existing
|
|
74
|
+
dependency relationships. Add new tasks for new stories or architecture
|
|
75
|
+
components. Re-derive wave plan if dependencies changed. Never remove tasks
|
|
76
|
+
that are in-progress or completed.
|
|
77
|
+
|
|
78
|
+
## Update Mode Specifics
|
|
79
|
+
- **Detect prior artifact**: docs/implementation-plan.md exists
|
|
80
|
+
- **Preserve**: completed and in-progress task statuses, existing task IDs,
|
|
81
|
+
dependency relationships for stable tasks, wave assignments for tasks
|
|
82
|
+
already started, agent allocation history, architecture decisions,
|
|
83
|
+
component boundaries
|
|
84
|
+
- **Triggers for update**: architecture changed (new components need tasks),
|
|
85
|
+
user stories added or changed, security review identified new requirements,
|
|
86
|
+
operations runbook added deployment tasks, specification docs changed
|
|
87
|
+
- **Conflict resolution**: if architecture restructured a component that has
|
|
88
|
+
in-progress tasks, flag for user review rather than silently reassigning;
|
|
89
|
+
re-derive critical path only for unstarted tasks
|
|
90
|
+
|
|
91
|
+
## Task Size Constraints
|
|
92
|
+
|
|
93
|
+
Before finalizing the implementation plan, scan every task against the five agent
|
|
94
|
+
executability rules from the task-decomposition knowledge base:
|
|
95
|
+
|
|
96
|
+
1. **Three-File Rule** — Count application files each task modifies (exclude test files).
|
|
97
|
+
Any task touching 4+ files must be split by layer or concern.
|
|
98
|
+
2. **150-Line Budget** — Estimate net-new application code lines per task. Any task
|
|
99
|
+
likely to produce 200+ lines must be split by feature slice or entity.
|
|
100
|
+
3. **Single-Concern Rule** — Check each task description for "and" connecting unrelated
|
|
101
|
+
work. Split if the task spans multiple architectural layers or feature domains.
|
|
102
|
+
4. **Decision-Free Execution** — Verify all design decisions are resolved in the task
|
|
103
|
+
description. No "choose", "determine", "decide", or "evaluate options" language.
|
|
104
|
+
Resolve decisions inline before presenting the plan.
|
|
105
|
+
5. **Test Co-location** — Confirm every code-producing task includes its test
|
|
106
|
+
requirements. No "write tests later" aggregation tasks.
|
|
107
|
+
|
|
108
|
+
Tasks that fail any rule should be split inline. If a task genuinely can't be split
|
|
109
|
+
further, annotate with `<!-- agent-size-exception: reason -->`. The implementation
|
|
110
|
+
plan review will flag unjustified exceptions.
|