@zigrivers/scaffold 2.28.1 → 2.38.1
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 +309 -136
- 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 +103 -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 +4 -0
- package/knowledge/core/api-design.md +4 -0
- package/knowledge/core/automated-review-tooling.md +203 -0
- package/knowledge/core/coding-conventions.md +1 -1
- package/knowledge/core/database-design.md +4 -0
- package/knowledge/core/design-system-tokens.md +4 -0
- package/knowledge/core/domain-modeling.md +4 -0
- package/knowledge/core/git-workflow-patterns.md +200 -0
- package/knowledge/core/operations-runbook.md +5 -1
- package/knowledge/core/security-best-practices.md +4 -0
- package/knowledge/core/system-architecture.md +5 -1
- package/knowledge/core/task-decomposition.md +118 -3
- package/knowledge/core/user-story-innovation.md +13 -0
- package/knowledge/core/ux-specification.md +13 -0
- 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 +12 -0
- 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-innovation.md +12 -0
- package/knowledge/product/vision-craft.md +213 -0
- package/knowledge/review/review-adr.md +12 -0
- package/knowledge/review/review-api-design.md +13 -0
- package/knowledge/review/review-database-design.md +13 -0
- package/knowledge/review/review-domain-modeling.md +5 -1
- package/knowledge/review/review-implementation-tasks.md +58 -1
- package/knowledge/review/review-methodology.md +11 -0
- package/knowledge/review/review-operations.md +12 -0
- package/knowledge/review/review-prd.md +13 -0
- package/knowledge/review/review-security.md +12 -0
- package/knowledge/review/review-system-architecture.md +4 -2
- package/knowledge/review/review-testing-strategy.md +11 -0
- package/knowledge/review/review-user-stories.md +11 -0
- package/knowledge/review/review-ux-specification.md +13 -1
- 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 +12 -1
- package/methodology/deep.yml +11 -0
- package/methodology/mvp.yml +11 -0
- package/package.json +3 -3
- package/pipeline/architecture/review-architecture.md +18 -7
- package/pipeline/architecture/system-architecture.md +11 -8
- 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 +11 -8
- package/pipeline/consolidation/workflow-audit.md +15 -11
- package/pipeline/decisions/adrs.md +7 -5
- package/pipeline/decisions/review-adrs.md +14 -6
- package/pipeline/environment/ai-memory-setup.md +18 -12
- package/pipeline/environment/automated-pr-review.md +10 -4
- package/pipeline/environment/design-system.md +9 -7
- package/pipeline/environment/dev-env-setup.md +8 -5
- package/pipeline/environment/git-workflow.md +3 -1
- package/pipeline/finalization/apply-fixes-and-freeze.md +16 -5
- package/pipeline/finalization/developer-onboarding-guide.md +22 -8
- package/pipeline/finalization/implementation-playbook.md +40 -11
- package/pipeline/foundation/beads.md +10 -7
- package/pipeline/foundation/coding-standards.md +6 -3
- package/pipeline/foundation/project-structure.md +5 -1
- package/pipeline/foundation/tdd.md +10 -6
- package/pipeline/foundation/tech-stack.md +9 -9
- package/pipeline/integration/add-e2e-testing.md +21 -6
- package/pipeline/modeling/domain-modeling.md +10 -7
- package/pipeline/modeling/review-domain-modeling.md +17 -6
- package/pipeline/parity/platform-parity-review.md +31 -11
- package/pipeline/planning/implementation-plan-review.md +21 -10
- package/pipeline/planning/implementation-plan.md +52 -19
- package/pipeline/pre/create-prd.md +22 -7
- package/pipeline/pre/innovate-prd.md +10 -8
- package/pipeline/pre/innovate-user-stories.md +9 -7
- package/pipeline/pre/review-prd.md +11 -2
- package/pipeline/pre/review-user-stories.md +12 -3
- package/pipeline/pre/user-stories.md +12 -7
- package/pipeline/quality/create-evals.md +10 -6
- package/pipeline/quality/operations.md +16 -12
- package/pipeline/quality/review-operations.md +19 -10
- package/pipeline/quality/review-security.md +21 -11
- package/pipeline/quality/review-testing.md +23 -12
- package/pipeline/quality/security.md +17 -13
- package/pipeline/quality/story-tests.md +6 -4
- package/pipeline/specification/api-contracts.md +11 -6
- package/pipeline/specification/database-schema.md +12 -6
- package/pipeline/specification/review-api.md +18 -9
- package/pipeline/specification/review-database.md +18 -9
- package/pipeline/specification/review-ux.md +20 -10
- package/pipeline/specification/ux-spec.md +8 -5
- package/pipeline/validation/critical-path-walkthrough.md +14 -7
- package/pipeline/validation/cross-phase-consistency.md +14 -7
- package/pipeline/validation/decision-completeness.md +14 -7
- package/pipeline/validation/dependency-graph-validation.md +15 -7
- package/pipeline/validation/implementability-dry-run.md +15 -7
- package/pipeline/validation/scope-creep-check.md +15 -7
- package/pipeline/validation/traceability-matrix.md +20 -7
- 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/scaffold-pipeline/SKILL.md +33 -18
- package/skills/scaffold-runner/SKILL.md +172 -18
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: single-agent-start
|
|
3
|
+
description: Start single-agent TDD execution loop
|
|
4
|
+
summary: "Claims the next task, writes a failing test, implements until it passes, refactors, runs quality gates, commits, and repeats — following the implementation playbook."
|
|
5
|
+
phase: "build"
|
|
6
|
+
order: 1510
|
|
7
|
+
dependencies: [implementation-playbook]
|
|
8
|
+
outputs: []
|
|
9
|
+
conditional: null
|
|
10
|
+
stateless: true
|
|
11
|
+
category: pipeline
|
|
12
|
+
knowledge-base: [tdd-execution-loop, task-claiming-strategy]
|
|
13
|
+
reads: [coding-standards, tdd, git-workflow]
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Purpose
|
|
17
|
+
Start the single-agent TDD execution loop. This is the primary entry point
|
|
18
|
+
for implementation work when one agent works through the task list
|
|
19
|
+
sequentially. The agent claims the next available task, writes failing tests,
|
|
20
|
+
implements until green, creates a PR, and repeats until all tasks are
|
|
21
|
+
complete.
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
- CLAUDE.md (required) — project conventions, key commands, workflow
|
|
25
|
+
- docs/implementation-playbook.md (required if exists) — primary task execution reference with wave assignments and per-task context
|
|
26
|
+
- docs/implementation-plan.md (fallback) — task list when no playbook exists
|
|
27
|
+
- docs/onboarding-guide.md (optional) — project context for orientation
|
|
28
|
+
- docs/coding-standards.md (required) — code conventions, naming, patterns
|
|
29
|
+
- docs/tdd-standards.md (required) — test categories, mocking strategy, test file locations
|
|
30
|
+
- docs/project-structure.md (required) — where files live
|
|
31
|
+
- tests/acceptance/ (optional) — TDD test skeletons for red-green-refactor starting points
|
|
32
|
+
- tests/evals/ (optional) — project eval checks for quality gates
|
|
33
|
+
- tasks/lessons.md (optional) — previous lessons learned to avoid repeating mistakes
|
|
34
|
+
- .beads/ (conditional) — Beads task tracking if configured
|
|
35
|
+
|
|
36
|
+
## Expected Outputs
|
|
37
|
+
- Implemented features with passing tests
|
|
38
|
+
- Pull requests for each completed task
|
|
39
|
+
- Updated task status in playbook/plan or Beads
|
|
40
|
+
|
|
41
|
+
## Quality Criteria
|
|
42
|
+
- (mvp) Pre-flight checks pass before starting any implementation work
|
|
43
|
+
- (mvp) Each task follows red-green-refactor TDD cycle
|
|
44
|
+
- (mvp) All quality gates pass before PR creation (make check + make eval if available)
|
|
45
|
+
- (mvp) Task status is updated after each completion
|
|
46
|
+
- (deep) Test skeletons from tests/acceptance/ are used as starting points when available
|
|
47
|
+
- (deep) lessons.md is consulted before each task for relevant anti-patterns
|
|
48
|
+
- (deep) PR description includes implementation summary, assumptions, and files modified
|
|
49
|
+
|
|
50
|
+
## Methodology Scaling
|
|
51
|
+
- **deep**: Full pre-flight verification, read onboarding guide, consult lessons.md
|
|
52
|
+
before each task, use test skeletons, run evals, detailed PR descriptions with
|
|
53
|
+
implementation notes and assumptions.
|
|
54
|
+
- **mvp**: Quick git/dependency check, read playbook or plan, pick next task,
|
|
55
|
+
TDD loop, make check, create PR. Skip onboarding guide review and detailed
|
|
56
|
+
PR annotations.
|
|
57
|
+
- **custom:depth(1-5)**: Depth 1-2: minimal pre-flight, TDD loop, make check.
|
|
58
|
+
Depth 3: add lessons.md review and test skeleton usage. Depth 4: add
|
|
59
|
+
onboarding guide, eval gates, detailed PR descriptions. Depth 5: full
|
|
60
|
+
pre-flight suite, all quality gates, cross-reference with upstream docs.
|
|
61
|
+
|
|
62
|
+
## Mode Detection
|
|
63
|
+
This is a stateless execution command. No document is created or updated.
|
|
64
|
+
- Always operates in EXECUTE MODE.
|
|
65
|
+
- If work is already in progress (feature branch exists, uncommitted changes),
|
|
66
|
+
redirect to `/scaffold:single-agent-resume` instead.
|
|
67
|
+
|
|
68
|
+
## Update Mode Specifics
|
|
69
|
+
Not applicable — this is a stateless execution command that does not produce
|
|
70
|
+
a persistent document.
|
|
71
|
+
|
|
72
|
+
## Instructions
|
|
73
|
+
|
|
74
|
+
### Pre-Flight Verification
|
|
75
|
+
|
|
76
|
+
Before writing any code, verify the environment is ready:
|
|
77
|
+
|
|
78
|
+
1. **Git state check**
|
|
79
|
+
- `git status` — working tree should be clean (no uncommitted changes)
|
|
80
|
+
- `git branch --show-current` — should be on `main` or a fresh branch
|
|
81
|
+
- If on a feature branch with changes, stop and suggest `/scaffold:single-agent-resume` instead
|
|
82
|
+
|
|
83
|
+
2. **Dependency check**
|
|
84
|
+
- Run the install command from CLAUDE.md Key Commands (e.g., `npm install`, `pip install`, `bundle install`)
|
|
85
|
+
- Confirm dependencies are current
|
|
86
|
+
|
|
87
|
+
3. **Test suite health**
|
|
88
|
+
- Run the project's check command from CLAUDE.md Key Commands (e.g., `make check`)
|
|
89
|
+
- If tests fail before you start, fix them first or flag to the user
|
|
90
|
+
|
|
91
|
+
4. **Project orientation**
|
|
92
|
+
- Read `CLAUDE.md` for project conventions and key commands
|
|
93
|
+
- Read `docs/onboarding-guide.md` if it exists (first session orientation)
|
|
94
|
+
- Read `tasks/lessons.md` for relevant anti-patterns and gotchas
|
|
95
|
+
|
|
96
|
+
### Beads Detection
|
|
97
|
+
|
|
98
|
+
Check if `.beads/` directory exists.
|
|
99
|
+
|
|
100
|
+
**If Beads is configured:**
|
|
101
|
+
- Run `bd ready` to see available tasks
|
|
102
|
+
- Pick the lowest-ID unblocked task
|
|
103
|
+
- Implement following the TDD workflow below
|
|
104
|
+
- After PR is merged, run `bd close <id> && bd sync`
|
|
105
|
+
- Repeat with `bd ready` until no tasks remain
|
|
106
|
+
|
|
107
|
+
**Without Beads:**
|
|
108
|
+
1. Read `docs/implementation-playbook.md` as the primary task execution reference.
|
|
109
|
+
Fall back to `docs/implementation-plan.md` when no playbook is present.
|
|
110
|
+
2. Pick the first uncompleted task that has no unfinished dependencies.
|
|
111
|
+
3. Implement following the TDD workflow below.
|
|
112
|
+
4. Mark the task complete in the plan/playbook.
|
|
113
|
+
5. Repeat in dependency order until all tasks are done.
|
|
114
|
+
|
|
115
|
+
### TDD Execution Loop
|
|
116
|
+
|
|
117
|
+
For each task:
|
|
118
|
+
|
|
119
|
+
1. **Claim the task**
|
|
120
|
+
- Create a feature branch: `git checkout -b <type>/<description>` (e.g., `feat/add-auth`)
|
|
121
|
+
- If Beads: branch as `bd-<id>/<desc>`
|
|
122
|
+
|
|
123
|
+
2. **Red phase — write failing tests**
|
|
124
|
+
- Check `tests/acceptance/` for existing test skeletons that correspond to the task
|
|
125
|
+
- If skeletons exist, use them as your starting point
|
|
126
|
+
- Otherwise, write test cases from the task's acceptance criteria
|
|
127
|
+
- Run the test suite — confirm the new tests FAIL (red)
|
|
128
|
+
|
|
129
|
+
3. **Green phase — implement**
|
|
130
|
+
- Write the minimum code to make the failing tests pass
|
|
131
|
+
- Follow conventions from `docs/coding-standards.md`
|
|
132
|
+
- Follow file placement from `docs/project-structure.md`
|
|
133
|
+
- Run tests after each meaningful change — stop when green
|
|
134
|
+
|
|
135
|
+
4. **Refactor phase — clean up**
|
|
136
|
+
- Refactor for clarity, DRY, and convention compliance
|
|
137
|
+
- Run the full test suite — confirm everything still passes
|
|
138
|
+
|
|
139
|
+
5. **Quality gates**
|
|
140
|
+
- Run `make check` (or equivalent from CLAUDE.md Key Commands)
|
|
141
|
+
- If `tests/evals/` exists, run `make eval` (or equivalent eval command)
|
|
142
|
+
- Fix any failures before proceeding
|
|
143
|
+
|
|
144
|
+
6. **Create PR**
|
|
145
|
+
- Push the branch: `git push -u origin HEAD`
|
|
146
|
+
- Create a pull request: `gh pr create`
|
|
147
|
+
- Include in the PR description: what was implemented, key decisions, files changed
|
|
148
|
+
- Follow the PR workflow from `docs/git-workflow.md` or CLAUDE.md
|
|
149
|
+
|
|
150
|
+
7. **Update status**
|
|
151
|
+
- If Beads: task status is managed via `bd` commands
|
|
152
|
+
- Without Beads: mark the task as complete in the plan/playbook
|
|
153
|
+
|
|
154
|
+
### Recovery Procedures
|
|
155
|
+
|
|
156
|
+
**Tests fail before starting:**
|
|
157
|
+
- Run the test suite and read the output carefully
|
|
158
|
+
- If failures are in existing tests (not your changes), fix them first
|
|
159
|
+
- If failures are environment-related, run the install/setup commands from CLAUDE.md
|
|
160
|
+
|
|
161
|
+
**Merge conflicts on PR:**
|
|
162
|
+
- `git fetch origin && git rebase origin/main`
|
|
163
|
+
- Resolve conflicts, re-run tests, force-push the branch
|
|
164
|
+
|
|
165
|
+
**Quality gate failures after implementation:**
|
|
166
|
+
- Read the failure output — most failures have clear fix instructions
|
|
167
|
+
- Fix lint/format issues first (often auto-fixable)
|
|
168
|
+
- Fix test failures next
|
|
169
|
+
- Re-run the full gate before pushing
|
|
170
|
+
|
|
171
|
+
**Stuck on a task:**
|
|
172
|
+
- Re-read the task description, acceptance criteria, and any linked docs
|
|
173
|
+
- Check `tasks/lessons.md` for similar past issues
|
|
174
|
+
- If truly blocked, note the blocker and move to the next unblocked task
|
|
175
|
+
|
|
176
|
+
### Process Rules
|
|
177
|
+
|
|
178
|
+
1. **TDD is not optional** — Write failing tests before implementation. No exceptions.
|
|
179
|
+
2. **One task at a time** — Complete the current task fully before starting the next.
|
|
180
|
+
3. **Quality gates before PR** — Never create a PR with failing checks.
|
|
181
|
+
4. **Update status immediately** — Mark tasks complete as soon as the PR is created.
|
|
182
|
+
5. **Consult lessons.md** — Check for relevant anti-patterns before each task.
|
|
183
|
+
6. **Follow CLAUDE.md** — It is the authority on project conventions and commands.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## After This Step
|
|
188
|
+
|
|
189
|
+
When this step is complete (all tasks done or session ending), tell the user:
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
**Execution session complete** — Tasks implemented with passing tests and PRs created.
|
|
193
|
+
|
|
194
|
+
**Session summary:**
|
|
195
|
+
- Tasks completed: [list task IDs/titles]
|
|
196
|
+
- PRs created: [list PR numbers]
|
|
197
|
+
- Remaining tasks: [count or "none"]
|
|
198
|
+
|
|
199
|
+
**If resuming later:** Run `/scaffold:single-agent-resume` to pick up where you left off.
|
|
200
|
+
|
|
201
|
+
**If all tasks are done:**
|
|
202
|
+
- Review `tasks/lessons.md` and add any patterns learned during implementation.
|
|
203
|
+
- Consider running `/scaffold:version-bump` for a release.
|
|
204
|
+
|
|
205
|
+
**Pipeline reference:** `/scaffold:prompt-pipeline`
|
|
206
|
+
|
|
207
|
+
---
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: claude-md-optimization
|
|
3
3
|
description: Consolidate and optimize CLAUDE.md for maximum signal density
|
|
4
|
+
summary: "Removes redundancy from CLAUDE.md, fixes terminology inconsistencies, front-loads critical patterns (TDD, commit format, worktrees), and keeps it under 200 lines so agents actually read and follow it."
|
|
4
5
|
phase: "consolidation"
|
|
5
6
|
order: 1110
|
|
6
7
|
dependencies: [git-workflow]
|
|
7
8
|
outputs: [CLAUDE.md]
|
|
9
|
+
reads: [create-prd, tdd, user-stories]
|
|
8
10
|
conditional: null
|
|
9
11
|
knowledge-base: [claude-md-patterns]
|
|
10
12
|
---
|
|
@@ -33,14 +35,14 @@ scannability.
|
|
|
33
35
|
recovery), Browser/E2E Testing, Self-Improvement, Autonomous Behavior
|
|
34
36
|
|
|
35
37
|
## Quality Criteria
|
|
36
|
-
- No duplicated instructions within CLAUDE.md
|
|
37
|
-
- No verbatim repetition of content from other docs (reference instead)
|
|
38
|
-
- Consistent terminology throughout (task vs. ticket, etc.)
|
|
39
|
-
- Key Commands table matches actual Makefile/package.json commands
|
|
38
|
+
- (mvp) No duplicated instructions within CLAUDE.md
|
|
39
|
+
- (mvp) No verbatim repetition of content from other docs (reference instead)
|
|
40
|
+
- (mvp) Consistent terminology throughout (task vs. ticket, etc.)
|
|
41
|
+
- (mvp) Key Commands table matches actual Makefile/package.json commands
|
|
40
42
|
- Critical patterns are prominent (TDD, never push to main, keep working,
|
|
41
43
|
verify before commit, worktrees for parallel). If Beads: every commit needs task ID.
|
|
42
|
-
-
|
|
43
|
-
- Workflow scenarios cover error cases (test failures, merge conflicts, CI failures,
|
|
44
|
+
- (deep) CLAUDE.md is <= 200 lines or critical patterns appear in the first 50 lines
|
|
45
|
+
- (deep) Workflow scenarios cover error cases (test failures, merge conflicts, CI failures,
|
|
44
46
|
crashed sessions, blocked tasks)
|
|
45
47
|
- Tracking comment added: <!-- scaffold:claude-md-optimization v1 YYYY-MM-DD -->
|
|
46
48
|
|
|
@@ -67,7 +69,8 @@ rules — only consolidate and clarify what already exists.
|
|
|
67
69
|
- **Detect prior artifact**: tracking comment in CLAUDE.md with version and date
|
|
68
70
|
- **Preserve**: manually-added sections, user-customized rules, project-specific
|
|
69
71
|
command aliases, any content not traceable to a pipeline setup prompt
|
|
70
|
-
- **Triggers for update**: new setup prompts
|
|
71
|
-
|
|
72
|
+
- **Triggers for update**: new setup prompts completed, coding-standards updated,
|
|
73
|
+
tdd-standards updated, git-workflow updated, terminology inconsistencies
|
|
74
|
+
introduced by incremental additions
|
|
72
75
|
- **Conflict resolution**: if a user-customized section conflicts with a setup
|
|
73
76
|
prompt's output, keep the user version and flag the conflict in a comment
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflow-audit
|
|
3
3
|
description: Verify workflow consistency across all documentation files
|
|
4
|
+
summary: "Audits every document that mentions workflow (CLAUDE.md, git-workflow, coding-standards, dev-setup) and fixes any inconsistencies in commit format, branch naming, PR steps, or key commands."
|
|
4
5
|
phase: "consolidation"
|
|
5
6
|
order: 1120
|
|
6
7
|
dependencies: [claude-md-optimization]
|
|
7
8
|
outputs: [CLAUDE.md, docs/git-workflow.md]
|
|
8
9
|
conditional: null
|
|
10
|
+
reads: [operations]
|
|
9
11
|
knowledge-base: [cross-phase-consistency]
|
|
10
12
|
---
|
|
11
13
|
|
|
@@ -34,15 +36,16 @@ inconsistent command formats. Fix all issues found.
|
|
|
34
36
|
- tasks/lessons.md — created if missing
|
|
35
37
|
|
|
36
38
|
## Quality Criteria
|
|
37
|
-
- CLAUDE.md contains complete workflow (9 steps + AI review step 4.5)
|
|
38
|
-
- Commit format is consistent everywhere (If Beads: [BD-<id>] type(scope): description. Without Beads: type(scope): description)
|
|
39
|
-
- Branch naming is consistent everywhere (If Beads: bd-<task-id>/<short-desc>. Without Beads: <type>/<short-desc>)
|
|
40
|
-
- PR workflow includes all 8 sub-steps with --delete-branch flag
|
|
41
|
-
- If Beads: task closure uses bd close (not bd update --status completed)
|
|
42
|
-
- Key Commands table matches actual Makefile/package.json commands
|
|
43
|
-
- Worktree cleanup between tasks documented (cannot checkout main)
|
|
44
|
-
- Agent crash recovery documented
|
|
45
|
-
- No document contradicts the canonical workflow
|
|
39
|
+
- (mvp) CLAUDE.md contains complete workflow (9 steps + AI review step 4.5)
|
|
40
|
+
- (mvp) Commit format is consistent everywhere (If Beads: [BD-<id>] type(scope): description. Without Beads: type(scope): description)
|
|
41
|
+
- (mvp) Branch naming is consistent everywhere (If Beads: bd-<task-id>/<short-desc>. Without Beads: <type>/<short-desc>)
|
|
42
|
+
- (mvp) PR workflow includes all 8 sub-steps with --delete-branch flag
|
|
43
|
+
- (mvp) If Beads: task closure uses bd close (not bd update --status completed)
|
|
44
|
+
- (mvp) Key Commands table matches actual Makefile/package.json commands
|
|
45
|
+
- (deep) Worktree cleanup between tasks documented (cannot checkout main)
|
|
46
|
+
- (deep) Agent crash recovery documented
|
|
47
|
+
- (deep) No document contradicts the canonical workflow
|
|
48
|
+
- Tracking comment matches format: `<!-- scaffold:workflow-audit v1 YYYY-MM-DD -->`
|
|
46
49
|
- Tracking comment added: <!-- scaffold:workflow-audit v1 YYYY-MM-DD -->
|
|
47
50
|
|
|
48
51
|
## Methodology Scaling
|
|
@@ -67,7 +70,8 @@ manually-added workflow steps or custom CI configurations.
|
|
|
67
70
|
and date
|
|
68
71
|
- **Preserve**: custom CI jobs, user-added workflow steps, project-specific
|
|
69
72
|
branch protection rules, custom PR template fields
|
|
70
|
-
- **Triggers for update**:
|
|
71
|
-
targets added or renamed,
|
|
73
|
+
- **Triggers for update**: CI configuration changed, git-workflow.md updated,
|
|
74
|
+
new scripts added to Makefile, Makefile targets added or renamed, new setup
|
|
75
|
+
prompts modified workflow docs
|
|
72
76
|
- **Conflict resolution**: if two docs disagree on workflow, the canonical
|
|
73
77
|
workflow in CLAUDE.md wins; update the conflicting doc to match
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adrs
|
|
3
3
|
description: Document architecture decisions as ADRs
|
|
4
|
+
summary: "Documents every significant design decision — what was chosen, what alternatives were considered with pros and cons, and what consequences follow — so future contributors understand why, not just what."
|
|
4
5
|
phase: "decisions"
|
|
5
6
|
order: 610
|
|
6
7
|
dependencies: [review-domain-modeling]
|
|
@@ -25,11 +26,12 @@ ADR category — tech stack decisions are documented here.
|
|
|
25
26
|
- docs/adrs/index.md — decision log overview
|
|
26
27
|
|
|
27
28
|
## Quality Criteria
|
|
28
|
-
-
|
|
29
|
-
- Each ADR documents alternatives considered with pros/cons
|
|
30
|
-
- Decisions trace to PRD requirements or domain model constraints
|
|
31
|
-
- No ADR contradicts another without explicit acknowledgment
|
|
32
|
-
- Technology selections include team expertise and maintenance considerations
|
|
29
|
+
- (mvp) ADRs exist for: language, framework, database, ORM, deployment target, API style, authentication, and any decision referenced in system-architecture.md
|
|
30
|
+
- (deep) Each ADR documents alternatives considered with pros/cons
|
|
31
|
+
- (mvp) Decisions trace to PRD requirements or domain model constraints
|
|
32
|
+
- (mvp) No ADR contradicts another without explicit acknowledgment
|
|
33
|
+
- (deep) Technology selections include team expertise and maintenance considerations
|
|
34
|
+
- (deep) Decision dependencies documented — if ADR-002 depends on ADR-001's outcome, the dependency is explicit
|
|
33
35
|
|
|
34
36
|
## Methodology Scaling
|
|
35
37
|
- **deep**: Comprehensive ADR set. 3+ alternatives per decision with detailed
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-adrs
|
|
3
3
|
description: Review ADRs for completeness, consistency, and decision quality
|
|
4
|
+
summary: "Checks for contradictions between decisions, missing decisions implied by the architecture, and whether every choice has honest trade-off analysis."
|
|
4
5
|
phase: "decisions"
|
|
5
6
|
order: 620
|
|
6
7
|
dependencies: [adrs]
|
|
7
8
|
outputs: [docs/reviews/review-adrs.md, docs/reviews/adrs/review-summary.md, docs/reviews/adrs/codex-review.json, docs/reviews/adrs/gemini-review.json]
|
|
8
9
|
conditional: null
|
|
9
|
-
knowledge-base: [review-methodology, review-adr]
|
|
10
|
+
knowledge-base: [review-methodology, review-adr, multi-model-review-dispatch, review-step-template]
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
## Purpose
|
|
@@ -30,11 +31,11 @@ independent review validation.
|
|
|
30
31
|
- docs/reviews/adrs/gemini-review.json (depth 4+, if available) — raw Gemini findings
|
|
31
32
|
|
|
32
33
|
## Quality Criteria
|
|
33
|
-
- All ADR-specific review passes executed
|
|
34
|
-
- Every finding categorized
|
|
35
|
-
- Missing decisions identified and documented
|
|
36
|
-
- Contradictions resolved
|
|
37
|
-
- Downstream readiness confirmed (architecture phase can proceed)
|
|
34
|
+
- (mvp) All ADR-specific review passes executed
|
|
35
|
+
- (mvp) Every finding categorized P0-P3 with specific ADR number, section, and issue
|
|
36
|
+
- (deep) Missing decisions identified and documented
|
|
37
|
+
- (mvp) Contradictions resolved
|
|
38
|
+
- (mvp) Downstream readiness confirmed (architecture phase can proceed)
|
|
38
39
|
- (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
|
|
39
40
|
|
|
40
41
|
## Methodology Scaling
|
|
@@ -50,3 +51,10 @@ independent review validation.
|
|
|
50
51
|
Re-review mode if previous review exists. Check which findings were addressed.
|
|
51
52
|
If multi-model review artifacts exist under docs/reviews/adrs/, preserve prior
|
|
52
53
|
findings still valid.
|
|
54
|
+
|
|
55
|
+
## Update Mode Specifics
|
|
56
|
+
|
|
57
|
+
- **Detect**: `docs/reviews/review-adrs.md` exists with tracking comment
|
|
58
|
+
- **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
|
|
59
|
+
- **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
|
|
60
|
+
- **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ai-memory-setup
|
|
3
3
|
description: Configure AI memory and context management with modular rules, optional MCP memory server, lifecycle hooks, and external context integration
|
|
4
|
+
summary: "Extracts conventions from your docs into path-scoped rule files that load automatically, optimizes CLAUDE.md with a pointer pattern, and optionally sets up persistent cross-session memory."
|
|
4
5
|
phase: "environment"
|
|
5
6
|
order: 350
|
|
6
7
|
dependencies: [git-workflow]
|
|
@@ -34,14 +35,14 @@ to prevent API hallucination. Users choose which tiers to enable.
|
|
|
34
35
|
- (Tier 3) .claude/settings.json with external context MCP server
|
|
35
36
|
|
|
36
37
|
## Quality Criteria
|
|
37
|
-
- .claude/rules/ files use valid YAML frontmatter with description and globs fields
|
|
38
|
-
- Each rule file targets a specific concern (no catch-all files)
|
|
39
|
-
- Total rule content stays under 500 lines across all files
|
|
40
|
-
- CLAUDE.md references rules via pointer pattern, stays under 200 lines
|
|
41
|
-
- Rules accurately reflect the conventions in source documents (no drift)
|
|
42
|
-
- (
|
|
43
|
-
- (
|
|
44
|
-
- (
|
|
38
|
+
- (mvp) .claude/rules/ files use valid YAML frontmatter with description and globs fields
|
|
39
|
+
- (mvp) Each rule file targets a specific concern (no catch-all files)
|
|
40
|
+
- (mvp) Total rule content stays under 500 lines across all files
|
|
41
|
+
- (mvp) CLAUDE.md references rules via pointer pattern, stays under 200 lines
|
|
42
|
+
- (mvp) Rules accurately reflect the conventions in source documents (no drift)
|
|
43
|
+
- (deep) MCP memory server responds to basic queries
|
|
44
|
+
- (deep) At least PreCompact hook is configured and functional
|
|
45
|
+
- (deep) Library doc server returns results for project dependencies
|
|
45
46
|
|
|
46
47
|
## Methodology Scaling
|
|
47
48
|
- **deep**: All three tiers offered. Tier 1 generates comprehensive rules from
|
|
@@ -53,10 +54,15 @@ to prevent API hallucination. Users choose which tiers to enable.
|
|
|
53
54
|
full Tier 1 + offer Tier 2. Depth 4-5: all tiers with comprehensive setup.
|
|
54
55
|
|
|
55
56
|
## Mode Detection
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
If
|
|
57
|
+
Check if `.claude/rules/` directory or docs/ai-memory-setup.md exists first. If
|
|
58
|
+
`.claude/rules/` exists, check for scaffold tracking comments (e.g.,
|
|
59
|
+
`<!-- scaffold:ai-memory-setup -->`) in rule files for conservativeness calibration.
|
|
60
|
+
- If `.claude/rules/` exists with tracking comments: UPDATE MODE — preserve existing
|
|
61
|
+
rule files and their customizations, add missing rules for new conventions,
|
|
62
|
+
update rules where source docs have changed. Never delete user-customized rules.
|
|
63
|
+
If MCP server already configured, verify and update rather than replace.
|
|
64
|
+
- If `.claude/rules/` does not exist: FRESH MODE — create rules directory and generate
|
|
65
|
+
rule files from scratch.
|
|
60
66
|
|
|
61
67
|
## Update Mode Specifics
|
|
62
68
|
- **Detect prior artifact**: .claude/rules/ directory exists with rule files
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: automated-pr-review
|
|
3
3
|
description: Agent-driven automated PR review with external reviewers (Codex Cloud, Gemini Code Assist, or custom)
|
|
4
|
+
summary: "Configures automated code review — using Codex and/or Gemini CLIs for dual-model review when available, or an external bot — with severity definitions and review criteria tailored to your project."
|
|
4
5
|
phase: "environment"
|
|
5
6
|
order: 340
|
|
6
7
|
dependencies: [git-workflow]
|
|
7
8
|
outputs: [AGENTS.md, docs/review-standards.md]
|
|
9
|
+
reads: [tdd]
|
|
8
10
|
conditional: "if-needed"
|
|
9
|
-
knowledge-base: [review-methodology]
|
|
11
|
+
knowledge-base: [review-methodology, automated-review-tooling]
|
|
10
12
|
---
|
|
11
13
|
|
|
12
14
|
## Purpose
|
|
@@ -37,6 +39,7 @@ entire review-fix loop locally.
|
|
|
37
39
|
- No GitHub Actions workflows created (zero Actions minutes)
|
|
38
40
|
- No ANTHROPIC_API_KEY secret required
|
|
39
41
|
- Legacy GitHub Actions workflows detected and cleanup offered
|
|
42
|
+
- (deep) Dual-model review enabled when both CLIs available
|
|
40
43
|
|
|
41
44
|
## Methodology Scaling
|
|
42
45
|
- **deep**: Full setup with local CLI review (dual-model when both available),
|
|
@@ -53,9 +56,12 @@ configured, or git-workflow.md establishes a PR-based workflow. Skip when: solo
|
|
|
53
56
|
developer with no CI, depth < 3, or project uses a non-GitHub VCS host.
|
|
54
57
|
|
|
55
58
|
## Mode Detection
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
Check if AGENTS.md exists first. If it exists, check for scaffold tracking comment
|
|
60
|
+
(`<!-- scaffold:automated-pr-review -->`).
|
|
61
|
+
- If AGENTS.md exists with tracking comment: UPDATE MODE — preserve custom review rules,
|
|
62
|
+
reviewer bot name, and round cap settings. Detect legacy GitHub Actions
|
|
63
|
+
workflows (code-review-trigger.yml, code-review-handler.yml) and offer removal.
|
|
64
|
+
- If AGENTS.md does not exist: FRESH MODE — configure from scratch.
|
|
59
65
|
|
|
60
66
|
## Update Mode Specifics
|
|
61
67
|
- **Detect prior artifact**: AGENTS.md exists
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-system
|
|
3
3
|
description: Create a cohesive design system with tokens and component patterns for frontend
|
|
4
|
+
summary: "Creates a visual language — color palette (WCAG-compliant), typography scale, spacing system, component patterns — and generates working theme config files for your frontend framework."
|
|
4
5
|
phase: "environment"
|
|
5
6
|
order: 320
|
|
6
7
|
dependencies: [dev-env-setup]
|
|
7
8
|
outputs: [docs/design-system.md]
|
|
9
|
+
reads: [create-prd]
|
|
8
10
|
conditional: "if-needed"
|
|
9
11
|
knowledge-base: [design-system-tokens]
|
|
10
12
|
---
|
|
@@ -31,13 +33,13 @@ professional UI without requiring design expertise from the user.
|
|
|
31
33
|
- CLAUDE.md updated with Design System section and quick reference
|
|
32
34
|
|
|
33
35
|
## Quality Criteria
|
|
34
|
-
- All colors meet WCAG AA contrast requirements
|
|
35
|
-
- Typography scale
|
|
36
|
-
- Spacing uses a consistent base unit (e.g., 4px increments)
|
|
37
|
-
- Component patterns cover buttons, forms, cards, feedback, navigation, data display
|
|
38
|
-
- Theme configuration files actually work (verified by running dev server)
|
|
39
|
-
- Both light and dark mode token values provided (if dark mode requested)
|
|
40
|
-
- Responsive breakpoints defined (mobile, tablet, desktop)
|
|
36
|
+
- (mvp) All colors meet WCAG AA contrast requirements
|
|
37
|
+
- (mvp) Typography scale uses a consistent modular ratio; body text >= 16px; line height >= 1.5 for body text
|
|
38
|
+
- (mvp) Spacing uses a consistent base unit (e.g., 4px increments)
|
|
39
|
+
- (deep) Component patterns cover buttons, forms, cards, feedback, navigation, data display
|
|
40
|
+
- (mvp) Theme configuration files actually work (verified by running dev server)
|
|
41
|
+
- (deep) Both light and dark mode token values provided (if dark mode requested)
|
|
42
|
+
- (deep) Responsive breakpoints defined (mobile, tablet, desktop)
|
|
41
43
|
- No arbitrary hex values or pixel values in component examples (all use tokens)
|
|
42
44
|
|
|
43
45
|
## Methodology Scaling
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-env-setup
|
|
3
3
|
description: Configure local dev environment with live reload and simple commands
|
|
4
|
+
summary: "Configures your project so a single command starts everything — dev server with live reload, local database, environment variables — and documents the setup in a getting-started guide."
|
|
4
5
|
phase: "environment"
|
|
5
6
|
order: 310
|
|
6
7
|
dependencies: [project-structure]
|
|
7
8
|
outputs: [docs/dev-setup.md]
|
|
8
9
|
conditional: null
|
|
10
|
+
reads: [tdd]
|
|
9
11
|
knowledge-base: [dev-environment]
|
|
10
12
|
---
|
|
11
13
|
|
|
@@ -30,13 +32,14 @@ by the entire workflow.
|
|
|
30
32
|
- CLAUDE.md updated with Key Commands table and Dev Environment section
|
|
31
33
|
|
|
32
34
|
## Quality Criteria
|
|
33
|
-
- Dev server starts with a single command and supports live/hot reloading
|
|
34
|
-
- Local database setup is scripted (if applicable)
|
|
35
|
-
- .env.example documents all variables with comments
|
|
35
|
+
- (mvp) Dev server starts with a single command and supports live/hot reloading
|
|
36
|
+
- (deep) Local database setup is scripted (if applicable)
|
|
37
|
+
- (deep) .env.example documents all variables with comments
|
|
36
38
|
- Key Commands table in CLAUDE.md matches actual Makefile/package.json commands
|
|
37
|
-
- Lint and test commands exist and are runnable
|
|
39
|
+
- (mvp) Lint and test commands exist and are runnable
|
|
38
40
|
- Verification checklist passes (install, dev server, browser, live reload, tests, db)
|
|
39
|
-
- Setup process works for first-time clone (max 5 steps)
|
|
41
|
+
- (mvp) Setup process works for first-time clone (max 5 steps)
|
|
42
|
+
- (mvp) Makefile/package.json includes at minimum: dev, test, lint targets
|
|
40
43
|
|
|
41
44
|
## Methodology Scaling
|
|
42
45
|
- **deep**: Full environment with database setup, seed data, Docker Compose (if
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: git-workflow
|
|
3
3
|
description: Configure git workflow with branching, PRs, CI, and worktree scripts for parallel agents
|
|
4
|
+
summary: "Sets up your branching strategy, commit message format, PR workflow, CI pipeline with lint and test jobs, and worktree scripts so multiple AI agents can work in parallel without conflicts."
|
|
4
5
|
phase: "environment"
|
|
5
6
|
order: 330
|
|
6
7
|
dependencies: [dev-env-setup]
|
|
7
8
|
outputs: [docs/git-workflow.md]
|
|
8
9
|
conditional: null
|
|
9
|
-
knowledge-base: [dev-environment]
|
|
10
|
+
knowledge-base: [dev-environment, git-workflow-patterns]
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
## Purpose
|
|
@@ -42,6 +43,7 @@ parallel agents, CI pipeline, branch protection, and conflict prevention rules.
|
|
|
42
43
|
- Branch cleanup documented for both single-agent and worktree-agent variants
|
|
43
44
|
- Agent crash recovery procedure documented
|
|
44
45
|
- Conflict prevention rule: don't parallelize tasks touching same files
|
|
46
|
+
- (mvp) CI workflow YAML is valid and references commands from Key Commands table
|
|
45
47
|
|
|
46
48
|
## Methodology Scaling
|
|
47
49
|
- **deep**: Full git workflow with all sections, CI pipeline, branch protection
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: apply-fixes-and-freeze
|
|
3
3
|
description: Apply validation findings and freeze documentation
|
|
4
|
+
summary: "Applies all findings from the validation phase, fixes blocking issues, and freezes every document with a version marker — signaling that specs are implementation-ready."
|
|
4
5
|
phase: "finalization"
|
|
5
6
|
order: 1410
|
|
6
7
|
dependencies: [cross-phase-consistency, traceability-matrix, decision-completeness, critical-path-walkthrough, implementability-dry-run, dependency-graph-validation, scope-creep-check]
|
|
@@ -25,15 +26,25 @@ issue is discovered during implementation.
|
|
|
25
26
|
- Freeze marker added to each document (tracking comment)
|
|
26
27
|
|
|
27
28
|
## Quality Criteria
|
|
28
|
-
- All P0 and P1 validation findings addressed
|
|
29
|
-
- P2 findings addressed or explicitly deferred with rationale
|
|
29
|
+
- (mvp) All P0 and P1 validation findings addressed
|
|
30
|
+
- (deep) P2 findings addressed or explicitly deferred with rationale
|
|
30
31
|
- Fix log documents what changed and why
|
|
31
|
-
-
|
|
32
|
+
- (deep) Cross-phase-consistency validation re-run after fixes yields no new P0 or P1 findings
|
|
33
|
+
- Every frozen document contains a tracking comment matching `<!-- scaffold:step-name vN YYYY-MM-DD -->`
|
|
32
34
|
|
|
33
35
|
## Methodology Scaling
|
|
34
36
|
- **deep**: All findings addressed. Full fix log. Final consistency check.
|
|
35
37
|
- **mvp**: P0 findings only. Brief fix log.
|
|
36
|
-
- **custom:depth(1-5)**:
|
|
38
|
+
- **custom:depth(1-5)**: Depth 1-2: address P0 findings only with brief fix log. Depth 3: address P0-P1 findings with detailed fix log and deferred rationale. Depth 4: address P0-P2 with full deferred rationale and re-validation passes. Depth 5: all findings addressed, final consistency re-check, and freeze verification audit.
|
|
37
39
|
|
|
38
40
|
## Mode Detection
|
|
39
|
-
|
|
41
|
+
Check if `docs/validation/fix-log.md` already exists.
|
|
42
|
+
- If exists: UPDATE MODE — read existing fix log, identify newly introduced validation findings, apply incremental fixes, preserve previously applied fixes and their verification status.
|
|
43
|
+
- If not: FRESH MODE — apply all validation findings from scratch.
|
|
44
|
+
|
|
45
|
+
## Update Mode Specifics
|
|
46
|
+
|
|
47
|
+
- **Detect**: `docs/validation/fix-log.md` exists with tracking comment
|
|
48
|
+
- **Preserve**: Previous fix decisions, deferred rationale, freeze markers on already-frozen documents
|
|
49
|
+
- **Triggers**: New validation findings since last freeze, documents modified after freeze
|
|
50
|
+
- **Conflict resolution**: Re-frozen documents with new changes require updated freeze markers and fix-log entries
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: developer-onboarding-guide
|
|
3
3
|
description: Create a guide for developers (human or AI) joining the project
|
|
4
|
+
summary: "Synthesizes all frozen docs into a single onboarding narrative — project purpose, architecture overview, top coding patterns, key commands, and a quick-start checklist — so anyone joining the project knows exactly where to begin."
|
|
4
5
|
phase: "finalization"
|
|
5
6
|
order: 1420
|
|
6
7
|
dependencies: [apply-fixes-and-freeze]
|
|
@@ -12,7 +13,9 @@ knowledge-base: [developer-onboarding]
|
|
|
12
13
|
## Purpose
|
|
13
14
|
Create a comprehensive onboarding guide that gives any developer (human or AI
|
|
14
15
|
agent) everything they need to understand the project and start contributing.
|
|
15
|
-
This is the "start here" document.
|
|
16
|
+
This is the "start here" document. It synthesizes information from all frozen
|
|
17
|
+
artifacts into a single coherent narrative that new contributors can read
|
|
18
|
+
before their first task.
|
|
16
19
|
|
|
17
20
|
## Inputs
|
|
18
21
|
- All frozen phase artifacts
|
|
@@ -21,16 +24,27 @@ This is the "start here" document.
|
|
|
21
24
|
- docs/onboarding-guide.md — developer onboarding guide
|
|
22
25
|
|
|
23
26
|
## Quality Criteria
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
- Key architectural decisions are summarized (with pointers to ADRs)
|
|
27
|
-
- Development workflow is clear (branch, code, test, PR)
|
|
27
|
+
- (mvp) Contains sections for: project purpose, architecture overview (with component diagram reference), top 3 coding patterns with examples, and a file/doc lookup table
|
|
28
|
+
- (mvp) Guide includes clone instructions, dependency install command, dev server start command, and test run command; every ADR referenced by number with one-sentence summary
|
|
29
|
+
- (deep) Key architectural decisions are summarized (with pointers to ADRs)
|
|
30
|
+
- (mvp) Development workflow is clear (branch, code, test, PR)
|
|
28
31
|
|
|
29
32
|
## Methodology Scaling
|
|
30
33
|
- **deep**: Comprehensive guide. Architecture walkthrough, key pattern explanations,
|
|
31
34
|
common tasks with examples, troubleshooting section.
|
|
32
|
-
- **mvp**: Quick
|
|
33
|
-
|
|
35
|
+
- **mvp**: Quick-start guide with: clone command, dependency install, dev server
|
|
36
|
+
start, test run command. Skip architecture overview, key patterns, and
|
|
37
|
+
troubleshooting sections.
|
|
38
|
+
- **custom:depth(1-5)**: Depth 1-2: quick start with setup and test commands only. Depth 3: add architecture overview, key patterns, and common tasks. Depth 4: add troubleshooting section, entry points documentation, and development workflow detail. Depth 5: full guide with architecture walkthrough, decision rationale, and team-specific onboarding paths.
|
|
34
39
|
|
|
35
40
|
## Mode Detection
|
|
36
|
-
|
|
41
|
+
Check if `docs/onboarding-guide.md` already exists.
|
|
42
|
+
- If exists: UPDATE MODE — read current guide, diff against upstream docs for changes, propose targeted updates while preserving project-specific customizations and environment-specific instructions.
|
|
43
|
+
- If not: FRESH MODE — generate from scratch using all pipeline artifacts.
|
|
44
|
+
|
|
45
|
+
## Update Mode Specifics
|
|
46
|
+
|
|
47
|
+
- **Detect**: `docs/onboarding-guide.md` exists with tracking comment
|
|
48
|
+
- **Preserve**: Team-specific customizations, troubleshooting entries added from experience, getting-started verification results
|
|
49
|
+
- **Triggers**: Architecture changes, new tooling, new patterns established
|
|
50
|
+
- **Conflict resolution**: Merge new sections with existing customizations; never remove team-contributed troubleshooting entries
|