prizmkit 1.0.153 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/bin/create-prizmkit.js +27 -2
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/adapters/claude/paths.js +1 -1
  4. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +482 -57
  5. package/bundled/dev-pipeline/scripts/parse-stream-progress.py +2 -6
  6. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +6 -0
  7. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +6 -0
  8. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +7 -1
  9. package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +11 -0
  10. package/bundled/dev-pipeline/templates/sections/critical-paths-agent.md +9 -0
  11. package/bundled/dev-pipeline/templates/sections/critical-paths-full.md +12 -0
  12. package/bundled/dev-pipeline/templates/sections/critical-paths-lite.md +7 -0
  13. package/bundled/dev-pipeline/templates/sections/directory-convention-agent.md +8 -0
  14. package/bundled/dev-pipeline/templates/sections/directory-convention-full.md +9 -0
  15. package/bundled/dev-pipeline/templates/sections/directory-convention-lite.md +6 -0
  16. package/bundled/dev-pipeline/templates/sections/failure-capture.md +21 -0
  17. package/bundled/dev-pipeline/templates/sections/failure-log-check.md +8 -0
  18. package/bundled/dev-pipeline/templates/sections/feature-context.md +23 -0
  19. package/bundled/dev-pipeline/templates/sections/phase-analyze-agent.md +15 -0
  20. package/bundled/dev-pipeline/templates/sections/phase-analyze-full.md +15 -0
  21. package/bundled/dev-pipeline/templates/sections/phase-browser-verification.md +31 -0
  22. package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +36 -0
  23. package/bundled/dev-pipeline/templates/sections/phase-commit.md +26 -0
  24. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +14 -0
  25. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-base.md +20 -0
  26. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-lite-suffix.md +3 -0
  27. package/bundled/dev-pipeline/templates/sections/phase-critic-code.md +24 -0
  28. package/bundled/dev-pipeline/templates/sections/phase-critic-plan-full.md +45 -0
  29. package/bundled/dev-pipeline/templates/sections/phase-critic-plan.md +24 -0
  30. package/bundled/dev-pipeline/templates/sections/phase-deploy-verification.md +36 -0
  31. package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +24 -0
  32. package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -0
  33. package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +32 -0
  34. package/bundled/dev-pipeline/templates/sections/phase-plan-agent.md +17 -0
  35. package/bundled/dev-pipeline/templates/sections/phase-plan-lite.md +16 -0
  36. package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +28 -0
  37. package/bundled/dev-pipeline/templates/sections/phase-review-full.md +36 -0
  38. package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +82 -0
  39. package/bundled/dev-pipeline/templates/sections/phase0-init.md +4 -0
  40. package/bundled/dev-pipeline/templates/sections/phase0-test-baseline.md +12 -0
  41. package/bundled/dev-pipeline/templates/sections/resume-header.md +2 -0
  42. package/bundled/dev-pipeline/templates/sections/session-context.md +6 -0
  43. package/bundled/dev-pipeline/templates/sections/subagent-timeout-recovery.md +6 -0
  44. package/bundled/skills/_metadata.json +21 -177
  45. package/bundled/skills/app-planner/SKILL.md +22 -3
  46. package/bundled/skills/app-planner/references/project-brief-guide.md +110 -0
  47. package/bundled/skills/bug-fix-workflow/SKILL.md +4 -0
  48. package/bundled/skills/bug-planner/SKILL.md +2 -2
  49. package/bundled/skills/dev-pipeline-launcher/SKILL.md +1 -1
  50. package/bundled/skills/prizm-kit/SKILL.md +18 -47
  51. package/bundled/skills/prizm-kit/assets/project-memory-template.md +1 -1
  52. package/bundled/skills/prizmkit-analyze/SKILL.md +4 -4
  53. package/bundled/skills/prizmkit-init/SKILL.md +4 -4
  54. package/bundled/skills/prizmkit-plan/SKILL.md +126 -108
  55. package/bundled/skills/prizmkit-plan/assets/plan-template.md +1 -2
  56. package/bundled/skills/prizmkit-plan/references/clarify-guide.md +67 -0
  57. package/bundled/skills/refactor-workflow/SKILL.md +142 -124
  58. package/bundled/team/prizm-dev-team.json +2 -8
  59. package/package.json +1 -1
  60. package/src/clean.js +8 -0
  61. package/src/config.js +504 -0
  62. package/src/gitignore-template.js +12 -0
  63. package/src/index.js +3 -22
  64. package/src/prompts.js +210 -0
  65. package/src/scaffold.js +20 -11
  66. package/src/upgrade.js +6 -31
  67. package/bundled/skills/prizmkit-clarify/SKILL.md +0 -93
  68. package/bundled/skills/prizmkit-specify/SKILL.md +0 -118
  69. package/bundled/skills/prizmkit-tool-adr-manager/SKILL.md +0 -67
  70. package/bundled/skills/prizmkit-tool-adr-manager/assets/adr-template.md +0 -26
  71. package/bundled/skills/prizmkit-tool-api-doc-generator/SKILL.md +0 -55
  72. package/bundled/skills/prizmkit-tool-bug-reproducer/SKILL.md +0 -61
  73. package/bundled/skills/prizmkit-tool-ci-cd-generator/SKILL.md +0 -53
  74. package/bundled/skills/prizmkit-tool-db-migration/SKILL.md +0 -64
  75. package/bundled/skills/prizmkit-tool-dependency-health/SKILL.md +0 -122
  76. package/bundled/skills/prizmkit-tool-deployment-strategy/SKILL.md +0 -57
  77. package/bundled/skills/prizmkit-tool-error-triage/SKILL.md +0 -54
  78. package/bundled/skills/prizmkit-tool-log-analyzer/SKILL.md +0 -54
  79. package/bundled/skills/prizmkit-tool-monitoring-setup/SKILL.md +0 -74
  80. package/bundled/skills/prizmkit-tool-onboarding-generator/SKILL.md +0 -69
  81. package/bundled/skills/prizmkit-tool-perf-profiler/SKILL.md +0 -54
  82. package/bundled/skills/prizmkit-tool-security-audit/SKILL.md +0 -129
  83. package/bundled/skills/prizmkit-tool-tech-debt-tracker/SKILL.md +0 -138
  84. /package/bundled/skills/{prizmkit-specify → prizmkit-plan}/assets/spec-template.md +0 -0
@@ -0,0 +1,17 @@
1
+ ### Plan & Tasks
2
+
3
+ ```bash
4
+ ls .prizmkit/specs/{{FEATURE_SLUG}}/plan.md 2>/dev/null
5
+ ```
6
+
7
+ If missing, write it yourself:
8
+ - `plan.md`: architecture — components, interfaces, data flow, files to create/modify, testing approach, and a Tasks section with `[ ]` checkboxes ordered by dependency
9
+
10
+ **Database Design Gate** (if feature involves data persistence — new tables, schema changes, new entities):
11
+ Before proceeding past CP-1, verify:
12
+ 1. Plan.md Data Model section references existing schema/model files (scan for `*.prisma`, `*.sql`, `migrations/`, `models/`, `*.entity.*` files; read them if not already in context-snapshot)
13
+ 2. All new tables/fields follow existing naming conventions, ID strategy, timestamp patterns, and constraint style
14
+ 3. No `[NEEDS CLARIFICATION]` remains in Data Model section — resolve by reading existing code and making a conservative choice that matches existing patterns. Document the resolution in plan.md.
15
+ 4. If a DB design decision genuinely cannot be resolved from existing code alone, document the assumption made and flag it in the Implementation Log for user review.
16
+
17
+ **CP-1**: plan.md exists with Tasks section.
@@ -0,0 +1,16 @@
1
+ ### Plan & Tasks
2
+
3
+ ```bash
4
+ ls .prizmkit/specs/{{FEATURE_SLUG}}/ 2>/dev/null
5
+ ```
6
+
7
+ If plan.md missing, write it directly:
8
+ - `plan.md`: key components, data flow, files to create/modify, and a Tasks section with `[ ]` checkboxes (each task = one implementable unit). Keep under 80 lines.
9
+
10
+ **Database Design Gate** (if feature involves data persistence — new tables, schema changes, new entities):
11
+ Before proceeding past CP-1:
12
+ 1. Scan for existing schema files (`*.prisma`, `*.sql`, `migrations/`, `models/`, `*.entity.*`) and read them
13
+ 2. Ensure new tables/fields follow existing naming conventions and constraint patterns
14
+ 3. Resolve all uncertain DB design decisions before writing Tasks — document choices in plan.md
15
+
16
+ **CP-1**: plan.md exists with Tasks section.
@@ -0,0 +1,28 @@
1
+ ### Review + Test — Reviewer Subagent
2
+
3
+ Spawn Reviewer subagent (Agent tool, subagent_type="prizm-dev-team-reviewer", run_in_background=false).
4
+
5
+ Prompt:
6
+ > "Read {{REVIEWER_SUBAGENT_PATH}}. For feature {{FEATURE_ID}} (slug: {{FEATURE_SLUG}}):
7
+ > **IMPORTANT**: Read `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md` FIRST.
8
+ > 1. Read `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`:
9
+ > - Section 3: Prizm Context (RULES, PATTERNS to check against)
10
+ > - Section 4: File Manifest (original file structure)
11
+ > - '## Implementation Log': what Dev changed, key decisions, discoveries
12
+ > 2. Run prizmkit-code-review (both phases): Phase 1 diagnostic review (spec compliance, code quality, correctness), then Phase 2 fix strategy formulation for any findings. Read ONLY files listed in Implementation Log for diagnosis; MAY read additional files for impact analysis.
13
+ > 3. Run the full test suite — **ONLY if the Implementation Log does not already confirm all tests passing**. If the log states tests passed, trust it and skip the re-run. When running: `$TEST_CMD 2>&1 | tee /tmp/review-test-out.txt | tail -20`, then grep the file for details — do NOT re-run the suite multiple times. Write and execute integration tests covering all user stories.
14
+ > 4. Write structured '## Review Notes' to context-snapshot.md with Fix Instructions (Root Cause, Impact, Fix Strategy, Code Guidance, Verification for each finding) and Re-Review Expectations.
15
+ > Report verdict: PASS, PASS_WITH_WARNINGS, or NEEDS_FIXES."
16
+
17
+ Wait for Reviewer to return.
18
+
19
+ **Gate Check — Review Notes**:
20
+ After Reviewer agent returns, verify the Review Notes were written:
21
+ ```bash
22
+ grep -q "## Review Notes" .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md && echo "GATE:PASS" || echo "GATE:MISSING"
23
+ ```
24
+ If GATE:MISSING — send message to Reviewer (re-spawn if needed): "Write the '## Review Notes' section to context-snapshot.md with structured Fix Instructions. Include: verdict, findings with Root Cause/Impact/Fix Strategy/Code Guidance/Verification, and Re-Review Expectations."
25
+
26
+ - If NEEDS_FIXES: spawn Dev to fix (Dev reads Fix Instructions in snapshot), re-run Review (max 3 rounds)
27
+
28
+ **CP-3**: Tests pass, verdict is not NEEDS_FIXES.
@@ -0,0 +1,36 @@
1
+ ### Review + Test — Reviewer Agent
2
+
3
+ Spawn Reviewer agent (Agent tool, subagent_type="prizm-dev-team-reviewer", run_in_background=false).
4
+
5
+ Prompt:
6
+ > "Read {{REVIEWER_SUBAGENT_PATH}}. For feature {{FEATURE_ID}} (slug: {{FEATURE_SLUG}}):
7
+ > **IMPORTANT**: Read `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md` FIRST.
8
+ > 1. Read `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`:
9
+ > - Section 3: Prizm Context (RULES, PATTERNS to check against)
10
+ > - Section 4: File Manifest (original file structure)
11
+ > - '## Implementation Log': what Dev changed, key decisions, discoveries
12
+ > 2. Run prizmkit-code-review (both phases): Phase 1 diagnostic review (spec compliance, code quality, correctness), then Phase 2 fix strategy formulation for any findings. Read ONLY files listed in Implementation Log for diagnosis; MAY read additional files for impact analysis.
13
+ > 3. Run the full test suite using `TEST_CMD=<TEST_CMD>` — **ONLY if the Implementation Log does not already confirm all tests passing**. If Implementation Log states tests passed, trust it and skip the re-run. When running tests: `$TEST_CMD 2>&1 | tee /tmp/review-test-out.txt | tail -20`, then grep `/tmp/review-test-out.txt` for details — do NOT re-run the suite multiple times. Write and execute integration tests covering all user stories from spec.md.
14
+ > 4. Write structured '## Review Notes' to context-snapshot.md with Fix Instructions (Root Cause, Impact, Fix Strategy, Code Guidance, Verification for each finding) and Re-Review Expectations.
15
+ > Report verdict: PASS, PASS_WITH_WARNINGS, or NEEDS_FIXES."
16
+
17
+ Wait for Reviewer to return.
18
+
19
+ **Gate Check — Review Notes**:
20
+ After Reviewer agent returns, verify the Review Notes were written:
21
+ ```bash
22
+ grep -q "## Review Notes" .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md && echo "GATE:PASS" || echo "GATE:MISSING"
23
+ ```
24
+ If GATE:MISSING — send message to Reviewer (re-spawn if needed): "Write the '## Review Notes' section to context-snapshot.md with structured Fix Instructions. Include: verdict, findings with Root Cause/Impact/Fix Strategy/Code Guidance/Verification, and Re-Review Expectations."
25
+
26
+ - If NEEDS_FIXES: spawn Dev to fix with this prompt:
27
+ > "Read {{DEV_SUBAGENT_PATH}}. Fix NEEDS_FIXES issues for feature {{FEATURE_ID}} (slug: {{FEATURE_SLUG}}).
28
+ > 1. Read `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md` — '## Review Notes' section contains structured Fix Instructions with exact steps.
29
+ > 2. Follow Fix Instructions in order (respect Depends On / Blocks dependencies). Each FIX-N has: Root Cause, Fix Strategy, Code Guidance, and Verification criteria.
30
+ > 3. After each fix, run the Verification command listed in that FIX-N to confirm it works.
31
+ > 4. Use `TEST_CMD=<TEST_CMD>` to verify no regressions.
32
+ > 5. Append fix summary to '## Implementation Log' in context-snapshot.md.
33
+ > 6. Do NOT execute any git commands."
34
+ Then re-run Review (max 3 rounds).
35
+
36
+ **CP-3**: Integration tests pass, verdict is not NEEDS_FIXES.
@@ -0,0 +1,82 @@
1
+ ### Specify + Plan (Full Workflow)
2
+
3
+ **Check for previous failure log:**
4
+ ```bash
5
+ cat .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md 2>/dev/null || echo "NO_PREVIOUS_FAILURE"
6
+ ```
7
+ If failure-log.md exists:
8
+ - Read ROOT_CAUSE and SUGGESTION — adjust your approach accordingly
9
+ - Read DISCOVERED_TRAPS — if any are genuine, inject into .prizm-docs/ during Phase 6 retrospective
10
+ - Do NOT delete failure-log.md until this session completes all phases and commits successfully
11
+
12
+ Check existing artifacts first:
13
+ ```bash
14
+ ls .prizmkit/specs/{{FEATURE_SLUG}}/ 2>/dev/null
15
+ ```
16
+
17
+ - Both (spec.md, plan.md) exist → **SKIP to CP-1**
18
+ - `context-snapshot.md` exists → use it directly, skip context snapshot building
19
+ - Some missing → generate only missing files
20
+
21
+ Before planning, check whether feature code already exists in the project (search in source directories identified from `root.prizm` or the project tree scan):
22
+ ```bash
23
+ grep -r "{{FEATURE_SLUG}}" . --include="*.js" --include="*.ts" --include="*.py" --include="*.go" --include="*.java" --include="*.rb" --include="*.rs" -l --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist --exclude-dir=build --exclude-dir=vendor --exclude-dir=.prizmkit 2>/dev/null | head -20
24
+ ```
25
+
26
+ Record result as `EXISTING_CODE` (list of files, or empty).
27
+
28
+ If `EXISTING_CODE` is non-empty: your spec/plan/tasks must reflect this existing implementation — document what exists, identify gaps, do NOT re-implement what is already done.
29
+
30
+ **Step A — Build Context Snapshot** (skip if `context-snapshot.md` already exists):
31
+
32
+ 1. Read `.prizm-docs/root.prizm` and relevant L1/L2 prizm docs
33
+ 2. Detect source code directories: read KEY_FILES and STRUCTURE sections from `root.prizm` to identify where source code lives (e.g. `src/`, `app/`, `lib/`, `cmd/`, `packages/`, or project root). If `root.prizm` is missing, scan the project tree:
34
+ ```bash
35
+ find . -maxdepth 2 -type f \( -name "*.js" -o -name "*.ts" -o -name "*.py" -o -name "*.go" -o -name "*.java" -o -name "*.rb" -o -name "*.rs" \) -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/dist/*' -not -path '*/build/*' -not -path '*/vendor/*' | head -30
36
+ ```
37
+ Identify the top-level source directories from the results.
38
+ 3. Scan the detected source directories for files related to this feature; read each one
39
+ 4. Write `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`:
40
+ - **Section 1 — Feature Brief**: feature description + acceptance criteria (copy from above)
41
+ - **Section 2 — Project Structure**: run the following to get a visual directory tree, then paste output:
42
+ ```bash
43
+ find . -maxdepth 2 -type d -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/dist/*' -not -path '*/build/*' -not -path '*/__pycache__/*' -not -path '*/vendor/*' | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
44
+ ```
45
+ - **Section 3 — Prizm Context**: full content of root.prizm and relevant L1/L2 docs
46
+ - **Section 4 — File Manifest**: For each file relevant to this feature, list: file path, why it's needed (modify/reference/test), key interface signatures (function names + params + return types). Do NOT include full file content — agents read files on-demand. Format:
47
+ ### Files to Modify
48
+ | File | Why Needed | Key Interfaces |
49
+ |------|-----------|----------------|
50
+ | `<source-dir>/config.js` | Add runtime config layer | `config` (Zod object), `configSchema` |
51
+
52
+ ### Files for Reference
53
+ | File | Why Needed | Key Interfaces |
54
+ |------|-----------|----------------|
55
+ | `<source-dir>/security/permission-guard.js` | Permission check integration | `checkCommandPermission(userId, cmd)` |
56
+
57
+ ### Known TRAPS (from .prizm-docs/)
58
+ - <trap entries extracted from L1/L2 docs>
59
+ - **Section 5 — Existing Tests**: full content of related test files as code blocks
60
+ 5. Confirm: `ls .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`
61
+
62
+ **After Step A**: Use context-snapshot.md Section 4 File Manifest to guide targeted file reads. Do NOT scan directories or read unrelated files.
63
+
64
+ **Step B — Planning Artifacts** (generate only missing files):
65
+
66
+ ```bash
67
+ ls .prizmkit/specs/{{FEATURE_SLUG}}/spec.md .prizmkit/specs/{{FEATURE_SLUG}}/plan.md 2>/dev/null
68
+ ```
69
+
70
+ - spec.md missing: Run `/prizmkit-plan` → generate spec.md. Resolve any `[NEEDS CLARIFICATION]` markers using the feature description — do NOT pause for interactive input.
71
+ - plan.md missing: Run `/prizmkit-plan` → generate plan.md (architecture, components, interface design, data model, testing strategy, risk assessment, and Tasks section with `[ ]` checkboxes)
72
+
73
+ > All files go under `.prizmkit/specs/{{FEATURE_SLUG}}/`. Confirm each with `ls` after writing.
74
+
75
+ **Database Design Gate** (if feature involves data persistence — new tables, schema changes, new entities):
76
+ Before proceeding past CP-1, verify:
77
+ 1. Plan.md Data Model section references existing schema/model files (scan for `*.prisma`, `*.sql`, `migrations/`, `models/`, `*.entity.*` files; read them if not already in context-snapshot)
78
+ 2. All new tables/fields follow existing naming conventions, ID strategy, timestamp patterns, and constraint style
79
+ 3. No `[NEEDS CLARIFICATION]` remains in Data Model section — resolve by reading existing code and making a conservative choice that matches existing patterns. Document the resolution in plan.md.
80
+ 4. If a DB design decision genuinely cannot be resolved from existing code alone, document the assumption made and flag it in the Implementation Log for user review.
81
+
82
+ **CP-1**: Both spec.md and plan.md exist.
@@ -0,0 +1,4 @@
1
+ ### Phase 0: Project Bootstrap
2
+ - Run `/prizmkit-init` (invoke the prizmkit-init skill)
3
+ - Run `python3 {{INIT_SCRIPT_PATH}} --project-root {{PROJECT_ROOT}} --feature-id {{FEATURE_ID}} --feature-slug {{FEATURE_SLUG}}`
4
+ - **CP-0**: Verify `.prizm-docs/root.prizm`, `.prizmkit/config.json` exist
@@ -0,0 +1,12 @@
1
+ ### Phase 0: Record Test Baseline & Detect Test Commands
2
+
3
+ **Step 1 — Detect test commands**: You know this project's tech stack. Identify ALL test commands that apply (e.g., `go test ./...`, `npm test`, `cargo test`, `pytest`, `make test`, etc.). Record them as `TEST_CMDS`.
4
+
5
+ **Step 2 — Record pre-existing failure baseline**:
6
+ ```bash
7
+ # Run each test command, capture output
8
+ $TEST_CMD 2>&1 | tee /tmp/test-baseline.txt | tail -20
9
+ ```
10
+ Save the list of **pre-existing failing tests** (if any) as `BASELINE_FAILURES`. These are known failures that existed before this session — Dev must NOT be blamed for them, but must list them in COMPLETION_SIGNAL.
11
+
12
+ > **Test Output Rule**: Always capture test output to a temp file (`tee /tmp/test-out.txt`). Then grep the file instead of re-running the suite.
@@ -0,0 +1,2 @@
1
+ ### Resume from Phase {{RESUME_PHASE}}
2
+ Check `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md` — if it exists, skip context building and use it directly.
@@ -0,0 +1,6 @@
1
+ ## Session Context
2
+
3
+ - **Feature ID**: {{FEATURE_ID}} | **Session**: {{SESSION_ID}} | **Run**: {{RUN_ID}}
4
+ - **Complexity**: {{COMPLEXITY}} | **Retry**: {{RETRY_COUNT}} / {{MAX_RETRIES}}
5
+ - **Previous Status**: {{PREV_SESSION_STATUS}} | **Resume From**: {{RESUME_PHASE}}
6
+ - **Init**: {{INIT_DONE}} | Artifacts: spec={{HAS_SPEC}} plan={{HAS_PLAN}}
@@ -0,0 +1,6 @@
1
+ ## Subagent Timeout Recovery
2
+
3
+ If any agent times out:
4
+ 1. `ls .prizmkit/specs/{{FEATURE_SLUG}}/` — check what exists
5
+ 2. If `context-snapshot.md` exists: open recovery prompt with `"Read .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md for project context and any Implementation Log/Review Notes from previous agents. Run git diff HEAD to see actual code changes already made. Do NOT re-read individual source files unless the File Manifest directs you to."` + only remaining steps + `model: "lite"`
6
+ 3. Max 2 retries per phase. After 2 failures, orchestrator completes the work directly and appends a Recovery Note to context-snapshot.md.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.153",
2
+ "version": "1.1.1",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -15,22 +15,8 @@
15
15
  "hasAssets": false,
16
16
  "hasScripts": false
17
17
  },
18
- "prizmkit-specify": {
19
- "description": "Create structured feature specifications from natural language.",
20
- "tier": "1",
21
- "category": "prizmkit-skill",
22
- "hasAssets": true,
23
- "hasScripts": false
24
- },
25
- "prizmkit-clarify": {
26
- "description": "Interactive requirement clarification. Resolves ambiguities in feature specs. Use when spec has unclear parts or you're unsure about requirements before planning.",
27
- "tier": "1",
28
- "category": "prizmkit-skill",
29
- "hasAssets": false,
30
- "hasScripts": false
31
- },
32
18
  "prizmkit-plan": {
33
- "description": "Generate technical implementation plan and executable task breakdown from feature spec.",
19
+ "description": "Specify and plan features: natural language spec.md plan.md with architecture and executable tasks.",
34
20
  "tier": "1",
35
21
  "category": "prizmkit-skill",
36
22
  "hasAssets": true,
@@ -85,174 +71,78 @@
85
71
  "hasAssets": true,
86
72
  "hasScripts": false
87
73
  },
88
- "prizmkit-tool-tech-debt-tracker": {
89
- "description": "Identify and track technical debt via code pattern analysis.",
90
- "tier": "1",
91
- "category": "prizmkit-tool-skill",
92
- "hasAssets": false,
93
- "hasScripts": false
94
- },
95
- "prizmkit-tool-bug-reproducer": {
96
- "description": "Generate minimal reproduction scripts and test cases from bug descriptions.",
97
- "tier": "1",
98
- "category": "prizmkit-tool-skill",
99
- "hasAssets": false,
100
- "hasScripts": false
101
- },
102
- "prizmkit-tool-adr-manager": {
103
- "description": "Manage Architecture Decision Records. Create, list, and supersede ADRs.",
104
- "tier": "1",
105
- "category": "prizmkit-tool-skill",
106
- "hasAssets": true,
107
- "hasScripts": false
108
- },
109
- "prizmkit-tool-security-audit": {
110
- "description": "AI-assisted security review checklist via static code analysis.",
111
- "tier": "2",
112
- "category": "prizmkit-tool-skill",
113
- "hasAssets": false,
114
- "hasScripts": false
115
- },
116
- "prizmkit-tool-dependency-health": {
117
- "description": "Dependency review based on manifest files.",
118
- "tier": "2",
119
- "category": "prizmkit-tool-skill",
120
- "hasAssets": false,
121
- "hasScripts": false
122
- },
123
- "prizmkit-tool-ci-cd-generator": {
124
- "description": "Generate CI/CD pipeline config templates for GitHub Actions/GitLab CI/Jenkins.",
125
- "tier": "2",
126
- "category": "prizmkit-tool-skill",
127
- "hasAssets": false,
128
- "hasScripts": false
129
- },
130
- "prizmkit-tool-deployment-strategy": {
131
- "description": "Deployment planning with rollback procedures.",
132
- "tier": "2",
133
- "category": "prizmkit-tool-skill",
134
- "hasAssets": false,
135
- "hasScripts": false
136
- },
137
- "prizmkit-tool-db-migration": {
138
- "description": "Database migration script generation with rollback plans.",
139
- "tier": "2",
140
- "category": "prizmkit-tool-skill",
141
- "hasAssets": false,
142
- "hasScripts": false
143
- },
144
- "prizmkit-tool-monitoring-setup": {
145
- "description": "Generate monitoring config templates for Prometheus/Grafana/CloudWatch.",
146
- "tier": "2",
147
- "category": "prizmkit-tool-skill",
148
- "hasAssets": false,
149
- "hasScripts": false
150
- },
151
- "prizmkit-tool-error-triage": {
152
- "description": "Error categorization and root cause analysis via pattern matching.",
153
- "tier": "2",
154
- "category": "prizmkit-tool-skill",
155
- "hasAssets": false,
156
- "hasScripts": false
157
- },
158
- "prizmkit-tool-log-analyzer": {
159
- "description": "Log pattern recognition via text analysis.",
160
- "tier": "2",
161
- "category": "prizmkit-tool-skill",
162
- "hasAssets": false,
163
- "hasScripts": false
164
- },
165
- "prizmkit-tool-perf-profiler": {
166
- "description": "Static analysis for potential performance issues.",
167
- "tier": "2",
168
- "category": "prizmkit-tool-skill",
169
- "hasAssets": false,
170
- "hasScripts": false
171
- },
172
- "prizmkit-tool-onboarding-generator": {
173
- "description": "Generate onboarding documentation from Prizm docs context.",
174
- "tier": "2",
175
- "category": "prizmkit-tool-skill",
176
- "hasAssets": false,
177
- "hasScripts": false
178
- },
179
- "prizmkit-tool-api-doc-generator": {
180
- "description": "Extract API documentation from source code into OpenAPI/Markdown.",
181
- "tier": "2",
182
- "category": "prizmkit-tool-skill",
183
- "hasAssets": false,
184
- "hasScripts": false
185
- },
186
74
  "feature-workflow": {
187
75
  "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.",
188
76
  "tier": "companion",
189
- "category": "Custom-skill",
77
+ "category": "orchestration-skill",
78
+ "subcategory": "workflows",
190
79
  "hasAssets": false,
191
80
  "hasScripts": false
192
81
  },
193
82
  "refactor-workflow": {
194
83
  "description": "End-to-end refactor workflow: analyze → plan → implement → review → commit. Behavior-preserving.",
195
84
  "tier": "1",
196
- "category": "Custom-skill",
85
+ "category": "orchestration-skill",
86
+ "subcategory": "workflows",
197
87
  "hasAssets": false,
198
88
  "hasScripts": false
199
89
  },
200
90
  "bug-planner": {
201
91
  "description": "Interactive bug planning that produces bug-fix-list.json. Supports stack traces, user reports, failed tests, log patterns, monitoring alerts.",
202
92
  "tier": "companion",
203
- "category": "Custom-skill",
93
+ "category": "orchestration-skill",
94
+ "subcategory": "pipelines",
204
95
  "hasAssets": false,
205
96
  "hasScripts": false
206
97
  },
207
98
  "app-planner": {
208
99
  "description": "Interactive planning for new apps and incremental features; outputs validated feature-list.json for dev-pipeline.",
209
100
  "tier": "companion",
210
- "category": "Custom-skill",
101
+ "category": "orchestration-skill",
102
+ "subcategory": "pipelines",
211
103
  "hasAssets": true,
212
104
  "hasScripts": true
213
105
  },
214
106
  "dev-pipeline-launcher": {
215
107
  "description": "Launch and manage the dev-pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline.",
216
108
  "tier": "companion",
217
- "category": "Custom-skill",
109
+ "category": "orchestration-skill",
110
+ "subcategory": "pipelines",
218
111
  "hasAssets": false,
219
112
  "hasScripts": false
220
113
  },
221
114
  "bugfix-pipeline-launcher": {
222
115
  "description": "Launch and manage the bugfix pipeline from within a CLI session.",
223
116
  "tier": "companion",
224
- "category": "Custom-skill",
117
+ "category": "orchestration-skill",
118
+ "subcategory": "pipelines",
225
119
  "hasAssets": false,
226
120
  "hasScripts": false
227
121
  },
228
122
  "bug-fix-workflow": {
229
123
  "description": "Interactive single-bug fix in current session. Guides triage → reproduce → fix → review → commit without background pipeline.",
230
124
  "tier": "companion",
231
- "category": "Custom-skill",
125
+ "category": "orchestration-skill",
126
+ "subcategory": "workflows",
232
127
  "hasAssets": false,
233
128
  "hasScripts": false
234
129
  },
235
130
  "recovery-workflow": {
236
131
  "description": "Recover and resume interrupted feature pipeline sessions. Detects partial work from failed or interrupted sessions and resumes from the correct phase.",
237
132
  "tier": "companion",
238
- "category": "Custom-skill",
133
+ "category": "orchestration-skill",
134
+ "subcategory": "workflows",
239
135
  "hasAssets": false,
240
136
  "hasScripts": false
241
137
  }
242
138
  },
243
139
  "suites": {
244
- "full": {
245
- "description": "All skills",
246
- "skills": "*"
247
- },
248
140
  "core": {
249
- "description": "Core workflow: minimal closed-loop + all orchestration and planning skills (Custom-skill)",
141
+ "description": "All skills: full spec-driven cycle + orchestration + planning + recovery",
250
142
  "skills": [
251
143
  "prizm-kit",
252
144
  "prizmkit-init",
253
145
  "prizmkit-prizm-docs",
254
- "prizmkit-specify",
255
- "prizmkit-clarify",
256
146
  "prizmkit-plan",
257
147
  "prizmkit-analyze",
258
148
  "prizmkit-implement",
@@ -266,7 +156,8 @@
266
156
  "bug-planner",
267
157
  "dev-pipeline-launcher",
268
158
  "bugfix-pipeline-launcher",
269
- "bug-fix-workflow"
159
+ "bug-fix-workflow",
160
+ "recovery-workflow"
270
161
  ]
271
162
  },
272
163
  "minimal": {
@@ -275,8 +166,6 @@
275
166
  "prizm-kit",
276
167
  "prizmkit-init",
277
168
  "prizmkit-prizm-docs",
278
- "prizmkit-specify",
279
- "prizmkit-clarify",
280
169
  "prizmkit-plan",
281
170
  "prizmkit-analyze",
282
171
  "prizmkit-implement",
@@ -286,51 +175,6 @@
286
175
  ]
287
176
  }
288
177
  },
289
- "recommendations": {
290
- "frontend": {
291
- "label": "Frontend (React/Vue/Angular)",
292
- "base": "core",
293
- "include": [
294
- "prizmkit-tool-perf-profiler",
295
- "prizmkit-tool-security-audit",
296
- "prizmkit-tool-ci-cd-generator"
297
- ]
298
- },
299
- "backend": {
300
- "label": "Backend (API/Microservices)",
301
- "base": "core",
302
- "include": [
303
- "prizmkit-tool-db-migration",
304
- "prizmkit-tool-api-doc-generator",
305
- "prizmkit-tool-monitoring-setup",
306
- "prizmkit-tool-deployment-strategy",
307
- "prizmkit-tool-security-audit",
308
- "prizmkit-tool-error-triage",
309
- "prizmkit-tool-log-analyzer"
310
- ]
311
- },
312
- "fullstack": {
313
- "label": "Full-Stack",
314
- "base": "core",
315
- "include": [
316
- "prizmkit-tool-db-migration",
317
- "prizmkit-tool-api-doc-generator",
318
- "prizmkit-tool-ci-cd-generator",
319
- "prizmkit-tool-security-audit",
320
- "prizmkit-tool-deployment-strategy",
321
- "prizmkit-tool-perf-profiler"
322
- ]
323
- },
324
- "library": {
325
- "label": "Library/SDK",
326
- "base": "core",
327
- "include": [
328
- "prizmkit-tool-api-doc-generator",
329
- "prizmkit-tool-ci-cd-generator",
330
- "prizmkit-tool-dependency-health"
331
- ]
332
- }
333
- },
334
178
  "external_skills": {
335
179
  "known": [
336
180
  {
@@ -38,6 +38,7 @@ The user chose this skill intentionally. Respect that choice.
38
38
  2. Architecture decisions appended to `CLAUDE.md` / `CODEBUDDY.md` (with user consent, see §Architecture Decision Capture)
39
39
  3. Draft backups in `.prizmkit/planning/`
40
40
  4. `.prizmkit/project-conventions.json` (project convention answers, see §Project Conventions Check)
41
+ 5. `project-brief.md` (project root — accumulated project context brief for headless pipeline sessions)
41
42
 
42
43
  **After planning is complete**, you MUST:
43
44
  1. Present the summary and recommended next step
@@ -92,13 +93,18 @@ Do NOT use this skill when the user only wants to run the pipeline (`dev-pipelin
92
93
  → If all conventions are already answered → skip silently, do not re-ask
93
94
  → Use convention answers as context when writing feature descriptions and proposing features (see `${SKILL_DIR}/references/project-conventions.md` §How Conventions Are Used)
94
95
 
95
- 7. **Always validate output via script**:
96
+ 7. **Project brief accumulation** Throughout all interactive phases, accumulate a `project-brief.md` at project root:
97
+ → Read `${SKILL_DIR}/references/project-brief-guide.md` for the file template, trigger rules, and update rules
98
+ → Update after each meaningful user response containing business intent, constraints, design decisions, or emphasized details
99
+ → Verify at CP-AP-5.3 before generating `feature-list.json`
100
+
101
+ 8. **Always validate output via script**:
96
102
  - run:
97
103
  ```bash
98
104
  python3 ${SKILL_DIR}/scripts/validate-and-generate.py validate --input <output-path> --mode <new|incremental>
99
105
  ```
100
106
 
101
- 8. **Use script output as source of truth**:
107
+ 9. **Use script output as source of truth**:
102
108
  - if validation fails, **MUST** fix and re-run until pass
103
109
 
104
110
  ## Prerequisites
@@ -173,7 +179,7 @@ Execute the selected scenario workflow in conversation mode with mandatory check
173
179
  ### Interactive Phases
174
180
  1. clarify business goal and scope
175
181
  1.1 confirm deliverable intent (→ Intent Confirmation)
176
- 1.2 **requirement clarification** — apply `/prizmkit-clarify` principles: for ANY unclear aspect of the user's vision, goals, target users, or scope, ask questions one at a time until you fully understand. No limit on rounds or number of questions. Do not proceed to Phase 2 with unresolved ambiguities.
182
+ 1.2 **requirement clarification** — for ANY unclear aspect of the user's vision, goals, target users, or scope, ask questions one at a time (cite the unclear point, give a recommended answer with rationale) until you fully understand. No limit on rounds or number of questions. Do not proceed to Phase 2 with unresolved ambiguities.
177
183
  2. confirm constraints and tech assumptions
178
184
  3. propose feature set with dependencies
179
185
  4. refine descriptions and acceptance criteria
@@ -201,6 +207,7 @@ Note: Checkpoint numbers (CP-AP-N) are sequential identifiers for the gate, NOT
201
207
  | **CP-AP-5** | DAG Validity | No cycles, dependencies resolved (validation dry-run) | 5 |
202
208
  | **CP-AP-5.1** | Browser Interaction Applied | Qualifying features have `browser_interaction` field; user confirmed or opted out | 4 |
203
209
  | **CP-AP-5.2** | Testing Defaults Applied | All features have appropriate `critic`, `critic_count`, and testing expectations per §Testing Defaults | 7 |
210
+ | **CP-AP-5.3** | Project Brief Accumulated | `project-brief.md` exists at project root with Vision + at least one other section | 5 |
204
211
  | **CP-AP-6** | `feature-list.json` Generated | Schema validates, all required keys present | 6-7 |
205
212
  | **CP-AP-7** | Final Validation Pass | Python script returns `"valid": true` with zero errors | 8 |
206
213
 
@@ -377,6 +384,18 @@ Key behaviors:
377
384
  - Interrupted session → detect checkpoint from existing artifacts, offer resume or restart
378
385
  - `feature-list.json` MUST be written to project root (same level as `package.json` / `.git`)
379
386
 
387
+ ## Project Brief Accumulation
388
+
389
+ During interactive planning, maintain a `project-brief.md` at the project root that distills the user's key requirements, design decisions, and context for headless pipeline sessions.
390
+
391
+ → Read `${SKILL_DIR}/references/project-brief-guide.md` for the file template, accumulation trigger, update rules, and examples.
392
+
393
+ **Key rules** (full details in guide):
394
+ - Update after each meaningful user response that contains business intent, constraints, design decisions, or emphasized details
395
+ - Fixed 4-section structure: Vision, Core Constraints, Design Decisions, Key Requirements
396
+ - Max 500 words; one sentence per bullet
397
+ - Checkpoint **CP-AP-5.3**: must exist with Vision + at least one other populated section before CP-AP-6
398
+
380
399
  ## Session Exit Gate
381
400
 
382
401
  Prevent accidental session exit without deliverable completion.