prizmkit 1.0.58 → 1.0.66
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/adapters/claude/command-adapter.js +1 -2
- package/bundled/dev-pipeline/README.md +4 -5
- package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +23 -17
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +17 -4
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +8 -11
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +12 -16
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +24 -41
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +26 -38
- package/bundled/dev-pipeline/templates/session-status-schema.json +1 -1
- package/bundled/dev-pipeline/tests/conftest.py +15 -10
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +168 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/bug-fix-workflow/SKILL.md +5 -8
- package/bundled/skills/bug-planner/SKILL.md +5 -1
- package/bundled/skills/bug-planner/scripts/validate-bug-list.py +156 -0
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +3 -3
- package/bundled/skills/dev-pipeline-launcher/SKILL.md +1 -1
- package/bundled/skills/prizm-kit/SKILL.md +9 -7
- package/bundled/skills/prizm-kit/assets/project-memory-template.md +1 -1
- package/bundled/skills/prizmkit-analyze/SKILL.md +4 -5
- package/bundled/skills/prizmkit-code-review/SKILL.md +10 -2
- package/bundled/skills/prizmkit-committer/SKILL.md +1 -1
- package/bundled/skills/prizmkit-implement/SKILL.md +13 -3
- package/bundled/skills/prizmkit-plan/SKILL.md +17 -6
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +15 -1
- package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
- package/bundled/skills/prizmkit-specify/SKILL.md +8 -4
- package/bundled/skills/refactor-workflow/SKILL.md +14 -6
- package/bundled/team/prizm-dev-team.json +1 -1
- package/package.json +1 -1
- package/src/scaffold.js +1 -1
|
@@ -32,7 +32,7 @@ Run `/prizm-kit` to see all available PrizmKit commands.
|
|
|
32
32
|
Not every change needs the full spec -> plan workflow. Use fast path for:
|
|
33
33
|
- Bug fixes with clear root cause, config tweaks, typo fixes, simple refactors
|
|
34
34
|
- Documentation-only changes, test additions for existing code
|
|
35
|
-
-
|
|
35
|
+
- Fast path: `/prizmkit-plan` (simplified) → `/prizmkit-implement` → `/prizmkit-committer`
|
|
36
36
|
|
|
37
37
|
Use the full workflow (/prizmkit-specify -> /prizmkit-plan -> /prizmkit-analyze -> /prizmkit-implement) for:
|
|
38
38
|
- New features, multi-file coordinated changes, architectural decisions, data model or API changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-analyze"
|
|
3
|
-
description: "Cross-document consistency analysis for spec.md
|
|
3
|
+
description: "Cross-document consistency analysis for spec.md and plan.md (including Tasks section). Detects duplications, ambiguities, gaps, and rule conflicts. Read-only. Use this skill to check if spec and plan are aligned, validate documents before coding, or as a quality gate after planning. Trigger on: 'analyze', 'check consistency', 'validate spec', 'review plan', 'is the spec ready', 'check if spec and plan are aligned', 'validate documents before coding'. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PrizmKit Analyze
|
|
7
7
|
|
|
8
|
-
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md
|
|
8
|
+
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md and plan.md (including Tasks section) before implementation. Identifies duplications, ambiguities, underspecified items, rule conflicts, and coverage gaps.
|
|
9
9
|
|
|
10
10
|
### When to Use
|
|
11
11
|
- After `/prizmkit-plan` to validate spec-plan-tasks alignment before implementation
|
|
@@ -28,8 +28,7 @@ Locate the current feature directory in `.prizmkit/specs/###-feature-name/` by c
|
|
|
28
28
|
|
|
29
29
|
Derive absolute paths:
|
|
30
30
|
- SPEC = `.prizmkit/specs/###-feature-name/spec.md`
|
|
31
|
-
- PLAN = `.prizmkit/specs/###-feature-name/plan.md`
|
|
32
|
-
- TASKS = `.prizmkit/specs/###-feature-name/tasks.md` (optional)
|
|
31
|
+
- PLAN = `.prizmkit/specs/###-feature-name/plan.md` (must include a Tasks section)
|
|
33
32
|
|
|
34
33
|
Abort with an error message if spec.md or plan.md is missing — instruct the user to run the missing prerequisite command (`/prizmkit-specify` or `/prizmkit-plan`).
|
|
35
34
|
|
|
@@ -151,7 +150,7 @@ At end of report, output a concise Next Actions block:
|
|
|
151
150
|
- Provide explicit command suggestions:
|
|
152
151
|
- "Run `/prizmkit-specify` to refine requirements"
|
|
153
152
|
- "Run `/prizmkit-plan` to adjust architecture or tasks"
|
|
154
|
-
- "Edit
|
|
153
|
+
- "Edit plan.md Tasks section to add coverage for requirement X"
|
|
155
154
|
- "Proceed to `/prizmkit-implement`" (if clean)
|
|
156
155
|
|
|
157
156
|
### Step 8: Offer Remediation
|
|
@@ -12,11 +12,19 @@ Perform a comprehensive code review against the feature spec, implementation pla
|
|
|
12
12
|
- User says "review", "check code", "review my implementation"
|
|
13
13
|
- As a quality gate before `/prizmkit-committer`
|
|
14
14
|
|
|
15
|
-
**PRECONDITION
|
|
15
|
+
**PRECONDITION (multi-mode):**
|
|
16
|
+
- **Feature mode**: `spec.md` and `plan.md` (with Tasks section) exist in `.prizmkit/specs/###-feature-name/` with completed tasks
|
|
17
|
+
- **Refactor mode**: `refactor-analysis.md` and `plan.md` (with Tasks section) exist in `.prizmkit/refactor/<refactor-slug>/` with completed tasks. No `spec.md` is needed — review against `refactor-analysis.md` goals and behavior preservation instead.
|
|
18
|
+
- **Bugfix mode**: `fix-plan.md` exists in `.prizmkit/bugfix/<BUG_ID>/` with completed tasks. Review against the bug description and reproduction test.
|
|
19
|
+
- **Auto-detect**: Check which artifact directory was passed by the calling workflow, or scan `.prizmkit/` for the most recently modified feature/refactor/bugfix directory.
|
|
16
20
|
|
|
17
21
|
## Execution Steps
|
|
18
22
|
|
|
19
|
-
1.
|
|
23
|
+
1. **Detect mode and load review baseline**:
|
|
24
|
+
- If `spec.md` exists → **Feature mode**: read `spec.md` + `plan.md` as baseline. Review dimensions: spec compliance, plan adherence, code quality, security, consistency, test coverage.
|
|
25
|
+
- If `refactor-analysis.md` exists → **Refactor mode**: read `refactor-analysis.md` + `plan.md` as baseline. Review dimensions shift: replace "spec compliance" with **behavior preservation** (observable behavior unchanged), replace "plan adherence" with **structural improvement** (is the code measurably better?). Also check test integrity and code quality.
|
|
26
|
+
- If `fix-plan.md` exists → **Bugfix mode**: read `fix-plan.md` as baseline. Review dimensions: bug is actually fixed, no regressions, reproduction test passes, minimal change scope.
|
|
27
|
+
- If none found → prompt user: "No review baseline found. Which workflow are you in? (feature/refactor/bugfix)"
|
|
20
28
|
2. Read `.prizm-docs/root.prizm` RULES for project conventions
|
|
21
29
|
3. Scan all code files referenced in completed tasks
|
|
22
30
|
4. Review across 6 dimensions:
|
|
@@ -7,7 +7,7 @@ description: "Pure git commit workflow with safety checks. Stages files, analyze
|
|
|
7
7
|
|
|
8
8
|
Pure git commit workflow. Analyzes changes, generates a Conventional Commits message, performs safety checks, and commits.
|
|
9
9
|
|
|
10
|
-
**This skill does NOT modify any project files.** It only reads
|
|
10
|
+
**This skill is a pure git commit tool. It does NOT modify any project files — no `.prizm-docs/`, no source code, no documentation.** It only reads diffs, generates a commit message, and commits. For feature/refactor workflows, run `/prizmkit-retrospective` before this skill to sync `.prizm-docs/`. For bug fixes, skip retrospective entirely — bug fixes do not update `.prizm-docs/`.
|
|
11
11
|
|
|
12
12
|
### When to Use
|
|
13
13
|
- User says "commit", "提交", "finish", "done with this task", "ship it"
|
|
@@ -10,13 +10,23 @@ Execute implementation by following the task breakdown in plan.md. Respects task
|
|
|
10
10
|
### When to Use
|
|
11
11
|
- After `/prizmkit-plan` (or `/prizmkit-analyze`) when ready to write code
|
|
12
12
|
- User says "implement", "build", "code it", "start coding", "开发"
|
|
13
|
-
- For fast-path: user describes a simple change directly (
|
|
13
|
+
- For fast-path: user describes a simple change directly (fast-path skips specify, but still requires a simplified plan.md with Tasks section)
|
|
14
14
|
|
|
15
|
-
**PRECONDITION
|
|
15
|
+
**PRECONDITION (multi-mode):**
|
|
16
|
+
- **Feature mode** (default): `plan.md` exists in `.prizmkit/specs/###-feature-name/` with a Tasks section containing unchecked tasks
|
|
17
|
+
- **Refactor mode**: `plan.md` exists in `.prizmkit/refactor/<refactor-slug>/` with a Tasks section containing unchecked tasks
|
|
18
|
+
- **Bugfix mode**: `plan.md` exists in `.prizmkit/bugfix/<BUG_ID>/` with a Tasks section containing unchecked tasks
|
|
19
|
+
- **Auto-detect**: If the calling workflow passes an explicit artifact directory, use that. Otherwise scan `.prizmkit/` subdirectories for the most recently modified `plan.md` with unchecked tasks.
|
|
16
20
|
|
|
17
21
|
## Execution Steps
|
|
18
22
|
|
|
19
|
-
1.
|
|
23
|
+
1. **Detect mode and read context**:
|
|
24
|
+
- Locate `plan.md` (check the artifact directory passed by the calling workflow, or auto-detect per PRECONDITION above)
|
|
25
|
+
- Read `plan.md` (including Tasks section)
|
|
26
|
+
- Read the companion input document for full context:
|
|
27
|
+
- **Feature mode**: read `spec.md` in the same directory
|
|
28
|
+
- **Refactor mode**: read `refactor-analysis.md` in the same directory — pay special attention to Scope Boundary (do not implement changes outside scope) and Baseline Tests (all must still pass)
|
|
29
|
+
- **Bugfix mode**: read `fix-plan.md` in the same directory
|
|
20
30
|
2. Load project context — use the most efficient source available:
|
|
21
31
|
- If `context-snapshot.md` exists in the feature directory → read it. Section 3 has Prizm docs + TRAPS, Section 4 has source files. This snapshot was built in Phase 1 of the pipeline to avoid re-reading dozens of individual files, saving significant tokens.
|
|
22
32
|
- Otherwise → read relevant `.prizm-docs/` L1/L2 for affected modules. Pay special attention to TRAPS (gotchas, race conditions) and DECISIONS (past architectural choices you should respect).
|
|
@@ -14,16 +14,23 @@ Generate a comprehensive technical implementation plan from a feature specificat
|
|
|
14
14
|
- When user wants to understand the full implementation approach before coding
|
|
15
15
|
|
|
16
16
|
### When NOT to Use
|
|
17
|
-
- No spec.md
|
|
18
|
-
- Simple bug fix or config change → use fast path
|
|
17
|
+
- No input document exists yet (no spec.md, no refactor-analysis.md, no fix-plan.md) → run `/prizmkit-specify` or the appropriate upstream skill first
|
|
18
|
+
- Simple bug fix or config change → use fast path (`/prizmkit-plan` with simplified output → `/prizmkit-implement` → `/prizmkit-committer`)
|
|
19
19
|
- User just wants to explore/research → answer directly, no plan artifact needed
|
|
20
20
|
|
|
21
|
-
**PRECONDITION
|
|
21
|
+
**PRECONDITION (multi-mode):**
|
|
22
|
+
- **Feature mode** (default): `spec.md` exists in `.prizmkit/specs/###-feature-name/`, `.prizm-docs/root.prizm` exists. If spec.md is missing, prompt the user: "No spec found — want me to run /prizmkit-specify first?"
|
|
23
|
+
- **Refactor mode**: `refactor-analysis.md` exists in `.prizmkit/refactor/<refactor-slug>/`. Use refactor-analysis.md as the input document in place of spec.md. Output plan.md to the same `.prizmkit/refactor/<refactor-slug>/` directory, NOT to `.prizmkit/specs/`.
|
|
24
|
+
- **Bugfix mode**: Bug description provided by caller or `fix-plan.md` exists in `.prizmkit/bugfix/<BUG_ID>/`. Output plan.md to the same directory.
|
|
25
|
+
- **Auto-detect**: If the calling workflow passes an explicit artifact directory, use that. Otherwise check which input document type exists.
|
|
22
26
|
|
|
23
27
|
## Execution Steps
|
|
24
28
|
|
|
25
29
|
**Phase 0 — Research:**
|
|
26
|
-
1. Read
|
|
30
|
+
1. Read the input document for requirements:
|
|
31
|
+
- **Feature mode**: Read `spec.md` for feature requirements
|
|
32
|
+
- **Refactor mode**: Read `refactor-analysis.md` for refactoring goals, scope boundary, and baseline tests
|
|
33
|
+
- **Bugfix mode**: Read bug description / `fix-plan.md` for reproduction steps and expected fix
|
|
27
34
|
2. Load project context (use first available source):
|
|
28
35
|
- If `.prizmkit/specs/###-feature-name/context-snapshot.md` exists → read it for all context (Section 3 'Prizm Context' for docs, Section 4 'Existing Source Files' for code). The context-snapshot consolidates dozens of individual files into one read, saving significant tokens.
|
|
29
36
|
- Otherwise → read `.prizm-docs/root.prizm` and relevant `.prizm-docs/` L1/L2 docs for affected modules
|
|
@@ -90,5 +97,9 @@ The plan template is located at `${SKILL_DIR}/assets/plan-template.md`.
|
|
|
90
97
|
|
|
91
98
|
## Output
|
|
92
99
|
|
|
93
|
-
|
|
94
|
-
-
|
|
100
|
+
Output directory depends on mode:
|
|
101
|
+
- **Feature mode**: `.prizmkit/specs/###-feature-name/plan.md`
|
|
102
|
+
- **Refactor mode**: `.prizmkit/refactor/<refactor-slug>/plan.md`
|
|
103
|
+
- **Bugfix mode**: `.prizmkit/bugfix/<BUG_ID>/plan.md`
|
|
104
|
+
|
|
105
|
+
The plan.md includes architecture, component design, data model, interface design, testing strategy, risk assessment, and Tasks section.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-prizm-docs"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Project documentation specification and standard for AI-optimized progressive context loading. Defines the .prizm-docs/ 3-level hierarchy (L0/L1/L2), format rules, size limits, and loading protocol. Use this skill to: bootstrap docs for new projects (init), check doc freshness (status), regenerate stale modules (rebuild), validate format compliance (validate), or migrate existing docs (migrate). For incremental doc updates after code changes, use /prizmkit-retrospective instead — it is the sole writer of .prizm-docs/ during development. Trigger on: 'initialize docs', 'check doc status', 'rebuild docs', 'validate docs', 'migrate docs', 'docs are stale', 'prizm docs'. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Prizm Docs - AI Documentation Framework
|
|
@@ -22,6 +22,20 @@ This skill handles 6 operations. When invoked, determine the user's intent and e
|
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
|
+
## Role Clarification
|
|
26
|
+
|
|
27
|
+
**This skill vs `/prizmkit-retrospective`**:
|
|
28
|
+
|
|
29
|
+
| Aspect | `/prizmkit-prizm-docs` | `/prizmkit-retrospective` |
|
|
30
|
+
|--------|----------------------|--------------------------|
|
|
31
|
+
| **Role** | Documentation SPECIFICATION + BOOTSTRAP | Incremental WRITER during development |
|
|
32
|
+
| **When** | Project setup, health checks, migrations | After feature completion, before commit |
|
|
33
|
+
| **Writes** | Initial .prizm-docs/ structure (init, rebuild, migrate) | Incremental updates to existing .prizm-docs/ |
|
|
34
|
+
| **Reads** | Source code structure (for init/rebuild) | git diff + code changes (for sync) |
|
|
35
|
+
| **Knowledge** | Defines format rules, size limits, loading protocol | Extracts TRAPS/RULES/DECISIONS from work done |
|
|
36
|
+
|
|
37
|
+
**Key principle**: `/prizmkit-prizm-docs` defines WHAT the docs should look like and bootstraps them. `/prizmkit-retrospective` is the SOLE WRITER that keeps docs in sync with code during ongoing development.
|
|
38
|
+
|
|
25
39
|
## Operation: Init
|
|
26
40
|
|
|
27
41
|
Bootstrap .prizm-docs/ for the current project.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-retrospective"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Incremental .prizm-docs/ maintainer — the sole writer during ongoing development. Performs two jobs after code changes: (1) structural sync — update KEY_FILES/INTERFACES/DEPENDENCIES to reflect code changes, and (2) knowledge injection — extract TRAPS/RULES/DECISIONS from completed work. Run after code review passes and before committing. For initial doc setup, validation, or migration, use /prizmkit-prizm-docs instead. Trigger on: 'retrospective', 'retro', 'update docs', 'sync docs', 'wrap up', 'done with feature', 'feature complete'. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PrizmKit Retrospective
|
|
@@ -14,7 +14,7 @@ Create structured feature specifications from natural language descriptions. Thi
|
|
|
14
14
|
- When multiple stakeholders need to agree on scope before coding starts
|
|
15
15
|
|
|
16
16
|
### When NOT to Use
|
|
17
|
-
- Bug fixes with clear root cause → use fast path (
|
|
17
|
+
- Bug fixes with clear root cause → use fast path (`/prizmkit-plan` simplified → `/prizmkit-implement` → `/prizmkit-committer`)
|
|
18
18
|
- Config tweaks, typo fixes, simple refactors → edit directly
|
|
19
19
|
- Documentation-only changes → no spec needed
|
|
20
20
|
- User already has a detailed spec → skip to /prizmkit-plan
|
|
@@ -23,8 +23,12 @@ Create structured feature specifications from natural language descriptions. Thi
|
|
|
23
23
|
|
|
24
24
|
1. Ask user for feature description (natural language)
|
|
25
25
|
2. Auto-generate 2-4 word feature slug from description
|
|
26
|
-
3. Determine next feature number by scanning `.prizmkit/specs
|
|
27
|
-
|
|
26
|
+
3. Determine next feature number by scanning `.prizmkit/specs/`:
|
|
27
|
+
- List existing `###-*` directories and find the highest numeric prefix
|
|
28
|
+
- Next number = highest + 1 (zero-padded to 3 digits)
|
|
29
|
+
- Append a short timestamp suffix (`-MMDD`) to prevent collisions in concurrent sessions. Example: `004-user-avatar-0319/`
|
|
30
|
+
- If `.prizmkit/specs/` is empty or doesn't exist, start at `001`
|
|
31
|
+
4. Create directory: `.prizmkit/specs/###-feature-name-MMDD/`
|
|
28
32
|
5. Load project context (use first available source):
|
|
29
33
|
- If `.prizmkit/specs/###-feature-name/context-snapshot.md` exists → read Section 3 'Prizm Context' from it (do NOT re-read `.prizm-docs/` files)
|
|
30
34
|
- Otherwise → read `.prizm-docs/root.prizm`
|
|
@@ -47,7 +51,7 @@ Create structured feature specifications from natural language descriptions. Thi
|
|
|
47
51
|
- **Every user story needs acceptance criteria** in Given/When/Then format — without them, the implementer has no way to verify the feature works correctly, and the code reviewer has no baseline to check against.
|
|
48
52
|
- **Scope boundaries must be explicit** — without "Out of scope" boundaries, implementers tend to gold-plate features with capabilities nobody asked for, wasting time and adding complexity.
|
|
49
53
|
- **Max 3 `[NEEDS CLARIFICATION]` markers** — more than 3 means the feature idea isn't mature enough to spec. Suggest the user think through the concept further and return, or use `/prizmkit-clarify` to resolve them interactively.
|
|
50
|
-
- **Feature numbers are zero-padded to 3 digits** (e.g., `001`, `012`) — ensures consistent sorting
|
|
54
|
+
- **Feature numbers are zero-padded to 3 digits** (e.g., `001`, `012`) with a `-MMDD` timestamp suffix — ensures consistent sorting and prevents collisions when multiple sessions run concurrently.
|
|
51
55
|
|
|
52
56
|
## Handling Vague Inputs
|
|
53
57
|
|
|
@@ -34,7 +34,7 @@ refactor-workflow
|
|
|
34
34
|
|
|
35
35
|
| Phase | Name | Skill Used | Artifact |
|
|
36
36
|
|-------|------|-----------|----------|
|
|
37
|
-
| 1 | Analyze 代码分析 |
|
|
37
|
+
| 1 | Analyze 代码分析 | Built-in code analysis + code reading | → `refactor-analysis.md` |
|
|
38
38
|
| 2 | Plan 重构方案与任务 | `/prizmkit-plan` | → `plan.md` (含 Tasks section) |
|
|
39
39
|
| 3 | Implement 实现 | `/prizmkit-implement` | (code changes) |
|
|
40
40
|
| 4 | Code Review | `/prizmkit-code-review` | (review report) |
|
|
@@ -72,9 +72,11 @@ Refactor artifacts stored at `.prizmkit/refactor/<refactor-slug>/`:
|
|
|
72
72
|
- Dependencies (incoming and outgoing)
|
|
73
73
|
- Current test coverage
|
|
74
74
|
- Known tech debt (from `.prizm-docs/` TRAPS)
|
|
75
|
-
2. **
|
|
76
|
-
-
|
|
75
|
+
2. **Perform code analysis** on target area:
|
|
76
|
+
- Identify code smells: long functions, deep nesting, duplicated logic, excessive coupling
|
|
77
|
+
- Assess complexity metrics: function length, parameter count, cyclomatic complexity
|
|
77
78
|
- Identify highest-impact refactoring opportunities
|
|
79
|
+
- Check for TODO/FIXME/HACK comments indicating known debt
|
|
78
80
|
3. **Establish baseline**:
|
|
79
81
|
- Run full test suite — record pass/fail counts
|
|
80
82
|
- Note any pre-existing test failures (isolate from refactor impact)
|
|
@@ -185,10 +187,10 @@ Refactor artifacts stored at `.prizmkit/refactor/<refactor-slug>/`:
|
|
|
185
187
|
For single-file refactoring (rename, extract method, <30 lines changed):
|
|
186
188
|
|
|
187
189
|
```
|
|
188
|
-
Phase 1 (Analyze) → Phase 3 (Implement) → Phase 4 (Review) → Phase 5 (Commit)
|
|
190
|
+
Phase 1 (Analyze) → Phase 2 (Simplified Plan) → Phase 3 (Implement) → Phase 4 (Review) → Phase 5 (Commit)
|
|
189
191
|
```
|
|
190
192
|
|
|
191
|
-
Skip Phase 2 (
|
|
193
|
+
Skip Phase 2's detailed planning process, but still generate a lightweight `plan.md` with a simplified Tasks section (typically 1-2 tasks).
|
|
192
194
|
|
|
193
195
|
**CRITERIA** (ALL must be true):
|
|
194
196
|
- Single file change
|
|
@@ -197,8 +199,14 @@ Skip Phase 2 (Plan).
|
|
|
197
199
|
- No cross-module impact
|
|
198
200
|
- No dependency changes
|
|
199
201
|
|
|
202
|
+
**Fast Path implementation differs from full path:**
|
|
203
|
+
- Phase 2 is simplified: generate a lightweight plan.md with 1-2 tasks directly from refactor-analysis.md, without deep architecture research
|
|
204
|
+
- Phase 3 still reads plan.md Tasks as normal, marks tasks `[x]` on completion
|
|
205
|
+
- Single-task refactors typically have just one task in plan.md
|
|
206
|
+
|
|
200
207
|
**Fast Path still requires:**
|
|
201
208
|
- refactor-analysis.md (lightweight version with baseline)
|
|
209
|
+
- plan.md (simplified, 1-2 tasks)
|
|
202
210
|
- Full test suite run after implementation
|
|
203
211
|
- Code review
|
|
204
212
|
- `refactor(<scope>):` commit convention
|
|
@@ -242,7 +250,7 @@ The pipeline supports resuming from the last completed phase by detecting existi
|
|
|
242
250
|
|
|
243
251
|
| Skill | Role in Refactor Workflow |
|
|
244
252
|
|-------|--------------------------|
|
|
245
|
-
|
|
|
253
|
+
| (built-in code analysis) | Phase 1: identify debt and complexity |
|
|
246
254
|
| `/prizmkit-plan` | Phase 2: refactoring plan + task generation |
|
|
247
255
|
| `/prizmkit-implement` | Phase 3: execute refactoring tasks |
|
|
248
256
|
| `/prizmkit-code-review` | Phase 4: review quality and behavior preservation |
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"name": "dev",
|
|
20
20
|
"role": "developer",
|
|
21
21
|
"agentDefinition": "prizm-dev-team-dev",
|
|
22
|
-
"prompt": "You are a Dev Agent of the prizm-dev-team. Follow /prizmkit-implement workflow with TDD. Read
|
|
22
|
+
"prompt": "You are a Dev Agent of the prizm-dev-team. Follow /prizmkit-implement workflow with TDD. Read plan.md/spec.md, implement task-by-task, mark completed tasks [x]. Check .prizm-docs/ TRAPS before implementing.",
|
|
23
23
|
"subscriptions": ["*"]
|
|
24
24
|
},
|
|
25
25
|
{
|
package/package.json
CHANGED
package/src/scaffold.js
CHANGED
|
@@ -850,7 +850,7 @@ export async function scaffold(config) {
|
|
|
850
850
|
console.log(' 下一步:');
|
|
851
851
|
console.log(` 1. ${chalk.cyan('cd ' + projectRoot)}`);
|
|
852
852
|
console.log(` 2. ${chalk.cyan(cli)} ${chalk.gray('# 启动 AI 对话')}`);
|
|
853
|
-
console.log(` 3. ${chalk.cyan('说 "prizmkit
|
|
853
|
+
console.log(` 3. ${chalk.cyan('说 "/prizmkit-init"')} ${chalk.gray('# 初始化项目上下文')}`);
|
|
854
854
|
|
|
855
855
|
if (pipeline) {
|
|
856
856
|
console.log(` 4. ${chalk.cyan('说 "规划一个应用"')} ${chalk.gray('# 生成 feature-list.json')}`);
|