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.
@@ -6,40 +6,31 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "node .claude/hooks/commit-guard.mjs",
10
- "timeout": 5
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/debug-loop.mjs",
22
- "timeout": 5
21
+ "command": "node .claude/hooks/post-tool.mjs",
22
+ "timeout": 5000
23
23
  }
24
24
  ]
25
- },
26
- {
27
- "matcher": "Edit|Write",
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/test-tracker.mjs",
42
- "timeout": 5
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. **Save plan** to `docs/plans/YYYY-MM-DD-<topic>.md`
75
- 10. **Get approval**: "Proceed with this plan?"
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
- 17. After each batch, report using this format:
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
- 18. Include: verification results, files modified, tests status
109
- 19. Ask: "Continue to next batch?"
110
- 20. User can redirect, adjust scope, or stop at any checkpoint
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