pan-wizard 3.35.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 +46 -52
- 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 +2 -3
- package/agents/pan-document_code.md +1 -2
- package/agents/pan-executor.md +25 -0
- package/agents/pan-hardener.md +4 -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 +80 -475
- package/agents/pan-plan-checker.md +40 -3
- package/agents/pan-planner.md +21 -7
- package/agents/pan-previewer.md +3 -2
- package/agents/pan-project-researcher.md +72 -493
- package/agents/pan-release.md +1 -1
- package/agents/pan-reviewer.md +14 -3
- package/agents/pan-roadmapper.md +12 -7
- package/agents/pan-verifier.md +9 -4
- 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/cost.md +21 -1
- 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/preview.md +1 -1
- 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 +41 -5
- package/pan-wizard-core/bin/lib/constants.cjs +27 -1
- package/pan-wizard-core/bin/lib/core.cjs +31 -14
- package/pan-wizard-core/bin/lib/cost.cjs +160 -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/doc-lint.cjs +5 -3
- package/pan-wizard-core/bin/lib/failure-class.cjs +81 -0
- package/pan-wizard-core/bin/lib/findings.cjs +148 -9
- package/pan-wizard-core/bin/lib/focus.cjs +1 -1
- package/pan-wizard-core/bin/lib/git.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 +268 -0
- 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-gate.cjs +15 -9
- package/pan-wizard-core/bin/lib/phase-remove.cjs +91 -11
- package/pan-wizard-core/bin/lib/phase.cjs +85 -13
- package/pan-wizard-core/bin/lib/plan-lint.cjs +310 -0
- package/pan-wizard-core/bin/lib/preview.cjs +26 -4
- package/pan-wizard-core/bin/lib/requirements-lint.cjs +130 -0
- package/pan-wizard-core/bin/lib/research-lint.cjs +268 -0
- 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/roadmap.cjs +1 -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/test-gate.cjs +433 -0
- package/pan-wizard-core/bin/lib/uat.cjs +149 -0
- package/pan-wizard-core/bin/lib/usage.cjs +104 -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 +174 -0
- package/pan-wizard-core/bin/lib/verify-retro.cjs +3 -2
- package/pan-wizard-core/bin/lib/verify-scope.cjs +143 -2
- package/pan-wizard-core/bin/lib/verify.cjs +86 -31
- package/pan-wizard-core/bin/lib/worktree.cjs +70 -0
- package/pan-wizard-core/bin/pan-tools.cjs +257 -28
- package/pan-wizard-core/learnings/universal/autonomous-loop.md +2 -2
- package/pan-wizard-core/mcp/orchestrator.cjs +4 -1
- package/pan-wizard-core/references/continuation-format.md +3 -3
- package/pan-wizard-core/references/design-methodology.md +1 -1
- package/pan-wizard-core/references/guardrails.md +1 -1
- package/pan-wizard-core/references/handoff-decisions.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 +10 -2
- package/pan-wizard-core/templates/debug.md +1 -0
- package/pan-wizard-core/templates/design.md +5 -4
- package/pan-wizard-core/templates/discovery.md +2 -2
- package/pan-wizard-core/templates/phase-prompt.md +7 -0
- package/pan-wizard-core/templates/requirements.md +9 -0
- package/pan-wizard-core/templates/research.md +10 -0
- package/pan-wizard-core/templates/summary-complex.md +5 -1
- package/pan-wizard-core/templates/summary-minimal.md +4 -0
- package/pan-wizard-core/templates/summary-standard.md +5 -1
- package/pan-wizard-core/templates/summary.md +8 -1
- 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 +79 -15
- package/pan-wizard-core/workflows/execute-plan.md +3 -1
- 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 +114 -77
- 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 +106 -45
- 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/remove-phase.md +11 -1
- 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 +33 -19
- 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 +39 -46
- package/scripts/build-agent-plugin.js +35 -15
- package/scripts/build-help.cjs +106 -0
- 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/mutation-probe.cjs +7 -80
- 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 +175 -6
- 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 -204
- package/pan-wizard-core/templates/research-project/features.md +0 -147
- package/pan-wizard-core/templates/research-project/pitfalls.md +0 -200
- package/pan-wizard-core/templates/research-project/stack.md +0 -120
- package/pan-wizard-core/templates/research-project/summary.md +0 -170
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: focus-drift-walking
|
|
3
|
-
group: Focus
|
|
4
|
-
description: Deep documentation-code drift detection, CLAUDE.md alignment, and auto-repair across all project directories
|
|
5
|
-
argument-hint: "[--create] [--audit] [--repair] [--report] [--dir <path>] [--depth N] [--severity critical|high|medium|low|info] [--format markdown|json|checklist] [--quick]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Write
|
|
9
|
-
- Edit
|
|
10
|
-
- Bash
|
|
11
|
-
- Grep
|
|
12
|
-
- Glob
|
|
13
|
-
- Agent
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# /pan:focus-drift-walking — Documentation-Code Drift Detection & Alignment
|
|
1
|
+
# /pan:focus-auto --step drift — Documentation-Code Drift Detection & Alignment
|
|
17
2
|
|
|
18
3
|
Walk every directory in the project, detect drift between documentation and code reality, create missing documentation, repair drifted files, and synchronize the truth hierarchy. $ARGUMENTS
|
|
19
4
|
|
|
@@ -23,7 +8,7 @@ Walk every directory in the project, detect drift between documentation and code
|
|
|
23
8
|
|
|
24
9
|
---
|
|
25
10
|
|
|
26
|
-
##
|
|
11
|
+
## Project Scope Boundary
|
|
27
12
|
|
|
28
13
|
This command walks the **host project's directories and documentation** — NOT PAN Wizard's own infrastructure.
|
|
29
14
|
|
|
@@ -41,7 +26,7 @@ If a drift finding points to a file inside a PAN or build directory — DROP IT.
|
|
|
41
26
|
|
|
42
27
|
## MANDATORY: Execute ALL Phases Automatically
|
|
43
28
|
|
|
44
|
-
When `/pan:focus-drift
|
|
29
|
+
When `/pan:focus-auto --step drift` is invoked, execute ALL phases for the selected mode without stopping. Do NOT ask questions between phases. Do NOT skip phases beyond what the mode specifies. Produce a complete drift report at the end.
|
|
45
30
|
|
|
46
31
|
**Flags:**
|
|
47
32
|
- `--create` — Create missing documentation files in directories that lack them
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: focus-exec
|
|
3
|
-
group: Focus
|
|
4
|
-
description: Automated batch execution pipeline with 6 stages, behavioral rules, 3 execution tiers
|
|
5
|
-
argument-hint: "[--budget N] [--mode bugfix|balanced|features|full] [--priority P0-P6] [--dry-run] [--no-commit] [--continue] [--deep-review]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Write
|
|
9
|
-
- Edit
|
|
10
|
-
- Bash
|
|
11
|
-
- Grep
|
|
12
|
-
- Glob
|
|
13
|
-
- Agent
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# /pan:focus-exec — Automated Batch Execution Pipeline
|
|
1
|
+
# /pan:focus-auto --step exec — Automated Batch Execution Pipeline
|
|
17
2
|
|
|
18
3
|
Execute items from the current focus batch with capacity-based sizing, full session lifecycle, and verification. $ARGUMENTS
|
|
19
4
|
|
|
@@ -36,7 +21,7 @@ Execution FAILS if: test baseline cannot be established (Stage 1), or test count
|
|
|
36
21
|
## Pipeline Overview
|
|
37
22
|
|
|
38
23
|
```
|
|
39
|
-
/pan:focus-exec
|
|
24
|
+
/pan:focus-auto --step exec
|
|
40
25
|
|
|
41
26
|
Stage 1: SESSION START
|
|
42
27
|
- Check project status, record baseline
|
|
@@ -95,7 +80,7 @@ This command executes work on the **host project's source code** — not on PAN
|
|
|
95
80
|
|
|
96
81
|
## Execute All Stages Sequentially
|
|
97
82
|
|
|
98
|
-
When `/pan:focus-exec` is invoked, run all 6 stages in order. Do not skip stages or stop between them unless tests regress.
|
|
83
|
+
When `/pan:focus-auto --step exec` is invoked, run all 6 stages in order. Do not skip stages or stop between them unless tests regress.
|
|
99
84
|
|
|
100
85
|
<stage_dependencies>
|
|
101
86
|
Stage 1 → Stage 2: Baseline MUST exist before batch loads (regression detection requires it)
|
|
@@ -106,7 +91,7 @@ Stage 5 → Stage 6: Docs MUST be updated before commit (commit captures the com
|
|
|
106
91
|
|
|
107
92
|
HARD STOP conditions (do not proceed to next stage):
|
|
108
93
|
- Stage 1: Test suite fails → fix tests before proceeding
|
|
109
|
-
- Stage 2: No batch file found → tell user to run /pan:focus-plan
|
|
94
|
+
- Stage 2: No batch file found → tell user to run /pan:focus-auto --step plan
|
|
110
95
|
- Stage 4: Test count below baseline → revert last changes, re-verify
|
|
111
96
|
</stage_dependencies>
|
|
112
97
|
|
|
@@ -235,7 +220,7 @@ baseline_commit: <current HEAD>
|
|
|
235
220
|
|
|
236
221
|
### 2.1 Find Active Batch
|
|
237
222
|
Search for: `.planning/focus/batch-*.json`
|
|
238
|
-
Pick the newest. If none exists, tell user to run `/pan:focus-plan` first.
|
|
223
|
+
Pick the newest. If none exists, tell user to run `/pan:focus-auto --step plan` first.
|
|
239
224
|
|
|
240
225
|
### 2.2 Read and Validate the Batch
|
|
241
226
|
Extract all items: ID, Title, Priority, Effort, Points, Tier, Files.
|
|
@@ -409,7 +394,7 @@ node ~/.claude/pan-wizard-core/bin/pan-tools.cjs optimize trace end 2>/dev/null
|
|
|
409
394
|
### 6.4 Final Report
|
|
410
395
|
|
|
411
396
|
```markdown
|
|
412
|
-
## /pan:focus-exec Complete
|
|
397
|
+
## /pan:focus-auto --step exec Complete
|
|
413
398
|
|
|
414
399
|
| Stage | Status |
|
|
415
400
|
|-------|--------|
|
|
@@ -427,8 +412,8 @@ node ~/.claude/pan-wizard-core/bin/pan-tools.cjs optimize trace end 2>/dev/null
|
|
|
427
412
|
- **Tests:** Before N -> After M (+K new)
|
|
428
413
|
|
|
429
414
|
### Resume
|
|
430
|
-
Run `/pan:focus-exec --continue` for remaining items.
|
|
431
|
-
Run `/pan:focus-scan` to regenerate the scan.
|
|
415
|
+
Run `/pan:focus-auto --step exec --continue` for remaining items.
|
|
416
|
+
Run `/pan:focus-auto --step scan` to regenerate the scan.
|
|
432
417
|
```
|
|
433
418
|
|
|
434
419
|
---
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: focus-plan
|
|
3
|
-
group: Focus
|
|
4
|
-
description: Create capacity-budgeted work batch with spec coverage verification and 4 execution modes
|
|
5
|
-
argument-hint: "[--budget N] [--mode bugfix|balanced|features|full] [--priority P0-P6] [--lean] [--no-spec-check]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Write
|
|
9
|
-
- Edit
|
|
10
|
-
- Bash
|
|
11
|
-
- Grep
|
|
12
|
-
- Glob
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# /pan:focus-plan — Capacity-Budgeted Work Batch Planner with Spec Coverage Verification
|
|
1
|
+
# /pan:focus-auto --step plan — Capacity-Budgeted Work Batch Planner with Spec Coverage Verification
|
|
16
2
|
|
|
17
3
|
Create a capacity-budgeted work batch from focus-scan results **with mandatory verification that planned work covers all relevant spec and ADR requirements.** $ARGUMENTS
|
|
18
4
|
|
|
@@ -20,7 +6,7 @@ Create a capacity-budgeted work batch from focus-scan results **with mandatory v
|
|
|
20
6
|
|
|
21
7
|
---
|
|
22
8
|
|
|
23
|
-
##
|
|
9
|
+
## Project Scope Boundary
|
|
24
10
|
|
|
25
11
|
This command plans work batches for the **host project** — NOT for PAN Wizard's own infrastructure.
|
|
26
12
|
|
|
@@ -34,7 +20,7 @@ If a scan item points to a PAN infrastructure file, DROP it from the batch. PAN'
|
|
|
34
20
|
|
|
35
21
|
## MANDATORY: Run focus-scan first
|
|
36
22
|
|
|
37
|
-
If no recent scan exists, run `/pan:focus-scan` automatically before proceeding.
|
|
23
|
+
If no recent scan exists, run `/pan:focus-auto --step scan` automatically before proceeding.
|
|
38
24
|
|
|
39
25
|
**Flags:**
|
|
40
26
|
- `--budget N` — Override capacity budget in points (default: 50, min: 5, max: 100)
|
|
@@ -215,13 +201,13 @@ For each success criterion in the batch, specify HOW it will be verified after e
|
|
|
215
201
|
| SC-2 | Keywords >= 500 | `SELECT COUNT(*) FROM stx_keyword` | >= 500 |
|
|
216
202
|
| SC-5 | No regression | `dotnet test` | All pass, count >= N |
|
|
217
203
|
|
|
218
|
-
This becomes the post-execution checklist for `/pan:focus-exec`.
|
|
204
|
+
This becomes the post-execution checklist for `/pan:focus-auto --step exec`.
|
|
219
205
|
|
|
220
206
|
---
|
|
221
207
|
|
|
222
208
|
## Phase 5: Output
|
|
223
209
|
|
|
224
|
-
Write the batch to `.planning/focus/batch-<YYYY-MM-DD>.json` yourself — `{date, mode, budget, allocated, items: [...]}`, each item `{id, title, priority, effort, points, tier, files}` with `tier` one of `MICRO`, `STANDARD`, `FULL` (`focus exec` and `focus classify-stages` group items by it, and an item without it lands in no wave); `focus exec`, `focus classify-stages` and `/pan:focus-exec` read an `items` or `batch` array. Do not hand this step to `pan-tools focus plan`: it ignores the scan and the spec mapping, batches only incomplete roadmap phases, pending todos and `.planning/patterns.md` entries, and overwrites the day's batch file:
|
|
210
|
+
Write the batch to `.planning/focus/batch-<YYYY-MM-DD>.json` yourself — `{date, mode, budget, allocated, items: [...]}`, each item `{id, title, priority, effort, points, tier, files}` with `tier` one of `MICRO`, `STANDARD`, `FULL` (`focus exec` and `focus classify-stages` group items by it, and an item without it lands in no wave); `focus exec`, `focus classify-stages` and `/pan:focus-auto --step exec` read an `items` or `batch` array. Do not hand this step to `pan-tools focus plan`: it ignores the scan and the spec mapping, batches only incomplete roadmap phases, pending todos and `.planning/patterns.md` entries, and overwrites the day's batch file:
|
|
225
211
|
|
|
226
212
|
```markdown
|
|
227
213
|
## Focus Batch — <date>
|
|
@@ -267,7 +253,7 @@ Write the batch to `.planning/focus/batch-<YYYY-MM-DD>.json` yourself — `{date
|
|
|
267
253
|
Execution Order: MICRO first, then STANDARD, then FULL
|
|
268
254
|
```
|
|
269
255
|
|
|
270
|
-
Ready for `/pan:focus-exec`.
|
|
256
|
+
Ready for `/pan:focus-auto --step exec`.
|
|
271
257
|
|
|
272
258
|
---
|
|
273
259
|
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: focus-scan
|
|
3
|
-
group: Focus
|
|
4
|
-
description: Deep-dive strategic work scan with prioritized items and Reality Score filtering
|
|
5
|
-
argument-hint: "[--focus <area>] [--quick] [--refresh] [--lean]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Write
|
|
9
|
-
- Bash
|
|
10
|
-
- Grep
|
|
11
|
-
- Glob
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# /pan:focus-scan — Deep-Dive Strategic Work Scan
|
|
1
|
+
# /pan:focus-auto --step scan — Deep-Dive Strategic Work Scan
|
|
15
2
|
|
|
16
3
|
Survey the project for prioritized work items with evidence-based scoring. $ARGUMENTS
|
|
17
4
|
|
|
@@ -48,7 +35,7 @@ Do not read entire files when Grep can find the relevant lines. Do not use Bash
|
|
|
48
35
|
|
|
49
36
|
## Execute All Phases Automatically
|
|
50
37
|
|
|
51
|
-
When `/pan:focus-scan` is invoked, execute all phases without stopping. Do not ask questions between phases or skip phases. The output is a prioritized work list with Reality Score filtering.
|
|
38
|
+
When `/pan:focus-auto --step scan` is invoked, execute all phases without stopping. Do not ask questions between phases or skip phases. The output is a prioritized work list with Reality Score filtering.
|
|
52
39
|
|
|
53
40
|
**Flags:**
|
|
54
41
|
- `--focus <area>` — Weight items toward a specific area (e.g., `--focus commands`, `--focus hooks`, `--focus tests`)
|
|
@@ -237,7 +224,7 @@ Gather items from:
|
|
|
237
224
|
## Phase 5: Scan Assembly
|
|
238
225
|
|
|
239
226
|
### 5.1 Output
|
|
240
|
-
Write the scan to `.planning/focus/scan-<YYYY-MM-DD>.md`, where `/pan:focus-plan` builds from it and `/pan:focus-exec` updates it (Stage 5.2). `pan-tools focus scan` does not take these items: it lists only incomplete roadmap phases that have a directory, pending todos and `.planning/patterns.md` entries.
|
|
227
|
+
Write the scan to `.planning/focus/scan-<YYYY-MM-DD>.md`, where `/pan:focus-auto --step plan` builds from it and `/pan:focus-auto --step exec` updates it (Stage 5.2). `pan-tools focus scan` does not take these items: it lists only incomplete roadmap phases that have a directory, pending todos and `.planning/patterns.md` entries.
|
|
241
228
|
|
|
242
229
|
### 5.2 Document Structure
|
|
243
230
|
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: focus-sync
|
|
3
|
-
group: Focus
|
|
4
|
-
description: Synchronize documentation after changes — check staleness and update counts
|
|
5
|
-
argument-hint: "[--readme | --docs | --arch | --all]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Bash
|
|
9
|
-
- Grep
|
|
10
|
-
- Glob
|
|
11
|
-
- Edit
|
|
12
|
-
- Write
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# /pan:focus-sync — Documentation Synchronization
|
|
1
|
+
# /pan:focus-docs --sync — Documentation Synchronization
|
|
16
2
|
|
|
17
3
|
Synchronize project documentation across all files. $ARGUMENTS
|
|
18
4
|
|
|
@@ -20,7 +6,7 @@ Synchronize project documentation across all files. $ARGUMENTS
|
|
|
20
6
|
|
|
21
7
|
---
|
|
22
8
|
|
|
23
|
-
##
|
|
9
|
+
## Project Scope Boundary
|
|
24
10
|
|
|
25
11
|
This command synchronizes the **host project's documentation** — NOT PAN Wizard's own infrastructure files.
|
|
26
12
|
|
|
@@ -35,11 +21,11 @@ This command synchronizes the **host project's documentation** — NOT PAN Wizar
|
|
|
35
21
|
## Usage
|
|
36
22
|
|
|
37
23
|
```
|
|
38
|
-
/pan:focus-sync # Full sync check: report staleness
|
|
39
|
-
/pan:focus-sync --readme # Check README.md only
|
|
40
|
-
/pan:focus-sync --docs # Verify documentation matches implementations
|
|
41
|
-
/pan:focus-sync --arch # Verify architecture docs match actual structure
|
|
42
|
-
/pan:focus-sync --all # Full sync of everything + auto-fix
|
|
24
|
+
/pan:focus-docs --sync # Full sync check: report staleness
|
|
25
|
+
/pan:focus-docs --sync --readme # Check README.md only
|
|
26
|
+
/pan:focus-docs --sync --docs # Verify documentation matches implementations
|
|
27
|
+
/pan:focus-docs --sync --arch # Verify architecture docs match actual structure
|
|
28
|
+
/pan:focus-docs --sync --all # Full sync of everything + auto-fix
|
|
43
29
|
```
|
|
44
30
|
|
|
45
31
|
---
|
|
@@ -72,6 +72,12 @@ Status: HEALTHY | DEGRADED | BROKEN
|
|
|
72
72
|
Errors: N | Warnings: N | Info: N
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
+
**Ask per repair class before repairing.** With `--repair`, run `validate health` without it first and read `repairs_available` (for example `resetConfig`, `regenerateState`, `syncRequirements`, `syncRoadmap`). Ask about each class on its own, saying what it rewrites (state.md is backed up before regeneration; config.json is reset to defaults). Then repair only the classes the user accepted:
|
|
76
|
+
```bash
|
|
77
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs validate health --repair --only <class>,<class>
|
|
78
|
+
```
|
|
79
|
+
A class the user declines is not touched.
|
|
80
|
+
|
|
75
81
|
**If repairs were performed:**
|
|
76
82
|
```
|
|
77
83
|
## Repairs Performed
|
|
@@ -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
|
|
|
@@ -209,81 +209,119 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
209
209
|
|
|
210
210
|
## All Commands
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
Every shipped command, by group. This list is generated from each command's own description, so it is complete.
|
|
213
213
|
|
|
214
|
+
<!-- generated:command-index:start (scripts/build-help.cjs --write) -->
|
|
214
215
|
### Getting Started
|
|
215
216
|
| Command | Description |
|
|
216
217
|
|---------|-------------|
|
|
217
|
-
| `/pan:
|
|
218
|
-
| `/pan:
|
|
218
|
+
| `/pan:map-codebase` | Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents |
|
|
219
|
+
| `/pan:new-project` | Initialize a new project with deep context gathering and project.md |
|
|
219
220
|
|
|
220
221
|
### Phase Lifecycle
|
|
221
222
|
| Command | Description |
|
|
222
223
|
|---------|-------------|
|
|
223
|
-
| `/pan:
|
|
224
|
-
| `/pan:
|
|
225
|
-
| `/pan:
|
|
226
|
-
| `/pan:
|
|
227
|
-
| `/pan:
|
|
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 |
|
|
225
|
+
| `/pan:design-phase` | Design a roadmap phase before planning — architecture, ADR, threat-lite, machine-checkable criteria — verified by an independent checker |
|
|
226
|
+
| `/pan:discuss-phase` | Gather phase context through adaptive questioning before planning |
|
|
227
|
+
| `/pan:exec-phase` | Execute all plans in a phase with wave-based parallelization |
|
|
228
|
+
| `/pan:plan-phase` | Create detailed phase plan (plan.md) with verification loop |
|
|
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 |
|
|
228
230
|
|
|
229
231
|
### Phase Management
|
|
230
232
|
| Command | Description |
|
|
231
233
|
|---------|-------------|
|
|
232
|
-
| `/pan:add-phase
|
|
233
|
-
| `/pan:
|
|
234
|
-
| `/pan:
|
|
235
|
-
| `/pan:
|
|
236
|
-
| `/pan:phase-tests
|
|
237
|
-
| `/pan:phase
|
|
234
|
+
| `/pan:add-phase` | Add phase to end of current milestone in roadmap |
|
|
235
|
+
| `/pan:assumptions` | Surface Claude's assumptions about a phase approach before planning |
|
|
236
|
+
| `/pan:insert-phase` | Insert urgent work as decimal phase (e.g., 72.1) between existing phases |
|
|
237
|
+
| `/pan:phase-budget` | Estimate context utilization and quality for the current phase |
|
|
238
|
+
| `/pan:phase-tests` | Generate tests for a completed phase from its summaries, context decisions, verification report and implementation |
|
|
239
|
+
| `/pan:remove-phase` | Remove a future phase from roadmap and renumber subsequent phases |
|
|
238
240
|
|
|
239
241
|
### Session & Progress
|
|
240
242
|
| Command | Description |
|
|
241
243
|
|---------|-------------|
|
|
242
|
-
| `/pan:
|
|
243
|
-
| `/pan:
|
|
244
|
-
| `/pan:
|
|
245
|
-
| `/pan:resume` |
|
|
246
|
-
| `/pan:profile <name>` | Switch model profile (quality/balanced/budget) |
|
|
244
|
+
| `/pan:pause` | Create context handoff when pausing work mid-phase |
|
|
245
|
+
| `/pan:progress` | Check project progress, show context, and route to next action (execute or plan) |
|
|
246
|
+
| `/pan:quick` | Execute a quick task with PAN guarantees (atomic commits, state tracking) but skip optional agents |
|
|
247
|
+
| `/pan:resume` | Resume work from previous session with full context restoration |
|
|
247
248
|
|
|
248
249
|
### Milestone
|
|
249
250
|
| Command | Description |
|
|
250
251
|
|---------|-------------|
|
|
251
|
-
| `/pan:milestone-
|
|
252
|
-
| `/pan:milestone-done
|
|
253
|
-
| `/pan:milestone-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
| `/pan:retro` | Milestone retrospective — estimation & verification analysis |
|
|
257
|
-
|
|
258
|
-
### Focus (Strategic Project Management)
|
|
252
|
+
| `/pan:milestone-audit` | Audit milestone completion against original intent before archiving |
|
|
253
|
+
| `/pan:milestone-done` | Archive completed milestone and prepare for next version |
|
|
254
|
+
| `/pan:milestone-new` | Start a new milestone cycle — update project.md and route to requirements |
|
|
255
|
+
|
|
256
|
+
### Milestone Lifecycle
|
|
259
257
|
| Command | Description |
|
|
260
258
|
|---------|-------------|
|
|
261
|
-
| `/pan:
|
|
262
|
-
| `/pan:focus-plan` | Step 2: Budget items into an execution batch |
|
|
263
|
-
| `/pan:focus-exec` | Step 3: Implement, test, verify, commit |
|
|
264
|
-
| `/pan:focus-sync` | Step 4: Synchronize documentation after changes |
|
|
265
|
-
| `/pan:focus-auto` | Continuous scan→plan→exec loop with safety harness |
|
|
266
|
-
| `/pan:focus-design <desc>` | Standalone: Deep feature investigation and spec |
|
|
267
|
-
| `/pan:focus-drift-walking` | Walk project tree, detect doc-code drift, auto-repair |
|
|
268
|
-
| `/pan:focus-doc-audit` | Deep document audit with quality scoring |
|
|
259
|
+
| `/pan:retro` | Milestone retrospective — analyze estimation accuracy, verification patterns, and common gaps |
|
|
269
260
|
|
|
270
|
-
###
|
|
261
|
+
### Focus
|
|
262
|
+
| Command | Description |
|
|
263
|
+
|---------|-------------|
|
|
264
|
+
| `/pan:focus-auto` | Continuous scan-plan-exec loop with purpose-driven categories and a layered safety harness |
|
|
265
|
+
| `/pan:focus-design` | Strategic 10-phase feature investigation, design, and specification pipeline |
|
|
266
|
+
| `/pan:focus-docs` | Documentation audit and sync — accuracy, freshness, links, cross-consistency and structure; --sync updates stale docs after changes |
|
|
267
|
+
|
|
268
|
+
### Foresight
|
|
269
|
+
| Command | Description |
|
|
270
|
+
|---------|-------------|
|
|
271
|
+
| `/pan:preview` | Preview what will happen — phase blast radius, phase dependency graph, or milestone ETA |
|
|
272
|
+
| `/pan:what-if` | Explore a phase's alternative approach in an isolated git worktree. Replays the scenario, compares to the original plan, writes a report. |
|
|
273
|
+
|
|
274
|
+
### Review
|
|
275
|
+
| Command | Description |
|
|
276
|
+
|---------|-------------|
|
|
277
|
+
| `/pan:review-deep` | Security audit + cross-reviewer check. OWASP/STRIDE pass by pan-hardener, then pan-meta-reviewer catches what the first pass missed. Writes consolidated deep-review.md. |
|
|
278
|
+
|
|
279
|
+
### Validation
|
|
280
|
+
| Command | Description |
|
|
281
|
+
|---------|-------------|
|
|
282
|
+
| `/pan:links` | Validate the doc-code link graph — inline wiki-style refs, source-comment anchors, and require-code-mention contracts (ADR-0027, v3.8.0+) |
|
|
283
|
+
|
|
284
|
+
### Observability
|
|
271
285
|
| Command | Description |
|
|
272
286
|
|---------|-------------|
|
|
273
|
-
| `/pan:
|
|
274
|
-
| `/pan:
|
|
275
|
-
| `/pan:
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
|
279
|
-
|
|
280
|
-
| `/pan:
|
|
281
|
-
|
|
282
|
-
###
|
|
287
|
+
| `/pan:cost` | Show token usage and estimated cost across PAN commands and agents |
|
|
288
|
+
| `/pan:hud` | Generate a single-page, self-contained HTML dashboard of the bot army and the project's current state |
|
|
289
|
+
| `/pan:report` | Generate a self-contained HTML report for one phase, or a project-level timeline index linking every phase report |
|
|
290
|
+
|
|
291
|
+
### Knowledge
|
|
292
|
+
| Command | Description |
|
|
293
|
+
|---------|-------------|
|
|
294
|
+
| `/pan:knowledge` | Grounded Q&A, multi-turn design discussion, and playbook generation. Three modes in one command. |
|
|
295
|
+
|
|
296
|
+
### Self-Improvement
|
|
297
|
+
| Command | Description |
|
|
298
|
+
|---------|-------------|
|
|
299
|
+
| `/pan:experiment` | Manage external experiments — scaffold, run, harvest, promote findings back to PAN |
|
|
300
|
+
| `/pan:learn` | Analyze trace sessions or harvested experiments via pan-optimizer; generate ranked optimization reports |
|
|
301
|
+
|
|
302
|
+
### Git Workflow
|
|
303
|
+
| Command | Description |
|
|
304
|
+
|---------|-------------|
|
|
305
|
+
| `/pan:git` | Safe, phase-aware git workflow commands — commit, branch, push, status, log, stash, diff, rollback, tag, sync |
|
|
306
|
+
|
|
307
|
+
### Army
|
|
308
|
+
| Command | Description |
|
|
309
|
+
|---------|-------------|
|
|
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. |
|
|
311
|
+
|
|
312
|
+
### System
|
|
283
313
|
| Command | Description |
|
|
284
314
|
|---------|-------------|
|
|
285
|
-
| `/pan:
|
|
286
|
-
| `/pan:
|
|
315
|
+
| `/pan:debug` | Systematic debugging with persistent state across context resets |
|
|
316
|
+
| `/pan:health` | Diagnose planning directory health and optionally repair issues |
|
|
317
|
+
| `/pan:help` | Show available PAN commands and usage guide |
|
|
318
|
+
| `/pan:hygiene` | Scan the project for PAN version drift and stale artifacts (legacy filenames, memory bloat and stale entries, poisoned ledgers, trace debris, oversized planning files) and apply safe cleanups |
|
|
319
|
+
| `/pan:patches` | Reapply local modifications after a PAN update |
|
|
320
|
+
| `/pan:settings` | Configure PAN workflow toggles and model profile |
|
|
321
|
+
| `/pan:todo-add` | Capture idea or task as todo from current conversation context |
|
|
322
|
+
| `/pan:todo-check` | List pending todos and select one to work on |
|
|
323
|
+
| `/pan:update` | Update PAN to latest version with changelog display |
|
|
324
|
+
<!-- generated:command-index:end -->
|
|
287
325
|
|
|
288
326
|
---
|
|
289
327
|
|
|
@@ -296,12 +334,12 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
296
334
|
|
|
297
335
|
**Existing project, iterative work:**
|
|
298
336
|
```
|
|
299
|
-
/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
|
|
300
338
|
```
|
|
301
339
|
|
|
302
340
|
**Design a feature, then build it:**
|
|
303
341
|
```
|
|
304
|
-
/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
|
|
305
343
|
```
|
|
306
344
|
|
|
307
345
|
**Resume after a break:**
|
|
@@ -322,7 +360,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
322
360
|
|
|
323
361
|
**Complete a milestone:**
|
|
324
362
|
```
|
|
325
|
-
/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
|
|
326
364
|
```
|
|
327
365
|
|
|
328
366
|
**Debug an issue (survives /clear):**
|
|
@@ -340,7 +378,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
340
378
|
|
|
341
379
|
**`/pan:discuss-phase <N>`** — Capture your vision for a phase before planning. Creates context.md.
|
|
342
380
|
|
|
343
|
-
**`/pan:
|
|
381
|
+
**`/pan:plan-phase --research-only <N>`** — Deep ecosystem research for specialized domains (3D, ML, audio, etc.). Creates research.md.
|
|
344
382
|
|
|
345
383
|
**`/pan:assumptions <N>`** — See Claude's intended approach before it starts. Conversational only, no files created.
|
|
346
384
|
|
|
@@ -362,9 +400,9 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
362
400
|
|
|
363
401
|
**`/pan:milestone-audit`** — Reads verification.md files, checks requirements coverage, spawns integration checker. Creates milestone-audit.md.
|
|
364
402
|
|
|
365
|
-
**`/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.
|
|
366
404
|
|
|
367
|
-
**`/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/`.
|
|
368
406
|
|
|
369
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.
|
|
370
408
|
|
|
@@ -390,7 +428,7 @@ The Focus workflow is a **scan → plan → exec → sync** pipeline. Each step
|
|
|
390
428
|
|
|
391
429
|
**`/pan:settings`** — Toggle researcher, plan checker, verifier agents. Select model profile.
|
|
392
430
|
|
|
393
|
-
**`/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).
|
|
394
432
|
|
|
395
433
|
**Planning config** (`.planning/config.json`):
|
|
396
434
|
- `commit_docs: true` — commit planning artifacts to git (set `false` + add `.planning/` to `.gitignore` for private planning)
|
|
@@ -437,5 +475,4 @@ Run `/pan:update` for version comparison and changelog preview before updating.
|
|
|
437
475
|
- `/pan:progress` — see where you're at
|
|
438
476
|
- `.planning/state.md` — current project context
|
|
439
477
|
- `.planning/roadmap.md` — phase status
|
|
440
|
-
- `/pan:discord` — community support
|
|
441
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">
|