prizmkit 1.1.79 → 1.1.80
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/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/scripts/init-pipeline.py +2 -0
- package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +2 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +10 -347
- package/bundled/skills/app-planner/references/infrastructure-convention-discovery.md +108 -0
- package/bundled/skills/app-planner/references/project-conventions-discovery.md +59 -0
- package/bundled/skills/app-planner/references/project-state-detection.md +88 -0
- package/bundled/skills/app-planner/references/rules-configuration.md +46 -0
- package/bundled/skills/bug-fix-workflow/SKILL.md +1 -30
- package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +66 -0
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +3 -40
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +49 -0
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +3 -46
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +55 -0
- package/bundled/skills/feature-workflow/SKILL.md +5 -121
- package/bundled/skills/feature-workflow/references/brainstorm-guide.md +137 -0
- package/bundled/skills/prizm-kit/SKILL.md +11 -0
- package/bundled/skills/prizmkit-code-review/SKILL.md +66 -135
- package/bundled/skills/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +31 -0
- package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
- package/bundled/skills/prizmkit-code-review/scripts/check_loop.py +186 -0
- package/bundled/skills/prizmkit-committer/SKILL.md +6 -0
- package/bundled/skills/prizmkit-deploy/SKILL.md +48 -72
- package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +120 -0
- package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
- package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
- package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +20 -0
- package/bundled/skills/prizmkit-implement/SKILL.md +6 -0
- package/bundled/skills/prizmkit-plan/SKILL.md +1 -83
- package/bundled/skills/prizmkit-plan/references/examples.md +85 -0
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +13 -0
- package/bundled/skills/prizmkit-test/SKILL.md +3 -151
- package/bundled/skills/prizmkit-test/references/examples.md +70 -0
- package/bundled/skills/prizmkit-test/references/test-generation-steps.md +49 -0
- package/bundled/skills/prizmkit-test/references/test-report-template.md +42 -0
- package/bundled/skills/recovery-workflow/SKILL.md +1 -30
- package/bundled/skills/recovery-workflow/references/detection.md +58 -0
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +3 -45
- package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +54 -0
- package/bundled/skills/refactor-planner/SKILL.md +9 -149
- package/bundled/skills/refactor-planner/references/fast-path.md +59 -0
- package/bundled/skills/refactor-planner/references/planning-phases.md +135 -0
- package/bundled/skills/refactor-workflow/SKILL.md +4 -103
- package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +116 -0
- package/bundled/skills-windows/app-planner/SKILL.md +10 -349
- package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +108 -0
- package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +59 -0
- package/bundled/skills-windows/app-planner/references/project-state-detection.md +90 -0
- package/bundled/skills-windows/app-planner/references/rules-configuration.md +46 -0
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +1 -30
- package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +66 -0
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +2 -29
- package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +49 -0
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +2 -35
- package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +55 -0
- package/bundled/skills-windows/feature-workflow/SKILL.md +5 -121
- package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +137 -0
- package/bundled/skills-windows/prizm-kit/SKILL.md +11 -0
- package/bundled/skills-windows/prizmkit-code-review/SKILL.md +66 -135
- package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
- package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +31 -0
- package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
- package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +186 -0
- package/bundled/skills-windows/prizmkit-committer/SKILL.md +6 -0
- package/bundled/skills-windows/prizmkit-deploy/SKILL.md +49 -73
- package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +120 -0
- package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +3 -3
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +20 -0
- package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +2 -2
- package/bundled/skills-windows/prizmkit-implement/SKILL.md +6 -0
- package/bundled/skills-windows/prizmkit-plan/SKILL.md +1 -83
- package/bundled/skills-windows/prizmkit-plan/references/examples.md +85 -0
- package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +13 -0
- package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +1 -1
- package/bundled/skills-windows/prizmkit-test/SKILL.md +3 -151
- package/bundled/skills-windows/prizmkit-test/references/examples.md +70 -0
- package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +49 -0
- package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +42 -0
- package/bundled/skills-windows/recovery-workflow/SKILL.md +1 -52
- package/bundled/skills-windows/recovery-workflow/references/detection.md +58 -0
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +2 -32
- package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +54 -0
- package/bundled/skills-windows/refactor-planner/SKILL.md +9 -149
- package/bundled/skills-windows/refactor-planner/references/fast-path.md +59 -0
- package/bundled/skills-windows/refactor-planner/references/planning-phases.md +135 -0
- package/bundled/skills-windows/refactor-workflow/SKILL.md +4 -103
- package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +116 -0
- package/package.json +1 -1
|
@@ -139,59 +139,11 @@ Record everything the user provides — these become inputs for Step 1.3.
|
|
|
139
139
|
|
|
140
140
|
### Step 1.3: Parallel Deep Reading
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
**Parallel reading tasks** (launch concurrently):
|
|
145
|
-
|
|
146
|
-
| Agent | What to read | Purpose |
|
|
147
|
-
|-------|-------------|---------|
|
|
148
|
-
| Agent A | User-provided code paths — read full source files | Understand current structure, interfaces, dependencies |
|
|
149
|
-
| Agent B | User-provided documents — design docs, proposals, wiki pages | Understand intended direction and constraints |
|
|
150
|
-
| Agent C | `.prizmkit/prizm-docs/` for affected modules — L1/L2 docs, TRAPS, RULES | Understand existing architecture knowledge and known pitfalls |
|
|
151
|
-
| Agent D | Test files for the target area — find and read existing tests | Understand current test coverage and behavior contracts |
|
|
152
|
-
|
|
153
|
-
**Also gather** (can be included in any agent's task):
|
|
154
|
-
- `.prizmkit/config.json` → tech stack preferences
|
|
155
|
-
- Directory structure of the target area
|
|
156
|
-
- Dependency relationships (imports/exports between target and other modules)
|
|
157
|
-
|
|
158
|
-
**After all agents complete**: Synthesize findings into a coherent understanding before proceeding to discussion.
|
|
142
|
+
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: test files) to build comprehensive understanding before discussion. Synthesize findings before proceeding.
|
|
159
143
|
|
|
160
144
|
### Step 1.4: Discuss Refactoring Plan
|
|
161
145
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Present what you learned from the parallel reading:
|
|
165
|
-
- Current code structure and its problems (with specific file/function references)
|
|
166
|
-
- Existing test coverage status (which areas are safe, which are risky)
|
|
167
|
-
- Known TRAPS and pitfalls from `.prizmkit/prizm-docs/`
|
|
168
|
-
- Dependencies and potential impact on other modules
|
|
169
|
-
|
|
170
|
-
Then ask targeted questions based on what you read. **Adapt question depth to the refactoring complexity** — a simple extract-method refactor needs fewer questions than a full module decomposition.
|
|
171
|
-
|
|
172
|
-
**Code Structure:**
|
|
173
|
-
- "I see the current structure does X — is the target state Y, or something different?"
|
|
174
|
-
- What's the target state? What should the code look like after refactoring?
|
|
175
|
-
- Are there specific code smells you've noticed? (duplication, deep nesting, god classes, tight coupling)
|
|
176
|
-
|
|
177
|
-
**Scope:**
|
|
178
|
-
- Based on the code I read, these modules are affected: [list]. Anything else in/out of scope?
|
|
179
|
-
- For incremental refactoring: what's the order of priority?
|
|
180
|
-
|
|
181
|
-
**Behavior Preservation:**
|
|
182
|
-
- "These public APIs/interfaces exist: [list]. Which must remain unchanged?"
|
|
183
|
-
- "I found these tests: [list]. Are they passing currently?"
|
|
184
|
-
- Any undocumented behavior that callers depend on?
|
|
185
|
-
|
|
186
|
-
**Risk Assessment:**
|
|
187
|
-
- "I found these TRAPS in .prizmkit/prizm-docs/: [list]. Any other known gotchas?"
|
|
188
|
-
- Does this code have external consumers (other teams, published APIs)?
|
|
189
|
-
- Any concurrent development happening in the target area?
|
|
190
|
-
|
|
191
|
-
**Constraints:**
|
|
192
|
-
- Timeline or urgency? (affects whether to do incremental vs comprehensive)
|
|
193
|
-
- Team coordination needed? (other developers working in the same area)
|
|
194
|
-
- Deployment concerns? (feature flags, backward compatibility, migration)
|
|
146
|
+
Read `${SKILL_DIR}/references/brainstorm-guide.md` §Step 1.4 for the full discussion framework — code structure, scope, behavior preservation, risk assessment, and constraints. Present what was learned from parallel reading, then ask targeted questions grounded in real code. **Adapt question depth to the refactoring complexity.**
|
|
195
147
|
|
|
196
148
|
### Step 1.5: Confirm and Supplement
|
|
197
149
|
|
|
@@ -202,62 +154,11 @@ After the discussion:
|
|
|
202
154
|
3. **Identify gaps** — if any areas are still unclear, list them explicitly and ask follow-up questions
|
|
203
155
|
4. **Repeat** until the user confirms: "That covers everything" or "Let's proceed"
|
|
204
156
|
|
|
205
|
-
|
|
206
|
-
- All refactoring goals have concrete target state descriptions
|
|
207
|
-
- Scope boundaries are clearly defined (in/out)
|
|
208
|
-
- Behavior preservation contracts are identified
|
|
209
|
-
- Risk areas are acknowledged and mitigation is discussed
|
|
210
|
-
- The user has confirmed the summary is accurate
|
|
211
|
-
|
|
212
|
-
**Signs that more questions are needed:**
|
|
213
|
-
- User's answers contain vague terms ("clean it up", "make it better", "fix the structure")
|
|
214
|
-
- Scope is undefined ("refactor everything" without specifics)
|
|
215
|
-
- No awareness of test coverage for the target area
|
|
216
|
-
- Risk areas are handwaved ("it should be fine")
|
|
217
|
-
- User says "I'm not sure" — help them think through it with concrete options
|
|
157
|
+
Read `${SKILL_DIR}/references/brainstorm-guide.md` §Completion Signs for the full checklist of when brainstorming is complete vs when more questions are needed.
|
|
218
158
|
|
|
219
159
|
### Step 1.6: Requirements Summary
|
|
220
160
|
|
|
221
|
-
Once brainstorming is complete, produce a structured goals summary
|
|
222
|
-
|
|
223
|
-
```markdown
|
|
224
|
-
## Refactoring Goals Summary
|
|
225
|
-
|
|
226
|
-
### Target: [Module/area name]
|
|
227
|
-
|
|
228
|
-
### Refactoring Type: [Incremental / Comprehensive / Targeted]
|
|
229
|
-
|
|
230
|
-
### Refactoring Objectives
|
|
231
|
-
- [Bullet list of what structural changes are needed and why]
|
|
232
|
-
|
|
233
|
-
### Current Problems
|
|
234
|
-
- [What's wrong with the current structure — with specific code references]
|
|
235
|
-
|
|
236
|
-
### Target State
|
|
237
|
-
- [What the code should look like after refactoring]
|
|
238
|
-
|
|
239
|
-
### Scope
|
|
240
|
-
- **In scope**: [files, modules, directories]
|
|
241
|
-
- **Out of scope**: [explicitly excluded areas]
|
|
242
|
-
|
|
243
|
-
### Behavior Preservation Contracts
|
|
244
|
-
- [What behavior must remain unchanged]
|
|
245
|
-
- [Key APIs/interfaces that must be preserved]
|
|
246
|
-
- [Existing test coverage status]
|
|
247
|
-
|
|
248
|
-
### Risk Assessment
|
|
249
|
-
- [Risk]: [Mitigation strategy]
|
|
250
|
-
|
|
251
|
-
### Reference Materials Reviewed
|
|
252
|
-
- [List of code paths, documents, .prizmkit/prizm-docs/ files that were read]
|
|
253
|
-
|
|
254
|
-
### Constraints
|
|
255
|
-
- [Timeline, coordination, deployment concerns]
|
|
256
|
-
|
|
257
|
-
### Confirmed by user: ✓
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
Present this summary to the user and get explicit confirmation before proceeding.
|
|
161
|
+
Once brainstorming is complete, produce a structured goals summary. Read `${SKILL_DIR}/references/brainstorm-guide.md` §Refactoring Goals Summary Template for the structured output format. Present the summary to the user and get explicit confirmation before proceeding.
|
|
261
162
|
|
|
262
163
|
**CHECKPOINT CP-RW-0**: Refactoring goals fully clarified and confirmed by user.
|
|
263
164
|
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Brainstorm Guide — Refactoring Context
|
|
2
|
+
|
|
3
|
+
Procedural details for deep code analysis and discussion during refactor-workflow Phase 1.
|
|
4
|
+
|
|
5
|
+
## Step 1.3: Parallel Deep Reading
|
|
6
|
+
|
|
7
|
+
**Goal**: Build comprehensive understanding of the target code and context before discussing plans. 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 full source files | Understand current structure, interfaces, dependencies |
|
|
14
|
+
| Agent B | User-provided documents — design docs, proposals, wiki pages | Understand intended direction and constraints |
|
|
15
|
+
| Agent C | `.prizmkit/prizm-docs/` for affected modules — L1/L2 docs, TRAPS, RULES | Understand existing architecture knowledge and known pitfalls |
|
|
16
|
+
| Agent D | Test files for the target area — find and read existing tests | Understand current test coverage and behavior contracts |
|
|
17
|
+
|
|
18
|
+
**Also gather** (can be included in any agent's task):
|
|
19
|
+
- `.prizmkit/config.json` → tech stack preferences
|
|
20
|
+
- Directory structure of the target area
|
|
21
|
+
- Dependency relationships (imports/exports between target and other modules)
|
|
22
|
+
|
|
23
|
+
**After all agents complete**: Synthesize findings into a coherent understanding before proceeding to discussion.
|
|
24
|
+
|
|
25
|
+
## Step 1.4: Discuss Refactoring Plan
|
|
26
|
+
|
|
27
|
+
**Now** — with deep knowledge of the actual code and documents — discuss the refactoring plan with the user. This discussion is grounded in real code, not abstract questions.
|
|
28
|
+
|
|
29
|
+
Present what you learned from the parallel reading:
|
|
30
|
+
- Current code structure and its problems (with specific file/function references)
|
|
31
|
+
- Existing test coverage status (which areas are safe, which are risky)
|
|
32
|
+
- Known TRAPS and pitfalls from `.prizmkit/prizm-docs/`
|
|
33
|
+
- Dependencies and potential impact on other modules
|
|
34
|
+
|
|
35
|
+
Then ask targeted questions based on what you read. **Adapt question depth to the refactoring complexity** — a simple extract-method refactor needs fewer questions than a full module decomposition.
|
|
36
|
+
|
|
37
|
+
### Code Structure
|
|
38
|
+
- "I see the current structure does X — is the target state Y, or something different?"
|
|
39
|
+
- What's the target state? What should the code look like after refactoring?
|
|
40
|
+
- Are there specific code smells you've noticed? (duplication, deep nesting, god classes, tight coupling)
|
|
41
|
+
|
|
42
|
+
### Scope
|
|
43
|
+
- Based on the code I read, these modules are affected: [list]. Anything else in/out of scope?
|
|
44
|
+
- For incremental refactoring: what's the order of priority?
|
|
45
|
+
|
|
46
|
+
### Behavior Preservation
|
|
47
|
+
- "These public APIs/interfaces exist: [list]. Which must remain unchanged?"
|
|
48
|
+
- "I found these tests: [list]. Are they passing currently?"
|
|
49
|
+
- Any undocumented behavior that callers depend on?
|
|
50
|
+
|
|
51
|
+
### Risk Assessment
|
|
52
|
+
- "I found these TRAPS in .prizmkit/prizm-docs/: [list]. Any other known gotchas?"
|
|
53
|
+
- Does this code have external consumers (other teams, published APIs)?
|
|
54
|
+
- Any concurrent development happening in the target area?
|
|
55
|
+
|
|
56
|
+
### Constraints
|
|
57
|
+
- Timeline or urgency? (affects whether to do incremental vs comprehensive)
|
|
58
|
+
- Team coordination needed? (other developers working in the same area)
|
|
59
|
+
- Deployment concerns? (feature flags, backward compatibility, migration)
|
|
60
|
+
|
|
61
|
+
## Completion Signs
|
|
62
|
+
|
|
63
|
+
**Signs that brainstorming is complete:**
|
|
64
|
+
- All refactoring goals have concrete target state descriptions
|
|
65
|
+
- Scope boundaries are clearly defined (in/out)
|
|
66
|
+
- Behavior preservation contracts are identified
|
|
67
|
+
- Risk areas are acknowledged and mitigation is discussed
|
|
68
|
+
- The user has confirmed the summary is accurate
|
|
69
|
+
|
|
70
|
+
**Signs that more questions are needed:**
|
|
71
|
+
- User's answers contain vague terms ("clean it up", "make it better", "fix the structure")
|
|
72
|
+
- Scope is undefined ("refactor everything" without specifics)
|
|
73
|
+
- No awareness of test coverage for the target area
|
|
74
|
+
- Risk areas are handwaved ("it should be fine")
|
|
75
|
+
- User says "I'm not sure" — help them think through it with concrete options
|
|
76
|
+
|
|
77
|
+
## Refactoring Goals Summary Template
|
|
78
|
+
|
|
79
|
+
Once brainstorming is complete, produce a structured goals summary using this template:
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
## Refactoring Goals Summary
|
|
83
|
+
|
|
84
|
+
### Target: [Module/area name]
|
|
85
|
+
|
|
86
|
+
### Refactoring Type: [Incremental / Comprehensive / Targeted]
|
|
87
|
+
|
|
88
|
+
### Refactoring Objectives
|
|
89
|
+
- [Bullet list of what structural changes are needed and why]
|
|
90
|
+
|
|
91
|
+
### Current Problems
|
|
92
|
+
- [What's wrong with the current structure — with specific code references]
|
|
93
|
+
|
|
94
|
+
### Target State
|
|
95
|
+
- [What the code should look like after refactoring]
|
|
96
|
+
|
|
97
|
+
### Scope
|
|
98
|
+
- **In scope**: [files, modules, directories]
|
|
99
|
+
- **Out of scope**: [explicitly excluded areas]
|
|
100
|
+
|
|
101
|
+
### Behavior Preservation Contracts
|
|
102
|
+
- [What behavior must remain unchanged]
|
|
103
|
+
- [Key APIs/interfaces that must be preserved]
|
|
104
|
+
- [Existing test coverage status]
|
|
105
|
+
|
|
106
|
+
### Risk Assessment
|
|
107
|
+
- [Risk]: [Mitigation strategy]
|
|
108
|
+
|
|
109
|
+
### Reference Materials Reviewed
|
|
110
|
+
- [List of code paths, documents, .prizmkit/prizm-docs/ files that were read]
|
|
111
|
+
|
|
112
|
+
### Constraints
|
|
113
|
+
- [Timeline, coordination, deployment concerns]
|
|
114
|
+
|
|
115
|
+
### Confirmed by user: ✓
|
|
116
|
+
```
|