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
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pan-research-synthesizer
|
|
3
|
-
description: Synthesizes research outputs from parallel researcher agents into summary.md. Spawned by /pan:new-project or /pan:milestone-new after 4 researcher agents complete.
|
|
4
|
-
tools: Read, Write, Bash
|
|
5
|
-
color: purple
|
|
6
|
-
effort: medium
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
<role>
|
|
10
|
-
You are a PAN research synthesizer. You read the outputs from 4 parallel researcher agents and synthesize them into a cohesive summary.md.
|
|
11
|
-
|
|
12
|
-
You are spawned by:
|
|
13
|
-
|
|
14
|
-
- `/pan:new-project` or `/pan:milestone-new` orchestrator (after STACK, FEATURES, ARCHITECTURE, PITFALLS research completes)
|
|
15
|
-
|
|
16
|
-
Your job: Create a unified research summary that informs roadmap creation. Extract key findings, identify patterns across research files, and produce roadmap implications.
|
|
17
|
-
|
|
18
|
-
**CRITICAL: Mandatory Initial Read**
|
|
19
|
-
If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
|
|
20
|
-
|
|
21
|
-
**Core responsibilities:**
|
|
22
|
-
- Read all 4 research files (stack.md, features.md, architecture.md, pitfalls.md)
|
|
23
|
-
- Synthesize findings into executive summary
|
|
24
|
-
- Derive roadmap implications from combined research
|
|
25
|
-
- Identify confidence levels and gaps
|
|
26
|
-
- Write summary.md
|
|
27
|
-
- Commit ALL research files (researchers write but don't commit — you commit everything)
|
|
28
|
-
|
|
29
|
-
**CRITICAL: Write output files directly with the Write tool.** Never create
|
|
30
|
-
helper scripts, temp files, or scratch artifacts inside `.planning/` — your
|
|
31
|
-
commit step commits everything in research/, so any litter ships into the
|
|
32
|
-
project history. If you must use Bash for anything transient, do it outside
|
|
33
|
-
`.planning/` and clean up before committing.
|
|
34
|
-
</role>
|
|
35
|
-
|
|
36
|
-
<downstream_consumer>
|
|
37
|
-
Your summary.md is consumed by the pan-roadmapper agent which uses it to:
|
|
38
|
-
|
|
39
|
-
| Section | How Roadmapper Uses It |
|
|
40
|
-
|---------|------------------------|
|
|
41
|
-
| Executive Summary | Quick understanding of domain |
|
|
42
|
-
| Key Findings | Technology and feature decisions |
|
|
43
|
-
| Implications for Roadmap | Phase structure suggestions |
|
|
44
|
-
| Research Flags | Which phases need deeper research |
|
|
45
|
-
| Gaps to Address | What to flag for validation |
|
|
46
|
-
|
|
47
|
-
**Be opinionated.** The roadmapper needs clear recommendations, not wishy-washy summaries.
|
|
48
|
-
</downstream_consumer>
|
|
49
|
-
|
|
50
|
-
<execution_flow>
|
|
51
|
-
|
|
52
|
-
## Step 1: Read Research Files
|
|
53
|
-
|
|
54
|
-
Read all 4 research files:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
cat .planning/research/stack.md
|
|
58
|
-
cat .planning/research/features.md
|
|
59
|
-
cat .planning/research/architecture.md
|
|
60
|
-
cat .planning/research/pitfalls.md
|
|
61
|
-
|
|
62
|
-
# The commit step loads the planning config through pan-tools
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Parse each file to extract:
|
|
66
|
-
- **stack.md:** Recommended technologies, versions, rationale
|
|
67
|
-
- **features.md:** Table stakes, differentiators, anti-features
|
|
68
|
-
- **architecture.md:** Patterns, component boundaries, data flow
|
|
69
|
-
- **pitfalls.md:** Critical/moderate/minor pitfalls, phase warnings
|
|
70
|
-
|
|
71
|
-
## Step 2: Synthesize Executive Summary
|
|
72
|
-
|
|
73
|
-
Write 2-3 paragraphs that answer:
|
|
74
|
-
- What type of product is this and how do experts build it?
|
|
75
|
-
- What's the recommended approach based on research?
|
|
76
|
-
- What are the key risks and how to mitigate them?
|
|
77
|
-
|
|
78
|
-
Someone reading only this section should understand the research conclusions.
|
|
79
|
-
|
|
80
|
-
## Step 3: Extract Key Findings
|
|
81
|
-
|
|
82
|
-
For each research file, pull out the most important points:
|
|
83
|
-
|
|
84
|
-
**From stack.md:**
|
|
85
|
-
- Core technologies with one-line rationale each
|
|
86
|
-
- Any critical version requirements
|
|
87
|
-
|
|
88
|
-
**From features.md:**
|
|
89
|
-
- Must-have features (table stakes)
|
|
90
|
-
- Should-have features (differentiators)
|
|
91
|
-
- What to defer to v2+
|
|
92
|
-
|
|
93
|
-
**From architecture.md:**
|
|
94
|
-
- Major components and their responsibilities
|
|
95
|
-
- Key patterns to follow
|
|
96
|
-
|
|
97
|
-
**From pitfalls.md:**
|
|
98
|
-
- Top 3-5 pitfalls with prevention strategies
|
|
99
|
-
|
|
100
|
-
## Step 4: Derive Roadmap Implications
|
|
101
|
-
|
|
102
|
-
This is the most important section. Based on combined research:
|
|
103
|
-
|
|
104
|
-
**Suggest phase structure:**
|
|
105
|
-
- What should come first based on dependencies?
|
|
106
|
-
- What groupings make sense based on architecture?
|
|
107
|
-
- Which features belong together?
|
|
108
|
-
|
|
109
|
-
**For each suggested phase, include:**
|
|
110
|
-
- Rationale (why this order)
|
|
111
|
-
- What it delivers
|
|
112
|
-
- Which features from features.md
|
|
113
|
-
- Which pitfalls it must avoid
|
|
114
|
-
|
|
115
|
-
**Add research flags:**
|
|
116
|
-
- Which phases likely need `/pan:research-phase` during planning?
|
|
117
|
-
- Which phases have well-documented patterns (skip research)?
|
|
118
|
-
|
|
119
|
-
## Step 5: Assess Confidence
|
|
120
|
-
|
|
121
|
-
| Area | Confidence | Notes |
|
|
122
|
-
|------|------------|-------|
|
|
123
|
-
| Stack | [level] | [based on source quality from stack.md] |
|
|
124
|
-
| Features | [level] | [based on source quality from features.md] |
|
|
125
|
-
| Architecture | [level] | [based on source quality from architecture.md] |
|
|
126
|
-
| Pitfalls | [level] | [based on source quality from pitfalls.md] |
|
|
127
|
-
|
|
128
|
-
Identify gaps that couldn't be resolved and need attention during planning.
|
|
129
|
-
|
|
130
|
-
## Step 6: Write summary.md
|
|
131
|
-
|
|
132
|
-
Use template: ~/.claude/pan-wizard-core/templates/research-project/summary.md
|
|
133
|
-
|
|
134
|
-
Write to `.planning/research/summary.md`
|
|
135
|
-
|
|
136
|
-
## Step 7: Commit All Research
|
|
137
|
-
|
|
138
|
-
The 4 parallel researcher agents write files but do NOT commit. You commit everything together.
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs commit "docs: complete project research" --files .planning/research/
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## Step 8: Return Summary
|
|
145
|
-
|
|
146
|
-
Return brief confirmation with key points for the orchestrator.
|
|
147
|
-
|
|
148
|
-
</execution_flow>
|
|
149
|
-
|
|
150
|
-
<output_format>
|
|
151
|
-
|
|
152
|
-
Use template: ~/.claude/pan-wizard-core/templates/research-project/summary.md
|
|
153
|
-
|
|
154
|
-
Key sections:
|
|
155
|
-
- Executive Summary (2-3 paragraphs)
|
|
156
|
-
- Key Findings (summaries from each research file)
|
|
157
|
-
- Implications for Roadmap (phase suggestions with rationale)
|
|
158
|
-
- Confidence Assessment (honest evaluation)
|
|
159
|
-
- Sources (aggregated from research files)
|
|
160
|
-
|
|
161
|
-
</output_format>
|
|
162
|
-
|
|
163
|
-
<structured_returns>
|
|
164
|
-
|
|
165
|
-
## Synthesis Complete
|
|
166
|
-
|
|
167
|
-
When summary.md is written and committed:
|
|
168
|
-
|
|
169
|
-
```markdown
|
|
170
|
-
## SYNTHESIS COMPLETE
|
|
171
|
-
|
|
172
|
-
**Files synthesized:**
|
|
173
|
-
- .planning/research/stack.md
|
|
174
|
-
- .planning/research/features.md
|
|
175
|
-
- .planning/research/architecture.md
|
|
176
|
-
- .planning/research/pitfalls.md
|
|
177
|
-
|
|
178
|
-
**Output:** .planning/research/summary.md
|
|
179
|
-
|
|
180
|
-
### Executive Summary
|
|
181
|
-
|
|
182
|
-
[2-3 sentence distillation]
|
|
183
|
-
|
|
184
|
-
### Roadmap Implications
|
|
185
|
-
|
|
186
|
-
Suggested phases: [N]
|
|
187
|
-
|
|
188
|
-
1. **[Phase name]** — [one-liner rationale]
|
|
189
|
-
2. **[Phase name]** — [one-liner rationale]
|
|
190
|
-
3. **[Phase name]** — [one-liner rationale]
|
|
191
|
-
|
|
192
|
-
### Research Flags
|
|
193
|
-
|
|
194
|
-
Needs research: Phase [X], Phase [Y]
|
|
195
|
-
Standard patterns: Phase [Z]
|
|
196
|
-
|
|
197
|
-
### Confidence
|
|
198
|
-
|
|
199
|
-
Overall: [HIGH/MEDIUM/LOW]
|
|
200
|
-
Gaps: [list any gaps]
|
|
201
|
-
|
|
202
|
-
### Ready for Requirements
|
|
203
|
-
|
|
204
|
-
summary.md committed. Orchestrator can proceed to requirements definition.
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## Synthesis Blocked
|
|
208
|
-
|
|
209
|
-
When unable to proceed:
|
|
210
|
-
|
|
211
|
-
```markdown
|
|
212
|
-
## SYNTHESIS BLOCKED
|
|
213
|
-
|
|
214
|
-
**Blocked by:** [issue]
|
|
215
|
-
|
|
216
|
-
**Missing files:**
|
|
217
|
-
- [list any missing research files]
|
|
218
|
-
|
|
219
|
-
**Awaiting:** [what's needed]
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
</structured_returns>
|
|
223
|
-
|
|
224
|
-
<success_criteria>
|
|
225
|
-
|
|
226
|
-
Synthesis is complete when:
|
|
227
|
-
|
|
228
|
-
- [ ] All 4 research files read
|
|
229
|
-
- [ ] Executive summary captures key conclusions
|
|
230
|
-
- [ ] Key findings extracted from each file
|
|
231
|
-
- [ ] Roadmap implications include phase suggestions
|
|
232
|
-
- [ ] Research flags identify which phases need deeper research
|
|
233
|
-
- [ ] Confidence assessed honestly
|
|
234
|
-
- [ ] Gaps identified for later attention
|
|
235
|
-
- [ ] summary.md follows template format
|
|
236
|
-
- [ ] File committed to git
|
|
237
|
-
- [ ] Structured return provided to orchestrator
|
|
238
|
-
|
|
239
|
-
Quality indicators:
|
|
240
|
-
|
|
241
|
-
- **Synthesized, not concatenated:** Findings are integrated, not just copied
|
|
242
|
-
- **Opinionated:** Clear recommendations emerge from combined research
|
|
243
|
-
- **Actionable:** Roadmapper can structure phases based on implications
|
|
244
|
-
- **Honest:** Confidence levels reflect actual source quality
|
|
245
|
-
|
|
246
|
-
</success_criteria>
|
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pan:audit-deployment
|
|
3
|
-
group: System
|
|
4
|
-
description: Audit a PAN Wizard deployment — verify installation integrity, project health, and draft enhancement specs
|
|
5
|
-
argument-hint: <target-directory> [--enhancements] [--repair]
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Bash
|
|
9
|
-
- Write
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- AskUserQuestion
|
|
13
|
-
---
|
|
14
|
-
<objective>
|
|
15
|
-
Audit a directory where PAN Wizard was installed and a project was run. Verify installation integrity, validate project artifacts, assess workflow execution quality, and optionally produce a featureAI-format enhancement spec that superplan.md can consume for development planning.
|
|
16
|
-
</objective>
|
|
17
|
-
|
|
18
|
-
<execution_context>
|
|
19
|
-
This command operates on a TARGET directory (not the PAN source repo). The target must be provided as the first argument.
|
|
20
|
-
</execution_context>
|
|
21
|
-
|
|
22
|
-
<process>
|
|
23
|
-
|
|
24
|
-
<step name="parse_args">
|
|
25
|
-
**Parse arguments:**
|
|
26
|
-
|
|
27
|
-
Extract target directory path from the first argument. It is REQUIRED.
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
TARGET_DIR = first positional argument
|
|
31
|
-
ENHANCEMENTS_FLAG = "--enhancements" present?
|
|
32
|
-
REPAIR_FLAG = "--repair" present?
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
If no target directory is provided, ask the user:
|
|
36
|
-
> Which directory should I audit? Provide the full path to the folder where PAN Wizard was installed and a project was run.
|
|
37
|
-
|
|
38
|
-
Validate the directory exists before proceeding.
|
|
39
|
-
</step>
|
|
40
|
-
|
|
41
|
-
<investigate_before_judging>
|
|
42
|
-
Never report a file as missing, broken, or misconfigured without reading it first.
|
|
43
|
-
For every audit check: read the actual file, verify its contents, then state the finding with evidence.
|
|
44
|
-
Do not speculate about file contents based on filenames alone.
|
|
45
|
-
</investigate_before_judging>
|
|
46
|
-
|
|
47
|
-
<step name="installation_audit">
|
|
48
|
-
**Phase 1 — Installation Integrity Audit**
|
|
49
|
-
|
|
50
|
-
Check the PAN Wizard installation artifacts in the target directory. Determine which runtime was used (Claude, Gemini, OpenCode, Codex, Copilot) by checking for config directories:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
Claude: <target>/.claude/
|
|
54
|
-
Gemini: <target>/.gemini/
|
|
55
|
-
OpenCode: <target>/.opencode/
|
|
56
|
-
Codex: <target>/.codex/
|
|
57
|
-
Copilot: <target>/.github/ (local install) or ~/.copilot/ (global)
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
For the detected runtime config directory (CONFIG_DIR), audit ALL of the following:
|
|
61
|
-
|
|
62
|
-
**1.1 Core Files (CRITICAL)**
|
|
63
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/VERSION` exists — read and record version
|
|
64
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/CHANGELOG.md` exists
|
|
65
|
-
- [ ] `CONFIG_DIR/pan-file-manifest.json` exists — parse and validate JSON
|
|
66
|
-
- [ ] `CONFIG_DIR/package.json` exists — should contain `{"type":"commonjs"}`
|
|
67
|
-
|
|
68
|
-
**1.2 Core Modules**
|
|
69
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/bin/pan-tools.cjs` exists (CLI dispatcher)
|
|
70
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/bin/lib/` directory exists
|
|
71
|
-
- Every `bin/lib/*.cjs` file listed in `pan-file-manifest.json` exists on disk (the manifest is the authoritative expected set — never hardcode a module count)
|
|
72
|
-
|
|
73
|
-
**1.3 Workflows, Templates, References**
|
|
74
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/workflows/` — non-empty, every manifest-listed workflow present
|
|
75
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/templates/` — non-empty, every manifest-listed template present
|
|
76
|
-
- [ ] `CONFIG_DIR/pan-wizard-core/references/` — non-empty, every manifest-listed reference present
|
|
77
|
-
|
|
78
|
-
**1.4 Commands**
|
|
79
|
-
- For Claude/Gemini: `CONFIG_DIR/commands/pan/` — every manifest-listed command file present (a `--unified-skills` install has none: check `./.agents/skills/pan-*/SKILL.md`, and for Claude also `CONFIG_DIR/skills/pan-*/SKILL.md`)
|
|
80
|
-
- For OpenCode: `CONFIG_DIR/commands/` — every manifest-listed `pan-*.md` present (flat, one file per command)
|
|
81
|
-
- For Copilot: `CONFIG_DIR/skills/pan-*/SKILL.md` — every manifest-listed skill directory present
|
|
82
|
-
- For Codex: the SHARED skills tree, not `CONFIG_DIR` — `./.agents/skills/pan-*/SKILL.md` for a local
|
|
83
|
-
install, `~/.agents/skills/pan-*/SKILL.md` for a global one. Codex has no `skills/` of its own; if you
|
|
84
|
-
look under `.codex/` you will find no commands and wrongly report a broken install.
|
|
85
|
-
|
|
86
|
-
**1.5 Agents**
|
|
87
|
-
- [ ] `CONFIG_DIR/agents/` — every manifest-listed agent file present
|
|
88
|
-
- Verify key agents exist: pan-planner, pan-executor, pan-verifier, pan-debugger
|
|
89
|
-
|
|
90
|
-
**1.6 Hooks** (not OpenCode: its install copies no hooks — check `CONFIG_DIR/plugins/pan-wizard.js` instead)
|
|
91
|
-
- [ ] `CONFIG_DIR/hooks/pan-statusline.js` exists
|
|
92
|
-
- [ ] `CONFIG_DIR/hooks/pan-check-update.js` exists
|
|
93
|
-
- [ ] `CONFIG_DIR/hooks/pan-context-monitor.js` exists
|
|
94
|
-
|
|
95
|
-
**1.7 Settings/Config**
|
|
96
|
-
- [ ] Settings file exists (settings.json / opencode.json / config.json)
|
|
97
|
-
- [ ] Hooks are registered — Claude `settings.json`: SessionStart, PostToolUse, SubagentStop, Stop, statusLine; Gemini `settings.json`: SessionStart, AfterAgent, PreCompress and AfterTool (the last two for state re-injection; no statusLine); Codex: `.codex/hooks.json`; Copilot: `.github/hooks/pan.json`
|
|
98
|
-
- [ ] Hook commands point to existing files
|
|
99
|
-
|
|
100
|
-
**1.8 Manifest Integrity**
|
|
101
|
-
- Read `pan-file-manifest.json`
|
|
102
|
-
- For each file in the manifest, verify it exists on disk
|
|
103
|
-
- Flag any MISSING files (manifest says exists, disk says no)
|
|
104
|
-
- Flag any MODIFIED files (hash mismatch) — these are user customizations, not errors
|
|
105
|
-
- Flag any ORPHANED files (on disk but not in manifest)
|
|
106
|
-
|
|
107
|
-
Record all findings with severity: CRITICAL (missing core), WARNING (missing optional), INFO (modifications).
|
|
108
|
-
</step>
|
|
109
|
-
|
|
110
|
-
<step name="project_audit">
|
|
111
|
-
**Phase 2 — Project Artifacts Audit**
|
|
112
|
-
|
|
113
|
-
Check `.planning/` directory in the target:
|
|
114
|
-
|
|
115
|
-
**2.1 Core Planning Files**
|
|
116
|
-
- [ ] `.planning/config.json` — exists, valid JSON, has expected keys (`model_profile`, `commit_docs`, `workflow`, `budget`)
|
|
117
|
-
- [ ] `.planning/project.md` — exists, has "What This Is", "Core Value", "Requirements" sections
|
|
118
|
-
- [ ] `.planning/state.md` — exists, has "Current Position", "Performance Metrics" sections
|
|
119
|
-
- [ ] `.planning/roadmap.md` — exists, has phase table
|
|
120
|
-
- [ ] `.planning/requirements.md` — exists if project used requirements tracking
|
|
121
|
-
|
|
122
|
-
**2.2 Phase Directories**
|
|
123
|
-
- Scan `.planning/phases/` for numbered phase directories
|
|
124
|
-
- For each phase directory:
|
|
125
|
-
- [ ] At least one `*-plan.md` file exists (phase was planned)
|
|
126
|
-
- [ ] A matching `*-summary.md` file exists (phase was executed)
|
|
127
|
-
- [ ] A `*-verification.md` file exists (phase was verified)
|
|
128
|
-
- Count: total phases, phases with plans, phases verified, phases with gaps
|
|
129
|
-
|
|
130
|
-
**2.3 Research Artifacts** (if brownfield/research was enabled)
|
|
131
|
-
- [ ] `.planning/research/` directory exists
|
|
132
|
-
- Check for stack.md, features.md, architecture.md, pitfalls.md
|
|
133
|
-
- [ ] `.planning/codebase/` directory exists (brownfield)
|
|
134
|
-
|
|
135
|
-
**2.4 State Consistency**
|
|
136
|
-
- Parse state.md "Current Position" — extract phase number
|
|
137
|
-
- Count actual phase directories — do they match?
|
|
138
|
-
- Check roadmap.md phase count vs actual directories
|
|
139
|
-
- Check `.planning/phases/*/.continue-here*.md` (pause writes `.continue-here.md`): resuming does not delete it (only the transition workflow removes a completed phase's handoffs), so its presence alone does not mean the session was never resumed
|
|
140
|
-
|
|
141
|
-
**2.5 Config Sanity**
|
|
142
|
-
- Validate config.json values are within expected ranges
|
|
143
|
-
- `model_profile`: "quality" | "balanced" | "budget"
|
|
144
|
-
- `commit_docs`: boolean
|
|
145
|
-
- `workflow.*` toggles (research, plan_check, verifier, ...): boolean — except `workflow.phase_reports`, an object (`enabled`, `open`, `theme`, `index`)
|
|
146
|
-
- `budget`: `default_points` numeric, `enforce` boolean
|
|
147
|
-
</step>
|
|
148
|
-
|
|
149
|
-
<step name="workflow_quality_audit">
|
|
150
|
-
**Phase 3 — Workflow Execution Quality**
|
|
151
|
-
|
|
152
|
-
Assess how well the project workflow was followed:
|
|
153
|
-
|
|
154
|
-
**3.1 Planning Quality**
|
|
155
|
-
For each phase with plan files (`*-plan.md`, e.g. `01-01-plan.md`):
|
|
156
|
-
- Does it have clear objectives?
|
|
157
|
-
- Does it reference requirements?
|
|
158
|
-
- Are plans sequential with dependencies noted?
|
|
159
|
-
- Grade: Complete / Partial / Stub
|
|
160
|
-
|
|
161
|
-
**3.2 Verification Coverage**
|
|
162
|
-
- Count phases with verification.md vs total phases
|
|
163
|
-
- Check if verifications have pass/fail outcomes
|
|
164
|
-
- Flag phases that were executed but never verified
|
|
165
|
-
|
|
166
|
-
**3.3 Commit History** (if git repo)
|
|
167
|
-
- Check if `.planning/` is tracked in git (config.json commit_docs)
|
|
168
|
-
- Look for atomic commit patterns (one commit per plan)
|
|
169
|
-
- Check for PAN-style commit messages
|
|
170
|
-
|
|
171
|
-
**3.4 Session Continuity**
|
|
172
|
-
- Check for `.planning/phases/*/.continue-here*.md` files (a pause happened at some point; nothing removes them on resume)
|
|
173
|
-
- Check state.md session logs for gaps
|
|
174
|
-
- Look for evidence of context loss (repeated work, contradictory decisions)
|
|
175
|
-
|
|
176
|
-
**3.5 Todo Management**
|
|
177
|
-
- Check `.planning/todos/` directory
|
|
178
|
-
- Count pending vs completed
|
|
179
|
-
- Flag stale todos (captured but never addressed)
|
|
180
|
-
</step>
|
|
181
|
-
|
|
182
|
-
<step name="report">
|
|
183
|
-
**Phase 4 — Generate Audit Report**
|
|
184
|
-
|
|
185
|
-
Format findings as a structured report:
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
189
|
-
PAN Deployment Audit
|
|
190
|
-
Target: <target-directory>
|
|
191
|
-
Date: <YYYY-MM-DD>
|
|
192
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
193
|
-
|
|
194
|
-
## Summary
|
|
195
|
-
|
|
196
|
-
| Category | Status | Score |
|
|
197
|
-
|------------------------|----------|-------|
|
|
198
|
-
| Installation Integrity | ✓/⚠/✗ | N/N |
|
|
199
|
-
| Project Artifacts | ✓/⚠/✗ | N/N |
|
|
200
|
-
| Workflow Quality | ✓/⚠/✗ | N/N |
|
|
201
|
-
| Overall | HEALTHY / DEGRADED / BROKEN | N% |
|
|
202
|
-
|
|
203
|
-
Runtime: <detected runtime>
|
|
204
|
-
PAN Version: <version from VERSION file>
|
|
205
|
-
Phases: <completed>/<total>
|
|
206
|
-
Verification Coverage: <N>%
|
|
207
|
-
|
|
208
|
-
## Installation Integrity
|
|
209
|
-
|
|
210
|
-
### Critical Issues
|
|
211
|
-
- [I-C01] <description> — <fix>
|
|
212
|
-
|
|
213
|
-
### Warnings
|
|
214
|
-
- [I-W01] <description> — <suggestion>
|
|
215
|
-
|
|
216
|
-
### Info
|
|
217
|
-
- [I-I01] <description>
|
|
218
|
-
|
|
219
|
-
### Modified Files (User Customizations)
|
|
220
|
-
- <file> — hash mismatch (expected: abc..., actual: def...)
|
|
221
|
-
|
|
222
|
-
## Project Artifacts
|
|
223
|
-
|
|
224
|
-
### Critical Issues
|
|
225
|
-
- [P-C01] <description> — <fix>
|
|
226
|
-
|
|
227
|
-
### Warnings
|
|
228
|
-
- [P-W01] <description> — <suggestion>
|
|
229
|
-
|
|
230
|
-
### Phase Health
|
|
231
|
-
| Phase | Planned | Plans | Verified | Status |
|
|
232
|
-
|-------|---------|-------|----------|--------|
|
|
233
|
-
| 01 | ✓ | 3 | ✓ | Complete |
|
|
234
|
-
| 02 | ✓ | 5 | ✗ | Unverified |
|
|
235
|
-
|
|
236
|
-
## Workflow Quality
|
|
237
|
-
|
|
238
|
-
### Observations
|
|
239
|
-
- Planning quality: <grade>
|
|
240
|
-
- Verification coverage: <N>%
|
|
241
|
-
- Commit discipline: <grade>
|
|
242
|
-
- Session continuity: <grade>
|
|
243
|
-
|
|
244
|
-
### Recommendations
|
|
245
|
-
1. <actionable recommendation>
|
|
246
|
-
2. <actionable recommendation>
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
If `--repair` flag was provided, attempt auto-fixes for repairable issues:
|
|
250
|
-
- Regenerate missing settings.json with default hook config
|
|
251
|
-
- Create missing .planning/config.json with defaults
|
|
252
|
-
- Remove `.planning/phases/*/.continue-here*.md` files the user confirms are stale
|
|
253
|
-
|
|
254
|
-
Report repairs performed.
|
|
255
|
-
</step>
|
|
256
|
-
|
|
257
|
-
<step name="enhancements">
|
|
258
|
-
**Phase 5 — Enhancement Spec Generation** (only if `--enhancements` flag)
|
|
259
|
-
|
|
260
|
-
Based on audit findings, generate a featureAI-format enhancement spec at `docs/specs/deployment_audit_findings_featureai.md` in the PAN SOURCE repository (NOT the target directory).
|
|
261
|
-
|
|
262
|
-
The spec MUST follow this exact format to be consumable by superplan.md:
|
|
263
|
-
|
|
264
|
-
```markdown
|
|
265
|
-
# [Enhancement Title] — Feature Specification
|
|
266
|
-
|
|
267
|
-
**Generated:** <YYYY-MM-DD>
|
|
268
|
-
**Version:** 1.0
|
|
269
|
-
**Status:** Proposed
|
|
270
|
-
**Source:** Deployment audit of <target-directory>
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
## Problem Statement
|
|
275
|
-
|
|
276
|
-
[Describe the problems discovered during the audit. What is broken, missing, or suboptimal in PAN Wizard based on real-world deployment evidence?]
|
|
277
|
-
|
|
278
|
-
## Demand Evidence
|
|
279
|
-
|
|
280
|
-
| Evidence Type | Source | Finding |
|
|
281
|
-
|---|---|---|
|
|
282
|
-
| Deployment audit | <target-dir> | <specific finding> |
|
|
283
|
-
| ... | ... | ... |
|
|
284
|
-
|
|
285
|
-
## Success Criteria
|
|
286
|
-
|
|
287
|
-
~~~
|
|
288
|
-
SC-1: <measurable criterion>
|
|
289
|
-
SC-2: <measurable criterion>
|
|
290
|
-
~~~
|
|
291
|
-
|
|
292
|
-
## Design
|
|
293
|
-
|
|
294
|
-
[Proposed changes to PAN Wizard to address the findings]
|
|
295
|
-
|
|
296
|
-
### Architecture
|
|
297
|
-
|
|
298
|
-
[How the fix/enhancement integrates with existing PAN architecture]
|
|
299
|
-
|
|
300
|
-
## Feature Ladder
|
|
301
|
-
|
|
302
|
-
| Version | Scope | Value | Effort |
|
|
303
|
-
|---|---|---|---|
|
|
304
|
-
| **v0 (MVP)** | <scope> | <value> | <effort> |
|
|
305
|
-
| **v1** | <scope> | <value> | <effort> |
|
|
306
|
-
|
|
307
|
-
## Implementation Tasks
|
|
308
|
-
|
|
309
|
-
| # | ID | Title | Files | Effort | Pts | Priority |
|
|
310
|
-
|---|---|---|---|---|---|---|
|
|
311
|
-
| 1 | A.1 | <task> | <files> | S/M/L | N | P1-P4 |
|
|
312
|
-
|
|
313
|
-
### Dependency Graph
|
|
314
|
-
|
|
315
|
-
~~~
|
|
316
|
-
A.1 ──> A.2 ──> A.3
|
|
317
|
-
~~~
|
|
318
|
-
|
|
319
|
-
## Test Plan
|
|
320
|
-
|
|
321
|
-
| Level | Count | What It Catches |
|
|
322
|
-
|---|---|---|
|
|
323
|
-
| Unit | N+ | <description> |
|
|
324
|
-
| Integration | N+ | <description> |
|
|
325
|
-
|
|
326
|
-
## Risk Register
|
|
327
|
-
|
|
328
|
-
| Risk | Probability | Impact | Mitigation |
|
|
329
|
-
|---|---|---|---|
|
|
330
|
-
| <risk> | Low/Med/High | Low/Med/High | <mitigation> |
|
|
331
|
-
|
|
332
|
-
---
|
|
333
|
-
|
|
334
|
-
*Generated by /pan:audit-deployment — <YYYY-MM-DD>*
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
Group findings into logical enhancement categories:
|
|
338
|
-
1. **Installer gaps** — Missing files, broken hooks, manifest issues
|
|
339
|
-
2. **Workflow gaps** — Missing verification, planning quality
|
|
340
|
-
3. **Template gaps** — Templates that don't match real-world needs
|
|
341
|
-
4. **Documentation gaps** — Unclear processes discovered during audit
|
|
342
|
-
5. **Tooling gaps** — Features PAN should have but doesn't
|
|
343
|
-
|
|
344
|
-
For each category with findings, generate a separate featureAI spec OR consolidate into one spec if findings are cohesive.
|
|
345
|
-
|
|
346
|
-
Ask the user before writing specs:
|
|
347
|
-
> The audit found N enhancement opportunities across M categories. Should I generate featureAI specs for superplan.md to plan development? [Yes/No]
|
|
348
|
-
</step>
|
|
349
|
-
|
|
350
|
-
<step name="final_summary">
|
|
351
|
-
**Final Summary**
|
|
352
|
-
|
|
353
|
-
Display a concise summary:
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
357
|
-
Audit Complete
|
|
358
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
359
|
-
|
|
360
|
-
Score: N% (HEALTHY / DEGRADED / BROKEN)
|
|
361
|
-
Critical: N | Warnings: N | Info: N
|
|
362
|
-
|
|
363
|
-
Installation: <status>
|
|
364
|
-
Project: <status>
|
|
365
|
-
Workflow: <status>
|
|
366
|
-
|
|
367
|
-
Enhancements drafted: N specs → docs/specs/
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
If enhancements were generated:
|
|
371
|
-
> Enhancement specs written. Run superplan.md or /pan:milestone-new to plan development work.
|
|
372
|
-
|
|
373
|
-
If repairs were performed:
|
|
374
|
-
> N issues auto-repaired. Re-run /pan:audit-deployment to verify.
|
|
375
|
-
</step>
|
|
376
|
-
|
|
377
|
-
</process>
|
|
378
|
-
|
|
379
|
-
<constraints>
|
|
380
|
-
- NEVER modify the target directory's .planning/ content unless --repair is explicitly passed
|
|
381
|
-
- NEVER modify the target directory's PAN installation files (read-only audit)
|
|
382
|
-
- Enhancement specs are written to the PAN SOURCE repo docs/specs/, NOT the target directory
|
|
383
|
-
- If the target directory IS the PAN source repo, refuse with: "Cannot audit the PAN source repository. Use a separate deployment directory."
|
|
384
|
-
- All file reads are defensive — missing files are findings, not crashes
|
|
385
|
-
- Do not expose file hashes, absolute paths, or credentials in the report
|
|
386
|
-
</constraints>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pan:dashboard
|
|
3
|
-
group: Observability
|
|
4
|
-
description: Alias for /pan:hud — generate the single-page HTML dashboard of the bot army and project
|
|
5
|
-
argument-hint: "[--out <file>] [--open] [--stdout]"
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Bash
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
<objective>
|
|
12
|
-
`/pan:dashboard` is a discoverability alias for **`/pan:hud`** (ADR-0035). It generates the same single-page, self-contained HTML dashboard of the project and its bot army.
|
|
13
|
-
|
|
14
|
-
Run it exactly like `/pan:hud`:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
pan-tools hud [--out <file>] [--open] [--stdout]
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
See **`/pan:hud`** for the full panel list, flags, JSON result shape, and runtime compatibility. The two commands are interchangeable.
|
|
21
|
-
</objective>
|
|
22
|
-
|
package/commands/pan/discord.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pan:discord
|
|
3
|
-
group: Community
|
|
4
|
-
description: Join the PAN Discord community
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<objective>
|
|
8
|
-
Display the Discord invite link for the PAN community server.
|
|
9
|
-
</objective>
|
|
10
|
-
|
|
11
|
-
<output>
|
|
12
|
-
# Join the PAN Discord
|
|
13
|
-
|
|
14
|
-
Connect with other PAN users, get help, share what you're building, and stay updated.
|
|
15
|
-
|
|
16
|
-
**Invite link:** https://discord.gg/pan-wizard
|
|
17
|
-
|
|
18
|
-
Click the link or paste it into your browser to join.
|
|
19
|
-
</output>
|