prizmkit 1.0.67 → 1.0.74

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 (39) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/adapters/claude/settings-adapter.js +29 -0
  3. package/bundled/agents/prizm-dev-team-dev.md +104 -90
  4. package/bundled/agents/prizm-dev-team-reviewer.md +111 -100
  5. package/bundled/dev-pipeline/retry-bug.sh +7 -0
  6. package/bundled/dev-pipeline/retry-feature.sh +7 -0
  7. package/bundled/dev-pipeline/run-bugfix.sh +4 -2
  8. package/bundled/dev-pipeline/run.sh +120 -6
  9. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +6 -0
  10. package/bundled/dev-pipeline/scripts/init-pipeline.py +9 -0
  11. package/bundled/dev-pipeline/scripts/parse-stream-progress.py +62 -18
  12. package/bundled/dev-pipeline/templates/agent-knowledge-template.md +13 -0
  13. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +54 -27
  14. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +62 -29
  15. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +86 -37
  16. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +5 -5
  17. package/bundled/rules/USAGE.md +53 -53
  18. package/bundled/rules/prizm/prizm-commit-workflow.md +1 -1
  19. package/bundled/skills/_metadata.json +6 -6
  20. package/bundled/skills/app-planner/SKILL.md +11 -5
  21. package/bundled/skills/bug-fix-workflow/SKILL.md +2 -2
  22. package/bundled/skills/bug-planner/SKILL.md +5 -5
  23. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +11 -11
  24. package/bundled/skills/dev-pipeline-launcher/SKILL.md +39 -25
  25. package/bundled/skills/feature-workflow/SKILL.md +13 -13
  26. package/bundled/skills/prizm-kit/SKILL.md +8 -3
  27. package/bundled/skills/prizm-kit/assets/project-memory-template.md +1 -1
  28. package/bundled/skills/prizmkit-code-review/SKILL.md +4 -2
  29. package/bundled/skills/prizmkit-committer/SKILL.md +4 -4
  30. package/bundled/skills/prizmkit-implement/SKILL.md +10 -4
  31. package/bundled/skills/prizmkit-init/SKILL.md +1 -1
  32. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +3 -3
  33. package/bundled/skills/prizmkit-prizm-docs/assets/PRIZM-SPEC.md +6 -6
  34. package/bundled/skills/prizmkit-retrospective/SKILL.md +79 -18
  35. package/bundled/skills/prizmkit-tool-adr-manager/SKILL.md +2 -2
  36. package/bundled/skills/refactor-workflow/SKILL.md +13 -13
  37. package/bundled/team/prizm-dev-team.json +1 -1
  38. package/package.json +1 -1
  39. package/src/upgrade.js +14 -2
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "bugfix-pipeline-launcher"
3
- description: "Launch and manage the bugfix pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline. Use this skill whenever the user wants to start fixing bugs, run the bugfix pipeline, check bugfix progress, or stop the bugfix pipeline. Trigger on: 'start fixing bugs', 'run bugfix pipeline', 'bugfix status', 'stop bug fix', '启动 bug 修复', '开始修复 bug', '修复进度', '停止修复'. (project)"
3
+ description: "Launch and manage the bugfix pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline. Use this skill whenever the user wants to start fixing bugs, run the bugfix pipeline, check bugfix progress, or stop the bugfix pipeline. Trigger on: 'start fixing bugs', 'run bugfix pipeline', 'bugfix status', 'stop bug fix', 'launch bug fix', 'start fixing bugs', 'fix progress', 'stop fixing'. (project)"
4
4
  ---
5
5
 
6
6
  # Bugfix-Pipeline Launcher
@@ -16,21 +16,21 @@ Always use daemon mode via `dev-pipeline/launch-bugfix-daemon.sh` for start/stop
16
16
  **Start bugfix pipeline** -- User says:
17
17
  - "start fixing bugs", "run bugfix pipeline", "launch bug fixes", "fix all bugs"
18
18
  - "start bug fix", "run bug fix", "execute bug list", "begin fixing"
19
- - "启动 bug 修复", "开始修复 bug", "运行 bug 修复流水线", "开始修 bug"
20
- - "修复所有 bug", "批量修复", "启动修复流水线"
21
- - After bug-planner completes: "fix them", "开始修复"
19
+ - "launch bug fix", "start fixing bugs", "run bug fix pipeline", "start fixing bugs"
20
+ - "fix all bugs", "batch fix", "launch fix pipeline"
21
+ - After bug-planner completes: "fix them", "start fixing"
22
22
 
23
23
  **Check status** -- User says:
24
24
  - "bugfix status", "check bug fixes", "how's the fixing going", "bug fix progress"
25
- - "修复进度", "bug 修复状态", "查看修复进度", "修复到哪了"
25
+ - "fix progress", "bug fix status", "check fix progress", "how far along are the fixes"
26
26
 
27
27
  **Stop bugfix pipeline** -- User says:
28
28
  - "stop bug fix", "stop fixing", "halt bugfix", "pause bug fix"
29
- - "停止修复", "暂停 bug 修复", "停止修复流水线"
29
+ - "stop fixing", "pause bug fix", "stop fix pipeline"
30
30
 
31
31
  **Show logs** -- User says:
32
32
  - "bugfix logs", "show fix logs", "what's being fixed"
33
- - "查看修复日志", "修复日志", "看看修复情况"
33
+ - "view fix logs", "fix logs", "check fix status"
34
34
 
35
35
  **Do NOT use this skill when:**
36
36
  - User wants to plan/collect bugs (use `bug-planner` instead)
@@ -203,9 +203,9 @@ When user specifies custom settings, map to environment variables:
203
203
 
204
204
  | User says | Environment variable |
205
205
  |-----------|---------------------|
206
- | "timeout 2 hours" / "超时2小时" | `SESSION_TIMEOUT=7200` |
207
- | "max 5 retries" / "最多重试5次" | `MAX_RETRIES=5` |
208
- | "verbose mode" / "详细模式" | `VERBOSE=1` |
206
+ | "timeout 2 hours" | `SESSION_TIMEOUT=7200` |
207
+ | "max 5 retries" | `MAX_RETRIES=5` |
208
+ | "verbose mode" | `VERBOSE=1` |
209
209
  | "heartbeat every 60s" | `HEARTBEAT_INTERVAL=60` |
210
210
 
211
211
  Pass via `--env`:
@@ -217,7 +217,7 @@ dev-pipeline/launch-bugfix-daemon.sh start bug-fix-list.json --env "SESSION_TIME
217
217
 
218
218
  #### Intent F: Retry Single Bug
219
219
 
220
- When user says "retry B-001" or "重试 B-001":
220
+ When user says "retry B-001":
221
221
 
222
222
  ```bash
223
223
  dev-pipeline/retry-bug.sh B-001 bug-fix-list.json
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "dev-pipeline-launcher"
3
- description: "Launch and manage the dev-pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline. Use this skill whenever the user wants to start building features, run the pipeline, check pipeline progress, retry features, or stop the pipeline. Trigger on: 'run pipeline', 'start pipeline', 'start building', 'pipeline status', 'stop pipeline', 'retry feature', '启动流水线', '开始实现', '流水线状态', '停止流水线'. (project)"
3
+ description: "Launch and manage the dev-pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline. Use this skill whenever the user wants to start building features, run the pipeline, check pipeline progress, retry features, or stop the pipeline. Trigger on: 'run pipeline', 'start pipeline', 'start building', 'pipeline status', 'stop pipeline', 'retry feature', 'launch pipeline', 'start implementing', 'check pipeline status', 'stop the pipeline'. (project)"
4
4
  ---
5
5
 
6
6
  # Dev-Pipeline Launcher
@@ -9,32 +9,41 @@ Launch the autonomous development pipeline from within an AI CLI conversation. T
9
9
 
10
10
  ### Execution Mode
11
11
 
12
- Always use daemon mode via `dev-pipeline/launch-daemon.sh` for start/stop/status/log actions. Foreground `run.sh` can be terminated by AI CLI session timeout, while daemon mode survives session closure this prevents half-finished features that leave the codebase in an inconsistent state.
12
+ **Default: Foreground mode** via `dev-pipeline/run.sh run` this provides visible output and direct error feedback. Use `launch-daemon.sh` only when the user explicitly requests background execution (e.g., "run in background", "detached mode").
13
+
14
+ Foreground `run.sh` is preferred because:
15
+ - Immediate visibility of errors and progress
16
+ - No orphaned processes if something goes wrong
17
+ - Session summary artifacts are written reliably
18
+
19
+ Use daemon mode (`launch-daemon.sh`) only when:
20
+ - User explicitly requests background/detached execution
21
+ - Pipeline must survive AI CLI session closure
13
22
 
14
23
  ### When to Use
15
24
 
16
25
  **Start pipeline** -- User says:
17
26
  - "run pipeline", "start pipeline", "start building", "launch dev-pipeline"
18
27
  - "run the features", "execute feature list", "start implementing"
19
- - "启动流水线", "开始实现", "运行流水线", "开始自动开发"
20
- - "实现接下来的步骤", "执行 feature list", "开始构建"
21
- - After app-planner completes: "build it", " feature list 开始开发"
28
+ - "launch pipeline", "start implementing", "run the pipeline", "start auto-development"
29
+ - "implement next steps", "execute feature list", "start building"
30
+ - After app-planner completes: "build it", "start developing from the feature list"
22
31
 
23
32
  **Check status** -- User says:
24
33
  - "pipeline status", "check pipeline", "how's it going", "progress"
25
- - "流水线状态", "查看进度", "现在什么情况"
34
+ - "pipeline status", "check progress", "what's the current situation"
26
35
 
27
36
  **Stop pipeline** -- User says:
28
37
  - "stop pipeline", "kill pipeline", "halt", "pause"
29
- - "停止流水线", "暂停流水线"
38
+ - "stop the pipeline", "pause the pipeline"
30
39
 
31
40
  **Show logs** -- User says:
32
41
  - "show logs", "pipeline logs", "tail logs", "what's happening"
33
- - "查看日志", "流水线日志", "看看日志"
42
+ - "view logs", "pipeline logs", "check the logs"
34
43
 
35
44
  **Retry single feature node** -- User says:
36
45
  - "retry F-003", "retry this feature", "retry this node"
37
- - "重试 F-003", "重试这个节点", "重跑这个 feature"
46
+ - "retry F-003", "retry this node", "re-run this feature"
38
47
 
39
48
  **Do NOT use this skill when:**
40
49
  - User wants to plan features (use `app-planner` instead)
@@ -98,31 +107,36 @@ Detect user intent from their message, then follow the corresponding workflow:
98
107
  ```
99
108
 
100
109
  4. **Ask execution mode**: Present the user with a choice before launching:
101
- - **(1) Background daemon (recommended)**: Pipeline runs fully detached via `launch-daemon.sh`. Survives session closure.
102
- - **(2) Foreground in session**: Pipeline runs in the current session via `run.sh run`. Visible output but will stop if session times out.
110
+ - **(1) Foreground in session (recommended)**: Pipeline runs in the current session via `run.sh run`. Visible output and direct error feedback.
111
+ - **(2) Background daemon**: Pipeline runs fully detached via `launch-daemon.sh`. Survives session closure. Use only when user explicitly requests background execution.
103
112
  - **(3) Manual — show commands**: Display the exact commands the user can run themselves. No execution.
104
113
 
105
- Default to option 1 if user says "just run it" or doesn't specify.
114
+ Default to option 1 if user says "just run it" or doesn't specify. Default to option 2 only if user explicitly says "background", "detached", or "run in background".
106
115
 
107
- **If option 2 (foreground)**:
116
+ **If option 1 (foreground)**:
108
117
  ```bash
109
118
  dev-pipeline/run.sh run feature-list.json
110
119
  ```
111
- Note: This will block the session. Warn user about timeout risk.
112
120
 
113
- **If option 3 (manual)**: Print commands and stop. Do not execute anything.
114
- ```
115
- # To run in background (recommended):
121
+ **If option 2 (background)**:
122
+ ```bash
116
123
  dev-pipeline/launch-daemon.sh start feature-list.json
124
+ ```
125
+ Note: Pipeline runs fully detached. Survives session closure.
117
126
 
118
- # To run in foreground:
127
+ **If option 3 (manual)**: Print commands and stop. Do not execute anything.
128
+ ```
129
+ # To run in foreground (recommended):
119
130
  dev-pipeline/run.sh run feature-list.json
120
131
 
132
+ # To run in background (detached):
133
+ dev-pipeline/launch-daemon.sh start feature-list.json
134
+
121
135
  # To check status:
122
- dev-pipeline/launch-daemon.sh status
136
+ dev-pipeline/run.sh status feature-list.json
123
137
  ```
124
138
 
125
- 5. **Ask user to confirm**: "Ready to launch the pipeline? It will process N features in the background."
139
+ 5. **Ask user to confirm**: "Ready to launch the pipeline? It will process N features."
126
140
 
127
141
  6. **Launch**:
128
142
  ```bash
@@ -225,9 +239,9 @@ When user specifies custom settings, map to environment variables:
225
239
 
226
240
  | User says | Environment variable |
227
241
  |-----------|---------------------|
228
- | "timeout 2 hours" / "超时2小时" | `SESSION_TIMEOUT=7200` |
229
- | "max 5 retries" / "最多重试5次" | `MAX_RETRIES=5` |
230
- | "verbose mode" / "详细模式" | `VERBOSE=1` |
242
+ | "timeout 2 hours" | `SESSION_TIMEOUT=7200` |
243
+ | "max 5 retries" | `MAX_RETRIES=5` |
244
+ | "verbose mode" | `VERBOSE=1` |
231
245
  | "heartbeat every 60s" | `HEARTBEAT_INTERVAL=60` |
232
246
 
233
247
  Pass via `--env`:
@@ -239,13 +253,13 @@ dev-pipeline/launch-daemon.sh start feature-list.json --env "SESSION_TIMEOUT=720
239
253
 
240
254
  #### Intent F: Retry Single Feature Node
241
255
 
242
- When user says "retry F-003" or "重试 F-003":
256
+ When user says "retry F-003":
243
257
 
244
258
  ```bash
245
259
  dev-pipeline/retry-feature.sh F-003 feature-list.json
246
260
  ```
247
261
 
248
- When user says "从头重试 F-003" or "clean retry F-003":
262
+ When user says "clean retry F-003" or "retry F-003 from scratch":
249
263
 
250
264
  ```bash
251
265
  dev-pipeline/reset-feature.sh F-003 --clean --run feature-list.json
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: "feature-workflow"
3
3
  tier: companion
4
- description: "One-stop entry point for feature development. Orchestrates app-planner → dev-pipeline-launcher → background execution. Handles multi-feature batch development from a single request. Use this skill whenever the user wants to build an app, develop multiple features at once, or go from idea to running code in one step. Trigger on: 'build an app', 'develop features', 'implement all features', 'one-stop development', 'batch implement', '开发一个新应用', '构建系统', '一键完成', '批量实现'. (project)"
4
+ description: "One-stop entry point for feature development. Orchestrates app-planner → dev-pipeline-launcher → background execution. Handles multi-feature batch development from a single request. Use this skill whenever the user wants to build an app, develop multiple features at once, or go from idea to running code in one step. Trigger on: 'build an app', 'develop features', 'implement all features', 'one-stop development', 'batch implement', 'build a new application', 'build a system', 'one-click complete', 'batch implement'. (project)"
5
5
  ---
6
6
 
7
7
  # Feature Workflow
@@ -11,10 +11,10 @@ One-stop entry point for feature development. Orchestrates the complete flow fro
11
11
  ## When to Use
12
12
 
13
13
  User says:
14
- - "开发一个新应用", "构建 XXX 系统", "做一个项目"
15
- - "一键完成这些特性", "批量实现这些需求"
16
- - "从零开始做一个任务管理 App"
17
- - "帮我实现用户登录、注册、头像上传这些功能"
14
+ - "Build a new application", "Build XXX system", "Create a project"
15
+ - "One-click complete these features", "Batch implement these requirements"
16
+ - "Build a task management App from scratch"
17
+ - "Help me implement user login, registration, and avatar upload features"
18
18
  - After receiving a batch of related feature requests
19
19
 
20
20
  **Do NOT use this skill when:**
@@ -28,7 +28,7 @@ User says:
28
28
  ## Overview
29
29
 
30
30
  ```
31
- feature-workflow <需求描述>
31
+ feature-workflow <requirements description>
32
32
 
33
33
  ├── Phase 1: Plan → app-planner → feature-list.json
34
34
 
@@ -53,7 +53,7 @@ Without this skill, users must:
53
53
  3. Manually check progress
54
54
 
55
55
  With this skill, users can:
56
- 1. Say "开发一个任务管理 App" and walk away
56
+ 1. Say "Build a task management App" and walk away
57
57
  2. All planning + execution happens automatically
58
58
 
59
59
  ---
@@ -63,9 +63,9 @@ With this skill, users can:
63
63
  **Mode A: From natural language requirements** (default)
64
64
 
65
65
  Natural language description of the project or features. Can be:
66
- - A project vision: "开发一个任务管理 App,支持用户登录、任务增删改查、任务分类"
67
- - A batch of features: "实现用户注册、登录、找回密码这三个功能"
68
- - An incremental request: "给现有系统追加用户头像上传和昵称修改功能"
66
+ - A project vision: "Build a task management App with user login, task CRUD, and task categories"
67
+ - A batch of features: "Implement user registration, login, and password recovery features"
68
+ - An incremental request: "Add user avatar upload and nickname modification to the existing system"
69
69
 
70
70
  Flow: app-planner → dev-pipeline-launcher → monitor
71
71
 
@@ -196,9 +196,9 @@ While the pipeline runs in background, the user can continue the conversation:
196
196
 
197
197
  | User says | Action |
198
198
  |-----------|--------|
199
- | "status" / "进度" | Show current progress |
200
- | "logs" / "日志" | Show recent log activity |
201
- | "stop" / "停止" | Stop the pipeline (state preserved) |
199
+ | "status" / "progress" | Show current progress |
200
+ | "logs" | Show recent log activity |
201
+ | "stop" | Stop the pipeline (state preserved) |
202
202
  | "show F-002 logs" | Show specific feature's session log |
203
203
 
204
204
  ---
@@ -74,13 +74,18 @@ All documentation records are for: features, projects, code logic, and module in
74
74
 
75
75
  ## Architecture
76
76
 
77
- PrizmKit produces two complementary knowledge layers:
77
+ PrizmKit produces three complementary knowledge layers:
78
78
 
79
79
  ```
80
- .prizm-docs/ → Project "what is" (static: structure, interfaces, rules, traps, decisions)
80
+ .prizm-docs/ → Architecture Index (structure, interfaces, dependencies, traps, rules)
81
81
  .prizmkit/specs/ → Feature "what to do" (workflow: spec → plan → code(implement))
82
+ CLAUDE.md / CODEBUDDY.md → Project Memory (decisions, interface conventions, project-level rules)
82
83
  ```
83
84
 
85
+ **Reading guide**:
86
+ - Need code structure/modules/interfaces/traps? → `.prizm-docs/`
87
+ - Need past decisions/conventions/why? → `CLAUDE.md` (Claude Code) or `CODEBUDDY.md` + `memory/MEMORY.md` (CodeBuddy)
88
+
84
89
  ## Skill Inventory
85
90
 
86
91
  ### Foundation (3)
@@ -95,7 +100,7 @@ PrizmKit produces two complementary knowledge layers:
95
100
  - **prizmkit-analyze** — Cross-document consistency analysis (spec ↔ plan ↔ tasks)
96
101
  - **prizmkit-implement** — Execute tasks following TDD approach
97
102
  - **prizmkit-code-review** — Review code against spec and plan
98
- - **prizmkit-retrospective** — Sole .prizm-docs/ maintainer: structural sync + knowledge injection (TRAPS/RULES/DECISIONS)
103
+ - **prizmkit-retrospective** — Sole .prizm-docs/ maintainer: structural sync + TRAPS/RULES injection. Also sediments DECISIONS to platform memory files
99
104
  - **prizmkit-committer** — Pure git commit: diff analysis, safety checks, Conventional Commits
100
105
 
101
106
  ### Quality Assurance (5)
@@ -5,7 +5,7 @@ This project uses PrizmKit with the Prizm documentation system for AI-optimized
5
5
  ### Progressive Loading Protocol
6
6
  - ON SESSION START: Always read `.prizm-docs/root.prizm` first (L0 — project map)
7
7
  - ON TASK: Read L1 (`.prizm-docs/<module>.prizm`) for relevant modules referenced in MODULE_INDEX
8
- - ON FILE EDIT: Read L2 (`.prizm-docs/<module>/<submodule>.prizm`) before modifying files. Pay attention to TRAPS and DECISIONS.
8
+ - ON FILE EDIT: Read L2 (`.prizm-docs/<module>/<submodule>.prizm`) before modifying files. Pay attention to TRAPS.
9
9
  - NEVER load all .prizm docs at once. Load only what is needed for the current task.
10
10
 
11
11
  ### Auto-Update Protocol
@@ -25,8 +25,10 @@ Perform a comprehensive code review against the feature spec, implementation pla
25
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
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
27
  - If none found → prompt user: "No review baseline found. Which workflow are you in? (feature/refactor/bugfix)"
28
- 2. Read `.prizm-docs/root.prizm` RULES for project conventions
29
- 3. Scan all code files referenced in completed tasks
28
+ 2. Read **architecture index**: `.prizm-docs/root.prizm` RULES and PATTERNS for project conventions
29
+ 3. Read **project memory**: platform memory file (`CLAUDE.md` for Claude Code, `CODEBUDDY.md` + `memory/MEMORY.md` for CodeBuddy) for past DECISIONS — helps verify implementation respects established conventions
30
+ 4. Read `agents/dev-*.md` in the feature directory (if exists) — understand Dev's implementation decisions, trade-offs, and discovered interfaces. This context helps distinguish intentional design choices from accidental patterns during review.
31
+ 5. Scan all code files referenced in completed tasks
30
32
  4. Review across 6 dimensions:
31
33
  - **Spec compliance**: Does code implement all acceptance criteria? Missing criteria are the #1 source of "it works but it's wrong" bugs
32
34
  - **Plan adherence**: Does implementation follow architectural decisions in plan.md? Deviations may be improvements or may break assumptions other components depend on
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  name: "prizmkit-committer"
3
- description: "Pure git commit workflow with safety checks. Stages files, analyzes diff, generates Conventional Commits message, and commits. Does NOT modify .prizm-docs/ — memory maintenance is handled by /prizmkit-retrospective before this skill is invoked. Trigger on: 'commit', '提交', 'finish', 'done', 'ship it', 'save my work'. (project)"
3
+ description: "Pure git commit workflow with safety checks. Stages files, analyzes diff, generates Conventional Commits message, and commits. Does NOT modify .prizm-docs/ or memory files architecture sync and memory sedimentation are handled by /prizmkit-retrospective before this skill is invoked. Trigger on: 'commit', 'submit', 'finish', 'done', 'ship it', 'save my work'. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit Committer
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 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/`.
10
+ **This skill is a pure git commit tool. It does NOT modify any project files — no `.prizm-docs/`, no memory files, no source code.** It only reads diffs, generates a commit message, and commits. For feature/refactor workflows, run `/prizmkit-retrospective` before this skill to sync `.prizm-docs/` (architecture index) and sediment DECISIONS to memory files. For bug fixes, skip retrospective entirely — bug fixes do not update `.prizm-docs/`.
11
11
 
12
12
  ### When to Use
13
- - User says "commit", "提交", "finish", "done with this task", "ship it"
14
- - After `/prizmkit-retrospective` has finished memory maintenance
13
+ - User says "commit", "submit", "finish", "done with this task", "ship it"
14
+ - After `/prizmkit-retrospective` has finished architecture sync and memory sedimentation
15
15
  - The UserPromptSubmit hook will remind to use this skill when commit intent is detected
16
16
 
17
17
  ### Workflow
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "prizmkit-implement"
3
- description: "Execute implementation following plan.md tasks. Respects task ordering, dependencies, and TDD approach. Marks tasks complete as they finish. Use this skill whenever you're ready to write code for a planned feature, or for fast-path changes where the user describes a simple fix directly. Trigger on: 'implement', 'build', 'code it', 'start coding', '开发', 'write the code'. (project)"
3
+ description: "Execute implementation following plan.md tasks. Respects task ordering, dependencies, and TDD approach. Marks tasks complete as they finish. Use this skill whenever you're ready to write code for a planned feature, or for fast-path changes where the user describes a simple fix directly. Trigger on: 'implement', 'build', 'code it', 'start coding', 'develop', 'write the code'. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit Implement
@@ -9,7 +9,7 @@ Execute implementation by following the task breakdown in plan.md. Respects task
9
9
 
10
10
  ### When to Use
11
11
  - After `/prizmkit-plan` (or `/prizmkit-analyze`) when ready to write code
12
- - User says "implement", "build", "code it", "start coding", "开发"
12
+ - User says "implement", "build", "code it", "start coding", "develop"
13
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
15
  **PRECONDITION (multi-mode):**
@@ -29,14 +29,20 @@ Execute implementation by following the task breakdown in plan.md. Respects task
29
29
  - **Bugfix mode**: read `fix-plan.md` in the same directory
30
30
  2. Load project context — use the most efficient source available:
31
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.
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).
32
+ - Otherwise → **self-service context fallback**:
33
+ 1. Read `agents/*.md` in the feature directory (if any exist) — other agents may have already built context
34
+ 2. Read **architecture index**: `.prizm-docs/root.prizm` and relevant L1/L2 for affected modules. Pay special attention to TRAPS (gotchas, race conditions).
35
+ 3. Read **project memory**: platform memory file (`CLAUDE.md` for Claude Code, `CODEBUDDY.md` + `memory/MEMORY.md` for CodeBuddy) for past DECISIONS and interface conventions you should respect.
36
+ 4. Scan needed source files
37
+ 5. Write CONTEXT_BUILT entries to your own `agents/<role>.md` (e.g., `agents/dev-1.md`) so future agents don't need to re-scan
33
38
  3. Check if checkpoint tasks are complete before proceeding to next phase
34
39
  4. For each unchecked task in order:
35
40
  a. If task has `[P]` marker, it can run in parallel with other `[P]` tasks in the same group
36
41
  b. Read L2 doc for target file's module (if exists) — TRAPS save you from repeating known mistakes
37
42
  c. Apply TDD where applicable: write a failing test first, then implement until it passes. For UI components or configuration changes where unit tests don't apply, skip the test-first step.
38
43
  d. Mark task as `[x]` in `plan.md` Tasks section immediately — not batched at the end. Immediate marking means the plan always reflects true progress, even if the session is interrupted.
39
- e. Error handling: sequential tasks stop on failure (later tasks may depend on this one). Parallel `[P]` tasks continue report all failures at the end.
44
+ e. If notable FINDINGS, DECISIONS, or INTERFACES were discovered during this task, append them to your `agents/<role>.md` knowledge doc (if agent knowledge docs are in use for this session).
45
+ f. Error handling: sequential tasks stop on failure (later tasks may depend on this one). Parallel `[P]` tasks continue — report all failures at the end.
40
46
  5. At each checkpoint: verify build passes and tests pass. Checkpoints catch integration errors early — skipping them means cascading failures in later phases that are much harder to debug.
41
47
  6. After all tasks: run full test suite
42
48
  7. Output implementation summary with pass/fail status
@@ -106,7 +106,7 @@ User can change mode in `.prizmkit/config.json`: `"adoption_mode": "passive" | "
106
106
  | Concept | CodeBuddy | Claude Code |
107
107
  |---------|-----------|-------------|
108
108
  | Command invocation | `/prizmkit-xxx` | `/prizmkit-xxx` |
109
- | Project memory | `CODEBUDDY.md` | `CLAUDE.md` |
109
+ | Project memory | `CODEBUDDY.md` + `memory/MEMORY.md` | `CLAUDE.md` |
110
110
  | Settings | `.codebuddy/settings.json` | `.claude/settings.json` |
111
111
  | Skills/Commands | `.codebuddy/skills/` | `.claude/commands/` |
112
112
  | Agents | `.codebuddy/agents/` | `.claude/agents/` |
@@ -32,7 +32,7 @@ This skill handles 6 operations. When invoked, determine the user's intent and e
32
32
  | **When** | Project setup, health checks, migrations | After feature completion, before commit |
33
33
  | **Writes** | Initial .prizm-docs/ structure (init, rebuild, migrate) | Incremental updates to existing .prizm-docs/ |
34
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 |
35
+ | **Knowledge** | Defines format rules, size limits, loading protocol | Extracts TRAPS/RULES into `.prizm-docs/`, sediments DECISIONS to memory files |
36
36
 
37
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
38
 
@@ -162,14 +162,14 @@ When working in a project with .prizm-docs/:
162
162
 
163
163
  - ON SESSION START: Always read .prizm-docs/root.prizm (L0). This is the project map.
164
164
  - ON TASK: Read L1 docs for relevant modules referenced in MODULE_INDEX.
165
- - ON FILE EDIT: Read L2 doc before modifying files. Check TRAPS and DECISIONS sections.
165
+ - ON FILE EDIT: Read L2 doc before modifying files. Check TRAPS section. For past DECISIONS, read platform memory file instead (`CLAUDE.md` or `CODEBUDDY.md` + `memory/MEMORY.md`).
166
166
  - ON DEEP READ: If you need deep understanding of a module without modifying it, generate L2 if it doesn't exist.
167
167
  - NEVER load all .prizm docs at once. Progressive loading saves tokens.
168
168
  - BUDGET: Typical task should consume 3000-5000 tokens of Prizm docs total.
169
169
 
170
170
  ## Auto-Update Protocol
171
171
 
172
- - BEFORE EVERY COMMIT: Run `/prizmkit-retrospective` which is the **sole maintainer** of .prizm-docs/. It handles both structural sync and knowledge injection.
172
+ - BEFORE EVERY COMMIT: Run `/prizmkit-retrospective` which is the **sole maintainer** of .prizm-docs/. It handles structural sync and TRAPS/RULES injection to `.prizm-docs/`, plus sediments DECISIONS to platform memory files.
173
173
  - The UserPromptSubmit hook will remind you automatically when commit intent is detected.
174
174
  - `/prizmkit-committer` does NOT update .prizm-docs/ — it only commits what is already staged.
175
175
  - NEVER rewrite entire .prizm files. Only update affected sections.
@@ -664,9 +664,9 @@ STEPS:
664
664
  - Known issues and traps
665
665
 
666
666
  3. MAP_TO_PRIZM_LEVELS:
667
- Project-wide info -> root.prizm (L0): PROJECT, LANG, FRAMEWORK, RULES, PATTERNS, DECISIONS
667
+ Project-wide info -> root.prizm (L0): PROJECT, LANG, FRAMEWORK, RULES, PATTERNS
668
668
  Module-level info -> L1 docs: MODULE, RESPONSIBILITY, INTERFACES, DEPENDENCIES
669
- Detailed module info -> L2 docs: KEY_FILES, TRAPS, domain-specific sections, DECISIONS
669
+ Detailed module info -> L2 docs: KEY_FILES, TRAPS, domain-specific sections
670
670
 
671
671
  4. CONVERT_FORMAT:
672
672
  Strip markdown formatting (headers, tables, horizontal rules, emphasis)
@@ -678,7 +678,7 @@ STEPS:
678
678
  5. GENERATE_PRIZM_DOCS:
679
679
  Follow standard init procedure (Section 9) but seed with extracted information
680
680
  Merge source-code-scanned data with documentation-extracted data
681
- Prefer documentation-extracted RULES and DECISIONS (they capture rationale)
681
+ Prefer documentation-extracted RULES (they capture rationale)
682
682
  Prefer source-code-scanned INTERFACES and DEPENDENCIES (they are current)
683
683
 
684
684
  6. VALIDATE:
@@ -713,7 +713,7 @@ JSON:
713
713
  "hooks": [
714
714
  {
715
715
  "type": "command",
716
- "command": "echo 'PRIZMKIT_MEMORY_MAINTENANCE_REQUIRED: Before committing, you MUST run /prizmkit-retrospective to maintain .prizm-docs/ project memory. It handles both structural sync (KEY_FILES, INTERFACES, DEPENDENCIES) and knowledge injection (TRAPS, RULES, DECISIONS). After retrospective completes, proceed with /prizmkit-committer for the actual git commit.'"
716
+ "command": "echo 'PRIZMKIT_MAINTENANCE_REQUIRED: Before committing, you MUST run /prizmkit-retrospective. It maintains: (1) .prizm-docs/ architecture index structural sync (KEY_FILES, INTERFACES, DEPENDENCIES) + TRAPS/RULES injection, (2) platform memory files — sediment DECISIONS and interface conventions to CLAUDE.md (Claude Code) or CODEBUDDY.md + memory/MEMORY.md (CodeBuddy). After retrospective completes, proceed with /prizmkit-committer for the actual git commit.'"
717
717
  }
718
718
  ]
719
719
  }
@@ -761,7 +761,7 @@ TEXT:
761
761
  ### Progressive Loading Protocol
762
762
  - ON SESSION START: Always read .prizm-docs/root.prizm first
763
763
  - ON TASK: Read L1 (.prizm-docs/<module>.prizm) for relevant modules referenced in MODULE_INDEX
764
- - ON FILE EDIT: Read L2 (.prizm-docs/<module>/<submodule>.prizm) before modifying files. Pay attention to TRAPS and DECISIONS.
764
+ - ON FILE EDIT: Read L2 (.prizm-docs/<module>/<submodule>.prizm) before modifying files. Pay attention to TRAPS.
765
765
  - ON DEEP READ: If you need deep understanding of a module without modifying it, generate L2 if it does not exist.
766
766
  - NEVER load all .prizm docs at once. Load only what is needed for the current task.
767
767
 
@@ -875,7 +875,7 @@ CONTEXT: When multiple developers (human or AI) work on the same project, .prizm
875
875
 
876
876
  APPEND_ONLY_SECTIONS:
877
877
  - changelog.prizm: Append-only. Use standard git merge. Both sides' entries are kept. Sort by date descending after merge.
878
- - DECISIONS (in any .prizm file): Append-only. Keep all entries from both sides. Never discard decisions.
878
+ - DECISIONS (in any .prizm file): Legacy — new DECISIONS go to platform memory files (CLAUDE.md / CODEBUDDY.md + memory/MEMORY.md). Existing DECISIONS in .prizm files are kept for backward compatibility. On merge conflicts, keep all entries from both sides.
879
879
  - REJECTED (in any .prizm file): Append-only. Keep all entries from both sides.
880
880
  - CHANGELOG (in L2 docs): Append-only. Keep all entries from both sides.
881
881