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.
- package/bin/create-prizmkit.js +4 -1
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/claude/command-adapter.js +35 -4
- package/bundled/adapters/claude/rules-adapter.js +6 -58
- package/bundled/adapters/claude/team-adapter.js +2 -2
- package/bundled/adapters/codebuddy/agent-adapter.js +0 -1
- package/bundled/adapters/codebuddy/rules-adapter.js +30 -0
- package/bundled/adapters/shared/frontmatter.js +3 -1
- package/bundled/dev-pipeline/README.md +13 -3
- package/bundled/dev-pipeline/launch-bugfix-daemon.sh +10 -0
- package/bundled/dev-pipeline/launch-daemon.sh +18 -4
- package/bundled/dev-pipeline/lib/common.sh +105 -0
- package/bundled/dev-pipeline/retry-bug.sh +20 -2
- package/bundled/dev-pipeline/retry-feature.sh +20 -2
- package/bundled/dev-pipeline/run-bugfix.sh +57 -57
- package/bundled/dev-pipeline/run.sh +75 -59
- package/bundled/dev-pipeline/scripts/check-session-status.py +47 -2
- package/bundled/dev-pipeline/scripts/cleanup-logs.py +192 -0
- package/bundled/dev-pipeline/scripts/detect-stuck.py +15 -3
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +32 -27
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +23 -23
- package/bundled/dev-pipeline/scripts/update-feature-status.py +50 -2
- package/bundled/dev-pipeline/scripts/utils.py +22 -0
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +18 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +19 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +18 -2
- package/bundled/dev-pipeline/templates/session-status-schema.json +7 -1
- package/bundled/dev-pipeline/tests/__init__.py +0 -0
- package/bundled/dev-pipeline/tests/conftest.py +133 -0
- package/bundled/dev-pipeline/tests/test_check_session.py +127 -0
- package/bundled/dev-pipeline/tests/test_cleanup_logs.py +119 -0
- package/bundled/dev-pipeline/tests/test_detect_stuck.py +207 -0
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +181 -0
- package/bundled/dev-pipeline/tests/test_generate_prompt.py +190 -0
- package/bundled/dev-pipeline/tests/test_init_bugfix_pipeline.py +153 -0
- package/bundled/dev-pipeline/tests/test_init_pipeline.py +241 -0
- package/bundled/dev-pipeline/tests/test_update_bug_status.py +142 -0
- package/bundled/dev-pipeline/tests/test_update_feature_status.py +277 -0
- package/bundled/dev-pipeline/tests/test_utils.py +141 -0
- package/bundled/rules/USAGE.md +153 -0
- package/bundled/rules/_rules-metadata.json +43 -0
- package/bundled/rules/general/prefer-linux-commands.md +9 -0
- package/bundled/rules/prizm/prizm-commit-workflow.md +10 -0
- package/bundled/rules/prizm/prizm-documentation.md +80 -0
- package/bundled/rules/prizm/prizm-progressive-loading.md +11 -0
- package/bundled/skills/_metadata.json +162 -67
- package/bundled/skills/app-planner/SKILL.md +252 -499
- package/bundled/skills/app-planner/assets/evaluation-guide.md +44 -0
- package/bundled/skills/app-planner/scripts/validate-and-generate.py +143 -4
- package/bundled/skills/bug-planner/SKILL.md +58 -13
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +5 -7
- package/bundled/skills/dev-pipeline-launcher/SKILL.md +16 -7
- package/bundled/skills/feature-workflow/SKILL.md +175 -234
- package/bundled/skills/prizm-kit/SKILL.md +17 -31
- package/bundled/skills/{prizmkit-adr-manager → prizmkit-tool-adr-manager}/SKILL.md +6 -7
- package/bundled/skills/{prizmkit-api-doc-generator → prizmkit-tool-api-doc-generator}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-bug-reproducer → prizmkit-tool-bug-reproducer}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-ci-cd-generator → prizmkit-tool-ci-cd-generator}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-db-migration → prizmkit-tool-db-migration}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-dependency-health → prizmkit-tool-dependency-health}/SKILL.md +3 -4
- package/bundled/skills/{prizmkit-deployment-strategy → prizmkit-tool-deployment-strategy}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-error-triage → prizmkit-tool-error-triage}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-log-analyzer → prizmkit-tool-log-analyzer}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-monitoring-setup → prizmkit-tool-monitoring-setup}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-onboarding-generator → prizmkit-tool-onboarding-generator}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-perf-profiler → prizmkit-tool-perf-profiler}/SKILL.md +4 -5
- package/bundled/skills/{prizmkit-security-audit → prizmkit-tool-security-audit}/SKILL.md +3 -4
- package/bundled/skills/{prizmkit-tech-debt-tracker → prizmkit-tool-tech-debt-tracker}/SKILL.md +3 -4
- package/bundled/skills/refactor-skill/SKILL.md +371 -0
- package/bundled/skills/refactor-workflow/SKILL.md +17 -119
- package/bundled/templates/hooks/commit-intent-claude.json +1 -1
- package/bundled/templates/hooks/commit-intent-codebuddy.json +1 -1
- package/bundled/templates/hooks/prizm-pre-commit.sh +58 -0
- package/bundled/templates/hooks/validate-prizm-docs.sh +84 -0
- package/package.json +1 -1
- package/src/detect-platform.js +20 -8
- package/src/external-skills.js +71 -0
- package/src/index.js +66 -8
- package/src/metadata.js +36 -0
- package/src/scaffold.js +200 -31
- package/bundled/skills/prizmkit-bug-fix-workflow/SKILL.md +0 -356
- package/bundled/templates/claude-md-template.md +0 -38
- package/bundled/templates/codebuddy-md-template.md +0 -35
- /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:
|
|
4
|
-
description: "
|
|
3
|
+
tier: companion
|
|
4
|
+
description: "One-stop entry point for feature development. Orchestrates app-planner → dev-pipeline-launcher → background execution. Handles multi-feature batch development from a single request. (project)"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Feature Workflow
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
One-stop entry point for feature development. Orchestrates the complete flow from requirements to committed code in a single invocation.
|
|
10
10
|
|
|
11
|
-
##
|
|
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
|
-
|
|
13
|
+
User says:
|
|
14
|
+
- "开发一个新应用", "构建 XXX 系统", "做一个项目"
|
|
15
|
+
- "一键完成这些特性", "批量实现这些需求"
|
|
16
|
+
- "从零开始做一个任务管理 App"
|
|
17
|
+
- "帮我实现用户登录、注册、头像上传这些功能"
|
|
18
|
+
- After receiving a batch of related feature requests
|
|
48
19
|
|
|
49
|
-
**
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
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
|
-
##
|
|
28
|
+
## Overview
|
|
57
29
|
|
|
58
|
-
|
|
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
|
-
|
|
40
|
+
### What This Skill Does
|
|
61
41
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
82
|
-
|
|
83
|
-
**Goal**: Generate technical implementation plan from the specification.
|
|
61
|
+
## Commands
|
|
84
62
|
|
|
85
|
-
|
|
63
|
+
### prizmkit.feature \<需求描述\>
|
|
86
64
|
|
|
87
|
-
|
|
65
|
+
One-stop feature development from natural language requirements.
|
|
88
66
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
77
|
+
### prizmkit.feature --from \<feature-list.json\>
|
|
99
78
|
|
|
100
|
-
|
|
79
|
+
Skip planning, directly launch pipeline from existing feature-list.json.
|
|
101
80
|
|
|
102
|
-
|
|
81
|
+
**USE WHEN**:
|
|
82
|
+
- feature-list.json already exists
|
|
83
|
+
- User wants to restart/resume pipeline execution
|
|
103
84
|
|
|
104
|
-
**
|
|
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
|
-
|
|
90
|
+
### prizmkit.feature \<需求描述\> --incremental
|
|
107
91
|
|
|
108
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
**
|
|
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
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
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
|
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
120
|
+
3. **Validate output**:
|
|
121
|
+
- Confirm `feature-list.json` exists
|
|
122
|
+
- Show summary: total features, complexity distribution, dependencies
|
|
156
123
|
|
|
157
|
-
|
|
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
|
-
**
|
|
126
|
+
**If user says `--from <file>`**: Skip this phase entirely.
|
|
162
127
|
|
|
163
128
|
---
|
|
164
129
|
|
|
165
|
-
## Phase
|
|
166
|
-
|
|
167
|
-
**Goal**: Ensure implementation quality and spec compliance.
|
|
168
|
-
|
|
169
|
-
**STEPS:**
|
|
130
|
+
## Phase 2: Launch
|
|
170
131
|
|
|
171
|
-
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
-
|
|
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
|
-
**
|
|
152
|
+
3. **Verify launch success**:
|
|
153
|
+
- Confirm pipeline is running
|
|
154
|
+
- Record PID and log path for Phase 3
|
|
190
155
|
|
|
191
|
-
**
|
|
156
|
+
**CHECKPOINT CP-FW-2**: Pipeline launched successfully in background.
|
|
192
157
|
|
|
193
|
-
|
|
194
|
-
- Commit message: `feat(<scope>): <description>`
|
|
195
|
-
- Include all implementation code + tests
|
|
196
|
-
- Do NOT push
|
|
158
|
+
---
|
|
197
159
|
|
|
198
|
-
|
|
199
|
-
- Archive feature to REGISTRY.md
|
|
200
|
-
- Include: feature slug, description, files changed, date
|
|
160
|
+
## Phase 3: Monitor
|
|
201
161
|
|
|
202
|
-
|
|
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
|
-
**
|
|
164
|
+
**STEPS**:
|
|
208
165
|
|
|
209
|
-
|
|
166
|
+
1. **Initial status check**:
|
|
167
|
+
```bash
|
|
168
|
+
dev-pipeline/launch-daemon.sh status
|
|
169
|
+
```
|
|
210
170
|
|
|
211
|
-
|
|
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
|
-
|
|
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
|
-
|
|
217
|
-
|
|
184
|
+
4. **Completion report** (when pipeline finishes all features):
|
|
185
|
+
```
|
|
186
|
+
✅ Pipeline completed: 3/3 features
|
|
218
187
|
|
|
219
|
-
|
|
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
|
-
|
|
222
|
-
-
|
|
223
|
-
-
|
|
224
|
-
-
|
|
225
|
-
|
|
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
|
-
**
|
|
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
|
-
##
|
|
203
|
+
## Interaction During Pipeline
|
|
237
204
|
|
|
238
|
-
|
|
205
|
+
While the pipeline runs in background, the user can continue the conversation:
|
|
239
206
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
|
243
|
-
|
|
244
|
-
|
|
|
245
|
-
|
|
|
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
|
-
|
|
|
259
|
-
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
|
|
|
263
|
-
|
|
|
264
|
-
|
|
|
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 |
|
|
274
|
-
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
| `
|
|
278
|
-
| `
|
|
279
|
-
| `
|
|
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
|
|
292
|
-
|
|
293
|
-
| Dimension |
|
|
294
|
-
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
299
|
-
|
|
|
300
|
-
|
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
- `
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
-
|
|
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
|
|
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 (
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
package/bundled/skills/{prizmkit-api-doc-generator → prizmkit-tool-api-doc-generator}/SKILL.md
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: "prizmkit-api-doc-generator"
|
|
3
|
-
|
|
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
|
|
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
|
|
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
|
|