claude-prism 0.3.2 → 0.4.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.
- package/README.ko.md +44 -19
- package/README.md +43 -17
- package/bin/cli.mjs +29 -0
- package/hooks/alignment.mjs +94 -0
- package/hooks/commit-guard.mjs +5 -3
- package/hooks/debug-loop.mjs +20 -5
- package/hooks/scope-guard.mjs +32 -8
- package/hooks/test-tracker.mjs +65 -10
- package/hooks/turn-reporter.mjs +70 -0
- package/lib/adapter.mjs +1 -0
- package/lib/config.mjs +21 -2
- package/lib/installer.mjs +119 -9
- package/lib/messages.mjs +60 -0
- package/lib/pipeline.mjs +188 -0
- package/lib/session.mjs +108 -0
- package/package.json +9 -1
- package/templates/commands/claude-prism/checkpoint.md +17 -1
- package/templates/commands/claude-prism/prism.md +19 -6
- package/templates/rules.en.md +33 -3
- package/templates/rules.ja.md +33 -3
- package/templates/rules.ko.md +33 -3
- package/templates/rules.zh.md +33 -3
- package/templates/runners/post-tool.mjs +13 -0
- package/templates/runners/pre-tool.mjs +9 -0
- package/templates/runners/user-prompt.mjs +7 -0
- package/templates/settings.json +10 -19
- package/templates/skills/prism/SKILL.md +19 -6
package/templates/settings.json
CHANGED
|
@@ -6,40 +6,31 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "node .claude/hooks/
|
|
10
|
-
"timeout":
|
|
9
|
+
"command": "node .claude/hooks/pre-tool.mjs",
|
|
10
|
+
"timeout": 5000
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"PostToolUse": [
|
|
16
16
|
{
|
|
17
|
-
"matcher": "Edit|Write",
|
|
17
|
+
"matcher": "Edit|Write|Bash",
|
|
18
18
|
"hooks": [
|
|
19
19
|
{
|
|
20
20
|
"type": "command",
|
|
21
|
-
"command": "node .claude/hooks/
|
|
22
|
-
"timeout":
|
|
21
|
+
"command": "node .claude/hooks/post-tool.mjs",
|
|
22
|
+
"timeout": 5000
|
|
23
23
|
}
|
|
24
24
|
]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"hooks": [
|
|
29
|
-
{
|
|
30
|
-
"type": "command",
|
|
31
|
-
"command": "node .claude/hooks/scope-guard.mjs",
|
|
32
|
-
"timeout": 5
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"UserPromptSubmit": [
|
|
36
28
|
{
|
|
37
|
-
"matcher": "Bash",
|
|
38
29
|
"hooks": [
|
|
39
30
|
{
|
|
40
31
|
"type": "command",
|
|
41
|
-
"command": "node .claude/hooks/
|
|
42
|
-
"timeout":
|
|
32
|
+
"command": "node .claude/hooks/user-prompt.mjs",
|
|
33
|
+
"timeout": 5000
|
|
43
34
|
}
|
|
44
35
|
]
|
|
45
36
|
}
|
|
@@ -71,8 +71,15 @@ AI agents optimize for speed, not correctness. Without structure, they skip unde
|
|
|
71
71
|
- Independent verification: each unit has a pass criterion
|
|
72
72
|
- Files specified: list files to create/modify per unit
|
|
73
73
|
- Dependencies noted: mark if unit depends on a previous one
|
|
74
|
-
9. **
|
|
75
|
-
|
|
74
|
+
9. **Assign size tags** to every task: [S] <30 LOC, [M] 30-100 LOC, [L] >100 LOC
|
|
75
|
+
- Batch composition: S+S+M = 1 batch, L = 1 batch alone
|
|
76
|
+
10. **Assign verification strategy** per task: `| Verify: TDD` or `| Verify: Build` or `| Verify: Visual`
|
|
77
|
+
11. **Pre-decomposition checklist**:
|
|
78
|
+
- Required types/interfaces have the necessary fields?
|
|
79
|
+
- External package APIs behave as expected?
|
|
80
|
+
- Cross-package dependencies identified and noted as prerequisites?
|
|
81
|
+
12. **Save plan** to `docs/plans/YYYY-MM-DD-<topic>.md`
|
|
82
|
+
13. **Get approval**: "Proceed with this plan?"
|
|
76
83
|
|
|
77
84
|
## E — EXECUTE
|
|
78
85
|
|
|
@@ -99,15 +106,21 @@ AI agents optimize for speed, not correctness. Without structure, they skip unde
|
|
|
99
106
|
|
|
100
107
|
## C — CHECKPOINT
|
|
101
108
|
|
|
102
|
-
|
|
109
|
+
20. After each batch, report using this format:
|
|
103
110
|
|
|
104
111
|
| Item | Before | After |
|
|
105
112
|
|------|--------|-------|
|
|
106
113
|
| [what changed] | [old behavior] | [new behavior] |
|
|
107
114
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
```
|
|
116
|
+
Phase: [current] | Batch: [N/M] | Tasks: [done/total] ([%])
|
|
117
|
+
[████████░░] 80% — Next: [next batch name]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
21. Include: verification results, files modified, tests status
|
|
121
|
+
22. **Checkpoint policy**: after 3 consecutive approvals, increase batch size to 5-8 for the rest of the phase
|
|
122
|
+
23. Ask: "Continue to next batch?"
|
|
123
|
+
24. User can redirect, adjust scope, or stop at any checkpoint
|
|
111
124
|
|
|
112
125
|
## OMC Integration
|
|
113
126
|
|