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.
Files changed (164) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +772 -0
  3. package/agents/pan-debugger.md +1246 -0
  4. package/agents/pan-document_code.md +965 -0
  5. package/agents/pan-executor.md +469 -0
  6. package/agents/pan-integration-checker.md +443 -0
  7. package/agents/pan-phase-researcher.md +572 -0
  8. package/agents/pan-plan-checker.md +763 -0
  9. package/agents/pan-planner.md +1297 -0
  10. package/agents/pan-project-researcher.md +647 -0
  11. package/agents/pan-research-synthesizer.md +239 -0
  12. package/agents/pan-reviewer.md +112 -0
  13. package/agents/pan-roadmapper.md +642 -0
  14. package/agents/pan-verifier.md +672 -0
  15. package/assets/pan-logo-2000-transparent.svg +30 -0
  16. package/assets/pan-logo-2000.svg +43 -0
  17. package/assets/terminal.svg +119 -0
  18. package/bin/install-lib.cjs +616 -0
  19. package/bin/install.js +1936 -0
  20. package/commands/pan/add-phase.md +44 -0
  21. package/commands/pan/assumptions.md +47 -0
  22. package/commands/pan/audit-deployment.md +378 -0
  23. package/commands/pan/debug.md +168 -0
  24. package/commands/pan/discord.md +19 -0
  25. package/commands/pan/discuss-phase.md +84 -0
  26. package/commands/pan/exec-phase.md +45 -0
  27. package/commands/pan/focus-auto.md +323 -0
  28. package/commands/pan/focus-design.md +816 -0
  29. package/commands/pan/focus-exec.md +316 -0
  30. package/commands/pan/focus-plan.md +101 -0
  31. package/commands/pan/focus-scan.md +272 -0
  32. package/commands/pan/focus-sync.md +104 -0
  33. package/commands/pan/health.md +23 -0
  34. package/commands/pan/help.md +23 -0
  35. package/commands/pan/insert-phase.md +33 -0
  36. package/commands/pan/map-codebase.md +72 -0
  37. package/commands/pan/milestone-audit.md +37 -0
  38. package/commands/pan/milestone-cleanup.md +19 -0
  39. package/commands/pan/milestone-done.md +137 -0
  40. package/commands/pan/milestone-gaps.md +35 -0
  41. package/commands/pan/milestone-new.md +45 -0
  42. package/commands/pan/new-project.md +43 -0
  43. package/commands/pan/patches.md +110 -0
  44. package/commands/pan/pause.md +39 -0
  45. package/commands/pan/phase-budget.md +23 -0
  46. package/commands/pan/phase-tests.md +42 -0
  47. package/commands/pan/plan-phase.md +46 -0
  48. package/commands/pan/profile.md +36 -0
  49. package/commands/pan/progress.md +25 -0
  50. package/commands/pan/quick.md +42 -0
  51. package/commands/pan/remove-phase.md +32 -0
  52. package/commands/pan/research-phase.md +190 -0
  53. package/commands/pan/resume.md +41 -0
  54. package/commands/pan/retro.md +33 -0
  55. package/commands/pan/settings.md +37 -0
  56. package/commands/pan/todo-add.md +48 -0
  57. package/commands/pan/todo-check.md +46 -0
  58. package/commands/pan/update.md +38 -0
  59. package/commands/pan/verify-phase.md +39 -0
  60. package/hooks/dist/pan-check-update.js +62 -0
  61. package/hooks/dist/pan-context-monitor.js +122 -0
  62. package/hooks/dist/pan-statusline.js +108 -0
  63. package/package.json +66 -0
  64. package/pan-wizard-core/bin/lib/codebase.cjs +746 -0
  65. package/pan-wizard-core/bin/lib/commands.cjs +1435 -0
  66. package/pan-wizard-core/bin/lib/config.cjs +611 -0
  67. package/pan-wizard-core/bin/lib/constants.cjs +696 -0
  68. package/pan-wizard-core/bin/lib/context-budget.cjs +150 -0
  69. package/pan-wizard-core/bin/lib/core.cjs +650 -0
  70. package/pan-wizard-core/bin/lib/focus.cjs +900 -0
  71. package/pan-wizard-core/bin/lib/frontmatter.cjs +442 -0
  72. package/pan-wizard-core/bin/lib/init.cjs +881 -0
  73. package/pan-wizard-core/bin/lib/milestone.cjs +276 -0
  74. package/pan-wizard-core/bin/lib/phase.cjs +1212 -0
  75. package/pan-wizard-core/bin/lib/roadmap.cjs +470 -0
  76. package/pan-wizard-core/bin/lib/state.cjs +1029 -0
  77. package/pan-wizard-core/bin/lib/template.cjs +314 -0
  78. package/pan-wizard-core/bin/lib/utils.cjs +171 -0
  79. package/pan-wizard-core/bin/lib/verify.cjs +1808 -0
  80. package/pan-wizard-core/bin/pan-tools.cjs +773 -0
  81. package/pan-wizard-core/references/checkpoints.md +776 -0
  82. package/pan-wizard-core/references/continuation-format.md +249 -0
  83. package/pan-wizard-core/references/decimal-phase-calculation.md +65 -0
  84. package/pan-wizard-core/references/git-integration.md +248 -0
  85. package/pan-wizard-core/references/git-planning-commit.md +38 -0
  86. package/pan-wizard-core/references/model-profile-resolution.md +34 -0
  87. package/pan-wizard-core/references/model-profiles.md +111 -0
  88. package/pan-wizard-core/references/phase-argument-parsing.md +61 -0
  89. package/pan-wizard-core/references/planning-config.md +196 -0
  90. package/pan-wizard-core/references/questioning.md +145 -0
  91. package/pan-wizard-core/references/tdd.md +263 -0
  92. package/pan-wizard-core/references/ui-brand.md +160 -0
  93. package/pan-wizard-core/references/verification-patterns.md +612 -0
  94. package/pan-wizard-core/templates/codebase/architecture.md +283 -0
  95. package/pan-wizard-core/templates/codebase/best-practices.md +133 -0
  96. package/pan-wizard-core/templates/codebase/concerns.md +325 -0
  97. package/pan-wizard-core/templates/codebase/conventions.md +307 -0
  98. package/pan-wizard-core/templates/codebase/integrations.md +305 -0
  99. package/pan-wizard-core/templates/codebase/relationships.md +124 -0
  100. package/pan-wizard-core/templates/codebase/stack.md +199 -0
  101. package/pan-wizard-core/templates/codebase/structure.md +298 -0
  102. package/pan-wizard-core/templates/codebase/testing.md +480 -0
  103. package/pan-wizard-core/templates/config.json +37 -0
  104. package/pan-wizard-core/templates/context.md +283 -0
  105. package/pan-wizard-core/templates/continue-here.md +78 -0
  106. package/pan-wizard-core/templates/debug-subagent-prompt.md +91 -0
  107. package/pan-wizard-core/templates/debug.md +164 -0
  108. package/pan-wizard-core/templates/discovery.md +146 -0
  109. package/pan-wizard-core/templates/milestone-archive.md +123 -0
  110. package/pan-wizard-core/templates/milestone.md +115 -0
  111. package/pan-wizard-core/templates/phase-prompt.md +593 -0
  112. package/pan-wizard-core/templates/planner-subagent-prompt.md +117 -0
  113. package/pan-wizard-core/templates/project.md +184 -0
  114. package/pan-wizard-core/templates/requirements.md +231 -0
  115. package/pan-wizard-core/templates/research-project/architecture.md +204 -0
  116. package/pan-wizard-core/templates/research-project/features.md +147 -0
  117. package/pan-wizard-core/templates/research-project/pitfalls.md +200 -0
  118. package/pan-wizard-core/templates/research-project/stack.md +120 -0
  119. package/pan-wizard-core/templates/research-project/summary.md +170 -0
  120. package/pan-wizard-core/templates/research.md +552 -0
  121. package/pan-wizard-core/templates/retrospective.md +54 -0
  122. package/pan-wizard-core/templates/roadmap.md +202 -0
  123. package/pan-wizard-core/templates/standards.md +24 -0
  124. package/pan-wizard-core/templates/state.md +176 -0
  125. package/pan-wizard-core/templates/summary-complex.md +59 -0
  126. package/pan-wizard-core/templates/summary-minimal.md +41 -0
  127. package/pan-wizard-core/templates/summary-standard.md +49 -0
  128. package/pan-wizard-core/templates/summary.md +249 -0
  129. package/pan-wizard-core/templates/uat.md +247 -0
  130. package/pan-wizard-core/templates/user-setup.md +311 -0
  131. package/pan-wizard-core/templates/validation.md +76 -0
  132. package/pan-wizard-core/templates/verification-report.md +322 -0
  133. package/pan-wizard-core/workflows/add-phase.md +111 -0
  134. package/pan-wizard-core/workflows/assumptions.md +178 -0
  135. package/pan-wizard-core/workflows/diagnose-issues.md +219 -0
  136. package/pan-wizard-core/workflows/discuss-phase.md +542 -0
  137. package/pan-wizard-core/workflows/exec-phase.md +572 -0
  138. package/pan-wizard-core/workflows/execute-plan.md +448 -0
  139. package/pan-wizard-core/workflows/health.md +156 -0
  140. package/pan-wizard-core/workflows/help.md +431 -0
  141. package/pan-wizard-core/workflows/insert-phase.md +129 -0
  142. package/pan-wizard-core/workflows/map-codebase.md +401 -0
  143. package/pan-wizard-core/workflows/milestone-audit.md +297 -0
  144. package/pan-wizard-core/workflows/milestone-cleanup.md +152 -0
  145. package/pan-wizard-core/workflows/milestone-gaps.md +274 -0
  146. package/pan-wizard-core/workflows/milestone-new.md +382 -0
  147. package/pan-wizard-core/workflows/new-project.md +1178 -0
  148. package/pan-wizard-core/workflows/pause.md +122 -0
  149. package/pan-wizard-core/workflows/phase-tests.md +388 -0
  150. package/pan-wizard-core/workflows/plan-phase.md +569 -0
  151. package/pan-wizard-core/workflows/profile.md +115 -0
  152. package/pan-wizard-core/workflows/progress.md +381 -0
  153. package/pan-wizard-core/workflows/quick.md +453 -0
  154. package/pan-wizard-core/workflows/remove-phase.md +154 -0
  155. package/pan-wizard-core/workflows/research-phase.md +73 -0
  156. package/pan-wizard-core/workflows/resume-project.md +306 -0
  157. package/pan-wizard-core/workflows/retro.md +121 -0
  158. package/pan-wizard-core/workflows/settings.md +213 -0
  159. package/pan-wizard-core/workflows/todo-add.md +157 -0
  160. package/pan-wizard-core/workflows/todo-check.md +176 -0
  161. package/pan-wizard-core/workflows/transition.md +544 -0
  162. package/pan-wizard-core/workflows/update.md +219 -0
  163. package/pan-wizard-core/workflows/verify-phase.md +301 -0
  164. package/scripts/build-hooks.js +43 -0
@@ -0,0 +1,298 @@
1
+ # Structure Template
2
+
3
+ Template for `.planning/codebase/STRUCTURE.md` - captures physical file organization.
4
+
5
+ **Purpose:** Document where things physically live in the codebase. Answers "where do I put X?"
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Codebase Structure
13
+
14
+ **Analysis Date:** [YYYY-MM-DD]
15
+
16
+ ## Directory Layout
17
+
18
+ ### Visual Hierarchy
19
+
20
+ ```mermaid
21
+ graph TD
22
+ Root[project-root] --> Src[src/]
23
+ Root --> Tests[tests/]
24
+ Root --> Config[config files]
25
+ Root --> Docs[docs/]
26
+ Src --> Components[components/]
27
+ Src --> Services[services/]
28
+ Src --> Utils[utils/]
29
+ ```
30
+
31
+ ### Tree
32
+
33
+ ```
34
+ [project-root]/
35
+ ├── [dir]/ # [Purpose]
36
+ ├── [dir]/ # [Purpose]
37
+ ├── [dir]/ # [Purpose]
38
+ └── [file] # [Purpose]
39
+ ```
40
+
41
+ ## Directory Purposes
42
+
43
+ **[Directory Name]:**
44
+ - Purpose: [What lives here]
45
+ - Contains: [Types of files: e.g., "*.ts source files", "component directories"]
46
+ - Key files: [Important files in this directory]
47
+ - Subdirectories: [If nested, describe structure]
48
+
49
+ **[Directory Name]:**
50
+ - Purpose: [What lives here]
51
+ - Contains: [Types of files]
52
+ - Key files: [Important files]
53
+ - Subdirectories: [Structure]
54
+
55
+ ## Key File Locations
56
+
57
+ **Entry Points:**
58
+ - [Path]: [Purpose: e.g., "CLI entry point"]
59
+ - [Path]: [Purpose: e.g., "Server startup"]
60
+
61
+ **Configuration:**
62
+ - [Path]: [Purpose: e.g., "TypeScript config"]
63
+ - [Path]: [Purpose: e.g., "Build configuration"]
64
+ - [Path]: [Purpose: e.g., "Environment variables"]
65
+
66
+ **Core Logic:**
67
+ - [Path]: [Purpose: e.g., "Business services"]
68
+ - [Path]: [Purpose: e.g., "Database models"]
69
+ - [Path]: [Purpose: e.g., "API routes"]
70
+
71
+ **Testing:**
72
+ - [Path]: [Purpose: e.g., "Unit tests"]
73
+ - [Path]: [Purpose: e.g., "Test fixtures"]
74
+
75
+ **Documentation:**
76
+ - [Path]: [Purpose: e.g., "User-facing docs"]
77
+ - [Path]: [Purpose: e.g., "Developer guide"]
78
+
79
+ ## Naming Conventions
80
+
81
+ **Files:**
82
+ - [Pattern]: [Example: e.g., "kebab-case.ts for modules"]
83
+ - [Pattern]: [Example: e.g., "PascalCase.tsx for React components"]
84
+ - [Pattern]: [Example: e.g., "*.test.ts for test files"]
85
+
86
+ **Directories:**
87
+ - [Pattern]: [Example: e.g., "kebab-case for feature directories"]
88
+ - [Pattern]: [Example: e.g., "plural names for collections"]
89
+
90
+ **Special Patterns:**
91
+ - [Pattern]: [Example: e.g., "index.ts for directory exports"]
92
+ - [Pattern]: [Example: e.g., "__tests__ for test directories"]
93
+
94
+ ## Where to Add New Code
95
+
96
+ **New Feature:**
97
+ - Primary code: [Directory path]
98
+ - Tests: [Directory path]
99
+ - Config if needed: [Directory path]
100
+
101
+ **New Component/Module:**
102
+ - Implementation: [Directory path]
103
+ - Types: [Directory path]
104
+ - Tests: [Directory path]
105
+
106
+ **New Route/Command:**
107
+ - Definition: [Directory path]
108
+ - Handler: [Directory path]
109
+ - Tests: [Directory path]
110
+
111
+ **Utilities:**
112
+ - Shared helpers: [Directory path]
113
+ - Type definitions: [Directory path]
114
+
115
+ ## Special Directories
116
+
117
+ [Any directories with special meaning or generation]
118
+
119
+ **[Directory]:**
120
+ - Purpose: [e.g., "Generated code", "Build output"]
121
+ - Source: [e.g., "Auto-generated by X", "Build artifacts"]
122
+ - Committed: [Yes/No - in .gitignore?]
123
+
124
+ ---
125
+
126
+ *Structure analysis: [date]*
127
+ *Update when directory structure changes*
128
+ ```
129
+
130
+ <good_examples>
131
+ ```markdown
132
+ # Codebase Structure
133
+
134
+ **Analysis Date:** 2025-01-20
135
+
136
+ ## Directory Layout
137
+
138
+ ```
139
+ pan-wizard-core/
140
+ ├── bin/ # Executable entry points
141
+ ├── commands/ # Slash command definitions
142
+ │ └── pan/ # PAN-specific commands
143
+ ├── pan-wizard-core/ # Skill resources
144
+ │ ├── references/ # Principle documents
145
+ │ ├── templates/ # File templates
146
+ │ └── workflows/ # Multi-step procedures
147
+ ├── src/ # Source code (if applicable)
148
+ ├── tests/ # Test files
149
+ ├── package.json # Project manifest
150
+ └── README.md # User documentation
151
+ ```
152
+
153
+ ## Directory Purposes
154
+
155
+ **bin/**
156
+ - Purpose: CLI entry points
157
+ - Contains: install.js (installer script)
158
+ - Key files: install.js - handles npx installation
159
+ - Subdirectories: None
160
+
161
+ **commands/pan/**
162
+ - Purpose: Slash command definitions for Claude Code
163
+ - Contains: *.md files (one per command)
164
+ - Key files: new-project.md, plan-phase.md, execute-plan.md
165
+ - Subdirectories: None (flat structure)
166
+
167
+ **pan-wizard-core/references/**
168
+ - Purpose: Core philosophy and guidance documents
169
+ - Contains: principles.md, questioning.md, plan-format.md
170
+ - Key files: principles.md - system philosophy
171
+ - Subdirectories: None
172
+
173
+ **pan-wizard-core/templates/**
174
+ - Purpose: Document templates for .planning/ files
175
+ - Contains: Template definitions with frontmatter
176
+ - Key files: project.md, roadmap.md, plan.md, summary.md
177
+ - Subdirectories: codebase/ (new - for stack/architecture/structure templates)
178
+
179
+ **pan-wizard-core/workflows/**
180
+ - Purpose: Reusable multi-step procedures
181
+ - Contains: Workflow definitions called by commands
182
+ - Key files: execute-plan.md, research-phase.md
183
+ - Subdirectories: None
184
+
185
+ ## Key File Locations
186
+
187
+ **Entry Points:**
188
+ - `bin/install.js` - Installation script (npx entry)
189
+
190
+ **Configuration:**
191
+ - `package.json` - Project metadata, dependencies, bin entry
192
+ - `.gitignore` - Excluded files
193
+
194
+ **Core Logic:**
195
+ - `bin/install.js` - All installation logic (file copying, path replacement)
196
+
197
+ **Testing:**
198
+ - `tests/` - Test files (if present)
199
+
200
+ **Documentation:**
201
+ - `README.md` - User-facing installation and usage guide
202
+ - `CLAUDE.md` - Instructions for Claude Code when working in this repo
203
+
204
+ ## Naming Conventions
205
+
206
+ **Files:**
207
+ - kebab-case.md: Markdown documents
208
+ - kebab-case.js: JavaScript source files
209
+ - UPPERCASE.md: Important project files (README, CLAUDE, CHANGELOG)
210
+
211
+ **Directories:**
212
+ - kebab-case: All directories
213
+ - Plural for collections: templates/, commands/, workflows/
214
+
215
+ **Special Patterns:**
216
+ - {command-name}.md: Slash command definition
217
+ - *-template.md: Could be used but templates/ directory preferred
218
+
219
+ ## Where to Add New Code
220
+
221
+ **New Slash Command:**
222
+ - Primary code: `commands/pan/{command-name}.md`
223
+ - Tests: `tests/commands/{command-name}.test.js` (if testing implemented)
224
+ - Documentation: Update `README.md` with new command
225
+
226
+ **New Template:**
227
+ - Implementation: `pan-wizard-core/templates/{name}.md`
228
+ - Documentation: Template is self-documenting (includes guidelines)
229
+
230
+ **New Workflow:**
231
+ - Implementation: `pan-wizard-core/workflows/{name}.md`
232
+ - Usage: Reference from command with `@~/.claude/pan-wizard-core/workflows/{name}.md`
233
+
234
+ **New Reference Document:**
235
+ - Implementation: `pan-wizard-core/references/{name}.md`
236
+ - Usage: Reference from commands/workflows as needed
237
+
238
+ **Utilities:**
239
+ - No utilities yet (`install.js` is monolithic)
240
+ - If extracted: `src/utils/`
241
+
242
+ ## Special Directories
243
+
244
+ **pan-wizard-core/**
245
+ - Purpose: Resources installed to ~/.claude/
246
+ - Source: Copied by bin/install.js during installation
247
+ - Committed: Yes (source of truth)
248
+
249
+ **commands/**
250
+ - Purpose: Slash commands installed to ~/.claude/commands/
251
+ - Source: Copied by bin/install.js during installation
252
+ - Committed: Yes (source of truth)
253
+
254
+ ---
255
+
256
+ *Structure analysis: 2025-01-20*
257
+ *Update when directory structure changes*
258
+ ```
259
+ </good_examples>
260
+
261
+ <guidelines>
262
+ **What belongs in STRUCTURE.md:**
263
+ - Directory layout (ASCII box-drawing tree for structure visualization)
264
+ - Purpose of each directory
265
+ - Key file locations (entry points, configs, core logic)
266
+ - Naming conventions
267
+ - Where to add new code (by type)
268
+ - Special/generated directories
269
+
270
+ **What does NOT belong here:**
271
+ - Conceptual architecture (that's ARCHITECTURE.md)
272
+ - Technology stack (that's STACK.md)
273
+ - Code implementation details (defer to code reading)
274
+ - Every single file (focus on directories and key files)
275
+
276
+ **When filling this template:**
277
+ - Use `tree -L 2` or similar to visualize structure
278
+ - Identify top-level directories and their purposes
279
+ - Note naming patterns by observing existing files
280
+ - Locate entry points, configs, and main logic areas
281
+ - Keep directory tree concise (max 2-3 levels)
282
+
283
+ **Tree format (ASCII box-drawing characters for structure only):**
284
+ ```
285
+ root/
286
+ ├── dir1/ # Purpose
287
+ │ ├── subdir/ # Purpose
288
+ │ └── file.ts # Purpose
289
+ ├── dir2/ # Purpose
290
+ └── file.ts # Purpose
291
+ ```
292
+
293
+ **Useful for phase planning when:**
294
+ - Adding new features (where should files go?)
295
+ - Understanding project organization
296
+ - Finding where specific logic lives
297
+ - Following existing conventions
298
+ </guidelines>