prizmkit 1.1.80 → 1.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/VERSION.json +3 -3
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +2 -9
- package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +10 -0
- package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +9 -0
- package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +10 -0
- package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +17 -0
- package/bundled/skills/app-planner/references/rules/frontend/template.md +19 -0
- package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +10 -0
- package/bundled/skills/bug-fix-workflow/SKILL.md +17 -24
- package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +4 -29
- package/bundled/skills/bug-planner/SKILL.md +20 -12
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +5 -67
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +50 -1
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +16 -56
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +26 -0
- package/bundled/skills/feature-planner/SKILL.md +5 -9
- package/bundled/skills/feature-workflow/SKILL.md +22 -63
- package/bundled/skills/prizm-kit/SKILL.md +3 -2
- package/bundled/skills/prizmkit-code-review/SKILL.md +1 -1
- package/bundled/skills/prizmkit-committer/SKILL.md +3 -1
- package/bundled/skills/prizmkit-deploy/SKILL.md +1 -1
- package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +1 -0
- package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
- package/bundled/skills/recovery-workflow/SKILL.md +23 -73
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +6 -51
- package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +34 -0
- package/bundled/skills/refactor-planner/SKILL.md +6 -8
- package/bundled/skills/refactor-workflow/SKILL.md +14 -75
- package/bundled/skills-windows/app-planner/SKILL.md +2 -9
- package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +10 -0
- package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +9 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +10 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +17 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +19 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +10 -0
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +17 -24
- package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +4 -29
- package/bundled/skills-windows/bug-planner/SKILL.md +20 -12
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +5 -63
- package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +46 -1
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +17 -53
- package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +22 -0
- package/bundled/skills-windows/feature-planner/SKILL.md +5 -9
- package/bundled/skills-windows/feature-workflow/SKILL.md +22 -63
- package/bundled/skills-windows/prizm-kit/SKILL.md +3 -2
- package/bundled/skills-windows/prizmkit-code-review/SKILL.md +1 -1
- package/bundled/skills-windows/prizmkit-committer/SKILL.md +3 -1
- package/bundled/skills-windows/prizmkit-deploy/SKILL.md +1 -1
- package/bundled/skills-windows/prizmkit-implement/SKILL.md +1 -1
- package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +1 -0
- package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +1 -1
- package/bundled/skills-windows/recovery-workflow/SKILL.md +23 -73
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +7 -46
- package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +28 -0
- package/bundled/skills-windows/refactor-planner/SKILL.md +6 -8
- package/bundled/skills-windows/refactor-workflow/SKILL.md +14 -75
- package/package.json +1 -1
package/bundled/VERSION.json
CHANGED
|
@@ -12,7 +12,7 @@ Plan an application from idea to actionable project context through interactive
|
|
|
12
12
|
- Architecture decision capture
|
|
13
13
|
- Project brief accumulation (`.prizmkit/plans/project-brief.md`)
|
|
14
14
|
|
|
15
|
-
This skill captures **project-level context only**: vision, tech stack, conventions, architecture decisions, and project brief. It does
|
|
15
|
+
This skill captures **project-level context only**: vision, tech stack, conventions, architecture decisions, and project brief. It does not do feature decomposition. (See **Scope Boundary** for the authoritative output rules.)
|
|
16
16
|
|
|
17
17
|
For adding features to an **existing** project that already has a project brief, use `feature-planner` directly.
|
|
18
18
|
|
|
@@ -56,14 +56,7 @@ If you believe the task is better suited for a different workflow, you MUST:
|
|
|
56
56
|
|
|
57
57
|
## When to Use
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
- "Plan an app", "Design a project", "Design a new application"
|
|
61
|
-
- "Start from scratch", "Build something new", "Create a new product"
|
|
62
|
-
- "Help me figure out what to build", "Brainstorm an app idea"
|
|
63
|
-
- "What tech stack should I use?", "Help me choose frameworks"
|
|
64
|
-
- "Create a project brief for my existing project"
|
|
65
|
-
- "Help me document what this project is about"
|
|
66
|
-
- "I have a codebase but no project plan yet"
|
|
59
|
+
The skill `description` lists the trigger phrases. Beyond those, use this section to disambiguate from `feature-planner` and other workflows.
|
|
67
60
|
|
|
68
61
|
Do NOT use this skill when:
|
|
69
62
|
- The user already has a project brief and wants to add features → use `feature-planner`
|
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Phase 2 Answer Direct-Fill Table (copy user answer text directly into placeholders)](#phase-2-answer-direct-fill-table-copy-user-answer-text-directly-into-placeholders)
|
|
10
|
+
- [Trigger Map](#trigger-map)
|
|
11
|
+
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
|
+
- [Template Placeholder Coverage Self-Check](#template-placeholder-coverage-self-check)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
|
|
7
17
|
## Phase 2 Answer Direct-Fill Table (copy user answer text directly into placeholders)
|
|
8
18
|
|
|
9
19
|
| Template Placeholder | Source | Example Fill |
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Phase 2 Answer Direct-Fill Table](#phase-2-answer-direct-fill-table)
|
|
10
|
+
- [Trigger Map](#trigger-map)
|
|
11
|
+
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
|
|
7
16
|
## Phase 2 Answer Direct-Fill Table
|
|
8
17
|
|
|
9
18
|
| Template Placeholder | Source | Example Fill |
|
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
- [Phase 2 Answer Direct-Fill Table (no derivation needed; copy the user's answer text directly into the placeholder)](#phase-2-answer-direct-fill-table-no-derivation-needed-copy-the-users-answer-text-directly-into-the-placeholder)
|
|
12
|
+
- [Trigger Map](#trigger-map)
|
|
13
|
+
- [Rule Block Definitions](#rule-block-definitions)
|
|
14
|
+
- [Template Placeholder Coverage Self-Check Table (Mandatory Check Before Phase 4 Rendering)](#template-placeholder-coverage-self-check-table-mandatory-check-before-phase-4-rendering)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
|
|
9
19
|
## Phase 2 Answer Direct-Fill Table (no derivation needed; copy the user's answer text directly into the placeholder)
|
|
10
20
|
|
|
11
21
|
> These placeholders **don't need rule blocks**. In Phase 4, the AI directly writes the answers collected in Phase 2 into them.
|
|
@@ -6,6 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
- [Asking Rules](#asking-rules)
|
|
12
|
+
- [Group Overview](#group-overview)
|
|
13
|
+
- [G1 — Tech Stack](#g1--tech-stack)
|
|
14
|
+
- [G2 — Styling](#g2--styling)
|
|
15
|
+
- [G3 — State & Data Fetching](#g3--state--data-fetching)
|
|
16
|
+
- [G4 — Design System](#g4--design-system)
|
|
17
|
+
- [G5 — Responsive & Adaptation](#g5--responsive--adaptation)
|
|
18
|
+
- [G6 — i18n & Accessibility](#g6--i18n--accessibility)
|
|
19
|
+
- [G7 — Testing & Quality](#g7--testing--quality)
|
|
20
|
+
- [G8 — AI Vibecoding Constraints](#g8--ai-vibecoding-constraints)
|
|
21
|
+
- [G9 — Performance Baseline](#g9--performance-baseline)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
9
26
|
## Asking Rules
|
|
10
27
|
|
|
11
28
|
1. **Group order**: G1 → G2 → G3 → G4 → G5 → G6 → G7 → G8 → G9. Do not skip.
|
|
@@ -13,6 +13,25 @@
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
+
## Table of Contents
|
|
17
|
+
|
|
18
|
+
- [0. TL;DR — Key Decisions at a Glance](#0-tldr--key-decisions-at-a-glance)
|
|
19
|
+
- [1. Design System](#1-design-system)
|
|
20
|
+
- [2. Engineering Architecture](#2-engineering-architecture)
|
|
21
|
+
- [3. Code Quality (Non-Negotiable)](#3-code-quality-non-negotiable)
|
|
22
|
+
- [4. State & Data](#4-state--data)
|
|
23
|
+
- [5. User Experience](#5-user-experience)
|
|
24
|
+
- [6. Testing & Quality Assurance](#6-testing--quality-assurance)
|
|
25
|
+
- [7. AI Vibecoding Behavior Constraints](#7-ai-vibecoding-behavior-constraints)
|
|
26
|
+
- [8. Collaboration Process](#8-collaboration-process)
|
|
27
|
+
- [9. Security Baseline](#9-security-baseline)
|
|
28
|
+
- [Appendix A: Deny List (Quick Reference)](#appendix-a-deny-list-quick-reference)
|
|
29
|
+
- [Appendix B: Recommended Libraries & Tools](#appendix-b-recommended-libraries--tools)
|
|
30
|
+
- [Appendix C: References](#appendix-c-references)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
|
|
16
35
|
## 0. TL;DR — Key Decisions at a Glance
|
|
17
36
|
|
|
18
37
|
| Dimension | Decision |
|
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Phase 2 Answer Direct-Fill Table (copy user answer text directly into placeholders)](#phase-2-answer-direct-fill-table-copy-user-answer-text-directly-into-placeholders)
|
|
10
|
+
- [Trigger Map](#trigger-map)
|
|
11
|
+
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
|
+
- [Template Placeholder Coverage Self-Check](#template-placeholder-coverage-self-check)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
|
|
7
17
|
## Phase 2 Answer Direct-Fill Table (copy user answer text directly into placeholders)
|
|
8
18
|
|
|
9
19
|
| Template Placeholder | Source | Example Fill |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "bug-fix-workflow"
|
|
3
|
-
description: "Interactive single-bug fix in current session. Guides through deep diagnosis Q&A → triage → reproduce → fix → review → commit without the background pipeline. Use this skill when the user wants to fix one specific bug right now, interactively. Trigger on: 'fix this bug', 'debug this', 'fix B-001', 'help me fix', 'let me fix this bug myself', '
|
|
3
|
+
description: "Interactive single-bug fix in current session. Guides through deep diagnosis Q&A → triage → reproduce → fix → review → commit without the background pipeline. Use this skill when the user wants to fix one specific bug right now, interactively. Trigger on: 'fix this bug', 'debug this', 'fix B-001', 'help me fix', 'let me fix this bug myself', 'interactive fix', 'manually fix bug'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Bug Fix Workflow
|
|
@@ -10,7 +10,6 @@ Fix a single bug interactively within the current AI CLI session. This is the in
|
|
|
10
10
|
## When to Use
|
|
11
11
|
|
|
12
12
|
- User wants to fix **one specific bug** right now, with full visibility
|
|
13
|
-
- User says "fix this bug", "debug this error", "help me fix B-001", "fix this bug"
|
|
14
13
|
- User has a stack trace or error and wants interactive debugging
|
|
15
14
|
- User prefers hands-on fixing over background pipeline
|
|
16
15
|
|
|
@@ -121,12 +120,7 @@ Ask the user: "Is this summary accurate? Any details to add?"
|
|
|
121
120
|
|
|
122
121
|
After confirming bug understanding, assess whether this bug needs structured planning:
|
|
123
122
|
|
|
124
|
-
**Simple bug → Fast Path candidate
|
|
125
|
-
- Root cause is immediately obvious (typo, missing null check, wrong variable name, off-by-one)
|
|
126
|
-
- Fix is ≤10 lines of code in a single file
|
|
127
|
-
- No cross-module impact
|
|
128
|
-
- Existing tests cover the affected path (or bug is in untested utility)
|
|
129
|
-
- No data model or API changes
|
|
123
|
+
**Simple bug → Fast Path candidate**: meets ALL of the Fast Path §Eligibility Criteria (obvious root cause, ≤10 lines, single file, no cross-module impact, no data/API changes).
|
|
130
124
|
|
|
131
125
|
**User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
|
|
132
126
|
|
|
@@ -317,28 +311,28 @@ If user reports the fix is NOT working:
|
|
|
317
311
|
|
|
318
312
|
The workflow supports resuming from the last completed phase by detecting existing artifacts.
|
|
319
313
|
|
|
320
|
-
**Detection logic**:
|
|
314
|
+
**Detection logic**: Resume from git branch state plus, for the complex "Plan and fix now" path, the planning docs under `.prizmkit/bugfix/<BUG_ID>/`:
|
|
321
315
|
|
|
322
|
-
|
|
|
316
|
+
| State Found | Resume From |
|
|
323
317
|
|---------------|------------|
|
|
324
|
-
|
|
|
325
|
-
| On `fix/<BUG_ID>-*` branch, no
|
|
326
|
-
| `
|
|
327
|
-
|
|
|
328
|
-
|
|
|
329
|
-
|
|
|
318
|
+
| Not on a `fix/<BUG_ID>-*` branch | Phase 0: Branch Setup |
|
|
319
|
+
| On `fix/<BUG_ID>-*` branch, no diagnosis done | Phase 1: Deep Bug Diagnosis |
|
|
320
|
+
| `spec.md` + `plan.md` exist, no code changes | Phase 4: Fix (complex path) |
|
|
321
|
+
| Reproduction test written, fix not yet green | Phase 4: Fix |
|
|
322
|
+
| Fix code + passing tests, not yet reviewed | Phase 5: Review |
|
|
323
|
+
| Review passed, not committed | Phase 6: User Verification |
|
|
324
|
+
| Committed on fix branch | Phase 7: Merge decision |
|
|
330
325
|
|
|
331
|
-
**Resume**: If
|
|
326
|
+
**Resume**: If a `fix/<BUG_ID>-*` branch already exists (and, for the complex path, a matching `.prizmkit/bugfix/<BUG_ID>/` directory), resume from the detected state instead of starting fresh.
|
|
332
327
|
|
|
333
328
|
---
|
|
334
329
|
|
|
335
330
|
## Artifacts
|
|
336
331
|
|
|
337
|
-
|
|
338
|
-
- `fix-plan.md` — Triage output (diagnosis, root cause, fix approach)
|
|
339
|
-
- `fix-report.md` — Post-fix summary (what changed, test results, TRAPS added)
|
|
332
|
+
This workflow favors code + tests over documents — a bug fix is an incomplete feature, not new architecture worth heavy documentation. What gets produced depends on the path taken:
|
|
340
333
|
|
|
341
|
-
|
|
334
|
+
- **Fast path / interactive path** (Phase 2–7): no markdown artifacts. Output is the fix code, a reproduction test, and a git commit on the fix branch. Diagnosis and triage are presented inline to the user, not written to disk.
|
|
335
|
+
- **Complex "Plan and fix now" path**: `/prizmkit-plan` writes `spec.md` (bug description + acceptance criteria) and `plan.md` (fix strategy + test specs) under `.prizmkit/bugfix/<BUG_ID>/`. These are the only persisted documents, and they double as resume anchors.
|
|
342
336
|
|
|
343
337
|
## Comparison with Pipeline Bug Fix
|
|
344
338
|
|
|
@@ -351,7 +345,7 @@ Only 2 artifact files per bug, consistent with the pipeline convention.
|
|
|
351
345
|
| Visibility | Full user interaction at each phase | Async, check status periodically |
|
|
352
346
|
| User verification | Yes (Phase 6) | No (automated) |
|
|
353
347
|
| Best for | Complex bugs needing user input | Batch of well-defined bugs |
|
|
354
|
-
| Artifacts |
|
|
348
|
+
| Artifacts | Code + test (+ spec/plan on complex path) | Pipeline-managed |
|
|
355
349
|
| Commit prefix | `fix(<scope>):` | `fix(<scope>):` |
|
|
356
350
|
|
|
357
351
|
## Error Handling
|
|
@@ -378,6 +372,5 @@ Only 2 artifact files per bug, consistent with the pipeline convention.
|
|
|
378
372
|
## Output
|
|
379
373
|
|
|
380
374
|
- Fixed code with reproduction test
|
|
381
|
-
- `.prizmkit/bugfix/<BUG_ID>/
|
|
382
|
-
- `.prizmkit/bugfix/<BUG_ID>/fix-report.md`
|
|
375
|
+
- On the complex path only: `.prizmkit/bugfix/<BUG_ID>/spec.md` + `plan.md`
|
|
383
376
|
- Git commit with `fix(<scope>):` prefix on dedicated fix branch
|
|
@@ -35,32 +35,7 @@ Ask questions across these dimensions until every aspect is clear. **Adapt to wh
|
|
|
35
35
|
- Server-side logs?
|
|
36
36
|
- Network request/response details?
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- Fix is ≤10 lines of code in a single file
|
|
43
|
-
- No cross-module impact
|
|
44
|
-
- Existing tests cover the affected path (or bug is in untested utility)
|
|
45
|
-
- No data model or API changes
|
|
46
|
-
|
|
47
|
-
### Complex bug → Planning Path (ANY is true)
|
|
48
|
-
- Cross-module impact (>2 files affected)
|
|
49
|
-
- Data model or API changes required
|
|
50
|
-
- Root cause is uncertain or multi-layered
|
|
51
|
-
- Fix requires structural changes
|
|
52
|
-
- Multiple interrelated symptoms
|
|
53
|
-
|
|
54
|
-
## Comparison with Pipeline Bug Fix
|
|
55
|
-
|
|
56
|
-
| Dimension | bug-fix-workflow | bugfix-pipeline-launcher |
|
|
57
|
-
|-----------|-------------------|----------------------------|
|
|
58
|
-
| Scope | One bug at a time | All bugs in batch |
|
|
59
|
-
| Execution | Interactive, in-session | Foreground or background daemon |
|
|
60
|
-
| Diagnosis | Deep interactive Q&A with user | Automated from bug description |
|
|
61
|
-
| Branch | Creates `fix/<BUG_ID>-*` branch | Pipeline manages branches |
|
|
62
|
-
| Visibility | Full user interaction at each phase | Async, check status periodically |
|
|
63
|
-
| User verification | Yes (Phase 6) | No (automated) |
|
|
64
|
-
| Best for | Complex bugs needing user input | Batch of well-defined bugs |
|
|
65
|
-
| Artifacts | Same (fix-plan.md + fix-report.md) | Same |
|
|
66
|
-
| Commit prefix | `fix(<scope>):` | `fix(<scope>):` |
|
|
38
|
+
> Complexity assessment (simple vs complex routing) and the comparison with the
|
|
39
|
+
> background pipeline live in the skill body (§Step 1.4 and §Comparison with
|
|
40
|
+
> Pipeline Bug Fix) — they are flow-control decisions, kept here only by pointer
|
|
41
|
+
> to avoid drift.
|
|
@@ -51,10 +51,8 @@ When the user provides detailed specifications, rules, or implementation require
|
|
|
51
51
|
- File references → store as path string, e.g. `src/auth/login.ts:42-78` or `src/utils/validate.ts — focus on validateEmail function`
|
|
52
52
|
|
|
53
53
|
## When to Use
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- "these tests are failing", "here's an error log", "parse these errors"
|
|
57
|
-
- After receiving bug reports, error logs, or failed test output
|
|
54
|
+
|
|
55
|
+
The `description` frontmatter declares the trigger phrases for this skill. Beyond those:
|
|
58
56
|
|
|
59
57
|
**Do NOT use when:**
|
|
60
58
|
- User wants to start fixing bugs now → use `bugfix-pipeline-launcher`
|
|
@@ -63,15 +61,15 @@ When the user provides detailed specifications, rules, or implementation require
|
|
|
63
61
|
|
|
64
62
|
## Intent Routing
|
|
65
63
|
|
|
66
|
-
This skill handles multiple operations. Determine the user's intent and
|
|
64
|
+
This skill handles multiple operations. Determine the user's intent and dispatch to the matching operation section below — each operation's authoritative trigger phrases live in its own **Operation:** section.
|
|
67
65
|
|
|
68
|
-
| User Intent | Operation
|
|
69
|
-
|
|
70
|
-
| Plan bugs interactively | **Interactive Planning** |
|
|
71
|
-
| Parse error logs into bugs | **From Log** |
|
|
72
|
-
| Parse test failures into bugs | **From Tests** |
|
|
73
|
-
| Validate existing bug list | **Validate** |
|
|
74
|
-
| Summarize bug list | **Summary** |
|
|
66
|
+
| User Intent | Operation Section |
|
|
67
|
+
|---|---|
|
|
68
|
+
| Plan bugs interactively | **Operation: Interactive Planning** |
|
|
69
|
+
| Parse error logs into bugs | **Operation: From Log** |
|
|
70
|
+
| Parse test failures into bugs | **Operation: From Tests** |
|
|
71
|
+
| Validate existing bug list | **Operation: Validate** |
|
|
72
|
+
| Summarize bug list | **Operation: Summary** |
|
|
75
73
|
|
|
76
74
|
## Scenario Routing
|
|
77
75
|
|
|
@@ -99,6 +97,8 @@ Actions:
|
|
|
99
97
|
|
|
100
98
|
## Operation: Interactive Planning
|
|
101
99
|
|
|
100
|
+
Triggers: "plan bug fixes", "report bugs".
|
|
101
|
+
|
|
102
102
|
Launch the interactive bug planning process through 5 phases.
|
|
103
103
|
|
|
104
104
|
### Phase 1: Project Context
|
|
@@ -262,6 +262,8 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
|
|
|
262
262
|
|
|
263
263
|
## Operation: From Log
|
|
264
264
|
|
|
265
|
+
Triggers: "parse this error log", "here's a stack trace", "parse these errors".
|
|
266
|
+
|
|
265
267
|
Batch-parse error logs to generate bug entries without interactive prompts:
|
|
266
268
|
|
|
267
269
|
1. Accept log file path or piped content
|
|
@@ -282,6 +284,8 @@ Batch-parse error logs to generate bug entries without interactive prompts:
|
|
|
282
284
|
|
|
283
285
|
## Operation: From Tests
|
|
284
286
|
|
|
287
|
+
Triggers: "these tests are failing", "parse test output".
|
|
288
|
+
|
|
285
289
|
Batch-parse failed test output:
|
|
286
290
|
|
|
287
291
|
1. Accept test runner output (Jest, pytest, Go test, etc.)
|
|
@@ -296,6 +300,8 @@ Batch-parse failed test output:
|
|
|
296
300
|
|
|
297
301
|
## Operation: Validate
|
|
298
302
|
|
|
303
|
+
Triggers: "validate bug list", "check .prizmkit/plans/bug-fix-list.json".
|
|
304
|
+
|
|
299
305
|
Validate existing `.prizmkit/plans/bug-fix-list.json`:
|
|
300
306
|
|
|
301
307
|
1. Check JSON syntax
|
|
@@ -309,6 +315,8 @@ Validate existing `.prizmkit/plans/bug-fix-list.json`:
|
|
|
309
315
|
|
|
310
316
|
## Operation: Summary
|
|
311
317
|
|
|
318
|
+
Triggers: "bug summary", "show bug list", "list bugs".
|
|
319
|
+
|
|
312
320
|
Print human-readable summary:
|
|
313
321
|
|
|
314
322
|
```
|
|
@@ -112,77 +112,15 @@ Detect user intent from their message, then follow the corresponding workflow:
|
|
|
112
112
|
--action status 2>/dev/null
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
4. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call):
|
|
115
|
+
4. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call with exactly 1 question):
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
Present the three execution modes from the **Execution Mode** section above (Foreground / Background daemon / Manual), multiSelect: false. Then STOP and wait for the user's response before continuing to step 5.
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
**Question 1 — Execution mode** (multiSelect: false):
|
|
122
|
-
- Foreground (Recommended) — pipeline runs in the current session via `run-bugfix.sh run`. Visible output and direct error feedback.
|
|
123
|
-
- Background daemon — pipeline runs fully detached via `launch-bugfix-daemon.sh`. Survives AI CLI session closure.
|
|
124
|
-
- Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
|
|
125
|
-
|
|
126
|
-
⚠️ STOP HERE and wait for user response before continuing to step 5.
|
|
127
|
-
|
|
128
|
-
5. **Ask configuration options** ⚠️ MANDATORY INTERACTIVE STEP — applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 4. You MUST ask the user to configure options and WAIT for their response BEFORE proceeding to step 6.
|
|
129
|
-
|
|
130
|
-
⛔ **HARD STOP**: You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response. You MUST NOT:
|
|
131
|
-
- Combine step 4 and step 5 into one `AskUserQuestion` call (this is the most common violation — execution mode MUST be asked separately in step 4)
|
|
132
|
-
- Skip this step and jump to the next step
|
|
133
|
-
- Merge this step and the next step into one response
|
|
134
|
-
- Assume default values and show the command without asking
|
|
135
|
-
- Show the command as text and ask "ready?" without presenting the options
|
|
136
|
-
If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
|
|
137
|
-
|
|
138
|
-
Use `AskUserQuestion` to present ALL 4 configuration choices (the full 4-question budget goes to config, NOT shared with execution mode):
|
|
139
|
-
|
|
140
|
-
**Question 1 — Verbose logging** (multiSelect: false):
|
|
141
|
-
- On (default) — Detailed AI session logs including tool calls and subagent activity
|
|
142
|
-
- Off — Minimal logging
|
|
143
|
-
|
|
144
|
-
**Question 2 — Max retries** (multiSelect: false):
|
|
145
|
-
- 3 (default)
|
|
146
|
-
- 1
|
|
147
|
-
- 5
|
|
148
|
-
|
|
149
|
-
**Question 3 — Critic review** (multiSelect: false):
|
|
150
|
-
- Off (default) — Skip adversarial review
|
|
151
|
-
- On — Enable adversarial critic review: an independent AI agent reviews the diagnosis/plan for completeness and the fix for defects, edge cases, and regression risks. Adds ~5-10 min per bug.
|
|
152
|
-
|
|
153
|
-
**Question 4 — Advanced config?** (multiSelect: false):
|
|
154
|
-
- No (default) — Use defaults for session timeout and failure behavior
|
|
155
|
-
- Yes — Configure session timeout, stop-on-failure, and reasoning effort options
|
|
156
|
-
|
|
157
|
-
Note: Bug filter defaults to all bugs (by severity order). Default Critic to Off unless bugs have `severity: "critical"` or `severity: "high"` (in which case default to On). If the user selects "Other" on any option, handle their custom input.
|
|
158
|
-
|
|
159
|
-
**If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion`:
|
|
160
|
-
|
|
161
|
-
**Question 1 — Session timeout** (multiSelect: false):
|
|
162
|
-
- None (default) — No timeout
|
|
163
|
-
- 30 min — `SESSION_TIMEOUT=1800`
|
|
164
|
-
- 1 hour — `SESSION_TIMEOUT=3600`
|
|
165
|
-
- 2 hours — `SESSION_TIMEOUT=7200`
|
|
166
|
-
|
|
167
|
-
**Question 2 — Stop on failure** (multiSelect: false):
|
|
168
|
-
- Off (default) — Pipeline continues to next task after failure
|
|
169
|
-
- On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
|
|
170
|
-
|
|
171
|
-
**Question 3 — Deploy after completion?** (multiSelect: false):
|
|
172
|
-
- No (default) — Skip deployment after pipeline completes
|
|
173
|
-
- Yes — Run /prizmkit-deploy automatically after all bugs fixed successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any bug was not fixed (status not 'completed', 'skipped', or 'needs_info').
|
|
174
|
-
|
|
175
|
-
**Question 4 — Reasoning effort** (multiSelect: false):
|
|
176
|
-
- Default (none) — Use CLI default
|
|
177
|
-
- low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
|
|
178
|
-
- medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
|
|
179
|
-
- high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
|
|
180
|
-
- xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
|
|
181
|
-
- max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
|
|
182
|
-
|
|
183
|
-
**Environment variable mapping** and **advanced environment variables** tables — read `${SKILL_DIR}/references/configuration.md` for the full translation tables (8 config→env mappings + 8 advanced variables).
|
|
119
|
+
5. **Ask configuration options** — applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 4.
|
|
184
120
|
|
|
121
|
+
RULE: Execution mode (step 4) and configuration (step 5) are two distinct `AskUserQuestion` calls, asked in order, each followed by waiting for the user's answer. Merging them, assuming defaults, or showing the final command before the user has answered both rounds produces a misconfigured pipeline that runs autonomously for a long time — so it MUST NOT happen. If you find yourself writing the final command before the user has answered, STOP.
|
|
185
122
|
|
|
123
|
+
The step-5 questions (4 round-1 questions, plus a round 2 if the user picks "Yes" to Advanced config) and their env-var mappings are enumerated in `${SKILL_DIR}/references/configuration.md` under "Interactive Configuration Options". Present round 1 as one `AskUserQuestion` call; run round 2 only if Advanced config = Yes. Then STOP and wait for the user's response before continuing to step 6.
|
|
186
124
|
6. **Show final command**: Assemble the complete command from execution mode + confirmed configuration, and present it to the user.
|
|
187
125
|
|
|
188
126
|
**Foreground command:**
|
|
@@ -11,7 +11,7 @@ Translating user responses to env vars:
|
|
|
11
11
|
| Verbose: Off | `VERBOSE=0` |
|
|
12
12
|
| Verbose: On | `VERBOSE=1` |
|
|
13
13
|
| Max retries: N | `MAX_RETRIES=N` |
|
|
14
|
-
| Critic: On | `ENABLE_CRITIC=
|
|
14
|
+
| Critic: On | `ENABLE_CRITIC=1` |
|
|
15
15
|
| Timeout: value | `SESSION_TIMEOUT=<seconds>` |
|
|
16
16
|
| Stop on failure: On | `STOP_ON_FAILURE=1` |
|
|
17
17
|
| Deploy: Yes | `ENABLE_DEPLOY=1` |
|
|
@@ -32,6 +32,55 @@ Not exposed in interactive menu, pass via `--env`:
|
|
|
32
32
|
| `LOG_RETENTION_DAYS` | `14` | Delete logs older than N days |
|
|
33
33
|
| `LOG_MAX_TOTAL_MB` | `1024` | Keep total logs under N MB via oldest-first cleanup |
|
|
34
34
|
|
|
35
|
+
## Interactive Configuration Options
|
|
36
|
+
|
|
37
|
+
Present these via `AskUserQuestion` in step 5. Round 1 is one `AskUserQuestion` call with all 4 questions; round 2 only runs if the user picks "Yes" to Advanced config.
|
|
38
|
+
|
|
39
|
+
### Round 1 (always asked)
|
|
40
|
+
|
|
41
|
+
**Question 1 — Verbose logging** (multiSelect: false):
|
|
42
|
+
- On (default) — Detailed AI session logs including tool calls and subagent activity
|
|
43
|
+
- Off — Minimal logging
|
|
44
|
+
|
|
45
|
+
**Question 2 — Max retries** (multiSelect: false):
|
|
46
|
+
- 3 (default)
|
|
47
|
+
- 1
|
|
48
|
+
- 5
|
|
49
|
+
|
|
50
|
+
**Question 3 — Critic review** (multiSelect: false):
|
|
51
|
+
- Off (default) — Skip adversarial review (`ENABLE_CRITIC=0`)
|
|
52
|
+
- On — Enable adversarial critic review (`ENABLE_CRITIC=1`): an independent AI agent reviews the diagnosis/plan for completeness and the fix for defects, edge cases, and regression risks. Adds ~5-10 min per bug.
|
|
53
|
+
|
|
54
|
+
**Question 4 — Advanced config?** (multiSelect: false):
|
|
55
|
+
- No (default) — Use defaults for session timeout and failure behavior
|
|
56
|
+
- Yes — Configure session timeout, stop-on-failure, deploy, and reasoning effort options
|
|
57
|
+
|
|
58
|
+
Note: Bug filter defaults to all bugs (by severity order). Default Critic to Off unless bugs have `severity: "critical"` or `severity: "high"` (in which case default to On). If the user selects "Other" on any option, handle their custom input.
|
|
59
|
+
|
|
60
|
+
### Round 2 (only if Advanced config = Yes)
|
|
61
|
+
|
|
62
|
+
**Question 1 — Session timeout** (multiSelect: false):
|
|
63
|
+
- None (default) — No timeout
|
|
64
|
+
- 30 min — `SESSION_TIMEOUT=1800`
|
|
65
|
+
- 1 hour — `SESSION_TIMEOUT=3600`
|
|
66
|
+
- 2 hours — `SESSION_TIMEOUT=7200`
|
|
67
|
+
|
|
68
|
+
**Question 2 — Stop on failure** (multiSelect: false):
|
|
69
|
+
- Off (default) — Pipeline continues to next task after failure
|
|
70
|
+
- On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
|
|
71
|
+
|
|
72
|
+
**Question 3 — Deploy after completion?** (multiSelect: false):
|
|
73
|
+
- No (default) — Skip deployment after pipeline completes
|
|
74
|
+
- Yes — Run /prizmkit-deploy automatically after all bugs fixed successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any bug was not fixed (status not 'completed', 'skipped', or 'needs_info').
|
|
75
|
+
|
|
76
|
+
**Question 4 — Reasoning effort** (multiSelect: false):
|
|
77
|
+
- Default (none) — Use CLI default
|
|
78
|
+
- low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
|
|
79
|
+
- medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
|
|
80
|
+
- high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
|
|
81
|
+
- xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
|
|
82
|
+
- max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
|
|
83
|
+
|
|
35
84
|
## Error Handling
|
|
36
85
|
|
|
37
86
|
| Error | Action |
|
|
@@ -7,37 +7,27 @@ description: "Launch and manage the dev-pipeline from within an AI CLI session.
|
|
|
7
7
|
|
|
8
8
|
Launch the autonomous development pipeline from within an AI CLI conversation. The pipeline runs as a fully detached background process -- closing the AI CLI session does NOT stop the pipeline.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Three execution modes are available. The user chooses one before configuring other options:
|
|
13
|
-
|
|
14
|
-
1. **Foreground** (recommended) — `.prizmkit/dev-pipeline/run-feature.sh run`. Visible output, direct error feedback, no orphaned processes.
|
|
15
|
-
2. **Background daemon** — `.prizmkit/dev-pipeline/launch-feature-daemon.sh`. Runs fully detached, survives AI CLI session closure.
|
|
16
|
-
3. **Manual** — Display the assembled command(s) only. Do not execute anything. User runs them on their own.
|
|
10
|
+
Three execution modes are available (Foreground / Background daemon / Manual); they are defined authoritatively in **Intent A, step 5** below.
|
|
17
11
|
|
|
18
12
|
### When to Use
|
|
19
13
|
|
|
20
14
|
**Start pipeline** -- User says:
|
|
21
|
-
- "run pipeline", "
|
|
22
|
-
- "
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- "run only F-001 to F-005", "run features F-001,F-003", "only build these features"
|
|
15
|
+
- "run feature pipeline", "run pipeline", "start building features", "launch feature pipeline"
|
|
16
|
+
- "start implementing", "execute feature list", "build all features"
|
|
17
|
+
- After feature-planner completes: "build them", "start building from the list"
|
|
18
|
+
- Supports running a feature subset (e.g. "run only F-001 to F-005", "run features F-001,F-003").
|
|
26
19
|
|
|
27
20
|
**Check status** -- User says:
|
|
28
|
-
- "pipeline status", "check pipeline", "how's
|
|
29
|
-
- "check progress", "what's the current situation"
|
|
21
|
+
- "pipeline status", "feature progress", "check the pipeline", "how's the build going"
|
|
30
22
|
|
|
31
23
|
**Stop pipeline** -- User says:
|
|
32
|
-
- "stop pipeline", "
|
|
33
|
-
- "stop the pipeline", "pause the pipeline"
|
|
24
|
+
- "stop pipeline", "stop the pipeline", "halt pipeline", "pause the build"
|
|
34
25
|
|
|
35
26
|
**Show logs** -- User says:
|
|
36
|
-
- "
|
|
37
|
-
- "view logs", "check the logs"
|
|
27
|
+
- "pipeline logs", "show pipeline logs", "what's building"
|
|
38
28
|
|
|
39
|
-
**Retry single feature
|
|
40
|
-
- "retry F-
|
|
29
|
+
**Retry single feature** -- User says:
|
|
30
|
+
- "retry F-001", "re-run F-001", "retry this feature"
|
|
41
31
|
|
|
42
32
|
**Do NOT use this skill when:**
|
|
43
33
|
- User wants to plan features (use `feature-planner` instead)
|
|
@@ -129,9 +119,9 @@ Detect user intent from their message, then follow the corresponding workflow:
|
|
|
129
119
|
|
|
130
120
|
If `global_context.database` is absent and no features mention database keywords, the script skips DB checks automatically.
|
|
131
121
|
|
|
132
|
-
5. **Ask execution mode** (first user decision
|
|
122
|
+
5. **Ask execution mode** (first user decision):
|
|
133
123
|
|
|
134
|
-
|
|
124
|
+
**RULE: Ask step 5 and step 6 in separate `AskUserQuestion` calls.** Combining them makes the model merge the questions and skip the mode selection. Ask execution mode ALONE here, wait for the response, THEN proceed to step 6.
|
|
135
125
|
|
|
136
126
|
Use `AskUserQuestion` with exactly 1 question:
|
|
137
127
|
|
|
@@ -140,19 +130,11 @@ Detect user intent from their message, then follow the corresponding workflow:
|
|
|
140
130
|
- Background daemon — pipeline runs fully detached via `launch-feature-daemon.sh`. Survives AI CLI session closure.
|
|
141
131
|
- Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
|
|
142
132
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
6. **Ask configuration options** ⚠️ MANDATORY INTERACTIVE STEP — applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 5. You MUST ask the user to configure options and WAIT for their response BEFORE proceeding to step 7.
|
|
133
|
+
STOP HERE and wait for user response before continuing to step 6.
|
|
146
134
|
|
|
147
|
-
|
|
148
|
-
- Combine step 5 and step 6 into one `AskUserQuestion` call (this is the most common violation — execution mode MUST be asked separately in step 5)
|
|
149
|
-
- Skip this step and jump to step 7
|
|
150
|
-
- Merge step 6 and step 7 into one response
|
|
151
|
-
- Assume default values and show the command without asking
|
|
152
|
-
- Show the command as text and ask "ready?" without presenting the options
|
|
153
|
-
If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
|
|
135
|
+
6. **Ask configuration options** — MANDATORY INTERACTIVE STEP, applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 5 (see the RULE above). You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response before proceeding to step 7. Do NOT assume defaults, do NOT show the command as text and ask "ready?", and do NOT merge step 6 and step 7. If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
|
|
154
136
|
|
|
155
|
-
Use `AskUserQuestion` to present ALL 4 configuration choices
|
|
137
|
+
Use `AskUserQuestion` to present ALL 4 configuration choices:
|
|
156
138
|
|
|
157
139
|
**Question 1 — Critic review** (multiSelect: false):
|
|
158
140
|
- Off (default) — Skip adversarial review
|
|
@@ -173,29 +155,7 @@ Detect user intent from their message, then follow the corresponding workflow:
|
|
|
173
155
|
|
|
174
156
|
Default Critic to Off unless features have `estimated_complexity: "high"` or above (in which case default to On).
|
|
175
157
|
|
|
176
|
-
**If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion
|
|
177
|
-
|
|
178
|
-
**Question 1 — Session timeout** (multiSelect: false):
|
|
179
|
-
- None (default) — No timeout
|
|
180
|
-
- 30 min — `SESSION_TIMEOUT=1800`
|
|
181
|
-
- 1 hour — `SESSION_TIMEOUT=3600`
|
|
182
|
-
- 2 hours — `SESSION_TIMEOUT=7200`
|
|
183
|
-
|
|
184
|
-
**Question 2 — Stop on failure** (multiSelect: false):
|
|
185
|
-
- Off (default) — Pipeline continues to next task after failure
|
|
186
|
-
- On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
|
|
187
|
-
|
|
188
|
-
**Question 3 — Deploy after completion?** (multiSelect: false):
|
|
189
|
-
- No (default) — Skip deployment after pipeline completes
|
|
190
|
-
- Yes — Run /prizmkit-deploy automatically after all features complete successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any feature did not complete successfully (status not 'completed' or manually 'skipped').
|
|
191
|
-
|
|
192
|
-
**Question 4 — Reasoning effort** (multiSelect: false):
|
|
193
|
-
- Default (none) — Use CLI default
|
|
194
|
-
- low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
|
|
195
|
-
- medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
|
|
196
|
-
- high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
|
|
197
|
-
- xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
|
|
198
|
-
- max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
|
|
158
|
+
**If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion` — see the advanced config questions (session timeout, stop-on-failure, deploy-after-completion, reasoning effort) in `${SKILL_DIR}/references/configuration.md`.
|
|
199
159
|
|
|
200
160
|
**Environment variable mapping** and **advanced environment variables** tables — read `${SKILL_DIR}/references/configuration.md` for the full translation tables (8 config→env mappings + 9 advanced variables).
|
|
201
161
|
|