prizmkit 1.1.79 → 1.1.81

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 (110) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/scripts/init-pipeline.py +2 -0
  3. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +2 -0
  4. package/bundled/skills/_metadata.json +1 -1
  5. package/bundled/skills/app-planner/SKILL.md +12 -356
  6. package/bundled/skills/app-planner/references/infrastructure-convention-discovery.md +108 -0
  7. package/bundled/skills/app-planner/references/project-conventions-discovery.md +59 -0
  8. package/bundled/skills/app-planner/references/project-state-detection.md +88 -0
  9. package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +10 -0
  10. package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +9 -0
  11. package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  12. package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +17 -0
  13. package/bundled/skills/app-planner/references/rules/frontend/template.md +19 -0
  14. package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  15. package/bundled/skills/app-planner/references/rules-configuration.md +46 -0
  16. package/bundled/skills/bug-fix-workflow/SKILL.md +18 -54
  17. package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +41 -0
  18. package/bundled/skills/bug-planner/SKILL.md +20 -12
  19. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +9 -108
  20. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +98 -0
  21. package/bundled/skills/feature-pipeline-launcher/SKILL.md +20 -103
  22. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +81 -0
  23. package/bundled/skills/feature-planner/SKILL.md +5 -9
  24. package/bundled/skills/feature-workflow/SKILL.md +27 -184
  25. package/bundled/skills/feature-workflow/references/brainstorm-guide.md +137 -0
  26. package/bundled/skills/prizm-kit/SKILL.md +14 -2
  27. package/bundled/skills/prizmkit-code-review/SKILL.md +67 -136
  28. package/bundled/skills/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  29. package/bundled/skills/prizmkit-code-review/references/review-report-template.md +31 -0
  30. package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  31. package/bundled/skills/prizmkit-code-review/scripts/check_loop.py +186 -0
  32. package/bundled/skills/prizmkit-committer/SKILL.md +8 -0
  33. package/bundled/skills/prizmkit-deploy/SKILL.md +49 -73
  34. package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +120 -0
  35. package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  36. package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  37. package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +20 -0
  38. package/bundled/skills/prizmkit-implement/SKILL.md +7 -1
  39. package/bundled/skills/prizmkit-plan/SKILL.md +1 -83
  40. package/bundled/skills/prizmkit-plan/references/examples.md +85 -0
  41. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +14 -0
  42. package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
  43. package/bundled/skills/prizmkit-test/SKILL.md +3 -151
  44. package/bundled/skills/prizmkit-test/references/examples.md +70 -0
  45. package/bundled/skills/prizmkit-test/references/test-generation-steps.md +49 -0
  46. package/bundled/skills/prizmkit-test/references/test-report-template.md +42 -0
  47. package/bundled/skills/recovery-workflow/SKILL.md +24 -103
  48. package/bundled/skills/recovery-workflow/references/detection.md +58 -0
  49. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +9 -96
  50. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +88 -0
  51. package/bundled/skills/refactor-planner/SKILL.md +15 -157
  52. package/bundled/skills/refactor-planner/references/fast-path.md +59 -0
  53. package/bundled/skills/refactor-planner/references/planning-phases.md +135 -0
  54. package/bundled/skills/refactor-workflow/SKILL.md +18 -178
  55. package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +116 -0
  56. package/bundled/skills-windows/app-planner/SKILL.md +12 -358
  57. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +108 -0
  58. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +59 -0
  59. package/bundled/skills-windows/app-planner/references/project-state-detection.md +90 -0
  60. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +10 -0
  61. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +9 -0
  62. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  63. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +17 -0
  64. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +19 -0
  65. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  66. package/bundled/skills-windows/app-planner/references/rules-configuration.md +46 -0
  67. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +18 -54
  68. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +41 -0
  69. package/bundled/skills-windows/bug-planner/SKILL.md +20 -12
  70. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +6 -91
  71. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +94 -0
  72. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +19 -88
  73. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +77 -0
  74. package/bundled/skills-windows/feature-planner/SKILL.md +5 -9
  75. package/bundled/skills-windows/feature-workflow/SKILL.md +27 -184
  76. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +137 -0
  77. package/bundled/skills-windows/prizm-kit/SKILL.md +14 -2
  78. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +67 -136
  79. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  80. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +31 -0
  81. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  82. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +186 -0
  83. package/bundled/skills-windows/prizmkit-committer/SKILL.md +8 -0
  84. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +50 -74
  85. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +120 -0
  86. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +3 -3
  87. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  88. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  89. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +20 -0
  90. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +2 -2
  91. package/bundled/skills-windows/prizmkit-implement/SKILL.md +7 -1
  92. package/bundled/skills-windows/prizmkit-plan/SKILL.md +1 -83
  93. package/bundled/skills-windows/prizmkit-plan/references/examples.md +85 -0
  94. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +14 -0
  95. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +1 -1
  96. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +1 -1
  97. package/bundled/skills-windows/prizmkit-test/SKILL.md +3 -151
  98. package/bundled/skills-windows/prizmkit-test/references/examples.md +70 -0
  99. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +49 -0
  100. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +42 -0
  101. package/bundled/skills-windows/recovery-workflow/SKILL.md +24 -125
  102. package/bundled/skills-windows/recovery-workflow/references/detection.md +58 -0
  103. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +8 -77
  104. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +82 -0
  105. package/bundled/skills-windows/refactor-planner/SKILL.md +15 -157
  106. package/bundled/skills-windows/refactor-planner/references/fast-path.md +59 -0
  107. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +135 -0
  108. package/bundled/skills-windows/refactor-workflow/SKILL.md +18 -178
  109. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +116 -0
  110. package/package.json +1 -1
@@ -26,39 +26,14 @@ User says:
26
26
 
27
27
  ## Overview
28
28
 
29
- ```
30
- feature-workflow <idea / requirements>
31
-
32
- ├── Phase 1: Brainstorm → collect materials → parallel deep read → discuss requirements
33
-
34
- ├── Phase 2: Plan → feature-planner → .prizmkit/plans/feature-list.json
35
-
36
- ├── Phase 3: Launch → feature-pipeline-launcher → pipeline execution
37
-
38
- └── Phase 4: Monitor → track progress → report results
39
- ```
40
-
41
- ### What This Skill Does
29
+ Given an idea or requirements, the workflow runs four phases:
42
30
 
43
- | Phase | Action | Result |
44
- |-------|--------|--------|
45
- | 1 | **Brainstorm** — collect reference materials, parallel deep read code & docs, discuss requirements grounded in real context | Fully clarified requirements document |
46
- | 2 | Call `feature-planner` with clarified requirements | `.prizmkit/plans/feature-list.json` with N features |
47
- | 3 | Call `feature-pipeline-launcher` | Pipeline started (execution mode chosen by user via launcher) |
48
- | 4 | Monitor progress | Status updates, completion report |
31
+ 1. **Brainstorm** collect reference materials, parallel deep read code & docs, discuss requirements grounded in real context → fully clarified requirements
32
+ 2. **Plan** — call `feature-planner` with clarified requirements → `.prizmkit/plans/feature-list.json` with N features
33
+ 3. **Launch** — call `feature-pipeline-launcher` pipeline started (execution mode chosen by user via launcher)
34
+ 4. **Monitor** track progress status updates, completion report
49
35
 
50
- ### Why This Skill Exists
51
-
52
- Without this skill, users must:
53
- 1. Figure out all requirements themselves
54
- 2. Invoke `feature-planner` → wait for .prizmkit/plans/feature-list.json
55
- 3. Invoke `feature-pipeline-launcher` → wait for pipeline start
56
- 4. Manually check progress
57
-
58
- With this skill, users can:
59
- 1. Say "Build a task management App" with a rough idea
60
- 2. The skill brainstorms to fill in all gaps
61
- 3. All planning + execution happens automatically
36
+ The value: the user starts from a rough idea, the skill brainstorms to fill the gaps, and planning + execution happen automatically — no need to manually invoke each planner/launcher and poll for progress.
62
37
 
63
38
  ### Branch Management
64
39
 
@@ -102,14 +77,14 @@ When user says "add features to existing project" or the project already has fea
102
77
 
103
78
  **Goal**: Through interactive Q&A and deep context reading, transform the user's rough idea into fully clarified, implementation-ready requirements. This phase is the foundation for high-quality code generation — vague requirements produce vague code.
104
79
 
105
- **CRITICAL RULE**: The number of questions is **unlimited**. Do NOT rush through this phase. Ask as many rounds as needed until every aspect is clear. The framework strives for perfect code generation, which requires perfect understanding of requirements.
80
+ Critical rule: the number of questions is unlimited. Do NOT rush through this phase. Ask as many rounds as needed until every aspect is clear. The framework strives for perfect code generation, which requires perfect understanding of requirements.
106
81
 
107
82
  ### Step 1.1: Understand the User's Vision
108
83
 
109
84
  Ask the user to describe what they want to build. Listen for:
110
- - **What** the system/feature does (core functionality)
111
- - **Who** uses it (user roles, personas)
112
- - **Why** it's needed (business value, problem being solved)
85
+ - What the system/feature does (core functionality)
86
+ - Who uses it (user roles, personas)
87
+ - Why it's needed (business value, problem being solved)
113
88
 
114
89
  ### Step 1.2: Collect Reference Materials
115
90
 
@@ -131,71 +106,11 @@ Record everything the user provides — these become inputs for Step 1.3.
131
106
 
132
107
  ### Step 1.3: Parallel Deep Reading
133
108
 
134
- **Goal**: Build comprehensive understanding of the project context before discussing detailed requirements. Spawn multiple agents in parallel to read all relevant materials simultaneously.
135
-
136
- **Parallel reading tasks** (launch concurrently):
137
-
138
- | Agent | What to read | Purpose |
139
- |-------|-------------|---------|
140
- | Agent A | User-provided code paths — read existing source files | Understand current architecture, patterns, conventions |
141
- | Agent B | User-provided documents — design docs, specs, PRDs | Understand intended requirements and constraints |
142
- | Agent C | `.prizmkit/prizm-docs/` — root.prizm, L1/L2 docs, TRAPS, RULES | Understand existing architecture knowledge and known pitfalls |
143
- | Agent D | Database/schema files + `.prizmkit/config.json` | Understand data model and tech stack preferences |
144
-
145
- **Also gather** (can be included in any agent's task):
146
- - Directory structure of the project
147
- - Existing test patterns and conventions
148
- - Dependency relationships between existing modules
149
-
150
- **After all agents complete**: Synthesize findings into a coherent understanding before proceeding to discussion.
109
+ Read `${SKILL_DIR}/references/brainstorm-guide.md` §Step 1.3 for the parallel agent dispatch procedure spawn 4 agents (A: code paths, B: documents, C: prizm-docs, D: database/config) to build comprehensive project context before discussion. Synthesize findings before proceeding.
151
110
 
152
111
  ### Step 1.4: Discuss Requirements
153
112
 
154
- **Now** with deep knowledge of the actual codebase and documentsdiscuss the requirements with the user. This discussion is grounded in real context, not abstract questions.
155
-
156
- Present what you learned from the parallel reading:
157
- - Current project structure and patterns (with specific references)
158
- - Existing data model and schema conventions
159
- - Known TRAPS and pitfalls from `.prizmkit/prizm-docs/`
160
- - Integration points with existing modules
161
-
162
- Then ask targeted questions based on what you read. **Adapt question depth to the feature complexity** — a simple CRUD feature needs fewer questions than a real-time collaboration system.
163
-
164
- **Functional Requirements:**
165
- - What are the core user actions/workflows?
166
- - What inputs does the system accept? What outputs does it produce?
167
- - What are the key business rules and validation logic?
168
- - Are there different user roles with different permissions?
169
-
170
- **Data Model & Database** (if applicable):
171
- - What entities/data need to be stored?
172
- - What are the relationships between entities?
173
- - Are there existing database tables this feature must integrate with?
174
- - What fields are required vs optional? What data types?
175
- - Any unique constraints, indexes, or special query patterns needed?
176
- - **RULE**: If the project has existing database tables, ALL new table designs must reference and conform to the existing schema style (naming conventions, ID strategy, timestamp patterns, constraint patterns). Ask the user to confirm the data model before proceeding.
177
-
178
- **User Experience:**
179
- - What does the user see and interact with?
180
- - What is the expected flow/sequence of actions?
181
- - How should errors be displayed to the user?
182
- - Are there any specific UI/UX requirements?
183
-
184
- **Integration & Architecture:**
185
- - "Based on the existing code, this feature would integrate with [modules]. Does that match your expectations?"
186
- - Any external APIs or services involved?
187
- - What authentication/authorization model applies?
188
- - Any real-time requirements (WebSocket, SSE, polling)?
189
-
190
- **Edge Cases & Error Handling:**
191
- - What happens when things go wrong? (network failure, invalid input, concurrent access)
192
- - What are the boundary conditions? (empty states, max limits, permissions denied)
193
- - Any rate limiting, quotas, or resource constraints?
194
-
195
- **Non-Functional Requirements:**
196
- - Performance expectations? (response time, throughput)
197
- - Scalability considerations?
198
- - Security requirements? (encryption, audit logs, compliance)
113
+ Read `${SKILL_DIR}/references/brainstorm-guide.md` §Step 1.4 for the full requirements discussion frameworkfunctional requirements, data model, user experience, integration/architecture, edge cases, and non-functional requirements. Ask targeted questions based on what was learned from parallel reading. **Adapt question depth to the feature complexity.**
199
114
 
200
115
  ### Step 1.5: Confirm and Supplement
201
116
 
@@ -206,57 +121,11 @@ After the discussion:
206
121
  3. **Identify gaps** — if any areas are still unclear, list them explicitly and ask follow-up questions
207
122
  4. **Repeat** until the user confirms: "That covers everything" or "Let's proceed"
208
123
 
209
- **Signs that brainstorming is complete:**
210
- - All functional requirements have concrete acceptance criteria
211
- - Data model entities and relationships are defined
212
- - Edge cases and error handling are addressed
213
- - Integration points are identified
214
- - The user has confirmed the summary is accurate
215
-
216
- **Signs that more questions are needed:**
217
- - User's answers contain vague terms ("handle it appropriately", "make it user-friendly", "standard behavior")
218
- - Core business rules are undefined ("depends on the situation")
219
- - Data relationships are unclear ("somehow connected")
220
- - User says "I'm not sure" — help them think through it with concrete options
124
+ Read `${SKILL_DIR}/references/brainstorm-guide.md` §Completion Signs for the full checklist of when brainstorming is complete vs when more questions are needed.
221
125
 
222
126
  ### Step 1.6: Requirements Summary
223
127
 
224
- Once brainstorming is complete, produce a structured requirements summary:
225
-
226
- ```markdown
227
- ## Requirements Summary
228
-
229
- ### Project/Feature: [Name]
230
-
231
- ### Core Functionality
232
- - [Bullet list of what the system does]
233
-
234
- ### User Roles
235
- - [Role]: [What they can do]
236
-
237
- ### Data Model Overview
238
- - [Entity]: [Key fields, relationships]
239
-
240
- ### Key Business Rules
241
- - [Rule 1]
242
- - [Rule 2]
243
-
244
- ### Integration Points
245
- - [External system/API/module]
246
-
247
- ### Edge Cases & Error Handling
248
- - [Case]: [Expected behavior]
249
-
250
- ### Non-Functional Requirements
251
- - [Requirement]
252
-
253
- ### Reference Materials Reviewed
254
- - [List of code paths, documents, .prizmkit/prizm-docs/ files that were read]
255
-
256
- ### Confirmed by user: ✓
257
- ```
258
-
259
- Present this summary to the user and get explicit confirmation before proceeding.
128
+ Once brainstorming is complete, produce a structured requirements summary. Read `${SKILL_DIR}/references/brainstorm-guide.md` §Requirements Summary Template for the structured output format. Present the summary to the user and get explicit confirmation before proceeding.
260
129
 
261
130
  **CHECKPOINT CP-FW-0**: Requirements fully clarified and confirmed by user.
262
131
 
@@ -266,7 +135,7 @@ Present this summary to the user and get explicit confirmation before proceeding
266
135
 
267
136
  After confirming requirements, assess whether this feature needs the full pipeline or can be done directly in the current session.
268
137
 
269
- **Simple feature Fast Path candidate** (ALL must be true):
138
+ **Simple feature** (Fast Path candidate ALL must be true):
270
139
  - Single module, no cross-module architectural impact
271
140
  - ≤2 new files to create
272
141
  - No new external dependencies or infrastructure changes
@@ -274,11 +143,18 @@ After confirming requirements, assess whether this feature needs the full pipeli
274
143
  - Clear acceptance criteria with existing patterns to follow
275
144
  - No dependency on other unbuilt features
276
145
 
277
- **User choice required (mandatory)**Use `AskUserQuestion` to present interactive selectable options:
146
+ **Complex feature** (Planning Path ANY is true):
147
+ - Cross-module impact (>2 modules affected)
148
+ - New infrastructure, dependencies, or architectural patterns required
149
+ - Multiple interrelated features with dependency ordering
150
+ - Data model or API design decisions needed
151
+ - Requires integration with external services
152
+
153
+ User choice is required (mandatory) — use `AskUserQuestion` to present interactive selectable options. Adjust the question framing to the assessment: for a simple feature, "This feature appears straightforward."; for a complex feature, "This feature is complex and will benefit from structured planning."
278
154
 
279
155
  ```
280
156
  AskUserQuestion:
281
- question: "This feature appears straightforward. How would you like to proceed?"
157
+ question: "How would you like to proceed?" # prefix with the framing note above
282
158
  header: "Approach"
283
159
  options:
284
160
  - label: "Implement now (fast path)"
@@ -293,33 +169,10 @@ AskUserQuestion:
293
169
  3. After implementation, run `/prizmkit-code-review` for quality check
294
170
  4. Commit via `/prizmkit-committer` with `feat(<scope>):` prefix
295
171
  5. Run `/prizmkit-retrospective` to sync `.prizmkit/prizm-docs/`
296
- 6. **End workflow** — skip Phase 2/3/4
297
- - **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
298
-
299
- **Complex feature → Planning Path** (ANY is true):
300
- - Cross-module impact (>2 modules affected)
301
- - New infrastructure, dependencies, or architectural patterns required
302
- - Multiple interrelated features with dependency ordering
303
- - Data model or API design decisions needed
304
- - Requires integration with external services
305
-
306
- **User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
307
-
308
- ```
309
- AskUserQuestion:
310
- question: "This feature is complex and will benefit from structured planning. How would you like to proceed?"
311
- header: "Approach"
312
- options:
313
- - label: "Plan and implement now"
314
- description: "Create a plan and implement in this session using /prizmkit-plan + /prizmkit-implement"
315
- - label: "Add to feature list (pipeline)"
316
- description: "Generate .prizmkit/plans/feature-list.json via feature-planner, then launch pipeline for autonomous execution"
317
- ```
318
-
319
- - **Plan and implement now** → Invoke `/prizmkit-plan` with requirements → `/prizmkit-implement` → `/prizmkit-code-review` → `/prizmkit-committer` → `/prizmkit-retrospective`. **End workflow** — skip Phase 2/3/4.
172
+ 6. End workflow — skip Phase 2/3/4
320
173
  - **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
321
174
 
322
- **NEVER proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
175
+ Never proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.
323
176
 
324
177
  **CHECKPOINT CP-FW-0.5**: Approach selected by user (fast path or pipeline).
325
178
 
@@ -483,17 +336,7 @@ While the pipeline runs, the user can continue the conversation:
483
336
 
484
337
  ## Comparison with Alternative Workflows
485
338
 
486
- | Dimension | feature-workflow | bug-fix-workflow | refactor-workflow |
487
- |-----------|-----------------|------------------|-------------------|
488
- | **Purpose** | New features (batch) | Single bug fix (interactive) | Code restructuring (batch) |
489
- | **Brainstorming** | Yes — collect materials, parallel read, discuss | No (bug report is input) | Yes — clarify type, collect materials, parallel read, discuss |
490
- | **Planning Skill** | `feature-planner` | None (triage built-in) | `refactor-planner` |
491
- | **Branch** | Pipeline manages per-feature | `fix/<BUG_ID>-*` | Pipeline manages per-refactor |
492
- | **Execution** | Foreground or background daemon | In-session, interactive | Foreground or background daemon |
493
- | **Input** | Rough idea or requirements | Bug report / stack trace | Rough refactoring idea or target |
494
- | **Output** | Multiple `feat()` commits | Single `fix()` commit | Multiple `refactor()` commits |
495
- | **Behavior Change** | Expected (new functionality) | Fix behavior | Forbidden (structure only) |
496
- | **Batch alternative** | (this is the batch flow) | `bug-planner` + `bugfix-pipeline-launcher` | (this is the batch flow) |
339
+ Read `${SKILL_DIR}/references/brainstorm-guide.md` §Comparison for the full comparison table (feature-workflow vs bug-fix-workflow vs refactor-workflow across 9 dimensions).
497
340
 
498
341
  ---
499
342
 
@@ -0,0 +1,137 @@
1
+ # Brainstorm Guide — Detailed Procedures
2
+
3
+ Procedural details for Phase 1 brainstorming in feature-workflow.
4
+
5
+ ## Step 1.3: Parallel Deep Reading
6
+
7
+ **Goal**: Build comprehensive understanding of the project context before discussing detailed requirements. Spawn multiple agents in parallel to read all relevant materials simultaneously.
8
+
9
+ **Parallel reading tasks** (launch concurrently):
10
+
11
+ | Agent | What to read | Purpose |
12
+ |-------|-------------|---------|
13
+ | Agent A | User-provided code paths — read existing source files | Understand current architecture, patterns, conventions |
14
+ | Agent B | User-provided documents — design docs, specs, PRDs | Understand intended requirements and constraints |
15
+ | Agent C | `.prizmkit/prizm-docs/` — root.prizm, L1/L2 docs, TRAPS, RULES | Understand existing architecture knowledge and known pitfalls |
16
+ | Agent D | Database/schema files + `.prizmkit/config.json` | Understand data model and tech stack preferences |
17
+
18
+ **Also gather** (can be included in any agent's task):
19
+ - Directory structure of the project
20
+ - Existing test patterns and conventions
21
+ - Dependency relationships between existing modules
22
+
23
+ **After all agents complete**: Synthesize findings into a coherent understanding before proceeding to discussion.
24
+
25
+ ## Step 1.4: Discuss Requirements
26
+
27
+ **Now** — with deep knowledge of the actual codebase and documents — discuss the requirements with the user. This discussion is grounded in real context, not abstract questions.
28
+
29
+ Present what you learned from the parallel reading:
30
+ - Current project structure and patterns (with specific references)
31
+ - Existing data model and schema conventions
32
+ - Known TRAPS and pitfalls from `.prizmkit/prizm-docs/`
33
+ - Integration points with existing modules
34
+
35
+ Then ask targeted questions based on what you read. **Adapt question depth to the feature complexity** — a simple CRUD feature needs fewer questions than a real-time collaboration system.
36
+
37
+ ### Functional Requirements
38
+ - What are the core user actions/workflows?
39
+ - What inputs does the system accept? What outputs does it produce?
40
+ - What are the key business rules and validation logic?
41
+ - Are there different user roles with different permissions?
42
+
43
+ ### Data Model & Database (if applicable)
44
+ - What entities/data need to be stored?
45
+ - What are the relationships between entities?
46
+ - Are there existing database tables this feature must integrate with?
47
+ - What fields are required vs optional? What data types?
48
+ - Any unique constraints, indexes, or special query patterns needed?
49
+ - **RULE**: If the project has existing database tables, ALL new table designs must reference and conform to the existing schema style (naming conventions, ID strategy, timestamp patterns, constraint patterns). Ask the user to confirm the data model before proceeding.
50
+
51
+ ### User Experience
52
+ - What does the user see and interact with?
53
+ - What is the expected flow/sequence of actions?
54
+ - How should errors be displayed to the user?
55
+ - Are there any specific UI/UX requirements?
56
+
57
+ ### Integration & Architecture
58
+ - "Based on the existing code, this feature would integrate with [modules]. Does that match your expectations?"
59
+ - Any external APIs or services involved?
60
+ - What authentication/authorization model applies?
61
+ - Any real-time requirements (WebSocket, SSE, polling)?
62
+
63
+ ### Edge Cases & Error Handling
64
+ - What happens when things go wrong? (network failure, invalid input, concurrent access)
65
+ - What are the boundary conditions? (empty states, max limits, permissions denied)
66
+ - Any rate limiting, quotas, or resource constraints?
67
+
68
+ ### Non-Functional Requirements
69
+ - Performance expectations? (response time, throughput)
70
+ - Scalability considerations?
71
+ - Security requirements? (encryption, audit logs, compliance)
72
+
73
+ ## Comparison with Alternative Workflows
74
+
75
+ | Dimension | feature-workflow | bug-fix-workflow | refactor-workflow |
76
+ |-----------|-----------------|------------------|--------------------|
77
+ | **Purpose** | New features (batch) | Single bug fix (interactive) | Code restructuring (batch) |
78
+ | **Brainstorming** | Yes — collect materials, parallel read, discuss | No (bug report is input) | Yes — clarify type, collect materials, parallel read, discuss |
79
+ | **Planning Skill** | `feature-planner` | None (triage built-in) | `refactor-planner` |
80
+ | **Branch** | Pipeline manages per-feature | `fix/<BUG_ID>-*` | Pipeline manages per-refactor |
81
+ | **Execution** | Foreground or background daemon | In-session, interactive | Foreground or background daemon |
82
+ | **Input** | Rough idea or requirements | Bug report / stack trace | Rough refactoring idea or target |
83
+ | **Output** | Multiple `feat()` commits | Single `fix()` commit | Multiple `refactor()` commits |
84
+ | **Behavior Change** | Expected (new functionality) | Fix behavior | Forbidden (structure only) |
85
+ | **Batch alternative** | (this is the batch flow) | `bug-planner` + `bugfix-pipeline-launcher` | (this is the batch flow) |
86
+
87
+ ## Completion Signs
88
+
89
+ **Signs that brainstorming is complete:**
90
+ - All functional requirements have concrete acceptance criteria
91
+ - Data model entities and relationships are defined
92
+ - Edge cases and error handling are addressed
93
+ - Integration points are identified
94
+ - The user has confirmed the summary is accurate
95
+
96
+ **Signs that more questions are needed:**
97
+ - User's answers contain vague terms ("handle it appropriately", "make it user-friendly", "standard behavior")
98
+ - Core business rules are undefined ("depends on the situation")
99
+ - Data relationships are unclear ("somehow connected")
100
+ - User says "I'm not sure" — help them think through it with concrete options
101
+
102
+ ## Requirements Summary Template
103
+
104
+ Once brainstorming is complete, produce a structured requirements summary using the following format. Present the summary to the user and get explicit confirmation before proceeding.
105
+
106
+ ```markdown
107
+ ## Requirements Summary
108
+
109
+ ### Project/Feature: [Name]
110
+
111
+ ### Core Functionality
112
+ - [Bullet list of what the system does]
113
+
114
+ ### User Roles
115
+ - [Role]: [What they can do]
116
+
117
+ ### Data Model Overview
118
+ - [Entity]: [Key fields, relationships]
119
+
120
+ ### Key Business Rules
121
+ - [Rule 1]
122
+ - [Rule 2]
123
+
124
+ ### Integration Points
125
+ - [External system/API/module]
126
+
127
+ ### Edge Cases & Error Handling
128
+ - [Case]: [Expected behavior]
129
+
130
+ ### Non-Functional Requirements
131
+ - [Requirement]
132
+
133
+ ### Reference Materials Reviewed
134
+ - [List of code paths, documents, .prizmkit/prizm-docs/ files that were read]
135
+
136
+ ### Confirmed by user: ✓
137
+ ```
@@ -1,10 +1,21 @@
1
1
  ---
2
2
  name: "prizm-kit"
3
- description: "Full-lifecycle dev toolkit index. Routes to the right PrizmKit skill for spec-driven development, Prizm docs, code quality, deployment, and knowledge management. Use when the user asks 'which command?', 'help', 'how do I start a feature', 'get started', 'what tools', 'dev workflow', 'lifecycle', or '/prizmkit'. Use this as the entry point for the full PrizmKit development lifecycle."
3
+ description: "Full-lifecycle dev toolkit index. Routes to the right PrizmKit skill for spec-driven development, Prizm docs, code quality, deployment, and knowledge management. Use when the user asks 'which command?', 'help', 'how do I start a feature', 'get started', 'what tools', 'dev workflow', 'lifecycle', or '/prizmkit'. Use this as the entry point for the full PrizmKit development lifecycle. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit — Full-Lifecycle Development Toolkit
7
7
 
8
+ ### When to Use
9
+ - User asks "which command?", "help", "how do I start a feature", "get started", "what tools"
10
+ - User wants to understand the PrizmKit development lifecycle
11
+ - User invokes "/prizmkit" or asks about dev workflow
12
+ - User is new to the project and needs orientation
13
+
14
+ ### When NOT to Use
15
+ - User already knows which specific skill to use — invoke it directly
16
+ - Mid-implementation — use the specific skill needed (/prizmkit-implement, /prizmkit-code-review, etc.)
17
+ - User wants to execute immediately without orientation — go directly to /prizmkit-plan or /prizmkit-implement
18
+
8
19
  ## Task Execution Model
9
20
 
10
21
  PrizmKit uses **headless mode** — each task runs as an independent AI CLI session with NO context carryover between tasks. Every session starts by reading docs and ends by maintaining docs.
@@ -61,7 +72,8 @@ All three follow the same per-task flow. Detailed documentation policies (when t
61
72
  | `/prizmkit-code-review` | Diagnose issues + produce Fix Instructions | "review", "check code", "is it ready to commit" |
62
73
  | `/prizmkit-retrospective` | Sync .prizmkit/prizm-docs/ with code changes | "retrospective", "retro", "sync docs", "wrap up" |
63
74
  | `/prizmkit-committer` | Safe git commit with Conventional Commits | "commit", "submit", "finish", "ship it" |
64
- | `/prizmkit-deploy` | Generate/update deployment documentation | "deploy docs", "deployment guide", "how to deploy" |
75
+ | `/prizmkit-test` | Generate + run tests, analyze coverage gaps, unified quality report | "test", "run tests", "check quality", "verify code", "补测试" |
76
+ | `/prizmkit-deploy` | Universal deployment gateway: SSH automation, cloud/Docker guided setup, status/logs/rollback | "deploy", "ship it", "go live", "rollback", "deploy status" |
65
77
  | `/prizmkit-init` | Project bootstrap + .prizmkit/prizm-docs/ setup | "init", "initialize", "take over this project" |
66
78
  | `/prizmkit-prizm-docs` | Doc management (init/status/rebuild/validate) | "check docs", "rebuild docs", "validate docs" |
67
79