@accelerationguy/accel 1.0.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/CLAUDE.md +19 -0
- package/LICENSE +33 -0
- package/README.md +275 -0
- package/bin/install.js +661 -0
- package/docs/getting-started.md +164 -0
- package/docs/module-guide.md +139 -0
- package/modules/drive/LICENSE +21 -0
- package/modules/drive/PAUL-VS-GSD.md +171 -0
- package/modules/drive/README.md +555 -0
- package/modules/drive/assets/terminal.svg +67 -0
- package/modules/drive/bin/install.js +210 -0
- package/modules/drive/integration.js +76 -0
- package/modules/drive/package.json +38 -0
- package/modules/drive/src/commands/add-phase.md +36 -0
- package/modules/drive/src/commands/apply.md +83 -0
- package/modules/drive/src/commands/assumptions.md +37 -0
- package/modules/drive/src/commands/audit.md +57 -0
- package/modules/drive/src/commands/complete-milestone.md +36 -0
- package/modules/drive/src/commands/config.md +175 -0
- package/modules/drive/src/commands/consider-issues.md +41 -0
- package/modules/drive/src/commands/discover.md +48 -0
- package/modules/drive/src/commands/discuss-milestone.md +33 -0
- package/modules/drive/src/commands/discuss.md +34 -0
- package/modules/drive/src/commands/flows.md +73 -0
- package/modules/drive/src/commands/handoff.md +201 -0
- package/modules/drive/src/commands/help.md +525 -0
- package/modules/drive/src/commands/init.md +54 -0
- package/modules/drive/src/commands/map-codebase.md +34 -0
- package/modules/drive/src/commands/milestone.md +34 -0
- package/modules/drive/src/commands/pause.md +44 -0
- package/modules/drive/src/commands/plan-fix.md +216 -0
- package/modules/drive/src/commands/plan.md +36 -0
- package/modules/drive/src/commands/progress.md +138 -0
- package/modules/drive/src/commands/register.md +29 -0
- package/modules/drive/src/commands/remove-phase.md +37 -0
- package/modules/drive/src/commands/research-phase.md +209 -0
- package/modules/drive/src/commands/research.md +47 -0
- package/modules/drive/src/commands/resume.md +49 -0
- package/modules/drive/src/commands/status.md +78 -0
- package/modules/drive/src/commands/unify.md +87 -0
- package/modules/drive/src/commands/verify.md +60 -0
- package/modules/drive/src/references/checkpoints.md +234 -0
- package/modules/drive/src/references/context-management.md +219 -0
- package/modules/drive/src/references/git-strategy.md +206 -0
- package/modules/drive/src/references/loop-phases.md +254 -0
- package/modules/drive/src/references/plan-format.md +263 -0
- package/modules/drive/src/references/quality-principles.md +152 -0
- package/modules/drive/src/references/research-quality-control.md +247 -0
- package/modules/drive/src/references/sonarqube-integration.md +244 -0
- package/modules/drive/src/references/specialized-workflow-integration.md +186 -0
- package/modules/drive/src/references/subagent-criteria.md +179 -0
- package/modules/drive/src/references/tdd.md +219 -0
- package/modules/drive/src/references/work-units.md +161 -0
- package/modules/drive/src/rules/commands.md +108 -0
- package/modules/drive/src/rules/references.md +107 -0
- package/modules/drive/src/rules/style.md +123 -0
- package/modules/drive/src/rules/templates.md +51 -0
- package/modules/drive/src/rules/workflows.md +133 -0
- package/modules/drive/src/templates/CONTEXT.md +88 -0
- package/modules/drive/src/templates/DEBUG.md +164 -0
- package/modules/drive/src/templates/DISCOVERY.md +148 -0
- package/modules/drive/src/templates/HANDOFF.md +77 -0
- package/modules/drive/src/templates/ISSUES.md +93 -0
- package/modules/drive/src/templates/MILESTONES.md +167 -0
- package/modules/drive/src/templates/PLAN.md +328 -0
- package/modules/drive/src/templates/PROJECT.md +219 -0
- package/modules/drive/src/templates/RESEARCH.md +130 -0
- package/modules/drive/src/templates/ROADMAP.md +328 -0
- package/modules/drive/src/templates/SPECIAL-FLOWS.md +70 -0
- package/modules/drive/src/templates/STATE.md +210 -0
- package/modules/drive/src/templates/SUMMARY.md +221 -0
- package/modules/drive/src/templates/UAT-ISSUES.md +139 -0
- package/modules/drive/src/templates/codebase/architecture.md +259 -0
- package/modules/drive/src/templates/codebase/concerns.md +329 -0
- package/modules/drive/src/templates/codebase/conventions.md +311 -0
- package/modules/drive/src/templates/codebase/integrations.md +284 -0
- package/modules/drive/src/templates/codebase/stack.md +190 -0
- package/modules/drive/src/templates/codebase/structure.md +287 -0
- package/modules/drive/src/templates/codebase/testing.md +484 -0
- package/modules/drive/src/templates/config.md +181 -0
- package/modules/drive/src/templates/milestone-archive.md +236 -0
- package/modules/drive/src/templates/milestone-context.md +190 -0
- package/modules/drive/src/templates/paul-json.md +147 -0
- package/modules/drive/src/vector-config/PAUL +26 -0
- package/modules/drive/src/vector-config/PAUL.manifest +11 -0
- package/modules/drive/src/workflows/apply-phase.md +393 -0
- package/modules/drive/src/workflows/audit-plan.md +344 -0
- package/modules/drive/src/workflows/complete-milestone.md +479 -0
- package/modules/drive/src/workflows/configure-special-flows.md +283 -0
- package/modules/drive/src/workflows/consider-issues.md +172 -0
- package/modules/drive/src/workflows/create-milestone.md +268 -0
- package/modules/drive/src/workflows/debug.md +292 -0
- package/modules/drive/src/workflows/discovery.md +187 -0
- package/modules/drive/src/workflows/discuss-milestone.md +245 -0
- package/modules/drive/src/workflows/discuss-phase.md +231 -0
- package/modules/drive/src/workflows/init-project.md +698 -0
- package/modules/drive/src/workflows/map-codebase.md +459 -0
- package/modules/drive/src/workflows/pause-work.md +259 -0
- package/modules/drive/src/workflows/phase-assumptions.md +181 -0
- package/modules/drive/src/workflows/plan-phase.md +385 -0
- package/modules/drive/src/workflows/quality-gate.md +263 -0
- package/modules/drive/src/workflows/register-manifest.md +107 -0
- package/modules/drive/src/workflows/research.md +241 -0
- package/modules/drive/src/workflows/resume-project.md +200 -0
- package/modules/drive/src/workflows/roadmap-management.md +334 -0
- package/modules/drive/src/workflows/transition-phase.md +368 -0
- package/modules/drive/src/workflows/unify-phase.md +290 -0
- package/modules/drive/src/workflows/verify-work.md +241 -0
- package/modules/forge/README.md +281 -0
- package/modules/forge/bin/install.js +200 -0
- package/modules/forge/package.json +32 -0
- package/modules/forge/skillsmith/rules/checklists-rules.md +42 -0
- package/modules/forge/skillsmith/rules/context-rules.md +43 -0
- package/modules/forge/skillsmith/rules/entry-point-rules.md +44 -0
- package/modules/forge/skillsmith/rules/frameworks-rules.md +43 -0
- package/modules/forge/skillsmith/rules/tasks-rules.md +52 -0
- package/modules/forge/skillsmith/rules/templates-rules.md +43 -0
- package/modules/forge/skillsmith/skillsmith.md +82 -0
- package/modules/forge/skillsmith/tasks/audit.md +277 -0
- package/modules/forge/skillsmith/tasks/discover.md +145 -0
- package/modules/forge/skillsmith/tasks/distill.md +276 -0
- package/modules/forge/skillsmith/tasks/scaffold.md +349 -0
- package/modules/forge/specs/checklists.md +193 -0
- package/modules/forge/specs/context.md +223 -0
- package/modules/forge/specs/entry-point.md +320 -0
- package/modules/forge/specs/frameworks.md +228 -0
- package/modules/forge/specs/rules.md +245 -0
- package/modules/forge/specs/tasks.md +344 -0
- package/modules/forge/specs/templates.md +335 -0
- package/modules/forge/terminal.svg +70 -0
- package/modules/ignition/README.md +245 -0
- package/modules/ignition/bin/install.js +184 -0
- package/modules/ignition/checklists/planning-quality.md +55 -0
- package/modules/ignition/data/application/config.md +21 -0
- package/modules/ignition/data/application/guide.md +51 -0
- package/modules/ignition/data/application/skill-loadout.md +11 -0
- package/modules/ignition/data/campaign/config.md +18 -0
- package/modules/ignition/data/campaign/guide.md +36 -0
- package/modules/ignition/data/campaign/skill-loadout.md +10 -0
- package/modules/ignition/data/client/config.md +18 -0
- package/modules/ignition/data/client/guide.md +36 -0
- package/modules/ignition/data/client/skill-loadout.md +11 -0
- package/modules/ignition/data/utility/config.md +18 -0
- package/modules/ignition/data/utility/guide.md +31 -0
- package/modules/ignition/data/utility/skill-loadout.md +8 -0
- package/modules/ignition/data/workflow/config.md +19 -0
- package/modules/ignition/data/workflow/guide.md +41 -0
- package/modules/ignition/data/workflow/skill-loadout.md +10 -0
- package/modules/ignition/integration.js +54 -0
- package/modules/ignition/package.json +35 -0
- package/modules/ignition/seed.md +81 -0
- package/modules/ignition/tasks/add-type.md +164 -0
- package/modules/ignition/tasks/graduate.md +182 -0
- package/modules/ignition/tasks/ideate.md +221 -0
- package/modules/ignition/tasks/launch.md +137 -0
- package/modules/ignition/tasks/status.md +71 -0
- package/modules/ignition/templates/planning-application.md +193 -0
- package/modules/ignition/templates/planning-campaign.md +138 -0
- package/modules/ignition/templates/planning-client.md +149 -0
- package/modules/ignition/templates/planning-utility.md +112 -0
- package/modules/ignition/templates/planning-workflow.md +125 -0
- package/modules/ignition/terminal.svg +74 -0
- package/modules/mission-control/CONTEXT-CONTINUITY-SPEC.md +293 -0
- package/modules/mission-control/CONTEXT-ENGINEERING-GUIDE.md +282 -0
- package/modules/mission-control/README.md +91 -0
- package/modules/mission-control/assets/terminal.svg +80 -0
- package/modules/mission-control/examples/entities.example.json +133 -0
- package/modules/mission-control/examples/projects.example.json +318 -0
- package/modules/mission-control/examples/state.example.json +183 -0
- package/modules/mission-control/examples/vector.example.json +245 -0
- package/modules/mission-control/mission-control/checklists/install-verification.md +46 -0
- package/modules/mission-control/mission-control/frameworks/framework-registry.md +83 -0
- package/modules/mission-control/mission-control/mission-control.md +83 -0
- package/modules/mission-control/mission-control/tasks/insights.md +73 -0
- package/modules/mission-control/mission-control/tasks/install.md +194 -0
- package/modules/mission-control/mission-control/tasks/status.md +125 -0
- package/modules/mission-control/schemas/entities.schema.json +89 -0
- package/modules/mission-control/schemas/projects.schema.json +221 -0
- package/modules/mission-control/schemas/state.schema.json +108 -0
- package/modules/mission-control/schemas/vector.schema.json +200 -0
- package/modules/momentum/README.md +678 -0
- package/modules/momentum/bin/install.js +563 -0
- package/modules/momentum/integration.js +131 -0
- package/modules/momentum/package.json +42 -0
- package/modules/momentum/schemas/entities.schema.json +89 -0
- package/modules/momentum/schemas/projects.schema.json +221 -0
- package/modules/momentum/schemas/state.schema.json +108 -0
- package/modules/momentum/src/commands/audit-claude-md.md +31 -0
- package/modules/momentum/src/commands/audit.md +33 -0
- package/modules/momentum/src/commands/groom.md +35 -0
- package/modules/momentum/src/commands/history.md +27 -0
- package/modules/momentum/src/commands/pulse.md +33 -0
- package/modules/momentum/src/commands/scaffold.md +33 -0
- package/modules/momentum/src/commands/status.md +28 -0
- package/modules/momentum/src/commands/surface-convert.md +35 -0
- package/modules/momentum/src/commands/surface-create.md +34 -0
- package/modules/momentum/src/commands/surface-list.md +27 -0
- package/modules/momentum/src/commands/vector-hygiene.md +33 -0
- package/modules/momentum/src/framework/context/momentum-principles.md +71 -0
- package/modules/momentum/src/framework/frameworks/audit-strategies.md +53 -0
- package/modules/momentum/src/framework/frameworks/satellite-registration.md +44 -0
- package/modules/momentum/src/framework/tasks/audit-claude-md.md +68 -0
- package/modules/momentum/src/framework/tasks/audit.md +64 -0
- package/modules/momentum/src/framework/tasks/groom.md +164 -0
- package/modules/momentum/src/framework/tasks/history.md +34 -0
- package/modules/momentum/src/framework/tasks/pulse.md +83 -0
- package/modules/momentum/src/framework/tasks/scaffold.md +202 -0
- package/modules/momentum/src/framework/tasks/status.md +35 -0
- package/modules/momentum/src/framework/tasks/surface-convert.md +143 -0
- package/modules/momentum/src/framework/tasks/surface-create.md +184 -0
- package/modules/momentum/src/framework/tasks/surface-list.md +42 -0
- package/modules/momentum/src/framework/tasks/vector-hygiene.md +160 -0
- package/modules/momentum/src/framework/templates/workspace-json.md +96 -0
- package/modules/momentum/src/hooks/_template.py +129 -0
- package/modules/momentum/src/hooks/active-hook.py +178 -0
- package/modules/momentum/src/hooks/backlog-hook.py +115 -0
- package/modules/momentum/src/hooks/mission-control-insights.py +169 -0
- package/modules/momentum/src/hooks/momentum-pulse-check.py +351 -0
- package/modules/momentum/src/hooks/operator.py +53 -0
- package/modules/momentum/src/hooks/psmm-injector.py +67 -0
- package/modules/momentum/src/hooks/satellite-detection.py +248 -0
- package/modules/momentum/src/packages/momentum-mcp/index.js +119 -0
- package/modules/momentum/src/packages/momentum-mcp/package.json +10 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/entities.js +226 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/operator.js +106 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/projects.js +322 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/psmm.js +206 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/state.js +199 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/surfaces.js +404 -0
- package/modules/momentum/src/skill/momentum.md +111 -0
- package/modules/momentum/src/tasks/groom.md +164 -0
- package/modules/momentum/src/templates/operator.json +66 -0
- package/modules/momentum/src/templates/workspace.json +111 -0
- package/modules/momentum/terminal.svg +77 -0
- package/modules/radar/README.md +1552 -0
- package/modules/radar/commands/audit.md +233 -0
- package/modules/radar/commands/guardrails.md +194 -0
- package/modules/radar/commands/init.md +207 -0
- package/modules/radar/commands/playbook.md +176 -0
- package/modules/radar/commands/remediate.md +156 -0
- package/modules/radar/commands/report.md +172 -0
- package/modules/radar/commands/resume.md +176 -0
- package/modules/radar/commands/status.md +148 -0
- package/modules/radar/commands/transform.md +205 -0
- package/modules/radar/commands/validate.md +177 -0
- package/modules/radar/docs/ARCHITECTURE.md +336 -0
- package/modules/radar/docs/GETTING-STARTED.md +287 -0
- package/modules/radar/docs/standards/agents.md +197 -0
- package/modules/radar/docs/standards/commands.md +250 -0
- package/modules/radar/docs/standards/domains.md +191 -0
- package/modules/radar/docs/standards/personas.md +211 -0
- package/modules/radar/docs/standards/rules.md +218 -0
- package/modules/radar/docs/standards/runtime.md +445 -0
- package/modules/radar/docs/standards/schemas.md +269 -0
- package/modules/radar/docs/standards/tools.md +273 -0
- package/modules/radar/docs/standards/workflows.md +254 -0
- package/modules/radar/docs/terminal.svg +72 -0
- package/modules/radar/docs/validation/convention-compliance-report.md +183 -0
- package/modules/radar/docs/validation/cross-reference-report.md +195 -0
- package/modules/radar/docs/validation/validation-summary.md +118 -0
- package/modules/radar/docs/validation/version-manifest.yaml +363 -0
- package/modules/radar/install.sh +711 -0
- package/modules/radar/integration.js +53 -0
- package/modules/radar/src/core/agents/architect.md +25 -0
- package/modules/radar/src/core/agents/compliance-officer.md +25 -0
- package/modules/radar/src/core/agents/data-engineer.md +25 -0
- package/modules/radar/src/core/agents/devils-advocate.md +22 -0
- package/modules/radar/src/core/agents/performance-engineer.md +25 -0
- package/modules/radar/src/core/agents/principal-engineer.md +23 -0
- package/modules/radar/src/core/agents/reality-gap-analyst.md +22 -0
- package/modules/radar/src/core/agents/security-engineer.md +25 -0
- package/modules/radar/src/core/agents/senior-app-engineer.md +25 -0
- package/modules/radar/src/core/agents/sre.md +25 -0
- package/modules/radar/src/core/agents/staff-engineer.md +23 -0
- package/modules/radar/src/core/agents/test-engineer.md +25 -0
- package/modules/radar/src/core/personas/architect.md +111 -0
- package/modules/radar/src/core/personas/compliance-officer.md +104 -0
- package/modules/radar/src/core/personas/data-engineer.md +113 -0
- package/modules/radar/src/core/personas/devils-advocate.md +105 -0
- package/modules/radar/src/core/personas/performance-engineer.md +119 -0
- package/modules/radar/src/core/personas/principal-engineer.md +119 -0
- package/modules/radar/src/core/personas/reality-gap-analyst.md +111 -0
- package/modules/radar/src/core/personas/security-engineer.md +108 -0
- package/modules/radar/src/core/personas/senior-app-engineer.md +111 -0
- package/modules/radar/src/core/personas/sre.md +117 -0
- package/modules/radar/src/core/personas/staff-engineer.md +109 -0
- package/modules/radar/src/core/personas/test-engineer.md +109 -0
- package/modules/radar/src/core/workflows/disagreement-resolution.md +183 -0
- package/modules/radar/src/core/workflows/phase-0-context.md +148 -0
- package/modules/radar/src/core/workflows/phase-1-reconnaissance.md +169 -0
- package/modules/radar/src/core/workflows/phase-2-domain-audits.md +190 -0
- package/modules/radar/src/core/workflows/phase-3-cross-domain.md +177 -0
- package/modules/radar/src/core/workflows/phase-4-adversarial-review.md +165 -0
- package/modules/radar/src/core/workflows/phase-5-report.md +189 -0
- package/modules/radar/src/core/workflows/phase-checkpoint.md +222 -0
- package/modules/radar/src/core/workflows/session-handoff.md +152 -0
- package/modules/radar/src/domains/00-context.md +201 -0
- package/modules/radar/src/domains/01-architecture.md +248 -0
- package/modules/radar/src/domains/02-data.md +224 -0
- package/modules/radar/src/domains/03-correctness.md +230 -0
- package/modules/radar/src/domains/04-security.md +274 -0
- package/modules/radar/src/domains/05-compliance.md +228 -0
- package/modules/radar/src/domains/06-testing.md +228 -0
- package/modules/radar/src/domains/07-reliability.md +246 -0
- package/modules/radar/src/domains/08-performance.md +247 -0
- package/modules/radar/src/domains/09-maintainability.md +271 -0
- package/modules/radar/src/domains/10-operability.md +250 -0
- package/modules/radar/src/domains/11-change-risk.md +246 -0
- package/modules/radar/src/domains/12-team-risk.md +221 -0
- package/modules/radar/src/domains/13-risk-synthesis.md +202 -0
- package/modules/radar/src/rules/agent-boundaries.md +78 -0
- package/modules/radar/src/rules/disagreement-protocol.md +76 -0
- package/modules/radar/src/rules/epistemic-hygiene.md +78 -0
- package/modules/radar/src/schemas/confidence.md +185 -0
- package/modules/radar/src/schemas/disagreement.md +238 -0
- package/modules/radar/src/schemas/finding.md +287 -0
- package/modules/radar/src/schemas/report-section.md +150 -0
- package/modules/radar/src/schemas/signal.md +108 -0
- package/modules/radar/src/tools/checkov.md +463 -0
- package/modules/radar/src/tools/git-history.md +581 -0
- package/modules/radar/src/tools/gitleaks.md +447 -0
- package/modules/radar/src/tools/grype.md +611 -0
- package/modules/radar/src/tools/semgrep.md +378 -0
- package/modules/radar/src/tools/sonarqube.md +550 -0
- package/modules/radar/src/tools/syft.md +539 -0
- package/modules/radar/src/tools/trivy.md +439 -0
- package/modules/radar/src/transform/agents/change-risk-modeler.md +24 -0
- package/modules/radar/src/transform/agents/execution-validator.md +24 -0
- package/modules/radar/src/transform/agents/guardrail-generator.md +24 -0
- package/modules/radar/src/transform/agents/pedagogy-agent.md +24 -0
- package/modules/radar/src/transform/agents/remediation-architect.md +24 -0
- package/modules/radar/src/transform/personas/change-risk-modeler.md +95 -0
- package/modules/radar/src/transform/personas/execution-validator.md +95 -0
- package/modules/radar/src/transform/personas/guardrail-generator.md +103 -0
- package/modules/radar/src/transform/personas/pedagogy-agent.md +105 -0
- package/modules/radar/src/transform/personas/remediation-architect.md +95 -0
- package/modules/radar/src/transform/rules/change-risk-rules.md +87 -0
- package/modules/radar/src/transform/rules/safety-governance.md +87 -0
- package/modules/radar/src/transform/schemas/change-risk.md +139 -0
- package/modules/radar/src/transform/schemas/intervention-level.md +207 -0
- package/modules/radar/src/transform/schemas/playbook.md +205 -0
- package/modules/radar/src/transform/schemas/verification-plan.md +134 -0
- package/modules/radar/src/transform/workflows/phase-6-remediation.md +148 -0
- package/modules/radar/src/transform/workflows/phase-7-risk-validation.md +161 -0
- package/modules/radar/src/transform/workflows/phase-8-execution-planning.md +159 -0
- package/modules/radar/src/transform/workflows/transform-safety.md +158 -0
- package/modules/vector/.vector-template/sessions/.gitkeep +0 -0
- package/modules/vector/.vector-template/vector.json +72 -0
- package/modules/vector/AUDIT-CLAUDEMD.md +154 -0
- package/modules/vector/INSTALL.md +185 -0
- package/modules/vector/LICENSE +21 -0
- package/modules/vector/README.md +409 -0
- package/modules/vector/VECTOR-BLOCK.md +57 -0
- package/modules/vector/assets/terminal.svg +68 -0
- package/modules/vector/bin/install.js +455 -0
- package/modules/vector/bin/migrate-v1-to-v2.sh +492 -0
- package/modules/vector/commands/help.md +46 -0
- package/modules/vector/hooks/vector-hook.py +775 -0
- package/modules/vector/mcp/index.js +118 -0
- package/modules/vector/mcp/package.json +10 -0
- package/modules/vector/mcp/tools/decisions.js +269 -0
- package/modules/vector/mcp/tools/domains.js +361 -0
- package/modules/vector/mcp/tools/staging.js +252 -0
- package/modules/vector/mcp/tools/vector-json.js +647 -0
- package/modules/vector/package.json +38 -0
- package/modules/vector/schemas/vector.schema.json +237 -0
- package/package.json +39 -0
- package/shared/branding/branding.js +70 -0
- package/shared/config/defaults.json +59 -0
- package/shared/events/README.md +175 -0
- package/shared/events/event-bus.js +134 -0
- package/shared/events/event_bus.py +255 -0
- package/shared/events/integrations.js +161 -0
- package/shared/events/schemas/audit-complete.schema.json +21 -0
- package/shared/events/schemas/phase-progress.schema.json +23 -0
- package/shared/events/schemas/plan-created.schema.json +21 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Systematic debugging with persistent state that survives context resets. The debug file IS the debugging brain - create it immediately and update it continuously.
|
|
3
|
+
|
|
4
|
+
You are the debugger. The user knows what's wrong (behavior), not why (root cause). Gather symptoms, then investigate autonomously.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<philosophy>
|
|
8
|
+
**User = reporter. Claude = investigator.**
|
|
9
|
+
|
|
10
|
+
The user knows:
|
|
11
|
+
- What they expected to happen
|
|
12
|
+
- What actually happened
|
|
13
|
+
- Any error messages they saw
|
|
14
|
+
- When it started / if it ever worked
|
|
15
|
+
|
|
16
|
+
The user does NOT know (and shouldn't be asked):
|
|
17
|
+
- What's causing the bug
|
|
18
|
+
- Which file has the problem
|
|
19
|
+
- What the fix should be
|
|
20
|
+
|
|
21
|
+
Ask about experience. Investigate the cause yourself.
|
|
22
|
+
</philosophy>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
@src/templates/DEBUG.md
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
|
|
30
|
+
<step name="check_active_session">
|
|
31
|
+
**First: Check for active debug sessions**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
ls .drive/debug/*.md 2>/dev/null | grep -v resolved
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**If active sessions exist AND no $ARGUMENTS provided:**
|
|
38
|
+
|
|
39
|
+
Read each file's frontmatter (status, trigger) and Current Focus (hypothesis, next_action).
|
|
40
|
+
|
|
41
|
+
Display inline:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
## Active Debug Sessions
|
|
45
|
+
|
|
46
|
+
| # | Slug | Status | Hypothesis | Next Action |
|
|
47
|
+
|---|------|--------|------------|-------------|
|
|
48
|
+
| 1 | auth-logout | investigating | Token refresh not called | Check console output |
|
|
49
|
+
| 2 | api-timeout | gathering | - | Gather symptoms |
|
|
50
|
+
|
|
51
|
+
Reply with a number to resume, or describe a new issue to start fresh.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Wait for user response.
|
|
55
|
+
|
|
56
|
+
- If user replies with number → Load that file, go to `resume_from_file`
|
|
57
|
+
- If user replies with text → Treat as new issue trigger, go to `create_debug_file`
|
|
58
|
+
|
|
59
|
+
**If no active sessions:**
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
No active debug sessions.
|
|
63
|
+
|
|
64
|
+
Describe the issue to start debugging.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Wait for user to describe the issue.
|
|
68
|
+
</step>
|
|
69
|
+
|
|
70
|
+
<step name="create_debug_file">
|
|
71
|
+
**Create debug file IMMEDIATELY**
|
|
72
|
+
|
|
73
|
+
Generate slug from user input (lowercase, hyphens, max 30 chars).
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
mkdir -p .drive/debug
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Create file using DEBUG.md template with initial state:
|
|
80
|
+
- status: gathering
|
|
81
|
+
- trigger: [verbatim user input]
|
|
82
|
+
- Current Focus: next_action = "gather symptoms from user"
|
|
83
|
+
|
|
84
|
+
Write to `.drive/debug/[slug].md`
|
|
85
|
+
|
|
86
|
+
Proceed to `symptom_gathering`.
|
|
87
|
+
</step>
|
|
88
|
+
|
|
89
|
+
<step name="symptom_gathering">
|
|
90
|
+
**Gather symptoms through questioning - update file after EACH answer**
|
|
91
|
+
|
|
92
|
+
CRITICAL: Update the debug file after each piece of information gathered.
|
|
93
|
+
|
|
94
|
+
**1. Expected behavior:**
|
|
95
|
+
Use AskUserQuestion: "What should happen?"
|
|
96
|
+
After answer → Update Symptoms.expected
|
|
97
|
+
|
|
98
|
+
**2. Actual behavior:**
|
|
99
|
+
Use AskUserQuestion: "What actually happens instead?"
|
|
100
|
+
After answer → Update Symptoms.actual
|
|
101
|
+
|
|
102
|
+
**3. Error messages:**
|
|
103
|
+
Use AskUserQuestion: "Any error messages?"
|
|
104
|
+
After answer → Update Symptoms.errors
|
|
105
|
+
|
|
106
|
+
**4. When it started:**
|
|
107
|
+
Use AskUserQuestion: "When did this start?"
|
|
108
|
+
After answer → Update Symptoms.started
|
|
109
|
+
|
|
110
|
+
**5. Reproduction:**
|
|
111
|
+
Use AskUserQuestion: "How do you trigger this?"
|
|
112
|
+
After answer → Update Symptoms.reproduction
|
|
113
|
+
|
|
114
|
+
**6. Ready check:**
|
|
115
|
+
Use AskUserQuestion: "Enough context to investigate?"
|
|
116
|
+
- If "Start investigating" → Update status to "investigating", proceed to `investigation_loop`
|
|
117
|
+
- If "I have more context" → receive it, update relevant field, ask again
|
|
118
|
+
</step>
|
|
119
|
+
|
|
120
|
+
<step name="investigation_loop">
|
|
121
|
+
**Autonomous investigation - update file continuously**
|
|
122
|
+
|
|
123
|
+
CRITICAL: Before EVERY action, update Current Focus. After EVERY finding, append to Evidence.
|
|
124
|
+
|
|
125
|
+
**Phase 1: Initial evidence gathering**
|
|
126
|
+
|
|
127
|
+
Update Current Focus:
|
|
128
|
+
```
|
|
129
|
+
hypothesis: gathering initial evidence
|
|
130
|
+
test: examining error context and relevant code
|
|
131
|
+
expecting: clues about failure point
|
|
132
|
+
next_action: [specific next action]
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
1. If errors exist in Symptoms → search codebase for error text
|
|
136
|
+
2. Identify relevant code area from symptoms
|
|
137
|
+
3. Read relevant files COMPLETELY
|
|
138
|
+
4. Run app/tests to observe behavior firsthand
|
|
139
|
+
|
|
140
|
+
After EACH finding → Append to Evidence
|
|
141
|
+
|
|
142
|
+
**Phase 2: Form hypothesis**
|
|
143
|
+
|
|
144
|
+
Based on evidence, form SPECIFIC, FALSIFIABLE hypothesis.
|
|
145
|
+
|
|
146
|
+
Update Current Focus with hypothesis, test, expecting, next_action.
|
|
147
|
+
|
|
148
|
+
**Phase 3: Test hypothesis**
|
|
149
|
+
|
|
150
|
+
Execute the test. ONE hypothesis at a time.
|
|
151
|
+
|
|
152
|
+
Append result to Evidence.
|
|
153
|
+
|
|
154
|
+
**Phase 4: Evaluate**
|
|
155
|
+
|
|
156
|
+
If CONFIRMED:
|
|
157
|
+
- Update Resolution.root_cause with evidence
|
|
158
|
+
- Update status to "fixing"
|
|
159
|
+
- Proceed to `fix_and_verify`
|
|
160
|
+
|
|
161
|
+
If ELIMINATED:
|
|
162
|
+
- Append to Eliminated section with evidence
|
|
163
|
+
- Form new hypothesis
|
|
164
|
+
- Return to Phase 2
|
|
165
|
+
|
|
166
|
+
**Context management:**
|
|
167
|
+
|
|
168
|
+
After significant investigation (5+ evidence entries), check if context is filling.
|
|
169
|
+
If so, ensure Current Focus is fully updated and suggest:
|
|
170
|
+
"Context filling up. Safe to start fresh session - debug file preserves state."
|
|
171
|
+
</step>
|
|
172
|
+
|
|
173
|
+
<step name="resume_from_file">
|
|
174
|
+
**Resume investigation from debug file**
|
|
175
|
+
|
|
176
|
+
Read the full debug file.
|
|
177
|
+
|
|
178
|
+
Announce:
|
|
179
|
+
```
|
|
180
|
+
Resuming: [slug]
|
|
181
|
+
Status: [status]
|
|
182
|
+
Current hypothesis: [from Current Focus]
|
|
183
|
+
Evidence gathered: [count]
|
|
184
|
+
Eliminated: [count] hypotheses
|
|
185
|
+
|
|
186
|
+
Continuing from: [next_action]
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Based on status:
|
|
190
|
+
- "gathering" → Continue `symptom_gathering` from where left off
|
|
191
|
+
- "investigating" → Continue `investigation_loop` from Current Focus
|
|
192
|
+
- "fixing" → Continue `fix_and_verify`
|
|
193
|
+
- "verifying" → Continue verification
|
|
194
|
+
|
|
195
|
+
The file tells you exactly where you were.
|
|
196
|
+
</step>
|
|
197
|
+
|
|
198
|
+
<step name="fix_and_verify">
|
|
199
|
+
**Apply fix and verify**
|
|
200
|
+
|
|
201
|
+
Update status to "fixing".
|
|
202
|
+
|
|
203
|
+
**1. Implement minimal fix**
|
|
204
|
+
|
|
205
|
+
Make the SMALLEST change that addresses root cause.
|
|
206
|
+
|
|
207
|
+
Update Resolution.fix with what was changed and why.
|
|
208
|
+
Update Resolution.files_changed with modified files.
|
|
209
|
+
|
|
210
|
+
**Complex fixes:** If fix requires significant code changes:
|
|
211
|
+
- Create a dedicated PLAN.md for the fix
|
|
212
|
+
- Reference debug file in plan context
|
|
213
|
+
- Debug file stays in "fixing" until plan completes
|
|
214
|
+
|
|
215
|
+
**2. Verify**
|
|
216
|
+
|
|
217
|
+
Update status to "verifying".
|
|
218
|
+
|
|
219
|
+
Test against original Symptoms:
|
|
220
|
+
- Does expected behavior now occur?
|
|
221
|
+
- Are errors gone?
|
|
222
|
+
- Does reproduction no longer trigger issue?
|
|
223
|
+
|
|
224
|
+
If verification FAILS:
|
|
225
|
+
- Append finding to Evidence
|
|
226
|
+
- Update status back to "investigating"
|
|
227
|
+
- Return to `investigation_loop`
|
|
228
|
+
|
|
229
|
+
If verification PASSES:
|
|
230
|
+
- Update Resolution.verification
|
|
231
|
+
- Proceed to `archive_session`
|
|
232
|
+
</step>
|
|
233
|
+
|
|
234
|
+
<step name="archive_session">
|
|
235
|
+
**Archive resolved debug session**
|
|
236
|
+
|
|
237
|
+
Update status to "resolved".
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
mkdir -p .drive/debug/resolved
|
|
241
|
+
mv .drive/debug/[slug].md .drive/debug/resolved/
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Commit:
|
|
245
|
+
```bash
|
|
246
|
+
git add -A
|
|
247
|
+
git commit -m "fix: [brief description]
|
|
248
|
+
|
|
249
|
+
Root cause: [from Resolution.root_cause]
|
|
250
|
+
Debug session: .drive/debug/resolved/[slug].md"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Report:
|
|
254
|
+
```
|
|
255
|
+
Debug complete.
|
|
256
|
+
|
|
257
|
+
Root cause: [root_cause]
|
|
258
|
+
Fix: [fix]
|
|
259
|
+
Files: [files_changed]
|
|
260
|
+
|
|
261
|
+
Session archived: .drive/debug/resolved/[slug].md
|
|
262
|
+
```
|
|
263
|
+
</step>
|
|
264
|
+
|
|
265
|
+
</process>
|
|
266
|
+
|
|
267
|
+
<update_rules>
|
|
268
|
+
**Section update rules (from template):**
|
|
269
|
+
|
|
270
|
+
| Section | Rule | When |
|
|
271
|
+
|---------|------|------|
|
|
272
|
+
| Frontmatter.status | OVERWRITE | Each phase transition |
|
|
273
|
+
| Frontmatter.updated | OVERWRITE | Every file update |
|
|
274
|
+
| Current Focus | OVERWRITE | Before every action |
|
|
275
|
+
| Symptoms | IMMUTABLE | After gathering complete |
|
|
276
|
+
| Eliminated | APPEND | When hypothesis disproved |
|
|
277
|
+
| Evidence | APPEND | After each finding |
|
|
278
|
+
| Resolution | OVERWRITE | As understanding evolves |
|
|
279
|
+
|
|
280
|
+
**CRITICAL:** Update the file BEFORE taking action, not after.
|
|
281
|
+
</update_rules>
|
|
282
|
+
|
|
283
|
+
<success_criteria>
|
|
284
|
+
- [ ] Debug file created IMMEDIATELY on command
|
|
285
|
+
- [ ] File updated after EACH piece of information
|
|
286
|
+
- [ ] Current Focus always reflects NOW
|
|
287
|
+
- [ ] Evidence appended for every finding
|
|
288
|
+
- [ ] Eliminated prevents re-investigation
|
|
289
|
+
- [ ] Can resume perfectly from any context reset
|
|
290
|
+
- [ ] Root cause confirmed with evidence before fixing
|
|
291
|
+
- [ ] Fix verified against original symptoms
|
|
292
|
+
</success_criteria>
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Execute discovery at appropriate depth to inform planning decisions. Produces DISCOVERY.md with findings, recommendation, and confidence level.
|
|
3
|
+
|
|
4
|
+
Distinct from research workflow: Research gathers information. Discovery makes technical decisions.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<when_to_use>
|
|
8
|
+
- Before planning a phase with technical unknowns
|
|
9
|
+
- When choosing between libraries/frameworks
|
|
10
|
+
- For architectural decisions
|
|
11
|
+
- When integrating new external services
|
|
12
|
+
</when_to_use>
|
|
13
|
+
|
|
14
|
+
<depth_levels>
|
|
15
|
+
|
|
16
|
+
| Level | Name | Time | Output | When |
|
|
17
|
+
|-------|------|------|--------|------|
|
|
18
|
+
| 1 | Quick | 2-5 min | Verbal confirmation | Confirming known approach |
|
|
19
|
+
| 2 | Standard | 15-30 min | DISCOVERY.md | Choosing between options |
|
|
20
|
+
| 3 | Deep | 1+ hour | Detailed DISCOVERY.md | Novel problems, high-risk |
|
|
21
|
+
|
|
22
|
+
</depth_levels>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
|
|
26
|
+
<step name="determine_depth">
|
|
27
|
+
**Determine discovery depth:**
|
|
28
|
+
|
|
29
|
+
If $ARGUMENTS specifies depth (e.g., "deep auth options"):
|
|
30
|
+
- Use specified depth
|
|
31
|
+
|
|
32
|
+
Otherwise, infer from context:
|
|
33
|
+
- Single known library, just verifying → Level 1 (quick)
|
|
34
|
+
- Comparing 2-3 options → Level 2 (standard)
|
|
35
|
+
- Novel problem, architectural decision → Level 3 (deep)
|
|
36
|
+
|
|
37
|
+
Confirm with user if unclear:
|
|
38
|
+
```
|
|
39
|
+
Discovery for: [topic]
|
|
40
|
+
Suggested depth: [level] - [rationale]
|
|
41
|
+
|
|
42
|
+
Proceed? (yes / suggest different depth)
|
|
43
|
+
```
|
|
44
|
+
</step>
|
|
45
|
+
|
|
46
|
+
<step name="level_1_quick">
|
|
47
|
+
**Level 1: Quick Verification (2-5 minutes)**
|
|
48
|
+
|
|
49
|
+
For: Confirming known approach still valid.
|
|
50
|
+
|
|
51
|
+
1. Quick search for current state of library/approach
|
|
52
|
+
2. Verify:
|
|
53
|
+
- Still actively maintained
|
|
54
|
+
- API unchanged from expectations
|
|
55
|
+
- No critical issues
|
|
56
|
+
|
|
57
|
+
3. **If verified:** Proceed to planning. No DISCOVERY.md needed.
|
|
58
|
+
4. **If concerns:** Escalate to Level 2.
|
|
59
|
+
|
|
60
|
+
Output: Verbal confirmation to proceed.
|
|
61
|
+
</step>
|
|
62
|
+
|
|
63
|
+
<step name="level_2_standard">
|
|
64
|
+
**Level 2: Standard Discovery (15-30 minutes)**
|
|
65
|
+
|
|
66
|
+
For: Choosing between options, new integration.
|
|
67
|
+
|
|
68
|
+
1. **Identify what to discover:**
|
|
69
|
+
- What options exist?
|
|
70
|
+
- Key comparison criteria?
|
|
71
|
+
- Our specific use case?
|
|
72
|
+
|
|
73
|
+
2. **Research each option:**
|
|
74
|
+
Use research subagent (Task tool with Explore or general-purpose):
|
|
75
|
+
- Official documentation
|
|
76
|
+
- Current version/status
|
|
77
|
+
- Key features for our use case
|
|
78
|
+
|
|
79
|
+
3. **Compare options:**
|
|
80
|
+
- Build comparison table
|
|
81
|
+
- Note pros/cons for each
|
|
82
|
+
- Identify deal-breakers
|
|
83
|
+
|
|
84
|
+
4. **Reference quality patterns:**
|
|
85
|
+
@src/references/research-quality-control.md
|
|
86
|
+
- Cross-verify findings
|
|
87
|
+
- Check source currency
|
|
88
|
+
- Assign confidence
|
|
89
|
+
|
|
90
|
+
5. **Create DISCOVERY.md:**
|
|
91
|
+
Use template: @src/templates/DISCOVERY.md
|
|
92
|
+
- Summary with recommendation
|
|
93
|
+
- Findings per option
|
|
94
|
+
- Confidence level (should be MEDIUM-HIGH)
|
|
95
|
+
|
|
96
|
+
Output: `.drive/phases/XX-name/DISCOVERY.md`
|
|
97
|
+
</step>
|
|
98
|
+
|
|
99
|
+
<step name="level_3_deep">
|
|
100
|
+
**Level 3: Deep Dive (1+ hour)**
|
|
101
|
+
|
|
102
|
+
For: Architectural decisions, novel problems.
|
|
103
|
+
|
|
104
|
+
1. **Scope the discovery:**
|
|
105
|
+
- Define clear scope
|
|
106
|
+
- List specific questions to answer
|
|
107
|
+
- Set include/exclude boundaries
|
|
108
|
+
|
|
109
|
+
2. **Exhaustive research:**
|
|
110
|
+
Use research subagents for:
|
|
111
|
+
- All relevant libraries/frameworks
|
|
112
|
+
- Architecture patterns
|
|
113
|
+
- Best practices
|
|
114
|
+
- Known limitations
|
|
115
|
+
|
|
116
|
+
3. **Deep analysis:**
|
|
117
|
+
- How others solved similar problems
|
|
118
|
+
- Production experiences
|
|
119
|
+
- Gotchas and anti-patterns
|
|
120
|
+
|
|
121
|
+
4. **Cross-verify ALL findings:**
|
|
122
|
+
- Every claim verified with authoritative source
|
|
123
|
+
- Mark verified vs assumed
|
|
124
|
+
- Flag contradictions
|
|
125
|
+
|
|
126
|
+
5. **Create comprehensive DISCOVERY.md:**
|
|
127
|
+
- Full template structure
|
|
128
|
+
- Quality report with sources
|
|
129
|
+
- Confidence per finding
|
|
130
|
+
- Validation checkpoints if LOW confidence
|
|
131
|
+
|
|
132
|
+
6. **Confidence gate:**
|
|
133
|
+
If LOW confidence on critical finding:
|
|
134
|
+
```
|
|
135
|
+
Discovery confidence is LOW: [reason]
|
|
136
|
+
|
|
137
|
+
Options:
|
|
138
|
+
1. Dig deeper (more research)
|
|
139
|
+
2. Proceed anyway (accept uncertainty)
|
|
140
|
+
3. Pause (need to think)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Output: Comprehensive `.drive/phases/XX-name/DISCOVERY.md`
|
|
144
|
+
</step>
|
|
145
|
+
|
|
146
|
+
<step name="route_to_planning">
|
|
147
|
+
**Complete discovery and route:**
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
════════════════════════════════════════
|
|
151
|
+
DISCOVERY COMPLETE
|
|
152
|
+
════════════════════════════════════════
|
|
153
|
+
|
|
154
|
+
Topic: [what was discovered]
|
|
155
|
+
Depth: Level [N]
|
|
156
|
+
Confidence: [HIGH/MEDIUM/LOW]
|
|
157
|
+
|
|
158
|
+
Recommendation: [one-liner]
|
|
159
|
+
|
|
160
|
+
Output: [path to DISCOVERY.md or "verbal confirmation"]
|
|
161
|
+
|
|
162
|
+
────────────────────────────────────────
|
|
163
|
+
▶ NEXT: /drive:plan [phase]
|
|
164
|
+
────────────────────────────────────────
|
|
165
|
+
```
|
|
166
|
+
</step>
|
|
167
|
+
|
|
168
|
+
</process>
|
|
169
|
+
|
|
170
|
+
<success_criteria>
|
|
171
|
+
**Level 1:**
|
|
172
|
+
- [ ] Known approach verified
|
|
173
|
+
- [ ] Verbal confirmation to proceed
|
|
174
|
+
|
|
175
|
+
**Level 2:**
|
|
176
|
+
- [ ] Options researched
|
|
177
|
+
- [ ] Comparison made
|
|
178
|
+
- [ ] DISCOVERY.md created
|
|
179
|
+
- [ ] Confidence MEDIUM+
|
|
180
|
+
|
|
181
|
+
**Level 3:**
|
|
182
|
+
- [ ] Scope defined
|
|
183
|
+
- [ ] Exhaustive research
|
|
184
|
+
- [ ] All findings cross-verified
|
|
185
|
+
- [ ] DISCOVERY.md created
|
|
186
|
+
- [ ] Confidence gate passed
|
|
187
|
+
</success_criteria>
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Facilitate vision articulation before creating a milestone. Acts as a thinking partner to explore what the user wants to build, then creates MILESTONE-CONTEXT.md for handoff to create-milestone.
|
|
3
|
+
|
|
4
|
+
**Philosophy:** Features first — everything else (scope, phases, constraints) derives from what the user wants to build.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<when_to_use>
|
|
8
|
+
- User completed previous milestone, considering what's next
|
|
9
|
+
- User wants to think through scope before committing
|
|
10
|
+
- User has rough ideas but needs to articulate them
|
|
11
|
+
- Before /drive:milestone when planning is desired
|
|
12
|
+
</when_to_use>
|
|
13
|
+
|
|
14
|
+
<loop_context>
|
|
15
|
+
N/A - This is a pre-planning workflow, not a loop phase.
|
|
16
|
+
After discussion, routes to /drive:milestone (create-milestone).
|
|
17
|
+
</loop_context>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@.drive/STATE.md
|
|
21
|
+
@.drive/PROJECT.md (current requirements and progress)
|
|
22
|
+
@.drive/MILESTONES.md (previous milestone accomplishments, if exists)
|
|
23
|
+
</required_reading>
|
|
24
|
+
|
|
25
|
+
<references>
|
|
26
|
+
@src/templates/milestone-context.md (handoff format)
|
|
27
|
+
</references>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
<step name="check_state" priority="first">
|
|
32
|
+
1. Read STATE.md for current position
|
|
33
|
+
2. Read MILESTONES.md (if exists) for prior accomplishments
|
|
34
|
+
|
|
35
|
+
3. **If active milestone exists:**
|
|
36
|
+
```
|
|
37
|
+
You have an active milestone: {milestone_name}
|
|
38
|
+
|
|
39
|
+
[1] Complete current milestone first
|
|
40
|
+
[2] Start discussion for NEXT milestone (plan ahead)
|
|
41
|
+
```
|
|
42
|
+
Wait for decision.
|
|
43
|
+
|
|
44
|
+
4. **If no active milestone:**
|
|
45
|
+
- Display: "Let's define your next milestone."
|
|
46
|
+
- Proceed to milestone_context step
|
|
47
|
+
</step>
|
|
48
|
+
|
|
49
|
+
<step name="milestone_context">
|
|
50
|
+
**Present prior accomplishments (if any):**
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
════════════════════════════════════════
|
|
54
|
+
MILESTONE DISCUSSION
|
|
55
|
+
════════════════════════════════════════
|
|
56
|
+
|
|
57
|
+
{If MILESTONES.md exists:}
|
|
58
|
+
Previous milestone: {last_milestone_name}
|
|
59
|
+
Accomplishments:
|
|
60
|
+
- {accomplishment_1}
|
|
61
|
+
- {accomplishment_2}
|
|
62
|
+
- {accomplishment_3}
|
|
63
|
+
|
|
64
|
+
{If PROJECT.md has validated requirements:}
|
|
65
|
+
Shipped so far:
|
|
66
|
+
- {validated_requirement_1}
|
|
67
|
+
- {validated_requirement_2}
|
|
68
|
+
|
|
69
|
+
{If PROJECT.md has active requirements:}
|
|
70
|
+
Still planned:
|
|
71
|
+
- {active_requirement_1}
|
|
72
|
+
- {active_requirement_2}
|
|
73
|
+
|
|
74
|
+
────────────────────────────────────────
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This gives user context for the discussion.
|
|
78
|
+
</step>
|
|
79
|
+
|
|
80
|
+
<step name="explore_features">
|
|
81
|
+
**The core question — features first:**
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
What do you want to build next?
|
|
85
|
+
|
|
86
|
+
Don't worry about phases or structure yet — just describe the features,
|
|
87
|
+
capabilities, or improvements you have in mind.
|
|
88
|
+
|
|
89
|
+
(Examples: "Add milestone management", "Fix auth flow and add OAuth",
|
|
90
|
+
"Build dashboard with real-time updates")
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Wait for user response.
|
|
94
|
+
|
|
95
|
+
**Follow-up if needed:**
|
|
96
|
+
- "Any other features you're considering?"
|
|
97
|
+
- "What's the main problem this solves?"
|
|
98
|
+
- "What would 'done' look like for this?"
|
|
99
|
+
|
|
100
|
+
Store responses as `features` list.
|
|
101
|
+
</step>
|
|
102
|
+
|
|
103
|
+
<step name="synthesize_scope">
|
|
104
|
+
From the features discussed, derive:
|
|
105
|
+
|
|
106
|
+
1. **Milestone name/version:**
|
|
107
|
+
- Infer from features (e.g., "Auth features" → "v0.4 Authentication")
|
|
108
|
+
- Or ask: "What would you call this milestone?"
|
|
109
|
+
|
|
110
|
+
2. **Estimated phases:**
|
|
111
|
+
- Group features into logical phases
|
|
112
|
+
- Typical: 2-4 phases per milestone
|
|
113
|
+
- Ask: "Does this grouping make sense? {phase_breakdown}"
|
|
114
|
+
|
|
115
|
+
3. **Constraints:**
|
|
116
|
+
- Derive from discussion
|
|
117
|
+
- Ask: "Any constraints or limitations to keep in mind?"
|
|
118
|
+
|
|
119
|
+
4. **Theme (one sentence):**
|
|
120
|
+
- Synthesize: "So the focus is: {theme}. Sound right?"
|
|
121
|
+
|
|
122
|
+
Confirm with user before proceeding.
|
|
123
|
+
</step>
|
|
124
|
+
|
|
125
|
+
<step name="write_context">
|
|
126
|
+
Create `.drive/MILESTONE-CONTEXT.md`:
|
|
127
|
+
|
|
128
|
+
```markdown
|
|
129
|
+
# Milestone Context
|
|
130
|
+
|
|
131
|
+
**Generated:** {date}
|
|
132
|
+
**Status:** Ready for /drive:milestone
|
|
133
|
+
|
|
134
|
+
## Features to Build
|
|
135
|
+
|
|
136
|
+
{features as bullets with descriptions}
|
|
137
|
+
|
|
138
|
+
## Scope
|
|
139
|
+
|
|
140
|
+
**Suggested name:** {milestone_name}
|
|
141
|
+
**Estimated phases:** {phase_count}
|
|
142
|
+
**Focus:** {theme}
|
|
143
|
+
|
|
144
|
+
## Phase Mapping
|
|
145
|
+
|
|
146
|
+
| Phase | Focus | Features |
|
|
147
|
+
|-------|-------|----------|
|
|
148
|
+
| {next_phase} | {focus} | {features} |
|
|
149
|
+
| {next_phase+1} | {focus} | {features} |
|
|
150
|
+
|
|
151
|
+
## Constraints
|
|
152
|
+
|
|
153
|
+
{constraints as bullets}
|
|
154
|
+
|
|
155
|
+
## Additional Context
|
|
156
|
+
|
|
157
|
+
{any other notes from discussion}
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
*This file is temporary. It will be deleted after /drive:milestone creates the milestone.*
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Display:
|
|
165
|
+
```
|
|
166
|
+
Context saved to .drive/MILESTONE-CONTEXT.md
|
|
167
|
+
|
|
168
|
+
This file persists across /clear so you can take a break if needed.
|
|
169
|
+
```
|
|
170
|
+
</step>
|
|
171
|
+
|
|
172
|
+
<step name="handoff">
|
|
173
|
+
Route to create-milestone:
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
════════════════════════════════════════
|
|
177
|
+
DISCUSSION COMPLETE
|
|
178
|
+
════════════════════════════════════════
|
|
179
|
+
|
|
180
|
+
Milestone: {milestone_name}
|
|
181
|
+
Features: {feature_count}
|
|
182
|
+
Phases: {phase_count}
|
|
183
|
+
|
|
184
|
+
Context saved for handoff.
|
|
185
|
+
|
|
186
|
+
────────────────────────────────────────
|
|
187
|
+
▶ NEXT: /drive:milestone
|
|
188
|
+
Create the milestone structure from this context
|
|
189
|
+
────────────────────────────────────────
|
|
190
|
+
|
|
191
|
+
Type "yes" to proceed, or continue discussing.
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Accept:** "yes", "go", "create" → run `/drive:milestone`
|
|
195
|
+
</step>
|
|
196
|
+
|
|
197
|
+
</process>
|
|
198
|
+
|
|
199
|
+
<output>
|
|
200
|
+
- .drive/MILESTONE-CONTEXT.md created (handoff file)
|
|
201
|
+
- Features, scope, and phases articulated
|
|
202
|
+
- Ready for /drive:milestone to consume
|
|
203
|
+
</output>
|
|
204
|
+
|
|
205
|
+
<success_criteria>
|
|
206
|
+
- [ ] Prior accomplishments presented (if any)
|
|
207
|
+
- [ ] Features explored (user-driven)
|
|
208
|
+
- [ ] Scope synthesized from features
|
|
209
|
+
- [ ] Phase mapping suggested
|
|
210
|
+
- [ ] MILESTONE-CONTEXT.md written
|
|
211
|
+
- [ ] Clear handoff to /drive:milestone
|
|
212
|
+
</success_criteria>
|
|
213
|
+
|
|
214
|
+
<anti_patterns>
|
|
215
|
+
**Asking abstract questions first:**
|
|
216
|
+
DON'T: "What's the scope of the next milestone?"
|
|
217
|
+
DO: "What do you want to build?"
|
|
218
|
+
|
|
219
|
+
**Assuming phases before features:**
|
|
220
|
+
DON'T: "How many phases do you want?"
|
|
221
|
+
DO: Derive phases from the features discussed.
|
|
222
|
+
|
|
223
|
+
**Skipping confirmation:**
|
|
224
|
+
DON'T: Write context immediately after one question.
|
|
225
|
+
DO: Confirm the synthesis makes sense before writing.
|
|
226
|
+
|
|
227
|
+
**Not persisting context:**
|
|
228
|
+
DON'T: End discussion without writing MILESTONE-CONTEXT.md
|
|
229
|
+
DO: Always write the file so /clear doesn't lose progress.
|
|
230
|
+
</anti_patterns>
|
|
231
|
+
|
|
232
|
+
<error_handling>
|
|
233
|
+
**User unsure what to build:**
|
|
234
|
+
- Reference PROJECT.md active requirements
|
|
235
|
+
- Suggest: "What's the most painful thing right now?"
|
|
236
|
+
- Offer: "We can start with one feature and expand"
|
|
237
|
+
|
|
238
|
+
**Scope too large:**
|
|
239
|
+
- Suggest splitting: "That sounds like 2-3 milestones"
|
|
240
|
+
- Ask: "What's the minimum viable version?"
|
|
241
|
+
|
|
242
|
+
**User wants to skip discussion:**
|
|
243
|
+
- Route directly to /drive:milestone
|
|
244
|
+
- Note: "Going straight to milestone creation — no discussion context will be available"
|
|
245
|
+
</error_handling>
|