prizmkit 1.0.13 → 1.0.15

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 (84) hide show
  1. package/bin/create-prizmkit.js +4 -1
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/adapters/claude/command-adapter.js +35 -4
  4. package/bundled/adapters/claude/rules-adapter.js +6 -58
  5. package/bundled/adapters/claude/team-adapter.js +2 -2
  6. package/bundled/adapters/codebuddy/agent-adapter.js +0 -1
  7. package/bundled/adapters/codebuddy/rules-adapter.js +30 -0
  8. package/bundled/adapters/shared/frontmatter.js +3 -1
  9. package/bundled/dev-pipeline/README.md +13 -3
  10. package/bundled/dev-pipeline/launch-bugfix-daemon.sh +10 -0
  11. package/bundled/dev-pipeline/launch-daemon.sh +18 -4
  12. package/bundled/dev-pipeline/lib/common.sh +105 -0
  13. package/bundled/dev-pipeline/retry-bug.sh +20 -2
  14. package/bundled/dev-pipeline/retry-feature.sh +20 -2
  15. package/bundled/dev-pipeline/run-bugfix.sh +57 -57
  16. package/bundled/dev-pipeline/run.sh +75 -59
  17. package/bundled/dev-pipeline/scripts/check-session-status.py +47 -2
  18. package/bundled/dev-pipeline/scripts/cleanup-logs.py +192 -0
  19. package/bundled/dev-pipeline/scripts/detect-stuck.py +15 -3
  20. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +32 -27
  21. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +23 -23
  22. package/bundled/dev-pipeline/scripts/update-feature-status.py +50 -2
  23. package/bundled/dev-pipeline/scripts/utils.py +22 -0
  24. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +18 -1
  25. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +19 -1
  26. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +18 -2
  27. package/bundled/dev-pipeline/templates/session-status-schema.json +7 -1
  28. package/bundled/dev-pipeline/tests/__init__.py +0 -0
  29. package/bundled/dev-pipeline/tests/conftest.py +133 -0
  30. package/bundled/dev-pipeline/tests/test_check_session.py +127 -0
  31. package/bundled/dev-pipeline/tests/test_cleanup_logs.py +119 -0
  32. package/bundled/dev-pipeline/tests/test_detect_stuck.py +207 -0
  33. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +181 -0
  34. package/bundled/dev-pipeline/tests/test_generate_prompt.py +190 -0
  35. package/bundled/dev-pipeline/tests/test_init_bugfix_pipeline.py +153 -0
  36. package/bundled/dev-pipeline/tests/test_init_pipeline.py +241 -0
  37. package/bundled/dev-pipeline/tests/test_update_bug_status.py +142 -0
  38. package/bundled/dev-pipeline/tests/test_update_feature_status.py +277 -0
  39. package/bundled/dev-pipeline/tests/test_utils.py +141 -0
  40. package/bundled/rules/USAGE.md +153 -0
  41. package/bundled/rules/_rules-metadata.json +43 -0
  42. package/bundled/rules/general/prefer-linux-commands.md +9 -0
  43. package/bundled/rules/prizm/prizm-commit-workflow.md +10 -0
  44. package/bundled/rules/prizm/prizm-documentation.md +80 -0
  45. package/bundled/rules/prizm/prizm-progressive-loading.md +11 -0
  46. package/bundled/skills/_metadata.json +162 -67
  47. package/bundled/skills/app-planner/SKILL.md +252 -499
  48. package/bundled/skills/app-planner/assets/evaluation-guide.md +44 -0
  49. package/bundled/skills/app-planner/scripts/validate-and-generate.py +143 -4
  50. package/bundled/skills/bug-planner/SKILL.md +58 -13
  51. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +5 -7
  52. package/bundled/skills/dev-pipeline-launcher/SKILL.md +16 -7
  53. package/bundled/skills/feature-workflow/SKILL.md +175 -234
  54. package/bundled/skills/prizm-kit/SKILL.md +17 -31
  55. package/bundled/skills/{prizmkit-adr-manager → prizmkit-tool-adr-manager}/SKILL.md +6 -7
  56. package/bundled/skills/{prizmkit-api-doc-generator → prizmkit-tool-api-doc-generator}/SKILL.md +4 -5
  57. package/bundled/skills/{prizmkit-bug-reproducer → prizmkit-tool-bug-reproducer}/SKILL.md +4 -5
  58. package/bundled/skills/{prizmkit-ci-cd-generator → prizmkit-tool-ci-cd-generator}/SKILL.md +4 -5
  59. package/bundled/skills/{prizmkit-db-migration → prizmkit-tool-db-migration}/SKILL.md +4 -5
  60. package/bundled/skills/{prizmkit-dependency-health → prizmkit-tool-dependency-health}/SKILL.md +3 -4
  61. package/bundled/skills/{prizmkit-deployment-strategy → prizmkit-tool-deployment-strategy}/SKILL.md +4 -5
  62. package/bundled/skills/{prizmkit-error-triage → prizmkit-tool-error-triage}/SKILL.md +4 -5
  63. package/bundled/skills/{prizmkit-log-analyzer → prizmkit-tool-log-analyzer}/SKILL.md +4 -5
  64. package/bundled/skills/{prizmkit-monitoring-setup → prizmkit-tool-monitoring-setup}/SKILL.md +4 -5
  65. package/bundled/skills/{prizmkit-onboarding-generator → prizmkit-tool-onboarding-generator}/SKILL.md +4 -5
  66. package/bundled/skills/{prizmkit-perf-profiler → prizmkit-tool-perf-profiler}/SKILL.md +4 -5
  67. package/bundled/skills/{prizmkit-security-audit → prizmkit-tool-security-audit}/SKILL.md +3 -4
  68. package/bundled/skills/{prizmkit-tech-debt-tracker → prizmkit-tool-tech-debt-tracker}/SKILL.md +3 -4
  69. package/bundled/skills/refactor-skill/SKILL.md +371 -0
  70. package/bundled/skills/refactor-workflow/SKILL.md +17 -119
  71. package/bundled/templates/hooks/commit-intent-claude.json +1 -1
  72. package/bundled/templates/hooks/commit-intent-codebuddy.json +1 -1
  73. package/bundled/templates/hooks/prizm-pre-commit.sh +58 -0
  74. package/bundled/templates/hooks/validate-prizm-docs.sh +84 -0
  75. package/package.json +1 -1
  76. package/src/detect-platform.js +20 -8
  77. package/src/external-skills.js +71 -0
  78. package/src/index.js +66 -8
  79. package/src/metadata.js +36 -0
  80. package/src/scaffold.js +200 -31
  81. package/bundled/skills/prizmkit-bug-fix-workflow/SKILL.md +0 -356
  82. package/bundled/templates/claude-md-template.md +0 -38
  83. package/bundled/templates/codebuddy-md-template.md +0 -35
  84. /package/bundled/skills/{prizmkit-adr-manager → prizmkit-tool-adr-manager}/assets/adr-template.md +0 -0
@@ -1,309 +1,254 @@
1
1
  ---
2
2
  name: "feature-workflow"
3
- tier: 1
4
- description: "[Tier 1] End-to-end feature workflow: specify plan tasksanalyzeimplement review → commit. 7-phase pipeline with resume support and fast path for simple changes. (project)"
3
+ tier: companion
4
+ description: "One-stop entry point for feature development. Orchestrates app-plannerdev-pipeline-launcherbackground execution. Handles multi-feature batch development from a single request. (project)"
5
5
  ---
6
6
 
7
- # PrizmKit Feature Workflow
7
+ # Feature Workflow
8
8
 
9
- End-to-end orchestration skill for new features. Chains existing PrizmKit skills (specify, plan, tasks, analyze, implement, code-review, committer, summarize) into a 7-phase pipeline with standardized artifacts and resume support.
9
+ One-stop entry point for feature development. Orchestrates the complete flow from requirements to committed code in a single invocation.
10
10
 
11
- ## Overview
12
-
13
- ```
14
- prizmkit.feature <需求描述>
15
- → Phase 1: Specify → spec.md
16
- → Phase 2: Plan → plan.md
17
- → Phase 3: Tasks → tasks.md
18
- → Phase 4: Analyze → (consistency report)
19
- → Phase 5: Implement → (code)
20
- → Phase 6: Review → (review report)
21
- → Phase 7: Commit → git commit + REGISTRY
22
- ```
23
-
24
- ### Pipeline Phases
25
-
26
- | Phase | Name | Skill Used | Artifact |
27
- |-------|------|-----------|----------|
28
- | 1 | Specify 需求规格 | `prizmkit.specify` | → `spec.md` |
29
- | 2 | Plan 技术方案 | `prizmkit.plan` | → `plan.md` |
30
- | 3 | Tasks 任务拆解 | `prizmkit.tasks` | → `tasks.md` |
31
- | 4 | Analyze 一致性检查 | `prizmkit.analyze` | (quality report) |
32
- | 5 | Implement 实现 | `prizmkit.implement` | (code changes) |
33
- | 6 | Code Review | `prizmkit.code-review` | (review report) |
34
- | 7 | Commit & Archive | `prizmkit.committer` + `prizmkit.summarize` | git commit + REGISTRY |
35
-
36
- ### Artifacts
37
-
38
- Standard feature artifacts stored at `.prizmkit/specs/<feature-slug>/`:
39
- - **`spec.md`** — Feature specification (Phase 1)
40
- - **`plan.md`** — Technical implementation plan (Phase 2)
41
- - **`tasks.md`** — Executable task breakdown (Phase 3)
42
-
43
- ## Commands
44
-
45
- ### prizmkit.feature \<需求描述\>
11
+ ## When to Use
46
12
 
47
- Execute the full feature pipeline from natural language description to committed code.
13
+ User says:
14
+ - "开发一个新应用", "构建 XXX 系统", "做一个项目"
15
+ - "一键完成这些特性", "批量实现这些需求"
16
+ - "从零开始做一个任务管理 App"
17
+ - "帮我实现用户登录、注册、头像上传这些功能"
18
+ - After receiving a batch of related feature requests
48
19
 
49
- **INPUT**: Natural language feature description. Can be:
50
- - A brief one-liner (e.g., "添加用户头像上传功能")
51
- - A detailed requirement paragraph
52
- - A reference to an existing spec file
20
+ **Do NOT use this skill when:**
21
+ - User only wants to plan features (use `app-planner` directly)
22
+ - User only wants to launch pipeline for existing feature-list.json (use `dev-pipeline-launcher`)
23
+ - User wants to fix bugs (use `bug-planner` + `bugfix-pipeline-launcher`)
24
+ - User wants to refactor code (use `refactor-workflow`)
53
25
 
54
26
  ---
55
27
 
56
- ## Phase 1: Specify — 需求规格
28
+ ## Overview
57
29
 
58
- **Goal**: Transform natural language into structured feature specification.
30
+ ```
31
+ prizmkit.feature <需求描述>
32
+
33
+ ├── Phase 1: Plan → app-planner → feature-list.json
34
+
35
+ ├── Phase 2: Launch → dev-pipeline-launcher → background pipeline
36
+
37
+ └── Phase 3: Monitor → track progress → report results
38
+ ```
59
39
 
60
- **STEPS:**
40
+ ### What This Skill Does
61
41
 
62
- 1. **Parse feature description**: Extract:
63
- - Core functionality requested
64
- - User-facing behavior expectations
65
- - Implicit constraints and edge cases
66
- - Affected modules (from `.prizm-docs/`)
42
+ | Phase | Action | Result |
43
+ |-------|--------|--------|
44
+ | 1 | Call `app-planner` | `feature-list.json` with N features |
45
+ | 2 | Call `dev-pipeline-launcher` | Background pipeline started |
46
+ | 3 | Monitor progress | Status updates, completion report |
67
47
 
68
- 2. **Invoke `prizmkit.specify`** with the feature description:
69
- - Receive structured `spec.md` with user stories, acceptance criteria, scope
70
- - Artifact path: `.prizmkit/specs/<feature-slug>/spec.md`
48
+ ### Why This Skill Exists
71
49
 
72
- 3. **Validate spec completeness**:
73
- - All acceptance criteria are testable
74
- - Scope boundaries are clear
75
- - No ambiguous requirements remain
50
+ Without this skill, users must:
51
+ 1. Invoke `app-planner` wait for feature-list.json
52
+ 2. Invoke `dev-pipeline-launcher` wait for pipeline start
53
+ 3. Manually check progress
76
54
 
77
- **CHECKPOINT CP-FW-1**: `spec.md` exists and is well-formed.
55
+ With this skill, users can:
56
+ 1. Say "开发一个任务管理 App" and walk away
57
+ 2. All planning + execution happens automatically
78
58
 
79
59
  ---
80
60
 
81
- ## Phase 2: Plan — 技术方案
82
-
83
- **Goal**: Generate technical implementation plan from the specification.
61
+ ## Commands
84
62
 
85
- **STEPS:**
63
+ ### prizmkit.feature \<需求描述\>
86
64
 
87
- 1. **Read context**: spec.md, `.prizm-docs/` (PATTERNS, RULES, TRAPS)
65
+ One-stop feature development from natural language requirements.
88
66
 
89
- 2. **Invoke `prizmkit.plan`** with spec.md:
90
- - Receive `plan.md` with architecture decisions, file changes, dependencies
91
- - Artifact path: `.prizmkit/specs/<feature-slug>/plan.md`
67
+ **INPUT**: Natural language description of the project or features. Can be:
68
+ - A project vision: "开发一个任务管理 App,支持用户登录、任务增删改查、任务分类"
69
+ - A batch of features: "实现用户注册、登录、找回密码这三个功能"
70
+ - An incremental request: "给现有系统追加用户头像上传和昵称修改功能"
92
71
 
93
- 3. **Verify plan alignment**:
94
- - Plan addresses all spec acceptance criteria
95
- - No out-of-scope changes
96
- - Dependencies are identified
72
+ **FLOW**:
73
+ 1. Invoke `app-planner` with the description
74
+ 2. After feature-list.json is generated, invoke `dev-pipeline-launcher`
75
+ 3. Monitor and report progress
97
76
 
98
- **CHECKPOINT CP-FW-2**: `plan.md` exists and aligns with spec.md.
77
+ ### prizmkit.feature --from \<feature-list.json\>
99
78
 
100
- ---
79
+ Skip planning, directly launch pipeline from existing feature-list.json.
101
80
 
102
- ## Phase 3: Tasks — 任务拆解
81
+ **USE WHEN**:
82
+ - feature-list.json already exists
83
+ - User wants to restart/resume pipeline execution
103
84
 
104
- **Goal**: Break implementation plan into executable, ordered tasks.
85
+ **FLOW**:
86
+ 1. Skip `app-planner` (file already exists)
87
+ 2. Invoke `dev-pipeline-launcher` directly
88
+ 3. Monitor and report progress
105
89
 
106
- **STEPS:**
90
+ ### prizmkit.feature \<需求描述\> --incremental
107
91
 
108
- 1. **Invoke `prizmkit.tasks`** with plan.md:
109
- - Receive `tasks.md` with ordered task list, dependencies, estimated scope
110
- - Artifact path: `.prizmkit/specs/<feature-slug>/tasks.md`
92
+ Add new features to an existing project (incremental mode).
111
93
 
112
- 2. **Verify task coverage**:
113
- - Every plan item maps to at least one task
114
- - Tasks include test tasks (not just implementation)
115
- - Task order respects dependencies
94
+ **USE WHEN**:
95
+ - Project already has features implemented
96
+ - User wants to add new features to existing codebase
116
97
 
117
- **CHECKPOINT CP-FW-3**: `tasks.md` exists with complete task coverage.
98
+ **FLOW**:
99
+ 1. Invoke `app-planner` in incremental mode (reads existing feature-list.json)
100
+ 2. Append new features to existing list
101
+ 3. Invoke `dev-pipeline-launcher`
102
+ 4. Monitor and report progress
118
103
 
119
104
  ---
120
105
 
121
- ## Phase 4: Analyze — 一致性检查
122
-
123
- **Goal**: Cross-document consistency analysis before implementation begins.
124
-
125
- **STEPS:**
126
-
127
- 1. **Invoke `prizmkit.analyze`** with spec.md, plan.md, tasks.md:
128
- - Check spec ↔ plan alignment
129
- - Check plan ↔ tasks coverage
130
- - Check for contradictions or gaps
131
- - Verify naming consistency
132
-
133
- 2. **Handle analysis results**:
134
- - **PASS**: Proceed to Phase 5
135
- - **WARNINGS**: Log warnings, proceed to Phase 5
136
- - **ERRORS**: Return to the earliest affected phase to fix inconsistencies
106
+ ## Phase 1: Plan
137
107
 
138
- **CHECKPOINT CP-FW-4**: Analysis passes (no blocking errors).
108
+ **Goal**: Generate structured feature-list.json from natural language requirements.
139
109
 
140
- ---
141
-
142
- ## Phase 5: Implement — 实现
143
-
144
- **Goal**: Execute tasks.md with TDD approach.
110
+ **STEPS**:
145
111
 
146
- **STEPS:**
112
+ 1. **Invoke `app-planner` skill** with the user's requirement description:
113
+ - For new projects: standard planning mode
114
+ - For existing projects with `--incremental`: incremental planning mode
147
115
 
148
- 1. **Invoke `prizmkit.implement`**:
149
- - Follow tasks.md order
150
- - TDD: write tests first, then implementation
151
- - Run tests after each task completion
116
+ 2. **Interactive planning** (if app-planner requires clarification):
117
+ - Pass through any questions to the user
118
+ - Collect responses and continue planning
152
119
 
153
- 2. **Progress tracking**:
154
- - Mark tasks complete in tasks.md as they finish
155
- - If a task fails after 3 attempts → escalate to user
120
+ 3. **Validate output**:
121
+ - Confirm `feature-list.json` exists
122
+ - Show summary: total features, complexity distribution, dependencies
156
123
 
157
- 3. **Local verification**:
158
- - All new tests pass
159
- - All existing tests pass (no regression)
124
+ **CHECKPOINT CP-FW-1**: `feature-list.json` generated and validated.
160
125
 
161
- **CHECKPOINT CP-FW-5**: All tasks complete, all tests green.
126
+ **If user says `--from <file>`**: Skip this phase entirely.
162
127
 
163
128
  ---
164
129
 
165
- ## Phase 6: Code Review — 代码审查
166
-
167
- **Goal**: Ensure implementation quality and spec compliance.
168
-
169
- **STEPS:**
130
+ ## Phase 2: Launch
170
131
 
171
- 1. **Invoke `prizmkit.code-review`** (scoped to changed files):
172
- - Review dimensions:
173
- - **Spec compliance**: Does implementation match all acceptance criteria?
174
- - **Plan adherence**: Does code follow the technical plan?
175
- - **Code quality**: Clean, maintainable, follows project conventions?
176
- - **Test coverage**: Are all acceptance criteria tested?
177
- - Verdict: PASS / PASS_WITH_WARNINGS / NEEDS_FIXES
132
+ **Goal**: Start the background development pipeline.
178
133
 
179
- 2. **Handle review results**:
180
- - **PASS / PASS_WITH_WARNINGS**: Proceed to Phase 7
181
- - **NEEDS_FIXES**: Return to Phase 5 (max 2 review rounds)
134
+ **STEPS**:
182
135
 
183
- **CHECKPOINT CP-FW-6**: Code review passes.
136
+ 1. **Show feature summary** before launching:
137
+ ```
138
+ Ready to launch pipeline with N features:
139
+ F-001: User authentication (high complexity)
140
+ F-002: Task CRUD (medium complexity)
141
+ F-003: Task categories (low complexity)
184
142
 
185
- ---
143
+ Pipeline will run in background. Close this session will NOT stop it.
144
+ Proceed? (Y/n)
145
+ ```
186
146
 
187
- ## Phase 7: Commit & Archive — 提交与归档
147
+ 2. **Invoke `dev-pipeline-launcher` skill**:
148
+ - The launcher handles all prerequisites checks
149
+ - Starts `launch-daemon.sh` in background
150
+ - Returns PID and log file location
188
151
 
189
- **Goal**: Commit with proper conventions, archive to REGISTRY.
152
+ 3. **Verify launch success**:
153
+ - Confirm pipeline is running
154
+ - Record PID and log path for Phase 3
190
155
 
191
- **STEPS:**
156
+ **CHECKPOINT CP-FW-2**: Pipeline launched successfully in background.
192
157
 
193
- 1. **Invoke `prizmkit.committer`**:
194
- - Commit message: `feat(<scope>): <description>`
195
- - Include all implementation code + tests
196
- - Do NOT push
158
+ ---
197
159
 
198
- 2. **Invoke `prizmkit.summarize`**:
199
- - Archive feature to REGISTRY.md
200
- - Include: feature slug, description, files changed, date
160
+ ## Phase 3: Monitor
201
161
 
202
- 3. **Update `.prizm-docs/`** if needed:
203
- - New PATTERNS discovered during implementation
204
- - New TRAPS encountered
205
- - Updated module documentation
162
+ **Goal**: Track pipeline progress and report to user.
206
163
 
207
- **CHECKPOINT CP-FW-7**: Commit recorded, REGISTRY updated.
164
+ **STEPS**:
208
165
 
209
- ---
166
+ 1. **Initial status check**:
167
+ ```bash
168
+ dev-pipeline/launch-daemon.sh status
169
+ ```
210
170
 
211
- ## Fast Path — 快速路径
171
+ 2. **Offer monitoring options**:
172
+ - "I'll check progress periodically. Say 'status' anytime for an update."
173
+ - "Say 'logs' to see recent activity."
174
+ - "Say 'stop' to pause the pipeline."
212
175
 
213
- For simple features (single file, <50 lines, no cross-module impact):
176
+ 3. **Periodic progress reports** (when user asks):
177
+ ```bash
178
+ python3 dev-pipeline/scripts/update-feature-status.py \
179
+ --feature-list feature-list.json \
180
+ --state-dir dev-pipeline/state \
181
+ --action status
182
+ ```
214
183
 
215
- ```
216
- Phase 2 (Plan) → Phase 3 (Tasks) → Phase 5 (Implement) → Phase 6 (Review) → Phase 7 (Commit)
217
- ```
184
+ 4. **Completion report** (when pipeline finishes all features):
185
+ ```
186
+ ✅ Pipeline completed: 3/3 features
218
187
 
219
- Skip Phase 1 (Specify) and Phase 4 (Analyze).
188
+ Summary:
189
+ - F-001: User authentication → COMMITTED (feat: user auth)
190
+ - F-002: Task CRUD → COMMITTED (feat: task crud)
191
+ - F-003: Task categories → COMMITTED (feat: categories)
220
192
 
221
- **CRITERIA** (ALL must be true):
222
- - Single file change or tightly scoped to one module
223
- - Estimated change < 50 lines
224
- - No cross-module dependencies or side effects
225
- - No new user-facing API surface
226
- - Clear and unambiguous requirement
193
+ Next steps:
194
+ - Review changes: git log --oneline -5
195
+ - Run tests: npm test
196
+ - Push when ready: git push
197
+ ```
227
198
 
228
- **Fast Path still requires:**
229
- - plan.md and tasks.md (lightweight versions)
230
- - Code review
231
- - `feat(<scope>):` commit convention
232
- - REGISTRY update via summarize
199
+ **CHECKPOINT CP-FW-3**: All features completed or user stopped pipeline.
233
200
 
234
201
  ---
235
202
 
236
- ## Resume 中断恢复
203
+ ## Interaction During Pipeline
237
204
 
238
- The pipeline supports resuming from the last completed phase by detecting existing artifacts.
205
+ While the pipeline runs in background, the user can continue the conversation:
239
206
 
240
- **Detection logic**: Check `.prizmkit/specs/<slug>/` for:
241
-
242
- | Artifact Found | Resume From |
243
- |---------------|------------|
244
- | (nothing) | Phase 1: Specify |
245
- | `spec.md` only | Phase 2: Plan |
246
- | `spec.md` + `plan.md` | Phase 3: Tasks |
247
- | `spec.md` + `plan.md` + `tasks.md` | Phase 4: Analyze |
248
- | All 3 docs + analysis passed | Phase 5: Implement |
249
- | All 3 docs + code changes exist | Phase 6: Review |
250
- | All 3 docs + review passed | Phase 7: Commit |
251
-
252
- **Resume command**: `prizmkit.feature <slug>` — if `<slug>` matches an existing `.prizmkit/specs/<slug>/` directory, resume instead of starting fresh.
207
+ | User says | Action |
208
+ |-----------|--------|
209
+ | "status" / "进度" | Show current progress |
210
+ | "logs" / "日志" | Show recent log activity |
211
+ | "stop" / "停止" | Stop the pipeline (state preserved) |
212
+ | "show F-002 logs" | Show specific feature's session log |
253
213
 
254
214
  ---
255
215
 
256
216
  ## Error Handling
257
217
 
258
- | Scenario | Action |
259
- |----------|--------|
260
- | Cannot parse feature description | Ask user for clarification |
261
- | Spec has ambiguous requirements | Invoke `prizmkit.clarify` before proceeding |
262
- | Plan-spec misalignment detected | Return to Phase 2 with feedback |
263
- | Analyze finds blocking errors | Return to earliest affected phase |
264
- | Implementation fails after 3 rounds | Escalate to user with analysis |
265
- | Review fails after 2 rounds | Escalate with review findings |
266
- | Full test suite has pre-existing failures | Warn user, isolate feature tests |
267
- | Feature requires breaking changes | STOP, recommend ADR via `prizmkit.adr-manager` |
218
+ | Error | Action |
219
+ |-------|--------|
220
+ | `app-planner` cannot parse requirements | Ask user for clarification |
221
+ | `feature-list.json` generation failed | Show error, retry with refined input |
222
+ | Pipeline launch failed | Show daemon log, suggest manual start |
223
+ | All features blocked/failed | Show status, suggest retrying specific features |
224
+ | User wants to cancel mid-planning | Stop and save partial feature-list.json |
268
225
 
269
226
  ---
270
227
 
271
228
  ## Relationship to Other Skills
272
229
 
273
- | Skill | Role in Feature Workflow |
274
- |-------|------------------------|
275
- | `prizmkit-specify` | Phase 1: structured spec generation |
276
- | `prizmkit-clarify` | Phase 1 fallback: resolve ambiguities |
277
- | `prizmkit-plan` | Phase 2: technical implementation plan |
278
- | `prizmkit-tasks` | Phase 3: task breakdown |
279
- | `prizmkit-analyze` | Phase 4: cross-document consistency |
280
- | `prizmkit-implement` | Phase 5: TDD implementation |
281
- | `prizmkit-code-review` | Phase 6: review and quality gate |
282
- | `prizmkit-committer` | Phase 7: commit with `feat()` convention |
283
- | `prizmkit-summarize` | Phase 7: archive to REGISTRY |
284
- | `prizmkit-retrospective` | Optional: post-feature lessons learned |
285
- | `prizmkit-bug-fix-workflow` | NOT used (separate pipeline for bugs) |
286
- | `refactor-workflow` | NOT used (separate pipeline for refactoring) |
287
- | `app-planner` | Pre-pipeline: interactive feature planning |
230
+ | Skill | Relationship |
231
+ |-------|-------------|
232
+ | `app-planner` | **Called by Phase 1** generates feature-list.json |
233
+ | `dev-pipeline-launcher` | **Called by Phase 2** starts background pipeline |
234
+ | `bug-planner` | **Alternative** for bug fix workflows |
235
+ | `bugfix-pipeline-launcher` | **Alternative** for bug fix pipelines |
236
+ | `refactor-workflow` | **Alternative** for code restructuring |
288
237
 
289
238
  ---
290
239
 
291
- ## Comparison with Refactor and Bug Fix Pipelines
292
-
293
- | Dimension | Feature Workflow | Refactor Workflow | Bug Fix Pipeline |
294
- |-----------|-----------------|-------------------|------------------|
295
- | Input | Natural language requirement | Module/code target | Bug description / stack trace |
296
- | Pipeline Phases | 7 (Fast Path: 5) | 6 (Fast Path: 4) | 5 (Fast Path: 3) |
297
- | Phase 1 | Specify (spec.md) | Analyze (refactor-analysis.md) | Triage (fix-plan.md) |
298
- | Artifact Docs | 3: spec.md + plan.md + tasks.md | 3: refactor-analysis.md + plan.md + tasks.md | 2: fix-plan.md + fix-report.md |
299
- | Artifact Path | `.prizmkit/specs/<feature-slug>/` | `.prizmkit/refactor/<slug>/` | `.prizmkit/bugfix/<bug-id>/` |
300
- | Skills Chain | specify plan → tasks → analyze → implement → review → commit + summarize | tech-debt-tracker plan → tasks → implement → review → commit | error-triage → bug-reproduce → implement → code-review → commit |
301
- | Commit Prefix | `feat(<scope>):` | `refactor(<scope>):` | `fix(<scope>):` |
302
- | REGISTRY Update | ✅ via summarize | ❌ not applicable | ❌ not applicable |
303
- | Test Strategy | TDD per task | Full suite after EVERY task | Reproduction test |
304
- | Scope Guard | N/A | ✅ (enforced) | N/A |
305
- | Behavior Change | ✅ Expected | ❌ Forbidden | ✅ Fix behavior |
306
- | Resume Support | ✅ artifact-based detection | ✅ artifact-based detection | ❌ |
240
+ ## Comparison with Alternative Workflows
241
+
242
+ | Dimension | feature-workflow | bug-fix-workflow | refactor-workflow |
243
+ |-----------|-----------------|------------------|-------------------|
244
+ | **Purpose** | New features (batch) | Bug fixes (batch) | Code restructuring |
245
+ | **Planning Skill** | `app-planner` | `bug-planner` | None (direct invocation) |
246
+ | **Launcher Skill** | `dev-pipeline-launcher` | `bugfix-pipeline-launcher` | None (in-session) |
247
+ | **Input** | Requirements description | Bug reports / logs | Module / code target |
248
+ | **Output** | Multiple `feat()` commits | Multiple `fix()` commits | Single `refactor()` commit |
249
+ | **Execution Mode** | Background daemon | Background daemon | In-session |
250
+
251
+ ---
307
252
 
308
253
  ## Path References
309
254
 
@@ -311,12 +256,8 @@ All internal asset paths MUST use `${SKILL_DIR}` placeholder for cross-IDE compa
311
256
 
312
257
  ## Output
313
258
 
314
- - `spec.md` (Phase 1 artifact)
315
- - `plan.md` (Phase 2 artifact)
316
- - `tasks.md` (Phase 3 artifact)
317
- - Consistency analysis report (Phase 4, conversation only)
318
- - Implementation code + tests (Phase 5)
319
- - Code review report (Phase 6, conversation only)
320
- - Git commit with `feat(<scope>):` prefix (Phase 7)
321
- - REGISTRY.md entry (Phase 7)
322
- - Updated `.prizm-docs/` (if applicable)
259
+ - `feature-list.json` (Phase 1 artifact)
260
+ - Background pipeline running (Phase 2)
261
+ - Progress updates (Phase 3)
262
+ - Multiple git commits with `feat(<scope>):` prefix
263
+ - Updated `REGISTRY.md` (via prizmkit.summarize per feature)
@@ -7,20 +7,7 @@ description: "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm
7
7
 
8
8
  PrizmKit is a comprehensive, independent AI development toolkit that covers the complete development lifecycle from project inception to delivery and maintenance. It can take over any project and keep documentation in sync with code.
9
9
 
10
- ## Quick Start
11
-
12
- **CodeBuddy:**
13
- ```
14
- prizmkit.init # Take over a project (scan, assess, generate docs)
15
- prizmkit.specify # Create feature specification
16
- prizmkit.plan # Generate implementation plan
17
- prizmkit.tasks # Break down into executable tasks
18
- prizmkit.analyze # Cross-document consistency check (recommended)
19
- prizmkit.implement # Execute implementation
20
- prizmkit.commit # Commit with auto doc update
21
- ```
22
-
23
- **Claude Code:**
10
+ ## Quick Start Command
24
11
  ```
25
12
  /prizmkit-init # Take over a project (scan, assess, generate docs)
26
13
  /prizmkit-specify # Create feature specification
@@ -70,7 +57,7 @@ PrizmKit produces two complementary knowledge layers:
70
57
  .prizmkit/specs/ → Feature "what to do" (workflow: spec → plan → tasks → code)
71
58
  ```
72
59
 
73
- ## Skill Inventory (34 skills)
60
+ ## Skill Inventory
74
61
 
75
62
  ### Foundation (3)
76
63
  - **prizm-kit** — Full-lifecycle dev toolkit entry point
@@ -90,29 +77,28 @@ PrizmKit produces two complementary knowledge layers:
90
77
  - **prizmkit-retrospective** — Post-feature learning: extract lessons → update Prizm docs
91
78
 
92
79
  ### Quality Assurance (5)
93
- - **prizmkit-tech-debt-tracker** — [Tier 1] Technical debt identification and tracking via code pattern analysis
94
- - **prizmkit-bug-reproducer** — [Tier 1] Generate minimal reproduction scripts and test cases
95
- - **prizmkit-adr-manager** — [Tier 1] Architecture Decision Records management
96
- - **prizmkit-security-audit** — [Tier 2] AI-assisted security review checklist via static analysis
97
- - **prizmkit-dependency-health** — [Tier 2] Dependency review based on manifest files
80
+ - **prizmkit-tool-tech-debt-tracker** — [Tier 1] Technical debt identification and tracking via code pattern analysis
81
+ - **prizmkit-tool-bug-reproducer** — [Tier 1] Generate minimal reproduction scripts and test cases
82
+ - **prizmkit-tool-adr-manager** — [Tier 1] Architecture Decision Records management
83
+ - **prizmkit-tool-security-audit** — [Tier 2] AI-assisted security review checklist via static analysis
84
+ - **prizmkit-tool-dependency-health** — [Tier 2] Dependency review based on manifest files
98
85
 
99
86
  ### Operations & Deployment (4)
100
- - **prizmkit-ci-cd-generator** — [Tier 2] Generate CI/CD pipeline config templates
101
- - **prizmkit-deployment-strategy** — [Tier 2] Deployment planning with rollback procedures
102
- - **prizmkit-db-migration** — [Tier 2] Database migration script generation
103
- - **prizmkit-monitoring-setup** — [Tier 2] Generate monitoring config templates
87
+ - **prizmkit-tool-ci-cd-generator** — [Tier 2] Generate CI/CD pipeline config templates
88
+ - **prizmkit-tool-deployment-strategy** — [Tier 2] Deployment planning with rollback procedures
89
+ - **prizmkit-tool-db-migration** — [Tier 2] Database migration script generation
90
+ - **prizmkit-tool-monitoring-setup** — [Tier 2] Generate monitoring config templates
104
91
 
105
92
  ### Debugging & Troubleshooting (3)
106
- - **prizmkit-error-triage** — [Tier 2] Error categorization and root cause analysis
107
- - **prizmkit-log-analyzer** — [Tier 2] Log pattern recognition via text analysis
108
- - **prizmkit-perf-profiler** — [Tier 2] Static analysis for performance issues
93
+ - **prizmkit-tool-error-triage** — [Tier 2] Error categorization and root cause analysis
94
+ - **prizmkit-tool-log-analyzer** — [Tier 2] Log pattern recognition via text analysis
95
+ - **prizmkit-tool-perf-profiler** — [Tier 2] Static analysis for performance issues
109
96
 
110
97
  ### Documentation (2)
111
- - **prizmkit-onboarding-generator** — [Tier 2] Generate developer onboarding guides
112
- - **prizmkit-api-doc-generator** — [Tier 2] Extract API documentation from source code
98
+ - **prizmkit-tool-onboarding-generator** — [Tier 2] Generate developer onboarding guides
99
+ - **prizmkit-tool-api-doc-generator** — [Tier 2] Extract API documentation from source code
113
100
 
114
- ### Pipeline & Companion (7)
115
- - **prizmkit-bug-fix-workflow** — [Tier 1] End-to-end bug fix workflow: triage → reproduce → fix → verify → commit
101
+ ### Pipeline & Companion (6)
116
102
  - **feature-workflow** — [Tier 1] End-to-end feature workflow: specify → plan → tasks → analyze → implement → review → commit
117
103
  - **refactor-workflow** — [Tier 1] End-to-end refactor workflow: analyze → plan → tasks → implement → review → commit
118
104
  - **app-planner** — Interactive app planning that produces feature-list.json for dev-pipeline
@@ -1,7 +1,6 @@
1
1
  ---
2
- name: "prizmkit-adr-manager"
3
- tier: 1
4
- description: "[Tier 1] Manage Architecture Decision Records. Create, list, and supersede ADRs with full context. AI excels at documentation tasks. (project)"
2
+ name: "prizmkit-tool-adr-manager"
3
+ description: [Tier 1] Manage Architecture Decision Records. Create, list, and supersede ADRs with full context. AI excels at documentation tasks. (project)
5
4
  ---
6
5
 
7
6
  # PrizmKit ADR Manager
@@ -10,7 +9,7 @@ Manage Architecture Decision Records (ADRs) to document and track architectural
10
9
 
11
10
  ## Commands
12
11
 
13
- ### prizmkit.adr.new \<title\>
12
+ ### `/prizmkit-adr`.new \<title\>
14
13
 
15
14
  Create a new Architecture Decision Record.
16
15
 
@@ -28,7 +27,7 @@ Create a new Architecture Decision Record.
28
27
  3. Write to `docs/adr/NNNN-title.md` (zero-padded number, kebab-case title)
29
28
  4. Also record in `.prizm-docs/` DECISIONS section of relevant module doc
30
29
 
31
- ### prizmkit.adr.list
30
+ ### `/prizmkit-adr`.list
32
31
 
33
32
  Show all ADRs with their current status.
34
33
 
@@ -41,7 +40,7 @@ Show all ADRs with their current status.
41
40
  - Status values: Proposed, Accepted, Deprecated, Superseded
42
41
  4. Highlight any ADRs in Proposed status that may need review
43
42
 
44
- ### prizmkit.adr.supersede \<number\> \<new-title\>
43
+ ### `/prizmkit-adr`.supersede \<number\> \<new-title\>
45
44
 
46
45
  Mark an existing ADR as superseded and create a replacement.
47
46
 
@@ -49,7 +48,7 @@ Mark an existing ADR as superseded and create a replacement.
49
48
 
50
49
  1. Read the existing ADR with the given number from `docs/adr/`
51
50
  2. Update its status to "Superseded by [ADR-NNNN]" (the new ADR number)
52
- 3. Create a new ADR using the `prizmkit.adr.new` flow:
51
+ 3. Create a new ADR using the ``/prizmkit-adr`.new` flow:
53
52
  - Pre-populate context with reference to the superseded ADR
54
53
  - Include "Supersedes [ADR-NNNN]" in the new ADR
55
54
  4. Write both updated files
@@ -1,7 +1,6 @@
1
1
  ---
2
- name: "prizmkit-api-doc-generator"
3
- tier: 2
4
- description: "[Tier 2] Extract API documentation from source code into OpenAPI/Markdown. May miss undocumented or dynamically generated endpoints. (project)"
2
+ name: "prizmkit-tool-api-doc-generator"
3
+ description: [Tier 2] Extract API documentation from source code into OpenAPI/Markdown. May miss undocumented or dynamically generated endpoints. (project)
5
4
  ---
6
5
 
7
6
  # PrizmKit API Doc Generator
@@ -10,7 +9,7 @@ Generate API documentation from source code by scanning routes, controllers, and
10
9
 
11
10
  ## Commands
12
11
 
13
- ### prizmkit.api-docs [api-directory]
12
+ ### `/prizmkit-api`-docs [api-directory]
14
13
 
15
14
  Generate API documentation from source code.
16
15
 
@@ -48,7 +47,7 @@ Generate API documentation from source code.
48
47
 
49
48
  ## Path References
50
49
 
51
- All internal asset paths MUST use `${SKILL_DIR}` placeholder for cross-IDE compatibility.
50
+ All internal asset paths MUST use `.claude/commands/prizmkit-api-doc-generator` placeholder for cross-IDE compatibility.
52
51
 
53
52
  ## Output
54
53