pan-wizard 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +772 -0
- package/agents/pan-debugger.md +1246 -0
- package/agents/pan-document_code.md +965 -0
- package/agents/pan-executor.md +469 -0
- package/agents/pan-integration-checker.md +443 -0
- package/agents/pan-phase-researcher.md +572 -0
- package/agents/pan-plan-checker.md +763 -0
- package/agents/pan-planner.md +1297 -0
- package/agents/pan-project-researcher.md +647 -0
- package/agents/pan-research-synthesizer.md +239 -0
- package/agents/pan-reviewer.md +112 -0
- package/agents/pan-roadmapper.md +642 -0
- package/agents/pan-verifier.md +672 -0
- package/assets/pan-logo-2000-transparent.svg +30 -0
- package/assets/pan-logo-2000.svg +43 -0
- package/assets/terminal.svg +119 -0
- package/bin/install-lib.cjs +616 -0
- package/bin/install.js +1936 -0
- package/commands/pan/add-phase.md +44 -0
- package/commands/pan/assumptions.md +47 -0
- package/commands/pan/audit-deployment.md +378 -0
- package/commands/pan/debug.md +168 -0
- package/commands/pan/discord.md +19 -0
- package/commands/pan/discuss-phase.md +84 -0
- package/commands/pan/exec-phase.md +45 -0
- package/commands/pan/focus-auto.md +323 -0
- package/commands/pan/focus-design.md +816 -0
- package/commands/pan/focus-exec.md +316 -0
- package/commands/pan/focus-plan.md +101 -0
- package/commands/pan/focus-scan.md +272 -0
- package/commands/pan/focus-sync.md +104 -0
- package/commands/pan/health.md +23 -0
- package/commands/pan/help.md +23 -0
- package/commands/pan/insert-phase.md +33 -0
- package/commands/pan/map-codebase.md +72 -0
- package/commands/pan/milestone-audit.md +37 -0
- package/commands/pan/milestone-cleanup.md +19 -0
- package/commands/pan/milestone-done.md +137 -0
- package/commands/pan/milestone-gaps.md +35 -0
- package/commands/pan/milestone-new.md +45 -0
- package/commands/pan/new-project.md +43 -0
- package/commands/pan/patches.md +110 -0
- package/commands/pan/pause.md +39 -0
- package/commands/pan/phase-budget.md +23 -0
- package/commands/pan/phase-tests.md +42 -0
- package/commands/pan/plan-phase.md +46 -0
- package/commands/pan/profile.md +36 -0
- package/commands/pan/progress.md +25 -0
- package/commands/pan/quick.md +42 -0
- package/commands/pan/remove-phase.md +32 -0
- package/commands/pan/research-phase.md +190 -0
- package/commands/pan/resume.md +41 -0
- package/commands/pan/retro.md +33 -0
- package/commands/pan/settings.md +37 -0
- package/commands/pan/todo-add.md +48 -0
- package/commands/pan/todo-check.md +46 -0
- package/commands/pan/update.md +38 -0
- package/commands/pan/verify-phase.md +39 -0
- package/hooks/dist/pan-check-update.js +62 -0
- package/hooks/dist/pan-context-monitor.js +122 -0
- package/hooks/dist/pan-statusline.js +108 -0
- package/package.json +66 -0
- package/pan-wizard-core/bin/lib/codebase.cjs +746 -0
- package/pan-wizard-core/bin/lib/commands.cjs +1435 -0
- package/pan-wizard-core/bin/lib/config.cjs +611 -0
- package/pan-wizard-core/bin/lib/constants.cjs +696 -0
- package/pan-wizard-core/bin/lib/context-budget.cjs +150 -0
- package/pan-wizard-core/bin/lib/core.cjs +650 -0
- package/pan-wizard-core/bin/lib/focus.cjs +900 -0
- package/pan-wizard-core/bin/lib/frontmatter.cjs +442 -0
- package/pan-wizard-core/bin/lib/init.cjs +881 -0
- package/pan-wizard-core/bin/lib/milestone.cjs +276 -0
- package/pan-wizard-core/bin/lib/phase.cjs +1212 -0
- package/pan-wizard-core/bin/lib/roadmap.cjs +470 -0
- package/pan-wizard-core/bin/lib/state.cjs +1029 -0
- package/pan-wizard-core/bin/lib/template.cjs +314 -0
- package/pan-wizard-core/bin/lib/utils.cjs +171 -0
- package/pan-wizard-core/bin/lib/verify.cjs +1808 -0
- package/pan-wizard-core/bin/pan-tools.cjs +773 -0
- package/pan-wizard-core/references/checkpoints.md +776 -0
- package/pan-wizard-core/references/continuation-format.md +249 -0
- package/pan-wizard-core/references/decimal-phase-calculation.md +65 -0
- package/pan-wizard-core/references/git-integration.md +248 -0
- package/pan-wizard-core/references/git-planning-commit.md +38 -0
- package/pan-wizard-core/references/model-profile-resolution.md +34 -0
- package/pan-wizard-core/references/model-profiles.md +111 -0
- package/pan-wizard-core/references/phase-argument-parsing.md +61 -0
- package/pan-wizard-core/references/planning-config.md +196 -0
- package/pan-wizard-core/references/questioning.md +145 -0
- package/pan-wizard-core/references/tdd.md +263 -0
- package/pan-wizard-core/references/ui-brand.md +160 -0
- package/pan-wizard-core/references/verification-patterns.md +612 -0
- package/pan-wizard-core/templates/codebase/architecture.md +283 -0
- package/pan-wizard-core/templates/codebase/best-practices.md +133 -0
- package/pan-wizard-core/templates/codebase/concerns.md +325 -0
- package/pan-wizard-core/templates/codebase/conventions.md +307 -0
- package/pan-wizard-core/templates/codebase/integrations.md +305 -0
- package/pan-wizard-core/templates/codebase/relationships.md +124 -0
- package/pan-wizard-core/templates/codebase/stack.md +199 -0
- package/pan-wizard-core/templates/codebase/structure.md +298 -0
- package/pan-wizard-core/templates/codebase/testing.md +480 -0
- package/pan-wizard-core/templates/config.json +37 -0
- package/pan-wizard-core/templates/context.md +283 -0
- package/pan-wizard-core/templates/continue-here.md +78 -0
- package/pan-wizard-core/templates/debug-subagent-prompt.md +91 -0
- package/pan-wizard-core/templates/debug.md +164 -0
- package/pan-wizard-core/templates/discovery.md +146 -0
- package/pan-wizard-core/templates/milestone-archive.md +123 -0
- package/pan-wizard-core/templates/milestone.md +115 -0
- package/pan-wizard-core/templates/phase-prompt.md +593 -0
- package/pan-wizard-core/templates/planner-subagent-prompt.md +117 -0
- package/pan-wizard-core/templates/project.md +184 -0
- package/pan-wizard-core/templates/requirements.md +231 -0
- package/pan-wizard-core/templates/research-project/architecture.md +204 -0
- package/pan-wizard-core/templates/research-project/features.md +147 -0
- package/pan-wizard-core/templates/research-project/pitfalls.md +200 -0
- package/pan-wizard-core/templates/research-project/stack.md +120 -0
- package/pan-wizard-core/templates/research-project/summary.md +170 -0
- package/pan-wizard-core/templates/research.md +552 -0
- package/pan-wizard-core/templates/retrospective.md +54 -0
- package/pan-wizard-core/templates/roadmap.md +202 -0
- package/pan-wizard-core/templates/standards.md +24 -0
- package/pan-wizard-core/templates/state.md +176 -0
- package/pan-wizard-core/templates/summary-complex.md +59 -0
- package/pan-wizard-core/templates/summary-minimal.md +41 -0
- package/pan-wizard-core/templates/summary-standard.md +49 -0
- package/pan-wizard-core/templates/summary.md +249 -0
- package/pan-wizard-core/templates/uat.md +247 -0
- package/pan-wizard-core/templates/user-setup.md +311 -0
- package/pan-wizard-core/templates/validation.md +76 -0
- package/pan-wizard-core/templates/verification-report.md +322 -0
- package/pan-wizard-core/workflows/add-phase.md +111 -0
- package/pan-wizard-core/workflows/assumptions.md +178 -0
- package/pan-wizard-core/workflows/diagnose-issues.md +219 -0
- package/pan-wizard-core/workflows/discuss-phase.md +542 -0
- package/pan-wizard-core/workflows/exec-phase.md +572 -0
- package/pan-wizard-core/workflows/execute-plan.md +448 -0
- package/pan-wizard-core/workflows/health.md +156 -0
- package/pan-wizard-core/workflows/help.md +431 -0
- package/pan-wizard-core/workflows/insert-phase.md +129 -0
- package/pan-wizard-core/workflows/map-codebase.md +401 -0
- package/pan-wizard-core/workflows/milestone-audit.md +297 -0
- package/pan-wizard-core/workflows/milestone-cleanup.md +152 -0
- package/pan-wizard-core/workflows/milestone-gaps.md +274 -0
- package/pan-wizard-core/workflows/milestone-new.md +382 -0
- package/pan-wizard-core/workflows/new-project.md +1178 -0
- package/pan-wizard-core/workflows/pause.md +122 -0
- package/pan-wizard-core/workflows/phase-tests.md +388 -0
- package/pan-wizard-core/workflows/plan-phase.md +569 -0
- package/pan-wizard-core/workflows/profile.md +115 -0
- package/pan-wizard-core/workflows/progress.md +381 -0
- package/pan-wizard-core/workflows/quick.md +453 -0
- package/pan-wizard-core/workflows/remove-phase.md +154 -0
- package/pan-wizard-core/workflows/research-phase.md +73 -0
- package/pan-wizard-core/workflows/resume-project.md +306 -0
- package/pan-wizard-core/workflows/retro.md +121 -0
- package/pan-wizard-core/workflows/settings.md +213 -0
- package/pan-wizard-core/workflows/todo-add.md +157 -0
- package/pan-wizard-core/workflows/todo-check.md +176 -0
- package/pan-wizard-core/workflows/transition.md +544 -0
- package/pan-wizard-core/workflows/update.md +219 -0
- package/pan-wizard-core/workflows/verify-phase.md +301 -0
- package/scripts/build-hooks.js +43 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:pause
|
|
3
|
+
group: Session & Progress
|
|
4
|
+
description: Create context handoff when pausing work mid-phase
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Create `.continue-here.md` handoff file to preserve complete work state across sessions.
|
|
13
|
+
|
|
14
|
+
Routes to the pause-work workflow which handles:
|
|
15
|
+
- Current phase detection from recent files
|
|
16
|
+
- Complete state gathering (position, completed work, remaining work, decisions, blockers)
|
|
17
|
+
- Handoff file creation with all context sections
|
|
18
|
+
- Git commit as WIP
|
|
19
|
+
- Resume instructions
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<execution_context>
|
|
23
|
+
@~/.claude/pan-wizard-core/workflows/pause.md
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
State and phase progress are gathered in-workflow with targeted reads.
|
|
28
|
+
</context>
|
|
29
|
+
|
|
30
|
+
<process>
|
|
31
|
+
**Follow the pause-work workflow** from `@~/.claude/pan-wizard-core/workflows/pause.md`.
|
|
32
|
+
|
|
33
|
+
The workflow handles all logic including:
|
|
34
|
+
1. Phase directory detection
|
|
35
|
+
2. State gathering with user clarifications
|
|
36
|
+
3. Handoff file writing with timestamp
|
|
37
|
+
4. Git commit
|
|
38
|
+
5. Confirmation with resume instructions
|
|
39
|
+
</process>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:phase-budget
|
|
3
|
+
group: Phase Management
|
|
4
|
+
description: Estimate context utilization and quality for the current phase
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Bash
|
|
7
|
+
- Read
|
|
8
|
+
---
|
|
9
|
+
<objective>
|
|
10
|
+
Show how much of the AI's context window is consumed by the current project's planning files. Helps prevent context rot by making invisible token budgets visible and measurable.
|
|
11
|
+
</objective>
|
|
12
|
+
|
|
13
|
+
<execution_context>
|
|
14
|
+
Run: `node ~/.claude/pan-wizard-core/bin/pan-tools.cjs context-budget --raw`
|
|
15
|
+
</execution_context>
|
|
16
|
+
|
|
17
|
+
<process>
|
|
18
|
+
1. Run the context-budget command to get the current budget report
|
|
19
|
+
2. Display the results to the user
|
|
20
|
+
3. If status is "critical", recommend splitting the current phase
|
|
21
|
+
4. If status is "warning", suggest monitoring quality during execution
|
|
22
|
+
5. If status is "idle", suggest running /pan:plan-phase to start work
|
|
23
|
+
</process>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:phase-tests
|
|
3
|
+
group: Phase Management
|
|
4
|
+
description: Generate tests for a completed phase based on UAT criteria and implementation
|
|
5
|
+
argument-hint: "<phase> [additional instructions]"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Bash
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
- Task
|
|
14
|
+
- AskUserQuestion
|
|
15
|
+
argument-instructions: |
|
|
16
|
+
Parse the argument as a phase number (integer, decimal, or letter-suffix), plus optional free-text instructions.
|
|
17
|
+
Example: /pan:phase-tests 12
|
|
18
|
+
Example: /pan:phase-tests 12 focus on edge cases in the pricing module
|
|
19
|
+
---
|
|
20
|
+
<objective>
|
|
21
|
+
Generate unit and E2E tests for a completed phase, using its summary.md, context.md, and verification.md as specifications.
|
|
22
|
+
|
|
23
|
+
Analyzes implementation files, classifies them into TDD (unit), E2E (browser), or Skip categories, presents a test plan for user approval, then generates tests following RED-GREEN conventions.
|
|
24
|
+
|
|
25
|
+
Output: Test files committed with message `test(phase-{N}): add unit and E2E tests from add-tests command`
|
|
26
|
+
</objective>
|
|
27
|
+
|
|
28
|
+
<execution_context>
|
|
29
|
+
@~/.claude/pan-wizard-core/workflows/phase-tests.md
|
|
30
|
+
</execution_context>
|
|
31
|
+
|
|
32
|
+
<context>
|
|
33
|
+
Phase: $ARGUMENTS
|
|
34
|
+
|
|
35
|
+
@.planning/state.md
|
|
36
|
+
@.planning/roadmap.md
|
|
37
|
+
</context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
Execute the add-tests workflow from @~/.claude/pan-wizard-core/workflows/phase-tests.md end-to-end.
|
|
41
|
+
Preserve all workflow gates (classification approval, test plan approval, RED-GREEN verification, gap reporting).
|
|
42
|
+
</process>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:plan-phase
|
|
3
|
+
group: Phase Lifecycle
|
|
4
|
+
description: Create detailed phase plan (plan.md) with verification loop
|
|
5
|
+
argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify] [--prd <file>]"
|
|
6
|
+
agent: pan-planner
|
|
7
|
+
allowed-tools:
|
|
8
|
+
- Read
|
|
9
|
+
- Write
|
|
10
|
+
- Bash
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
- Task
|
|
14
|
+
- WebFetch
|
|
15
|
+
- mcp__context7__*
|
|
16
|
+
---
|
|
17
|
+
<objective>
|
|
18
|
+
Create executable phase prompts (plan.md files) for a roadmap phase with integrated research and verification.
|
|
19
|
+
|
|
20
|
+
**Default flow:** Research (if needed) → Plan → Verify → Done
|
|
21
|
+
|
|
22
|
+
**Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn pan-planner, verify with pan-plan-checker, iterate until pass or max iterations, present results.
|
|
23
|
+
</objective>
|
|
24
|
+
|
|
25
|
+
<execution_context>
|
|
26
|
+
@~/.claude/pan-wizard-core/workflows/plan-phase.md
|
|
27
|
+
@~/.claude/pan-wizard-core/references/ui-brand.md
|
|
28
|
+
</execution_context>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
32
|
+
|
|
33
|
+
**Flags:**
|
|
34
|
+
- `--research` — Force re-research even if research.md exists
|
|
35
|
+
- `--skip-research` — Skip research, go straight to planning
|
|
36
|
+
- `--gaps` — Gap closure mode (reads verification.md, skips research)
|
|
37
|
+
- `--skip-verify` — Skip verification loop
|
|
38
|
+
- `--prd <file>` — Use a PRD/acceptance criteria file instead of discuss-phase. Parses requirements into context.md automatically. Skips discuss-phase entirely.
|
|
39
|
+
|
|
40
|
+
Normalize phase input in step 2 before any directory lookups.
|
|
41
|
+
</context>
|
|
42
|
+
|
|
43
|
+
<process>
|
|
44
|
+
Execute the plan-phase workflow from @~/.claude/pan-wizard-core/workflows/plan-phase.md end-to-end.
|
|
45
|
+
Preserve all workflow gates (validation, research, planning, verification loop, routing).
|
|
46
|
+
</process>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:profile
|
|
3
|
+
group: Session & Progress
|
|
4
|
+
description: Switch model profile for PAN agents (quality/balanced/budget)
|
|
5
|
+
argument-hint: <profile>
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Switch the model profile used by PAN agents. Controls which Claude model each agent uses, balancing quality vs token spend.
|
|
14
|
+
|
|
15
|
+
Routes to the set-profile workflow which handles:
|
|
16
|
+
- Argument validation (quality/balanced/budget)
|
|
17
|
+
- Downgrade confirmation (quality → balanced → budget requires 'yes')
|
|
18
|
+
- Config file creation if missing
|
|
19
|
+
- Profile update in config.json
|
|
20
|
+
- Confirmation with model table display
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@~/.claude/pan-wizard-core/workflows/profile.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<process>
|
|
28
|
+
**Follow the set-profile workflow** from `@~/.claude/pan-wizard-core/workflows/profile.md`.
|
|
29
|
+
|
|
30
|
+
The workflow handles all logic including:
|
|
31
|
+
1. Profile argument validation
|
|
32
|
+
2. Config file ensuring
|
|
33
|
+
3. Config reading and updating
|
|
34
|
+
4. Model table generation from MODEL_PROFILES
|
|
35
|
+
5. Confirmation display
|
|
36
|
+
</process>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:progress
|
|
3
|
+
group: Session & Progress
|
|
4
|
+
description: Check project progress, show context, and route to next action (execute or plan)
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Grep
|
|
9
|
+
- Glob
|
|
10
|
+
- SlashCommand
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
|
|
14
|
+
|
|
15
|
+
Provides situational awareness before continuing work.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@~/.claude/pan-wizard-core/workflows/progress.md
|
|
20
|
+
</execution_context>
|
|
21
|
+
|
|
22
|
+
<process>
|
|
23
|
+
Execute the progress workflow from @~/.claude/pan-wizard-core/workflows/progress.md end-to-end.
|
|
24
|
+
Preserve all routing logic (Routes A through F) and edge case handling.
|
|
25
|
+
</process>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:quick
|
|
3
|
+
group: Session & Progress
|
|
4
|
+
description: Execute a quick task with PAN guarantees (atomic commits, state tracking) but skip optional agents
|
|
5
|
+
argument-hint: "[--full]"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Bash
|
|
13
|
+
- Task
|
|
14
|
+
- AskUserQuestion
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Execute small, ad-hoc tasks with PAN guarantees (atomic commits, state.md tracking).
|
|
18
|
+
|
|
19
|
+
Quick mode is the same system with a shorter path:
|
|
20
|
+
- Spawns pan-planner (quick mode) + pan-executor(s)
|
|
21
|
+
- Quick tasks live in `.planning/quick/` separate from planned phases
|
|
22
|
+
- Updates state.md "Quick Tasks Completed" table (NOT roadmap.md)
|
|
23
|
+
|
|
24
|
+
**Default:** Skips research, plan-checker, verifier. Use when you know exactly what to do.
|
|
25
|
+
|
|
26
|
+
**`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
|
|
27
|
+
</objective>
|
|
28
|
+
|
|
29
|
+
<execution_context>
|
|
30
|
+
@~/.claude/pan-wizard-core/workflows/quick.md
|
|
31
|
+
</execution_context>
|
|
32
|
+
|
|
33
|
+
<context>
|
|
34
|
+
$ARGUMENTS
|
|
35
|
+
|
|
36
|
+
Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
|
|
37
|
+
</context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
Execute the quick workflow from @~/.claude/pan-wizard-core/workflows/quick.md end-to-end.
|
|
41
|
+
Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
|
|
42
|
+
</process>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:remove-phase
|
|
3
|
+
group: Phase Management
|
|
4
|
+
description: Remove a future phase from roadmap and renumber subsequent phases
|
|
5
|
+
argument-hint: <phase-number>
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
|
|
14
|
+
|
|
15
|
+
Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
|
|
16
|
+
Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/pan-wizard-core/workflows/remove-phase.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Phase: $ARGUMENTS
|
|
25
|
+
|
|
26
|
+
Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute the remove-phase workflow from @~/.claude/pan-wizard-core/workflows/remove-phase.md end-to-end.
|
|
31
|
+
Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
|
|
32
|
+
</process>
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:research-phase
|
|
3
|
+
group: Phase Lifecycle
|
|
4
|
+
description: Research how to implement a phase (standalone - usually use /pan:plan-phase instead)
|
|
5
|
+
argument-hint: "[phase]"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Bash
|
|
9
|
+
- Task
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Research how to implement a phase. Spawns pan-phase-researcher agent with phase context.
|
|
14
|
+
|
|
15
|
+
**Note:** This is a standalone research command. For most workflows, use `/pan:plan-phase` which integrates research automatically.
|
|
16
|
+
|
|
17
|
+
**Use this command when:**
|
|
18
|
+
- You want to research without planning yet
|
|
19
|
+
- You want to re-research after planning is complete
|
|
20
|
+
- You need to investigate before deciding if a phase is feasible
|
|
21
|
+
|
|
22
|
+
**Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
|
|
23
|
+
|
|
24
|
+
**Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
|
|
25
|
+
</objective>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
Phase number: $ARGUMENTS (required)
|
|
29
|
+
|
|
30
|
+
Normalize phase input in step 1 before any directory lookups.
|
|
31
|
+
</context>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
|
|
35
|
+
## 0. Initialize Context
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
INIT=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs init phase-op "$ARGUMENTS")
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`, `state_path`, `requirements_path`, `context_path`, `research_path`.
|
|
42
|
+
|
|
43
|
+
Resolve researcher model:
|
|
44
|
+
```bash
|
|
45
|
+
RESEARCHER_MODEL=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs resolve-model pan-phase-researcher --raw)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 1. Validate Phase
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
PHASE_INFO=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs roadmap get-phase "${phase_number}")
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
55
|
+
|
|
56
|
+
## 2. Check Existing Research
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
ls .planning/phases/${PHASE}-*/research.md 2>/dev/null
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
|
|
63
|
+
|
|
64
|
+
**If doesn't exist:** Continue.
|
|
65
|
+
|
|
66
|
+
## 3. Gather Phase Context
|
|
67
|
+
|
|
68
|
+
Use paths from INIT (do not inline file contents in orchestrator context):
|
|
69
|
+
- `requirements_path`
|
|
70
|
+
- `context_path`
|
|
71
|
+
- `state_path`
|
|
72
|
+
|
|
73
|
+
Present summary with phase description and what files the researcher will load.
|
|
74
|
+
|
|
75
|
+
## 4. Spawn pan-phase-researcher Agent
|
|
76
|
+
|
|
77
|
+
Research modes: ecosystem (default), feasibility, implementation, comparison.
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
<research_type>
|
|
81
|
+
Phase Research — investigating HOW to implement a specific phase well.
|
|
82
|
+
</research_type>
|
|
83
|
+
|
|
84
|
+
<key_insight>
|
|
85
|
+
The question is NOT "which library should I use?"
|
|
86
|
+
|
|
87
|
+
The question is: "What do I not know that I don't know?"
|
|
88
|
+
|
|
89
|
+
For this phase, discover:
|
|
90
|
+
- What's the established architecture pattern?
|
|
91
|
+
- What libraries form the standard stack?
|
|
92
|
+
- What problems do people commonly hit?
|
|
93
|
+
- What's SOTA vs what Claude's training thinks is SOTA?
|
|
94
|
+
- What should NOT be hand-rolled?
|
|
95
|
+
</key_insight>
|
|
96
|
+
|
|
97
|
+
<objective>
|
|
98
|
+
Research implementation approach for Phase {phase_number}: {phase_name}
|
|
99
|
+
Mode: ecosystem
|
|
100
|
+
</objective>
|
|
101
|
+
|
|
102
|
+
<files_to_read>
|
|
103
|
+
- {requirements_path} (Requirements)
|
|
104
|
+
- {context_path} (Phase context from discuss-phase, if exists)
|
|
105
|
+
- {state_path} (Prior project decisions and blockers)
|
|
106
|
+
</files_to_read>
|
|
107
|
+
|
|
108
|
+
<additional_context>
|
|
109
|
+
**Phase description:** {phase_description}
|
|
110
|
+
</additional_context>
|
|
111
|
+
|
|
112
|
+
<downstream_consumer>
|
|
113
|
+
Your research.md will be loaded by `/pan:plan-phase` which uses specific sections:
|
|
114
|
+
- `## Standard Stack` → Plans use these libraries
|
|
115
|
+
- `## Architecture Patterns` → Task structure follows these
|
|
116
|
+
- `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
|
|
117
|
+
- `## Common Pitfalls` → Verification steps check for these
|
|
118
|
+
- `## Code Examples` → Task actions reference these patterns
|
|
119
|
+
|
|
120
|
+
Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
|
|
121
|
+
</downstream_consumer>
|
|
122
|
+
|
|
123
|
+
<quality_gate>
|
|
124
|
+
Before declaring complete, verify:
|
|
125
|
+
- [ ] All domains investigated (not just some)
|
|
126
|
+
- [ ] Negative claims verified with official docs
|
|
127
|
+
- [ ] Multiple sources for critical claims
|
|
128
|
+
- [ ] Confidence levels assigned honestly
|
|
129
|
+
- [ ] Section names match what plan-phase expects
|
|
130
|
+
</quality_gate>
|
|
131
|
+
|
|
132
|
+
<output>
|
|
133
|
+
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-research.md
|
|
134
|
+
</output>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
Task(
|
|
139
|
+
prompt="First, read ~/.claude/agents/pan-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
|
|
140
|
+
subagent_type="general-purpose",
|
|
141
|
+
model="{researcher_model}",
|
|
142
|
+
description="Research Phase {phase}"
|
|
143
|
+
)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 5. Handle Agent Return
|
|
147
|
+
|
|
148
|
+
**`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
|
|
149
|
+
|
|
150
|
+
**`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
|
|
151
|
+
|
|
152
|
+
**`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
|
|
153
|
+
|
|
154
|
+
## 6. Spawn Continuation Agent
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
<objective>
|
|
158
|
+
Continue research for Phase {phase_number}: {phase_name}
|
|
159
|
+
</objective>
|
|
160
|
+
|
|
161
|
+
<prior_state>
|
|
162
|
+
<files_to_read>
|
|
163
|
+
- .planning/phases/${PHASE}-{slug}/${PHASE}-research.md (Existing research)
|
|
164
|
+
</files_to_read>
|
|
165
|
+
</prior_state>
|
|
166
|
+
|
|
167
|
+
<checkpoint_response>
|
|
168
|
+
**Type:** {checkpoint_type}
|
|
169
|
+
**Response:** {user_response}
|
|
170
|
+
</checkpoint_response>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
Task(
|
|
175
|
+
prompt="First, read ~/.claude/agents/pan-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
|
|
176
|
+
subagent_type="general-purpose",
|
|
177
|
+
model="{researcher_model}",
|
|
178
|
+
description="Continue research Phase {phase}"
|
|
179
|
+
)
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
</process>
|
|
183
|
+
|
|
184
|
+
<success_criteria>
|
|
185
|
+
- [ ] Phase validated against roadmap
|
|
186
|
+
- [ ] Existing research checked
|
|
187
|
+
- [ ] pan-phase-researcher spawned with context
|
|
188
|
+
- [ ] Checkpoints handled correctly
|
|
189
|
+
- [ ] User knows next steps
|
|
190
|
+
</success_criteria>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:resume
|
|
3
|
+
group: Session & Progress
|
|
4
|
+
description: Resume work from previous session with full context restoration
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
- SlashCommand
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
Restore complete project context and resume work seamlessly from previous session.
|
|
15
|
+
|
|
16
|
+
Routes to the resume-project workflow which handles:
|
|
17
|
+
|
|
18
|
+
- state.md loading (or reconstruction if missing)
|
|
19
|
+
- Checkpoint detection (.continue-here files)
|
|
20
|
+
- Incomplete work detection (PLAN without SUMMARY)
|
|
21
|
+
- Status presentation
|
|
22
|
+
- Context-aware next action routing
|
|
23
|
+
</objective>
|
|
24
|
+
|
|
25
|
+
<execution_context>
|
|
26
|
+
@~/.claude/pan-wizard-core/workflows/resume-project.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
**Follow the resume-project workflow** from `@~/.claude/pan-wizard-core/workflows/resume-project.md`.
|
|
31
|
+
|
|
32
|
+
The workflow handles all resumption logic including:
|
|
33
|
+
|
|
34
|
+
1. Project existence verification
|
|
35
|
+
2. state.md loading or reconstruction
|
|
36
|
+
3. Checkpoint and incomplete work detection
|
|
37
|
+
4. Visual status presentation
|
|
38
|
+
5. Context-aware option offering (checks context.md before suggesting plan vs discuss)
|
|
39
|
+
6. Routing to appropriate next command
|
|
40
|
+
7. Session continuity updates
|
|
41
|
+
</process>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:retro
|
|
3
|
+
group: Milestone Lifecycle
|
|
4
|
+
description: Milestone retrospective — analyze estimation accuracy, verification patterns, and common gaps
|
|
5
|
+
argument-hint: ""
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Analyze completed milestone work to identify process improvement opportunities.
|
|
14
|
+
|
|
15
|
+
Examines roadmap phases (planned vs completed, gap closures), verification results (pass rates, common gaps), and estimation accuracy. Output guides future planning improvements.
|
|
16
|
+
|
|
17
|
+
This is a reflection command — it does not modify any files.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@~/.claude/pan-wizard-core/workflows/retro.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
No arguments required. Operates on the current `.planning/` directory.
|
|
26
|
+
|
|
27
|
+
The retro command is typically run after `/pan:milestone-done` to reflect on the milestone before starting the next one.
|
|
28
|
+
</context>
|
|
29
|
+
|
|
30
|
+
<process>
|
|
31
|
+
Execute the retro workflow from @~/.claude/pan-wizard-core/workflows/retro.md end-to-end.
|
|
32
|
+
Present findings in a structured, actionable format.
|
|
33
|
+
</process>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:settings
|
|
3
|
+
group: System
|
|
4
|
+
description: Configure PAN workflow toggles and model profile
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Interactive configuration of PAN workflow agents and model profile via multi-question prompt.
|
|
14
|
+
|
|
15
|
+
Routes to the settings workflow which handles:
|
|
16
|
+
- Config existence ensuring
|
|
17
|
+
- Current settings reading and parsing
|
|
18
|
+
- Interactive 5-question prompt (model, research, plan_check, verifier, branching)
|
|
19
|
+
- Config merging and writing
|
|
20
|
+
- Confirmation display with quick command references
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@./.claude/pan-wizard-core/workflows/settings.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<process>
|
|
28
|
+
**Follow the settings workflow** from `@./.claude/pan-wizard-core/workflows/settings.md`.
|
|
29
|
+
|
|
30
|
+
The workflow handles all logic including:
|
|
31
|
+
1. Config file creation with defaults if missing
|
|
32
|
+
2. Current config reading
|
|
33
|
+
3. Interactive settings presentation with pre-selection
|
|
34
|
+
4. Answer parsing and config merging
|
|
35
|
+
5. File writing
|
|
36
|
+
6. Confirmation display
|
|
37
|
+
</process>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:todo-add
|
|
3
|
+
group: System
|
|
4
|
+
description: Capture idea or task as todo from current conversation context
|
|
5
|
+
argument-hint: [optional description]
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
Capture an idea, task, or issue that surfaces during a PAN session as a structured todo for later work.
|
|
15
|
+
|
|
16
|
+
Routes to the add-todo workflow which handles:
|
|
17
|
+
- Directory structure creation
|
|
18
|
+
- Content extraction from arguments or conversation
|
|
19
|
+
- Area inference from file paths
|
|
20
|
+
- Duplicate detection and resolution
|
|
21
|
+
- Todo file creation with frontmatter
|
|
22
|
+
- state.md updates
|
|
23
|
+
- Git commits
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<execution_context>
|
|
27
|
+
@~/.claude/pan-wizard-core/workflows/todo-add.md
|
|
28
|
+
</execution_context>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
Arguments: $ARGUMENTS (optional todo description)
|
|
32
|
+
|
|
33
|
+
State is resolved in-workflow via `init todos` and targeted reads.
|
|
34
|
+
</context>
|
|
35
|
+
|
|
36
|
+
<process>
|
|
37
|
+
**Follow the add-todo workflow** from `@~/.claude/pan-wizard-core/workflows/todo-add.md`.
|
|
38
|
+
|
|
39
|
+
The workflow handles all logic including:
|
|
40
|
+
1. Directory ensuring
|
|
41
|
+
2. Existing area checking
|
|
42
|
+
3. Content extraction (arguments or conversation)
|
|
43
|
+
4. Area inference
|
|
44
|
+
5. Duplicate checking
|
|
45
|
+
6. File creation with slug generation
|
|
46
|
+
7. state.md updates
|
|
47
|
+
8. Git commits
|
|
48
|
+
</process>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan:todo-check
|
|
3
|
+
group: System
|
|
4
|
+
description: List pending todos and select one to work on
|
|
5
|
+
argument-hint: [area filter]
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
15
|
+
|
|
16
|
+
Routes to the check-todos workflow which handles:
|
|
17
|
+
- Todo counting and listing with area filtering
|
|
18
|
+
- Interactive selection with full context loading
|
|
19
|
+
- Roadmap correlation checking
|
|
20
|
+
- Action routing (work now, add to phase, brainstorm, create phase)
|
|
21
|
+
- state.md updates and git commits
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/pan-wizard-core/workflows/todo-check.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<context>
|
|
29
|
+
Arguments: $ARGUMENTS (optional area filter)
|
|
30
|
+
|
|
31
|
+
Todo state and roadmap correlation are loaded in-workflow using `init todos` and targeted reads.
|
|
32
|
+
</context>
|
|
33
|
+
|
|
34
|
+
<process>
|
|
35
|
+
**Follow the check-todos workflow** from `@~/.claude/pan-wizard-core/workflows/todo-check.md`.
|
|
36
|
+
|
|
37
|
+
The workflow handles all logic including:
|
|
38
|
+
1. Todo existence checking
|
|
39
|
+
2. Area filtering
|
|
40
|
+
3. Interactive listing and selection
|
|
41
|
+
4. Full context loading with file summaries
|
|
42
|
+
5. Roadmap correlation checking
|
|
43
|
+
6. Action offering and execution
|
|
44
|
+
7. state.md updates
|
|
45
|
+
8. Git commits
|
|
46
|
+
</process>
|