pan-wizard 3.36.0 → 3.37.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/CHANGELOG.md +3645 -0
- package/README.md +36 -48
- package/agents/pan-conductor.md +2 -3
- package/agents/pan-counterfactual.md +1 -2
- package/agents/pan-debugger.md +14 -3
- package/agents/pan-design-checker.md +1 -2
- package/agents/pan-designer.md +1 -2
- package/agents/pan-document_code.md +1 -2
- package/agents/pan-hardener.md +2 -3
- package/agents/pan-integration-checker.md +1 -2
- package/agents/pan-knowledge.md +1 -2
- package/agents/pan-meta-reviewer.md +3 -3
- package/agents/pan-optimizer.md +4 -4
- package/agents/pan-phase-researcher.md +79 -488
- package/agents/pan-plan-checker.md +12 -2
- package/agents/pan-planner.md +10 -6
- package/agents/pan-previewer.md +1 -2
- package/agents/pan-project-researcher.md +70 -499
- package/agents/pan-release.md +1 -1
- package/agents/pan-reviewer.md +9 -3
- package/agents/pan-roadmapper.md +12 -7
- package/agents/pan-verifier.md +7 -2
- package/bin/install-lib.cjs +134 -14
- package/bin/install.js +59 -12
- package/commands/pan/army.md +1 -1
- package/commands/pan/autodev.md +76 -0
- package/commands/pan/exec-phase.md +3 -4
- package/commands/pan/focus-auto.md +14 -7
- package/commands/pan/focus-design.md +4 -5
- package/commands/pan/focus-docs.md +24 -0
- package/commands/pan/learn.md +13 -6
- package/commands/pan/milestone-audit.md +8 -1
- package/commands/pan/milestone-done.md +10 -5
- package/commands/pan/milestone-new.md +2 -2
- package/commands/pan/new-project.md +15 -12
- package/commands/pan/plan-phase.md +15 -9
- package/commands/pan/quick.md +1 -1
- package/commands/pan/review-deep.md +11 -5
- package/commands/pan/settings.md +6 -0
- package/commands/pan/verify-phase.md +6 -2
- package/docs/AGENTS.md +917 -0
- package/docs/ARCHITECTURE.md +1054 -0
- package/docs/CLI-REFERENCE.md +4582 -0
- package/docs/COMPARISON.md +116 -0
- package/docs/DEVELOPMENT.md +490 -0
- package/docs/ECOSYSTEM-REVIEW-2026-06.md +107 -0
- package/docs/ECOSYSTEM-REVIEW-2026-08.md +349 -0
- package/docs/EXAMPLES.md +584 -0
- package/docs/FAQ.md +254 -0
- package/docs/FIELD-HARVEST-2026-07.md +88 -0
- package/docs/FIELD-REPORT-army-2026-06.md +121 -0
- package/docs/HOOKS.md +638 -0
- package/docs/IMPROVEMENT-TODO.md +246 -0
- package/docs/INTERNALS.md +485 -0
- package/docs/MIGRATION-v2-to-v3.md +258 -0
- package/docs/SECURITY-HARDENING.md +230 -0
- package/docs/SKILLS-ENHANCEMENT-PLAN-V2.md +122 -0
- package/docs/SKILLS-FULL-TEXT.md +9685 -0
- package/docs/SKILLS-REFERENCE.md +1037 -0
- package/docs/TROUBLESHOOTING.md +1084 -0
- package/docs/USER-GUIDE.md +1437 -0
- package/docs/archive/SKILLS-ENHANCEMENT-PLAN.md +230 -0
- package/docs/audits/AUDIT-2026-08-e2e-ROADMAP.md +117 -0
- package/docs/audits/AUDIT-2026-08-e2e-VERIFICATION.md +693 -0
- package/docs/audits/AUDIT-2026-08-e2e.md +1546 -0
- package/docs/audits/OUTSTANDING-2026-08.md +275 -0
- package/docs/audits/STABILITY-TEST-2026-08.md +640 -0
- package/docs/branding/README-brand-draft.md +119 -0
- package/docs/branding/handoff/IMPLEMENTATION.md +205 -0
- package/docs/branding/handoff/README-brand-draft.md +119 -0
- package/docs/branding/handoff/image-prompts.md +46 -0
- package/docs/branding/image-prompts.md +46 -0
- package/docs/branding/nano-banana-prompts.txt +60 -0
- package/docs/context-monitor.md +13 -0
- package/docs/decisions/ADR-0001-strategic-feature-prioritization.md +83 -0
- package/docs/decisions/ADR-0002-copilot-cli-runtime.md +71 -0
- package/docs/decisions/ADR-0003-smart-execution.md +84 -0
- package/docs/decisions/ADR-0004-copilot-cli-interaction.md +89 -0
- package/docs/decisions/ADR-0005-command-naming.md +80 -0
- package/docs/decisions/ADR-0006-focus-commands.md +101 -0
- package/docs/decisions/ADR-0007-ship-v1.md +73 -0
- package/docs/decisions/ADR-0008-map-codebase-mermaid-togaf.md +80 -0
- package/docs/decisions/ADR-0009-production-deployment-checklist.md +68 -0
- package/docs/decisions/ADR-0010-standards-integration.md +79 -0
- package/docs/decisions/ADR-0011-help-commands-rewrite.md +64 -0
- package/docs/decisions/ADR-0012-contributors-attribution-index.md +42 -0
- package/docs/decisions/ADR-0013-strategic-feature-additions.md +53 -0
- package/docs/decisions/ADR-0014-internal-cleanup-code-quality.md +53 -0
- package/docs/decisions/ADR-0015-focus-auto-runner.md +296 -0
- package/docs/decisions/ADR-0016-enhanced-doc-sync.md +54 -0
- package/docs/decisions/ADR-0017-enhanced-focus-design.md +69 -0
- package/docs/decisions/ADR-0018-user-reality-testing.md +84 -0
- package/docs/decisions/ADR-0019-end-to-end-user-acceptance-testing.md +113 -0
- package/docs/decisions/ADR-0020-ai-drift-prevention.md +55 -0
- package/docs/decisions/ADR-0021-codebase-mapper-v2.md +76 -0
- package/docs/decisions/ADR-0022-lifecycle-completeness.md +63 -0
- package/docs/decisions/ADR-0023-opus-4-7-adoption.md +89 -0
- package/docs/decisions/ADR-0024-spec-b-v2-completion.md +137 -0
- package/docs/decisions/ADR-0025-behavioral-guardrails-layer.md +129 -0
- package/docs/decisions/ADR-0026-self-improvement-loop.md +171 -0
- package/docs/decisions/ADR-0027-doc-code-link-graph.md +164 -0
- package/docs/decisions/ADR-0028-unified-agents-skills-target.md +46 -0
- package/docs/decisions/ADR-0029-experiment-evaluator.md +76 -0
- package/docs/decisions/ADR-0030-planning-concurrency.md +37 -0
- package/docs/decisions/ADR-0031-focus-auto-backlog-source.md +47 -0
- package/docs/decisions/ADR-0032-squad-model.md +64 -0
- package/docs/decisions/ADR-0033-army-campaign.md +40 -0
- package/docs/decisions/ADR-0034-scheduled-campaigns.md +57 -0
- package/docs/decisions/ADR-0035-army-hud-dashboard.md +40 -0
- package/docs/decisions/ADR-0036-agentic-memory-architecture.md +106 -0
- package/docs/decisions/ADR-0037-pin-security-agents-to-opus.md +51 -0
- package/docs/decisions/ADR-0038-skill-aligned-decomposition.md +41 -0
- package/docs/decisions/ADR-0039-worktree-as-project-variant.md +37 -0
- package/docs/decisions/ADR-0040-memory-injection-defense.md +55 -0
- package/docs/decisions/ADR-0041-mcp-dual-era-bridge.md +47 -0
- package/docs/decisions/ADR-0042-design-parity-both-flows.md +45 -0
- package/docs/decisions/ADR-0043-addressable-planning-roots.md +56 -0
- package/docs/decisions/ADR-0044-bound-the-cached-context.md +104 -0
- package/docs/decisions/ADR-0045-agent-plugins-bundle.md +76 -0
- package/docs/decisions/ADR-0046-subagent-frontmatter-decisions.md +39 -0
- package/docs/decisions/ADR-0047-pan-harness.md +76 -0
- package/docs/decisions/ADR-0048-one-core-per-project.md +43 -0
- package/docs/decisions/ADR-0049-machine-verdicts-and-findings-ledger.md +116 -0
- package/docs/specs/ai_drift_prevention_featureai.md +286 -0
- package/docs/specs/codebase_mapper_v2_featureai.md +930 -0
- package/docs/specs/command_naming_optimization_featureai.md +930 -0
- package/docs/specs/comp_analysis_markdown_v1.md +149 -0
- package/docs/specs/continuous_autonomous_execution_featureai.md +304 -0
- package/docs/specs/contributors_attribution_index_featureai.md +476 -0
- package/docs/specs/copilot_cli_interaction_featureai.md +868 -0
- package/docs/specs/copilot_cli_runtime_featureai.md +647 -0
- package/docs/specs/custom-skills-assessment.md +461 -0
- package/docs/specs/deployment_audit_findings_featureai.md +243 -0
- package/docs/specs/doc_code_link_graph_featureai.md +253 -0
- package/docs/specs/documentation_alignment_cleanup_featureai.md +69 -0
- package/docs/specs/e2e_visual_testing_featureai.md +615 -0
- package/docs/specs/end_to_end_user_acceptance_testing_featureai.md +810 -0
- package/docs/specs/evidence-loop-plan.md +76 -0
- package/docs/specs/evidence_loop_featureai.md +497 -0
- package/docs/specs/focus-auto-optimize-category.md +449 -0
- package/docs/specs/focus-auto-optimize-superplan.md +188 -0
- package/docs/specs/focus_auto_runner_featureai.md +1102 -0
- package/docs/specs/focus_design_v2_featureai.md +197 -0
- package/docs/specs/focus_sync_v2_featureai.md +202 -0
- package/docs/specs/git_integration_overhaul_featureai.md +326 -0
- package/docs/specs/glm_zai_provider_featureai.md +200 -0
- package/docs/specs/googlecli_adoption_featureai.md +661 -0
- package/docs/specs/help_commands_rewrite_featureai.md +860 -0
- package/docs/specs/industry_analysis_strategic_additions_featureai.md +231 -0
- package/docs/specs/industry_comparison_and_feature_gaps_featureai.md +674 -0
- package/docs/specs/internal_cleanup_code_quality_featureai.md +486 -0
- package/docs/specs/investigations/README.md +31 -0
- package/docs/specs/investigations/digests/2026-09-28.md +47 -0
- package/docs/specs/investigations/digests/2026-10-08.md +62 -0
- package/docs/specs/investigations/digests/2026-10-10.md +61 -0
- package/docs/specs/investigations/features/debugger-red-loop-first.md +55 -0
- package/docs/specs/investigations/features/harness-cross-host-behaviour.md +93 -0
- package/docs/specs/investigations/features/optimize-apply-regression-gate.md +66 -0
- package/docs/specs/investigations/features/reviewer-smell-baseline.md +57 -0
- package/docs/specs/investigations/features/trace-failure-capture.md +69 -0
- package/docs/specs/lifecycle_completeness_featureai.md +754 -0
- package/docs/specs/local-first-ci.md +42 -0
- package/docs/specs/map_codebase_mermaid_togaf_featureai.md +805 -0
- package/docs/specs/market-delta-2026-09-superplan.md +310 -0
- package/docs/specs/market-ideas-2026-09.md +131 -0
- package/docs/specs/market-ideas-2026-10.md +428 -0
- package/docs/specs/market-ideas-ledger.md +177 -0
- package/docs/specs/memory-optimization-2026-10.md +285 -0
- package/docs/specs/multi-track-planning-roots.md +143 -0
- package/docs/specs/multi_model_routing_featureai.md +687 -0
- package/docs/specs/multi_model_routing_superplan.md +197 -0
- package/docs/specs/opus_47_existing_enhancements_featureai.md +247 -0
- package/docs/specs/opus_47_extended_features_featureai.md +363 -0
- package/docs/specs/opus_47_extended_features_v2_featureai.md +397 -0
- package/docs/specs/pan_focus_commands_featureai.md +2336 -0
- package/docs/specs/pan_zcode_mcp_bridge_featureai.md +120 -0
- package/docs/specs/product-excellence-superplan.md +315 -0
- package/docs/specs/product_excellence_program_2026_q4_featureai.md +365 -0
- package/docs/specs/production_deployment_readiness_featureai.md +433 -0
- package/docs/specs/production_readiness_ship_v1_featureai.md +698 -0
- package/docs/specs/real_test_enforcement_featureai.md +213 -0
- package/docs/specs/reality-check-2026-09-superplan.md +362 -0
- package/docs/specs/right-sized-ceremony.md +74 -0
- package/docs/specs/roadmap_and_competition_2026_q4_featureai.md +390 -0
- package/docs/specs/self_improvement_loop_featureai.md +875 -0
- package/docs/specs/skill-aligned-decomposition.md +155 -0
- package/docs/specs/standards_integration_featureai.md +833 -0
- package/docs/specs/testing-system-redesign-2026-09.md +267 -0
- package/docs/specs/user_reality_testing_system_featureai.md +788 -0
- package/docs/specs/watch-triggers.json +22 -0
- package/docs/specs/workflow-integration-redesign.md +742 -0
- package/docs/specs/workflow_state_consistency_featureai.md +183 -0
- package/hooks/dist/pan-context-monitor.js +9 -2
- package/hooks/dist/pan-cost-logger.js +5 -0
- package/hooks/dist/pan-guard.js +28 -5
- package/hooks/dist/pan-stop-guard.js +9 -9
- package/hooks/dist/pan-trace-logger.js +5 -0
- package/package.json +10 -2
- package/pan-wizard-core/bin/lib/agents-md.cjs +57 -8
- package/pan-wizard-core/bin/lib/autodev-report.cjs +180 -0
- package/pan-wizard-core/bin/lib/autodev.cjs +642 -0
- package/pan-wizard-core/bin/lib/ci.cjs +143 -0
- package/pan-wizard-core/bin/lib/commands.cjs +1 -1
- package/pan-wizard-core/bin/lib/config.cjs +31 -2
- package/pan-wizard-core/bin/lib/constants.cjs +27 -1
- package/pan-wizard-core/bin/lib/core.cjs +22 -10
- package/pan-wizard-core/bin/lib/cost.cjs +14 -4
- package/pan-wizard-core/bin/lib/cross-family.cjs +164 -0
- package/pan-wizard-core/bin/lib/debug-cases.cjs +104 -0
- package/pan-wizard-core/bin/lib/failure-class.cjs +81 -0
- package/pan-wizard-core/bin/lib/findings.cjs +34 -4
- package/pan-wizard-core/bin/lib/focus.cjs +1 -1
- package/pan-wizard-core/bin/lib/hosts.cjs +88 -0
- package/pan-wizard-core/bin/lib/init.cjs +7 -2
- package/pan-wizard-core/bin/lib/knowledge.cjs +2 -0
- package/pan-wizard-core/bin/lib/merge.cjs +50 -0
- package/pan-wizard-core/bin/lib/mutate.cjs +16 -5
- package/pan-wizard-core/bin/lib/next-action.cjs +112 -0
- package/pan-wizard-core/bin/lib/optimize.cjs +2 -2
- package/pan-wizard-core/bin/lib/phase.cjs +48 -4
- package/pan-wizard-core/bin/lib/plan-lint.cjs +150 -1
- package/pan-wizard-core/bin/lib/preview.cjs +23 -4
- package/pan-wizard-core/bin/lib/requirements-lint.cjs +130 -0
- package/pan-wizard-core/bin/lib/research-lint.cjs +150 -3
- package/pan-wizard-core/bin/lib/review-deep.cjs +14 -22
- package/pan-wizard-core/bin/lib/review-vote.cjs +105 -0
- package/pan-wizard-core/bin/lib/runner.cjs +2 -16
- package/pan-wizard-core/bin/lib/sizing.cjs +356 -0
- package/pan-wizard-core/bin/lib/squads.cjs +1 -1
- package/pan-wizard-core/bin/lib/state-write.cjs +247 -0
- package/pan-wizard-core/bin/lib/uat.cjs +149 -0
- package/pan-wizard-core/bin/lib/verdict.cjs +26 -3
- package/pan-wizard-core/bin/lib/verify-plan-set.cjs +30 -1
- package/pan-wizard-core/bin/lib/verify-preflight.cjs +2 -2
- package/pan-wizard-core/bin/lib/verify-red.cjs +37 -1
- package/pan-wizard-core/bin/lib/verify-retro.cjs +3 -2
- package/pan-wizard-core/bin/lib/verify.cjs +59 -4
- package/pan-wizard-core/bin/lib/worktree.cjs +70 -0
- package/pan-wizard-core/bin/pan-tools.cjs +168 -27
- package/pan-wizard-core/learnings/universal/autonomous-loop.md +2 -2
- package/pan-wizard-core/references/continuation-format.md +3 -3
- package/pan-wizard-core/references/guardrails.md +1 -1
- package/pan-wizard-core/references/model-profiles.md +2 -3
- package/pan-wizard-core/references/questioning.md +24 -0
- package/pan-wizard-core/references/ui-brand.md +4 -6
- package/pan-wizard-core/references/verdict-contract.md +2 -1
- package/pan-wizard-core/templates/config.json +5 -1
- package/pan-wizard-core/templates/debug.md +1 -0
- package/pan-wizard-core/templates/discovery.md +2 -2
- package/pan-wizard-core/templates/requirements.md +9 -0
- package/pan-wizard-core/workflows/add-phase.md +4 -6
- package/pan-wizard-core/workflows/assumptions.md +19 -1
- package/pan-wizard-core/workflows/diagnose-issues.md +2 -0
- package/pan-wizard-core/workflows/discuss-phase.md +4 -2
- package/pan-wizard-core/workflows/exec-lean.md +69 -0
- package/pan-wizard-core/workflows/exec-phase.md +36 -8
- package/{commands/pan → pan-wizard-core/workflows}/focus-doc-audit.md +13 -29
- package/{commands/pan → pan-wizard-core/workflows}/focus-drift-walking.md +3 -18
- package/{commands/pan → pan-wizard-core/workflows}/focus-exec.md +8 -23
- package/{commands/pan → pan-wizard-core/workflows}/focus-plan.md +6 -20
- package/{commands/pan → pan-wizard-core/workflows}/focus-scan.md +3 -16
- package/{commands/pan → pan-wizard-core/workflows}/focus-sync.md +7 -21
- package/pan-wizard-core/workflows/health.md +6 -0
- package/pan-wizard-core/workflows/help.md +31 -53
- package/pan-wizard-core/workflows/insert-phase.md +4 -6
- package/pan-wizard-core/workflows/learn.md +3 -3
- package/pan-wizard-core/workflows/milestone-audit.md +2 -2
- package/pan-wizard-core/workflows/milestone-new.md +38 -95
- package/pan-wizard-core/workflows/new-project.md +96 -258
- package/pan-wizard-core/workflows/optimize.md +107 -5
- package/pan-wizard-core/workflows/phase-tests.md +10 -0
- package/pan-wizard-core/workflows/plan-phase.md +86 -43
- package/pan-wizard-core/workflows/profile.md +50 -0
- package/pan-wizard-core/workflows/progress.md +10 -0
- package/pan-wizard-core/workflows/quick.md +34 -43
- package/pan-wizard-core/workflows/research-phase.md +118 -40
- package/pan-wizard-core/workflows/resume-project.md +18 -2
- package/pan-wizard-core/workflows/settings.md +21 -24
- package/pan-wizard-core/workflows/todo-check.md +6 -2
- package/pan-wizard-core/workflows/transition.md +22 -4
- package/pan-wizard-core/workflows/uat-walkthrough.md +90 -0
- package/pan-wizard-core/workflows/update.md +1 -1
- package/pan-wizard-core/workflows/verify-phase.md +2 -2
- package/scripts/build-agent-plugin.js +35 -15
- package/scripts/build-plugin.js +10 -1
- package/scripts/deprecate-old-versions.js +70 -3
- package/scripts/generate-skills-docs.py +1 -1
- package/scripts/git-hooks/pre-push +27 -0
- package/scripts/install-git-hooks.js +7 -5
- package/scripts/install-pre-push.cjs +38 -0
- package/scripts/land.cjs +151 -0
- package/scripts/local-ci.cjs +501 -0
- package/scripts/local-schedule.cjs +277 -0
- package/scripts/prompt-lint.cjs +32 -0
- package/scripts/prompt-rules.cjs +156 -0
- package/scripts/run-tests.cjs +7 -1
- package/scripts/test-quality-lint.cjs +3 -3
- package/scripts/test-surface.cjs +9 -2
- package/agents/pan-research-synthesizer.md +0 -246
- package/commands/pan/audit-deployment.md +0 -386
- package/commands/pan/dashboard.md +0 -22
- package/commands/pan/discord.md +0 -19
- package/commands/pan/mcp-bridge.md +0 -143
- package/commands/pan/milestone-cleanup.md +0 -19
- package/commands/pan/milestone-gaps.md +0 -35
- package/commands/pan/optimize.md +0 -115
- package/commands/pan/profile.md +0 -76
- package/commands/pan/research-phase.md +0 -189
- package/pan-wizard-core/bin/lib/bridge.cjs +0 -269
- package/pan-wizard-core/templates/research-project/architecture.md +0 -210
- package/pan-wizard-core/templates/research-project/features.md +0 -153
- package/pan-wizard-core/templates/research-project/pitfalls.md +0 -206
- package/pan-wizard-core/templates/research-project/stack.md +0 -126
- package/pan-wizard-core/templates/research-project/summary.md +0 -170
|
@@ -36,26 +36,26 @@ Best for: new projects, structured milestones, large multi-phase builds.
|
|
|
36
36
|
Best for: existing projects, ongoing maintenance, iterative improvement, batch work sessions.
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
/pan:focus-scan # 1. SCAN — find all work items, prioritize, score
|
|
39
|
+
/pan:focus-auto --step scan # 1. SCAN — find all work items, prioritize, score
|
|
40
40
|
/clear
|
|
41
|
-
/pan:focus-plan # 2. PLAN — budget items into a sized batch
|
|
41
|
+
/pan:focus-auto --step plan # 2. PLAN — budget items into a sized batch
|
|
42
42
|
/clear
|
|
43
|
-
/pan:focus-exec # 3. EXEC — implement, test, verify, commit
|
|
43
|
+
/pan:focus-auto --step exec # 3. EXEC — implement, test, verify, commit
|
|
44
44
|
/clear
|
|
45
|
-
/pan:focus-sync # 4. SYNC — update docs to match changes
|
|
45
|
+
/pan:focus-docs --sync # 4. SYNC — update docs to match changes
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
**focus-design** is a standalone command for deep feature investigation:
|
|
49
49
|
```
|
|
50
50
|
/pan:focus-design "Add webhook support" # Research, design, spec, ADR
|
|
51
51
|
/clear
|
|
52
|
-
/pan:focus-scan # Re-scan to pick up new tasks
|
|
52
|
+
/pan:focus-auto --step scan # Re-scan to pick up new tasks
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
**Documentation quality commands:**
|
|
56
56
|
```
|
|
57
|
-
/pan:focus-drift
|
|
58
|
-
/pan:focus-
|
|
57
|
+
/pan:focus-auto --step drift # Walk project tree, detect doc-code drift
|
|
58
|
+
/pan:focus-docs # Deep document audit with quality scoring
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
---
|
|
@@ -68,30 +68,30 @@ Already have a codebase? Here's how to get started:
|
|
|
68
68
|
|-----------|---------|
|
|
69
69
|
| Quick one-off fix or small feature | `/pan:quick "add logout button"` |
|
|
70
70
|
| Need to design a feature first | `/pan:focus-design "Add webhook support"` |
|
|
71
|
-
| Find and fix bugs, tech debt, gaps | `/pan:focus-scan` → `plan` → `exec` |
|
|
71
|
+
| Find and fix bugs, tech debt, gaps | `/pan:focus-auto --step scan` → `plan` → `exec` |
|
|
72
72
|
| Large feature needing multiple phases | `/pan:milestone-new` |
|
|
73
73
|
| Continuous automated improvement | `/pan:focus-auto` |
|
|
74
74
|
|
|
75
75
|
**Most common path — iterative improvement:**
|
|
76
76
|
```
|
|
77
|
-
/pan:focus-scan # 1. Find work items (bugs, TODOs, gaps, features)
|
|
77
|
+
/pan:focus-auto --step scan # 1. Find work items (bugs, TODOs, gaps, features)
|
|
78
78
|
/clear
|
|
79
|
-
/pan:focus-plan # 2. Budget a batch (--mode features for feature work)
|
|
79
|
+
/pan:focus-auto --step plan # 2. Budget a batch (--mode features for feature work)
|
|
80
80
|
/clear
|
|
81
|
-
/pan:focus-exec # 3. Implement, test, commit
|
|
81
|
+
/pan:focus-auto --step exec # 3. Implement, test, commit
|
|
82
82
|
/clear
|
|
83
|
-
/pan:focus-sync # 4. Update docs to match
|
|
83
|
+
/pan:focus-docs --sync # 4. Update docs to match
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
**Design-first path — new feature on existing codebase:**
|
|
87
87
|
```
|
|
88
88
|
/pan:focus-design "Add webhook support" # Research → spec → ADR
|
|
89
89
|
/clear
|
|
90
|
-
/pan:focus-scan # Picks up tasks from spec
|
|
90
|
+
/pan:focus-auto --step scan # Picks up tasks from spec
|
|
91
91
|
/clear
|
|
92
|
-
/pan:focus-plan --mode features # Budget toward feature work
|
|
92
|
+
/pan:focus-auto --step plan --mode features # Budget toward feature work
|
|
93
93
|
/clear
|
|
94
|
-
/pan:focus-exec # Build it
|
|
94
|
+
/pan:focus-auto --step exec # Build it
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
**Large feature path — structured milestone on existing codebase:**
|
|
@@ -111,7 +111,7 @@ Already have a codebase? Here's how to get started:
|
|
|
111
111
|
|
|
112
112
|
The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step feeds the next.
|
|
113
113
|
|
|
114
|
-
### Step 1: `/pan:focus-scan`
|
|
114
|
+
### Step 1: `/pan:focus-auto --step scan`
|
|
115
115
|
|
|
116
116
|
**What it does:** Deep-dives into your entire codebase — reads every module, greps for TODOs/FIXMEs, runs tests, checks coverage gaps, reads your roadmap — then produces a prioritized work list.
|
|
117
117
|
|
|
@@ -119,7 +119,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
119
119
|
|
|
120
120
|
**Reality Score:** Every P3-P6 item gets scored: `RS = (User Value + Time Criticality + Risk Reduction) / Job Size`. Items below RS 3.0 get deferred, below 1.5 get dropped.
|
|
121
121
|
|
|
122
|
-
**Output:** the prioritized work list, returned by `pan-tools focus scan` as JSON (`/pan:focus-plan` collects the items again itself).
|
|
122
|
+
**Output:** the prioritized work list, returned by `pan-tools focus scan` as JSON (`/pan:focus-auto --step plan` collects the items again itself).
|
|
123
123
|
|
|
124
124
|
**Flags:**
|
|
125
125
|
- `--quick` — skip strategic analysis and validation phases
|
|
@@ -127,7 +127,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
127
127
|
- `--focus <area>` — weight items toward a specific area
|
|
128
128
|
- `--refresh` — force re-read all files
|
|
129
129
|
|
|
130
|
-
### Step 2: `/pan:focus-plan`
|
|
130
|
+
### Step 2: `/pan:focus-auto --step plan`
|
|
131
131
|
|
|
132
132
|
**What it does:** Reads the scan output and selects a right-sized batch of work items that fits within a point budget. Orders items for maximum impact with minimum risk.
|
|
133
133
|
|
|
@@ -143,14 +143,14 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
143
143
|
|
|
144
144
|
**Point system:** XS=1, S=2, M=4, L=10, XL=20 points.
|
|
145
145
|
|
|
146
|
-
**Output:** `.planning/focus/batch-<date>.json` — the execution batch that `/pan:focus-exec` reads.
|
|
146
|
+
**Output:** `.planning/focus/batch-<date>.json` — the execution batch that `/pan:focus-auto --step exec` reads.
|
|
147
147
|
|
|
148
148
|
**Flags:**
|
|
149
149
|
- `--mode <mode>` — select execution mode (default: balanced)
|
|
150
150
|
- `--budget N` — override point budget (5-100)
|
|
151
151
|
- `--lean` — exclude items with RS < 1.5
|
|
152
152
|
|
|
153
|
-
### Step 3: `/pan:focus-exec`
|
|
153
|
+
### Step 3: `/pan:focus-auto --step exec`
|
|
154
154
|
|
|
155
155
|
**What it does:** One-command pipeline that implements every item in the batch. Runs 6 stages automatically:
|
|
156
156
|
|
|
@@ -175,7 +175,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
175
175
|
- `--continue` — resume a previously interrupted run
|
|
176
176
|
- `--dry-run` — show stages 1-2 only
|
|
177
177
|
|
|
178
|
-
### Step 4: `/pan:focus-sync`
|
|
178
|
+
### Step 4: `/pan:focus-docs --sync`
|
|
179
179
|
|
|
180
180
|
**What it does:** Checks all documentation for staleness and fixes it. Compares actual command counts, module counts, test counts against what docs claim.
|
|
181
181
|
|
|
@@ -221,12 +221,12 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
221
221
|
### Phase Lifecycle
|
|
222
222
|
| Command | Description |
|
|
223
223
|
|---------|-------------|
|
|
224
|
+
| `/pan:autodev` | Run the roadmap unattended — a deterministic loop that plans, executes, verifies and completes phase after phase, each step in a fresh host session, and stops in code |
|
|
224
225
|
| `/pan:design-phase` | Design a roadmap phase before planning — architecture, ADR, threat-lite, machine-checkable criteria — verified by an independent checker |
|
|
225
226
|
| `/pan:discuss-phase` | Gather phase context through adaptive questioning before planning |
|
|
226
227
|
| `/pan:exec-phase` | Execute all plans in a phase with wave-based parallelization |
|
|
227
228
|
| `/pan:plan-phase` | Create detailed phase plan (plan.md) with verification loop |
|
|
228
|
-
| `/pan:
|
|
229
|
-
| `/pan:verify-phase` | Re-run goal-backward verification of a phase with a test-suite gate and list its gaps |
|
|
229
|
+
| `/pan:verify-phase` | Re-run goal-backward verification of a phase with a test-suite gate and list its gaps, or walk its UAT with --uat |
|
|
230
230
|
|
|
231
231
|
### Phase Management
|
|
232
232
|
| Command | Description |
|
|
@@ -242,7 +242,6 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
242
242
|
| Command | Description |
|
|
243
243
|
|---------|-------------|
|
|
244
244
|
| `/pan:pause` | Create context handoff when pausing work mid-phase |
|
|
245
|
-
| `/pan:profile` | Switch model profile for PAN agents (quality/balanced/budget) |
|
|
246
245
|
| `/pan:progress` | Check project progress, show context, and route to next action (execute or plan) |
|
|
247
246
|
| `/pan:quick` | Execute a quick task with PAN guarantees (atomic commits, state tracking) but skip optional agents |
|
|
248
247
|
| `/pan:resume` | Resume work from previous session with full context restoration |
|
|
@@ -251,9 +250,7 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
251
250
|
| Command | Description |
|
|
252
251
|
|---------|-------------|
|
|
253
252
|
| `/pan:milestone-audit` | Audit milestone completion against original intent before archiving |
|
|
254
|
-
| `/pan:milestone-cleanup` | Archive accumulated phase directories from completed milestones |
|
|
255
253
|
| `/pan:milestone-done` | Archive completed milestone and prepare for next version |
|
|
256
|
-
| `/pan:milestone-gaps` | Create phases to close all gaps identified by milestone audit |
|
|
257
254
|
| `/pan:milestone-new` | Start a new milestone cycle — update project.md and route to requirements |
|
|
258
255
|
|
|
259
256
|
### Milestone Lifecycle
|
|
@@ -266,12 +263,7 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
266
263
|
|---------|-------------|
|
|
267
264
|
| `/pan:focus-auto` | Continuous scan-plan-exec loop with purpose-driven categories and a layered safety harness |
|
|
268
265
|
| `/pan:focus-design` | Strategic 10-phase feature investigation, design, and specification pipeline |
|
|
269
|
-
| `/pan:focus-
|
|
270
|
-
| `/pan:focus-drift-walking` | Deep documentation-code drift detection, CLAUDE.md alignment, and auto-repair across all project directories |
|
|
271
|
-
| `/pan:focus-exec` | Automated batch execution pipeline with 6 stages, behavioral rules, 3 execution tiers |
|
|
272
|
-
| `/pan:focus-plan` | Create capacity-budgeted work batch with spec coverage verification and 4 execution modes |
|
|
273
|
-
| `/pan:focus-scan` | Deep-dive strategic work scan with prioritized items and Reality Score filtering |
|
|
274
|
-
| `/pan:focus-sync` | Synchronize documentation after changes — check staleness and update counts |
|
|
266
|
+
| `/pan:focus-docs` | Documentation audit and sync — accuracy, freshness, links, cross-consistency and structure; --sync updates stale docs after changes |
|
|
275
267
|
|
|
276
268
|
### Foresight
|
|
277
269
|
| Command | Description |
|
|
@@ -293,7 +285,6 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
293
285
|
| Command | Description |
|
|
294
286
|
|---------|-------------|
|
|
295
287
|
| `/pan:cost` | Show token usage and estimated cost across PAN commands and agents |
|
|
296
|
-
| `/pan:dashboard` | Alias for /pan:hud — generate the single-page HTML dashboard of the bot army and project |
|
|
297
288
|
| `/pan:hud` | Generate a single-page, self-contained HTML dashboard of the bot army and the project's current state |
|
|
298
289
|
| `/pan:report` | Generate a self-contained HTML report for one phase, or a project-level timeline index linking every phase report |
|
|
299
290
|
|
|
@@ -307,7 +298,6 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
307
298
|
|---------|-------------|
|
|
308
299
|
| `/pan:experiment` | Manage external experiments — scaffold, run, harvest, promote findings back to PAN |
|
|
309
300
|
| `/pan:learn` | Analyze trace sessions or harvested experiments via pan-optimizer; generate ranked optimization reports |
|
|
310
|
-
| `/pan:optimize` | Manage the circular optimization loop — record a report's suggestions, undo them, view stats, list reports, manage trace sessions |
|
|
311
301
|
|
|
312
302
|
### Git Workflow
|
|
313
303
|
| Command | Description |
|
|
@@ -319,15 +309,9 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
319
309
|
|---------|-------------|
|
|
320
310
|
| `/pan:army` | Bot-army campaign — Mission Control (the reasoning-tier conductor) delegates a whole-project goal to squads (architecture / build / quality / release), each squad working branch-per-agent worktrees under a hard safety harness, gated by CI + a human merge, looping plan→delegate→execute→review→integrate→learn until the goal ships or a stop condition fires. |
|
|
321
311
|
|
|
322
|
-
### External tools
|
|
323
|
-
| Command | Description |
|
|
324
|
-
|---------|-------------|
|
|
325
|
-
| `/pan:mcp-bridge` | Discover available MCP tools and recommend which ones apply to a phase. Discovery-only; auto-invocation deferred. |
|
|
326
|
-
|
|
327
312
|
### System
|
|
328
313
|
| Command | Description |
|
|
329
314
|
|---------|-------------|
|
|
330
|
-
| `/pan:audit-deployment` | Audit a PAN Wizard deployment — verify installation integrity, project health, and draft enhancement specs |
|
|
331
315
|
| `/pan:debug` | Systematic debugging with persistent state across context resets |
|
|
332
316
|
| `/pan:health` | Diagnose planning directory health and optionally repair issues |
|
|
333
317
|
| `/pan:help` | Show available PAN commands and usage guide |
|
|
@@ -337,11 +321,6 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
337
321
|
| `/pan:todo-add` | Capture idea or task as todo from current conversation context |
|
|
338
322
|
| `/pan:todo-check` | List pending todos and select one to work on |
|
|
339
323
|
| `/pan:update` | Update PAN to latest version with changelog display |
|
|
340
|
-
|
|
341
|
-
### Community
|
|
342
|
-
| Command | Description |
|
|
343
|
-
|---------|-------------|
|
|
344
|
-
| `/pan:discord` | Join the PAN Discord community |
|
|
345
324
|
<!-- generated:command-index:end -->
|
|
346
325
|
|
|
347
326
|
---
|
|
@@ -355,12 +334,12 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
355
334
|
|
|
356
335
|
**Existing project, iterative work:**
|
|
357
336
|
```
|
|
358
|
-
/pan:focus-scan → /clear → /pan:focus-plan → /clear → /pan:focus-exec → /clear → /pan:focus-sync
|
|
337
|
+
/pan:focus-auto --step scan → /clear → /pan:focus-auto --step plan → /clear → /pan:focus-auto --step exec → /clear → /pan:focus-docs --sync
|
|
359
338
|
```
|
|
360
339
|
|
|
361
340
|
**Design a feature, then build it:**
|
|
362
341
|
```
|
|
363
|
-
/pan:focus-design "feature" → /clear → /pan:focus-scan → /clear → /pan:focus-plan → /clear → /pan:focus-exec
|
|
342
|
+
/pan:focus-design "feature" → /clear → /pan:focus-auto --step scan → /clear → /pan:focus-auto --step plan → /clear → /pan:focus-auto --step exec
|
|
364
343
|
```
|
|
365
344
|
|
|
366
345
|
**Resume after a break:**
|
|
@@ -381,7 +360,7 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
381
360
|
|
|
382
361
|
**Complete a milestone:**
|
|
383
362
|
```
|
|
384
|
-
/pan:milestone-audit → /pan:milestone-gaps → ... fix gaps ... → /pan:milestone-done 1.0.0
|
|
363
|
+
/pan:milestone-audit → /pan:milestone-audit --gaps → ... fix gaps ... → /pan:milestone-done 1.0.0
|
|
385
364
|
```
|
|
386
365
|
|
|
387
366
|
**Debug an issue (survives /clear):**
|
|
@@ -399,7 +378,7 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
399
378
|
|
|
400
379
|
**`/pan:discuss-phase <N>`** — Capture your vision for a phase before planning. Creates context.md.
|
|
401
380
|
|
|
402
|
-
**`/pan:
|
|
381
|
+
**`/pan:plan-phase --research-only <N>`** — Deep ecosystem research for specialized domains (3D, ML, audio, etc.). Creates research.md.
|
|
403
382
|
|
|
404
383
|
**`/pan:assumptions <N>`** — See Claude's intended approach before it starts. Conversational only, no files created.
|
|
405
384
|
|
|
@@ -421,9 +400,9 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
421
400
|
|
|
422
401
|
**`/pan:milestone-audit`** — Reads verification.md files, checks requirements coverage, spawns integration checker. Creates milestone-audit.md.
|
|
423
402
|
|
|
424
|
-
**`/pan:milestone-gaps`** — Reads audit, groups gaps into phases, adds to roadmap.md.
|
|
403
|
+
**`/pan:milestone-audit --gaps`** — Reads audit, groups gaps into phases, adds to roadmap.md.
|
|
425
404
|
|
|
426
|
-
**`/pan:milestone-cleanup`** — Moves completed phase directories to `milestones/v{X.Y}-phases/`.
|
|
405
|
+
**`/pan:milestone-done --cleanup`** — Moves completed phase directories to `milestones/v{X.Y}-phases/`.
|
|
427
406
|
|
|
428
407
|
**`/pan:retro`** — Milestone retrospective. Analyzes estimation accuracy, verification patterns, and common gap types. Run after `/pan:milestone-done` to reflect before the next milestone.
|
|
429
408
|
|
|
@@ -449,7 +428,7 @@ Every shipped command, by group. This list is generated from each command's own
|
|
|
449
428
|
|
|
450
429
|
**`/pan:settings`** — Toggle researcher, plan checker, verifier agents. Select model profile.
|
|
451
430
|
|
|
452
|
-
**`/pan:profile <name>`** — Quick profile switch: `quality` and `balanced` (reasoning tier for every agent; `balanced` is the default), `budget` (mid tier for writing, fast tier for research/verification).
|
|
431
|
+
**`/pan:settings --profile <name>`** — Quick profile switch: `quality` and `balanced` (reasoning tier for every agent; `balanced` is the default), `budget` (mid tier for writing, fast tier for research/verification).
|
|
453
432
|
|
|
454
433
|
**Planning config** (`.planning/config.json`):
|
|
455
434
|
- `commit_docs: true` — commit planning artifacts to git (set `false` + add `.planning/` to `.gitignore` for private planning)
|
|
@@ -496,5 +475,4 @@ Run `/pan:update` for version comparison and changelog preview before updating.
|
|
|
496
475
|
- `/pan:progress` — see where you're at
|
|
497
476
|
- `.planning/state.md` — current project context
|
|
498
477
|
- `.planning/roadmap.md` — phase status
|
|
499
|
-
- `/pan:discord` — community support
|
|
500
478
|
</reference>
|
|
@@ -64,13 +64,11 @@ Extract from result: `phase_number`, `after_phase`, `name`, `slug`, `directory`.
|
|
|
64
64
|
<step name="update_project_state">
|
|
65
65
|
Update state.md to reflect the inserted phase:
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
|
|
69
|
-
```
|
|
70
|
-
- Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)
|
|
71
|
-
```
|
|
67
|
+
Append the entry under "## Accumulated Context" → "### Roadmap Evolution" (the engine creates the section when it is missing):
|
|
72
68
|
|
|
73
|
-
|
|
69
|
+
```bash
|
|
70
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs state section "Roadmap Evolution" --append "- Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)"
|
|
71
|
+
```
|
|
74
72
|
</step>
|
|
75
73
|
|
|
76
74
|
<step name="completion">
|
|
@@ -7,8 +7,8 @@ Analyze the most recent trace session and generate a circular optimization repor
|
|
|
7
7
|
- A trace session must exist in `.planning/optimization/traces/`
|
|
8
8
|
- If no session exists, instruct the user to start one first:
|
|
9
9
|
```
|
|
10
|
-
/pan:optimize trace init --description "what you're building"
|
|
11
|
-
[run your build: /pan:exec-phase N or /pan:focus-exec]
|
|
10
|
+
/pan:learn --optimize trace init --description "what you're building"
|
|
11
|
+
[run your build: /pan:exec-phase N or /pan:focus-auto --step exec]
|
|
12
12
|
/pan:learn
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -65,7 +65,7 @@ Present to the user:
|
|
|
65
65
|
2. **Top 3 findings** — the most impactful recommendations
|
|
66
66
|
3. **Lessons** — how many, and where each belongs: the project's instructions (CLAUDE.md or AGENTS.md, outside PAN's section), a test, or a comment at the cited code
|
|
67
67
|
4. **Prompt and workflow changes** — how many, for human review
|
|
68
|
-
5. **Next step** — `/pan:optimize apply` records the suggestions in `.planning/optimization/suggestions.md`; a person makes the changes, because nothing in the report reaches an agent until it is written where the agents read
|
|
68
|
+
5. **Next step** — `/pan:learn --optimize apply` records the suggestions in `.planning/optimization/suggestions.md`; a person makes the changes, because nothing in the report reaches an agent until it is written where the agents read
|
|
69
69
|
|
|
70
70
|
## Step 5 — Auto-apply (if --apply flag)
|
|
71
71
|
|
|
@@ -274,7 +274,7 @@ All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
|
274
274
|
|
|
275
275
|
**Plan gap closure** — create phases to complete milestone
|
|
276
276
|
|
|
277
|
-
/pan:milestone-gaps
|
|
277
|
+
/pan:milestone-audit --gaps
|
|
278
278
|
|
|
279
279
|
<sub>/clear first → fresh context window</sub>
|
|
280
280
|
|
|
@@ -316,7 +316,7 @@ All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
|
316
316
|
|
|
317
317
|
**B. Plan cleanup phase** — address debt before completing
|
|
318
318
|
|
|
319
|
-
/pan:milestone-gaps
|
|
319
|
+
/pan:milestone-audit --gaps
|
|
320
320
|
|
|
321
321
|
<sub>/clear first → fresh context window</sub>
|
|
322
322
|
|
|
@@ -55,17 +55,13 @@ Update Active requirements section and "Last updated" footer.
|
|
|
55
55
|
|
|
56
56
|
## 5. Update state.md
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
## Current Position
|
|
58
|
+
Reset the position for the new milestone through the engine, keeping the Accumulated Context of the last one:
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
**Status:** Defining requirements
|
|
64
|
-
**Last Activity:** [today]
|
|
65
|
-
**Last Activity Description:** Milestone v[X.Y] started
|
|
60
|
+
```bash
|
|
61
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs state init --core-value "<core value from project.md>" --focus "Milestone v[X.Y] [Name]" --phase "Not started" --phase-name "Defining requirements" --status "Defining requirements" --activity "Milestone v[X.Y] started" --force --keep-context
|
|
66
62
|
```
|
|
67
63
|
|
|
68
|
-
|
|
64
|
+
The old state.md is backed up first. The engine writes every section of the template and keeps the frontmatter in sync; never write state.md with the Write or Edit tool (under `hooks.guard: enforce` the guard denies it).
|
|
69
65
|
|
|
70
66
|
## 6. Cleanup and Commit
|
|
71
67
|
|
|
@@ -81,108 +77,63 @@ node ~/.claude/pan-wizard-core/bin/pan-tools.cjs commit "docs: start milestone v
|
|
|
81
77
|
INIT=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs init new-milestone)
|
|
82
78
|
```
|
|
83
79
|
|
|
84
|
-
Extract from init JSON: `researcher_model`, `
|
|
80
|
+
Extract from init JSON: `researcher_model`, `roadmapper_model`, `commit_docs`, `research_enabled`, `current_milestone`, `project_exists`, `roadmap_exists`.
|
|
85
81
|
|
|
86
82
|
## 8. Research Decision
|
|
87
83
|
|
|
88
|
-
|
|
89
|
-
- "Research first (Recommended)" — Discover patterns, features, architecture for NEW capabilities
|
|
90
|
-
- "Skip research" — Go straight to requirements
|
|
84
|
+
Research is **off by default** and answers questions; it never surveys a domain or adds scope (the same contract as `/pan:new-project` step 6).
|
|
91
85
|
|
|
92
|
-
|
|
86
|
+
AskUserQuestion: "Research open questions for the new features before defining requirements?"
|
|
87
|
+
- "Skip research (Recommended)" — Go straight to requirements
|
|
88
|
+
- "Research open questions" — Answer up to 5 questions that block building the new features, each with a source
|
|
93
89
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
`/pan:plan-phase` keeps its own setting (`workflow.research`, off by default; `/pan:settings` changes it).
|
|
91
|
+
|
|
92
|
+
**If "Research open questions":**
|
|
97
93
|
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
List at most **5** open questions the milestone's goals leave unanswered and that block building the NEW features (a technology choice, an external API's behaviour, a data format, a limit or rule; never what already exists). Write them as a numbered list to `.planning/research/questions.md` (`mkdir -p .planning/research` first):
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
# Research questions — milestone v[X.Y]
|
|
98
|
+
|
|
99
|
+
1. [question] — blocks: [the decision it settles]
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
**If
|
|
102
|
+
**No questions → no research.** If nothing blocks building, write no file, say so, and continue to Step 9.
|
|
103
103
|
|
|
104
104
|
```
|
|
105
105
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
106
|
-
PAN ► RESEARCHING
|
|
106
|
+
PAN ► RESEARCHING {N} QUESTIONS
|
|
107
107
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
108
|
-
|
|
109
|
-
◆ Spawning 4 researchers in parallel...
|
|
110
|
-
→ Stack, Features, Architecture, Pitfalls
|
|
111
108
|
```
|
|
112
109
|
|
|
113
|
-
```bash
|
|
114
|
-
mkdir -p .planning/research
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Spawn 4 parallel pan-project-researcher agents. Each uses this template with dimension-specific fields:
|
|
118
|
-
|
|
119
|
-
**Common structure for all 4 researchers:**
|
|
120
110
|
```
|
|
121
111
|
Task(prompt="
|
|
122
|
-
<research_type>Project Research — {DIMENSION} for [new features].</research_type>
|
|
123
|
-
|
|
124
|
-
<milestone_context>
|
|
125
|
-
SUBSEQUENT MILESTONE — Adding [target features] to existing app.
|
|
126
|
-
{EXISTING_CONTEXT}
|
|
127
|
-
Focus ONLY on what's needed for the NEW features.
|
|
128
|
-
</milestone_context>
|
|
129
|
-
|
|
130
|
-
<question>{QUESTION}</question>
|
|
131
|
-
|
|
132
112
|
<files_to_read>
|
|
133
|
-
- .planning/
|
|
113
|
+
- .planning/research/questions.md (The questions: answer these and nothing else)
|
|
114
|
+
- .planning/project.md (Project context; what exists is not a question)
|
|
134
115
|
</files_to_read>
|
|
135
116
|
|
|
136
|
-
<downstream_consumer>{CONSUMER}</downstream_consumer>
|
|
137
|
-
|
|
138
|
-
<quality_gate>{GATES}</quality_gate>
|
|
139
|
-
|
|
140
117
|
<output>
|
|
141
|
-
Write to: .planning/research/
|
|
142
|
-
|
|
118
|
+
Write to: .planning/research/research-summary.md
|
|
119
|
+
One row per question: | # | Question | Answer | Source | Confidence | Decision it settles |, or `unknown — assume: …`. At most 4 searches or fetches per question. Anything that suggests new scope goes under ## Ideas (v2 candidates). Do not commit.
|
|
143
120
|
</output>
|
|
144
|
-
", subagent_type="pan-project-researcher", model="{researcher_model}", description="
|
|
121
|
+
", subagent_type="pan-project-researcher", model="{researcher_model}", description="Answer research questions")
|
|
145
122
|
```
|
|
146
123
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
| Field | Stack | Features | Architecture | Pitfalls |
|
|
150
|
-
|-------|-------|----------|-------------|----------|
|
|
151
|
-
| EXISTING_CONTEXT | Existing validated capabilities (DO NOT re-research): [from project.md] | Existing features (already built): [from project.md] | Existing architecture: [from project.md or codebase map] | Focus on common mistakes when ADDING these features to existing system |
|
|
152
|
-
| QUESTION | What stack additions/changes are needed for [new features]? | How do [target features] typically work? Expected behavior? | How do [target features] integrate with existing architecture? | Common mistakes when adding [target features] to [domain]? |
|
|
153
|
-
| CONSUMER | Specific libraries with versions for NEW capabilities, integration points, what NOT to add | Table stakes vs differentiators vs anti-features, complexity noted, dependencies on existing | Integration points, new components, data flow changes, suggested build order | Warning signs, prevention strategy, which phase should address it |
|
|
154
|
-
| GATES | Versions current (verify with Context7), rationale explains WHY, integration considered | Categories clear, complexity noted, dependencies identified | Integration points identified, new vs modified explicit, build order considers deps | Pitfalls specific to adding these features, integration pitfalls covered, prevention actionable |
|
|
155
|
-
| FILE | stack.md | features.md | architecture.md | pitfalls.md |
|
|
156
|
-
|
|
157
|
-
After all 4 complete, spawn synthesizer:
|
|
124
|
+
Check the answers:
|
|
158
125
|
|
|
126
|
+
```bash
|
|
127
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs research check .planning/research/questions.md .planning/research/research-summary.md
|
|
159
128
|
```
|
|
160
|
-
Task(prompt="
|
|
161
|
-
Synthesize research outputs into summary.md.
|
|
162
|
-
|
|
163
|
-
<files_to_read>
|
|
164
|
-
- .planning/research/stack.md
|
|
165
|
-
- .planning/research/features.md
|
|
166
|
-
- .planning/research/architecture.md
|
|
167
|
-
- .planning/research/pitfalls.md
|
|
168
|
-
</files_to_read>
|
|
169
129
|
|
|
170
|
-
|
|
171
|
-
Use template: ~/.claude/pan-wizard-core/templates/research-project/summary.md
|
|
172
|
-
Commit after writing.
|
|
173
|
-
", subagent_type="pan-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
|
|
174
|
-
```
|
|
130
|
+
Exit 1: send its `errors` to the researcher once as a revision. One revision at most; then proceed, with each question still unsourced recorded under `## Unknowns` in research-summary.md with the assumption you will use. Commit:
|
|
175
131
|
|
|
176
|
-
|
|
132
|
+
```bash
|
|
133
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs commit "docs: answer milestone research questions" --files .planning/research/questions.md .planning/research/research-summary.md
|
|
177
134
|
```
|
|
178
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
179
|
-
PAN ► RESEARCH COMPLETE ✓
|
|
180
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
181
135
|
|
|
182
|
-
|
|
183
|
-
**Feature table stakes:** [from summary.md]
|
|
184
|
-
**Watch Out For:** [from summary.md]
|
|
185
|
-
```
|
|
136
|
+
Display the decisions settled, the unknowns with their assumptions, and the number of ideas (offered in Step 9 as future candidates, never added to this milestone by themselves).
|
|
186
137
|
|
|
187
138
|
**If "Skip research":** Continue to Step 9.
|
|
188
139
|
|
|
@@ -196,27 +147,19 @@ Display key findings from summary.md:
|
|
|
196
147
|
|
|
197
148
|
Read project.md: core value, current milestone goals, validated requirements (what exists).
|
|
198
149
|
|
|
199
|
-
**If research exists:** Read
|
|
200
|
-
|
|
201
|
-
Present features by category:
|
|
202
|
-
```
|
|
203
|
-
## [Category 1]
|
|
204
|
-
**Table stakes:** Feature A, Feature B
|
|
205
|
-
**Differentiators:** Feature C, Feature D
|
|
206
|
-
**Research notes:** [any relevant notes]
|
|
207
|
-
```
|
|
150
|
+
**If research exists:** Read `.planning/research/research-summary.md`. Its answers settle decisions the requirements use; its `## Ideas (v2 candidates)` are offered as future candidates the user may promote, never added to this milestone by themselves.
|
|
208
151
|
|
|
209
|
-
|
|
152
|
+
Gather requirements through conversation. Ask: "What are the main things users need to do with [new features]?" Clarify, probe for related capabilities, group into categories.
|
|
210
153
|
|
|
211
154
|
**Scope each category** via AskUserQuestion (multiSelect: true, header max 12 chars):
|
|
212
155
|
- "[Feature 1]" — [brief description]
|
|
213
156
|
- "[Feature 2]" — [brief description]
|
|
214
157
|
- "None for this milestone" — Defer entire category
|
|
215
158
|
|
|
216
|
-
Track: Selected → this milestone. Unselected
|
|
159
|
+
Track: Selected → this milestone. Unselected → future or out of scope (ask which when unclear).
|
|
217
160
|
|
|
218
161
|
**Identify gaps** via AskUserQuestion:
|
|
219
|
-
- "No,
|
|
162
|
+
- "No, that covers it" — Proceed
|
|
220
163
|
- "Yes, let me add some" — Capture additions
|
|
221
164
|
|
|
222
165
|
**Generate requirements.md:**
|
|
@@ -275,7 +218,7 @@ Task(prompt="
|
|
|
275
218
|
<files_to_read>
|
|
276
219
|
- .planning/project.md
|
|
277
220
|
- .planning/requirements.md
|
|
278
|
-
- .planning/research/summary.md (if exists)
|
|
221
|
+
- .planning/research/research-summary.md (if exists; older projects: .planning/research/summary.md)
|
|
279
222
|
- .planning/config.json
|
|
280
223
|
- .planning/milestones.md
|
|
281
224
|
</files_to_read>
|
|
@@ -288,7 +231,7 @@ Create roadmap for milestone v[X.Y]:
|
|
|
288
231
|
3. Map every requirement to exactly one phase
|
|
289
232
|
4. Derive 2-5 success criteria per phase (observable user behaviors)
|
|
290
233
|
5. Validate 100% coverage
|
|
291
|
-
6. Write
|
|
234
|
+
6. Write roadmap.md immediately; initialise state.md with `pan-tools state init ... --force --keep-context` (it exists from step 5), never the Write tool; update requirements.md traceability
|
|
292
235
|
7. Return ROADMAP CREATED with summary
|
|
293
236
|
|
|
294
237
|
Write files first, then return.
|