@massu/core 0.5.0 → 0.6.0
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.md +40 -0
- package/agents/massu-architecture-reviewer.md +104 -0
- package/agents/massu-blast-radius-analyzer.md +84 -0
- package/agents/massu-competitive-scorer.md +126 -0
- package/agents/massu-help-sync.md +73 -0
- package/agents/massu-migration-writer.md +94 -0
- package/agents/massu-output-scorer.md +87 -0
- package/agents/massu-pattern-reviewer.md +84 -0
- package/agents/massu-plan-auditor.md +170 -0
- package/agents/massu-schema-sync-verifier.md +70 -0
- package/agents/massu-security-reviewer.md +98 -0
- package/agents/massu-ux-reviewer.md +106 -0
- package/commands/_shared-preamble.md +53 -23
- package/commands/_shared-references/auto-learning-protocol.md +71 -0
- package/commands/_shared-references/blast-radius-protocol.md +76 -0
- package/commands/_shared-references/security-pre-screen.md +64 -0
- package/commands/_shared-references/test-first-protocol.md +87 -0
- package/commands/_shared-references/verification-table.md +52 -0
- package/commands/massu-article-review.md +343 -0
- package/commands/massu-autoresearch/references/eval-runner.md +84 -0
- package/commands/massu-autoresearch/references/safety-rails.md +125 -0
- package/commands/massu-autoresearch/references/scoring-protocol.md +151 -0
- package/commands/massu-autoresearch.md +258 -0
- package/commands/massu-batch.md +44 -12
- package/commands/massu-bearings.md +42 -8
- package/commands/massu-checkpoint.md +588 -0
- package/commands/massu-ci-fix.md +2 -2
- package/commands/massu-command-health.md +132 -0
- package/commands/massu-command-improve.md +232 -0
- package/commands/massu-commit.md +205 -44
- package/commands/massu-create-plan.md +239 -57
- package/commands/massu-data/references/common-queries.md +79 -0
- package/commands/massu-data/references/table-guide.md +50 -0
- package/commands/massu-data.md +66 -0
- package/commands/massu-dead-code.md +29 -34
- package/commands/massu-debug/references/auto-learning.md +61 -0
- package/commands/massu-debug/references/codegraph-tracing.md +80 -0
- package/commands/massu-debug/references/common-shortcuts.md +98 -0
- package/commands/massu-debug/references/investigation-phases.md +294 -0
- package/commands/massu-debug/references/report-format.md +107 -0
- package/commands/massu-debug.md +105 -386
- package/commands/massu-docs.md +1 -1
- package/commands/massu-full-audit.md +61 -0
- package/commands/massu-gap-enhancement-analyzer.md +276 -16
- package/commands/massu-golden-path/references/approval-points.md +216 -0
- package/commands/massu-golden-path/references/competitive-mode.md +273 -0
- package/commands/massu-golden-path/references/error-handling.md +121 -0
- package/commands/massu-golden-path/references/phase-0-requirements.md +53 -0
- package/commands/massu-golden-path/references/phase-1-plan-creation.md +168 -0
- package/commands/massu-golden-path/references/phase-2-implementation.md +397 -0
- package/commands/massu-golden-path/references/phase-2.5-gap-analyzer.md +156 -0
- package/commands/massu-golden-path/references/phase-3-simplify.md +40 -0
- package/commands/massu-golden-path/references/phase-4-commit.md +94 -0
- package/commands/massu-golden-path/references/phase-5-push.md +116 -0
- package/commands/massu-golden-path/references/phase-5.5-production-verify.md +170 -0
- package/commands/massu-golden-path/references/phase-6-completion.md +113 -0
- package/commands/massu-golden-path/references/qa-evaluator-spec.md +137 -0
- package/commands/massu-golden-path/references/sprint-contract-protocol.md +117 -0
- package/commands/massu-golden-path/references/vr-visual-calibration.md +73 -0
- package/commands/massu-golden-path.md +114 -848
- package/commands/massu-guide.md +72 -69
- package/commands/massu-hooks.md +27 -12
- package/commands/massu-hotfix.md +221 -144
- package/commands/massu-incident.md +49 -20
- package/commands/massu-infra-audit.md +187 -0
- package/commands/massu-learning-audit.md +211 -0
- package/commands/massu-loop/references/auto-learning.md +49 -0
- package/commands/massu-loop/references/checkpoint-audit.md +40 -0
- package/commands/massu-loop/references/guardrails.md +17 -0
- package/commands/massu-loop/references/iteration-structure.md +115 -0
- package/commands/massu-loop/references/loop-controller.md +188 -0
- package/commands/massu-loop/references/plan-extraction.md +78 -0
- package/commands/massu-loop/references/vr-plan-spec.md +140 -0
- package/commands/massu-loop-playwright.md +9 -9
- package/commands/massu-loop.md +115 -670
- package/commands/massu-new-pattern.md +423 -0
- package/commands/massu-perf.md +422 -0
- package/commands/massu-plan-audit.md +1 -1
- package/commands/massu-plan.md +389 -122
- package/commands/massu-production-verify.md +433 -0
- package/commands/massu-push.md +62 -378
- package/commands/massu-recap.md +29 -3
- package/commands/massu-rollback.md +613 -0
- package/commands/massu-scaffold-hook.md +2 -4
- package/commands/massu-scaffold-page.md +2 -3
- package/commands/massu-scaffold-router.md +1 -2
- package/commands/massu-security.md +619 -0
- package/commands/massu-simplify.md +115 -85
- package/commands/massu-squirrels.md +2 -2
- package/commands/massu-tdd.md +38 -22
- package/commands/massu-test.md +3 -3
- package/commands/massu-type-mismatch-audit.md +469 -0
- package/commands/massu-ui-audit.md +587 -0
- package/commands/massu-verify-playwright.md +287 -32
- package/commands/massu-verify.md +150 -46
- package/dist/cli.js +146 -95
- package/package.json +6 -2
- package/patterns/build-patterns.md +302 -0
- package/patterns/component-patterns.md +246 -0
- package/patterns/display-patterns.md +185 -0
- package/patterns/form-patterns.md +890 -0
- package/patterns/integration-testing-checklist.md +445 -0
- package/patterns/security-patterns.md +219 -0
- package/patterns/testing-patterns.md +569 -0
- package/patterns/tool-routing.md +81 -0
- package/patterns/ui-patterns.md +371 -0
- package/protocols/plan-implementation.md +267 -0
- package/protocols/recovery.md +225 -0
- package/protocols/verification.md +404 -0
- package/reference/command-taxonomy.md +178 -0
- package/reference/cr-rules-reference.md +76 -0
- package/reference/hook-execution-order.md +148 -0
- package/reference/lessons-learned.md +175 -0
- package/reference/patterns-quickref.md +208 -0
- package/reference/standards.md +135 -0
- package/reference/subagents-reference.md +17 -0
- package/reference/vr-verification-reference.md +867 -0
- package/src/commands/install-commands.ts +149 -53
package/commands/massu-guide.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: massu-guide
|
|
3
|
-
description:
|
|
3
|
+
description: "When a new user or contributor asks 'how does this work', 'give me a tour', 'onboarding', or needs an interactive walkthrough of the codebase"
|
|
4
4
|
allowed-tools: Bash(*), Read(*), Grep(*), Glob(*)
|
|
5
5
|
---
|
|
6
6
|
name: massu-guide
|
|
@@ -9,7 +9,7 @@ name: massu-guide
|
|
|
9
9
|
|
|
10
10
|
## Objective
|
|
11
11
|
|
|
12
|
-
Provide a guided orientation for new developers (or fresh AI sessions) to understand
|
|
12
|
+
Provide a guided orientation for new developers (or fresh AI sessions) to understand the project — its architecture, .claude/ infrastructure, workflows, and common gotchas. Read-only exploration, no modifications.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -21,41 +21,50 @@ Read and present:
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
# Tech stack from package.json
|
|
24
|
-
cat
|
|
24
|
+
cat package.json | jq '{name, version, scripts: (.scripts | keys | length), dependencies: (.dependencies | keys | length), devDependencies: (.devDependencies | keys | length)}'
|
|
25
|
+
|
|
26
|
+
# Core framework versions
|
|
27
|
+
cat package.json | jq '{next: .dependencies.next, react: .dependencies.react, prisma: .devDependencies.prisma, trpc: .dependencies["@trpc/server"], typescript: .devDependencies.typescript}'
|
|
25
28
|
```
|
|
26
29
|
|
|
27
|
-
Read `.claude/CLAUDE.md` first 30 lines
|
|
30
|
+
Read `.claude/CLAUDE.md` first 30 lines — Prime Directive and CR table header.
|
|
28
31
|
|
|
29
32
|
Count key entities:
|
|
30
33
|
```bash
|
|
31
|
-
ls
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
ls src/server/api/routers/*.ts 2>/dev/null | wc -l # Routers
|
|
35
|
+
find src/components -name "*.tsx" -maxdepth 3 | wc -l # Components
|
|
36
|
+
find src/app -name "page.tsx" | wc -l # Pages
|
|
37
|
+
find . -name "*.test.*" -o -name "*.spec.*" | grep -v node_modules | wc -l # Tests
|
|
34
38
|
```
|
|
35
39
|
|
|
36
|
-
Output: "
|
|
40
|
+
Output: "[Project Name]: Next.js [ver] / React [ver] / tRPC [ver] / Prisma [ver] / TypeScript [ver] with N routers, N components, N pages, N tests."
|
|
37
41
|
|
|
38
42
|
---
|
|
39
43
|
|
|
40
44
|
### Section 2: Architecture Map
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
Run the codebase map script (if available):
|
|
47
|
+
```bash
|
|
48
|
+
./scripts/codebase-map.sh 2>/dev/null || echo "Running manual count..."
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or count manually:
|
|
43
52
|
```bash
|
|
44
53
|
echo "=== ARCHITECTURE MAP ==="
|
|
45
|
-
echo "
|
|
46
|
-
echo "
|
|
47
|
-
echo "
|
|
48
|
-
echo "
|
|
49
|
-
echo "
|
|
54
|
+
echo "Pages: $(find src/app -name 'page.tsx' | wc -l)"
|
|
55
|
+
echo "Layouts: $(find src/app -name 'layout.tsx' | wc -l)"
|
|
56
|
+
echo "API Routes: $(find src/app/api -name 'route.ts' 2>/dev/null | wc -l)"
|
|
57
|
+
echo "Routers: $(ls src/server/api/routers/*.ts | wc -l)"
|
|
58
|
+
echo "Components: $(find src/components -name '*.tsx' -maxdepth 3 | wc -l)"
|
|
59
|
+
echo "Lib files: $(find src/lib -name '*.ts' | wc -l)"
|
|
60
|
+
echo "Hooks: $(find src -name 'use*.ts' -o -name 'use*.tsx' | grep -v node_modules | wc -l)"
|
|
50
61
|
```
|
|
51
62
|
|
|
52
63
|
Highlight key files:
|
|
53
|
-
- `
|
|
54
|
-
- `
|
|
55
|
-
- `
|
|
56
|
-
- `
|
|
57
|
-
- `packages/core/src/memory-db.ts` -- Memory database (session, analytics, audit)
|
|
58
|
-
- `massu.config.yaml` -- Single source of project-specific data
|
|
64
|
+
- `src/lib/db.ts` — Database client (ctx.db)
|
|
65
|
+
- `src/server/api/trpc.ts` — tRPC context + procedures
|
|
66
|
+
- `src/middleware.ts` — Auth + routing
|
|
67
|
+
- `src/server/api/root.ts` — Router aggregation
|
|
59
68
|
|
|
60
69
|
---
|
|
61
70
|
|
|
@@ -63,23 +72,28 @@ Highlight key files:
|
|
|
63
72
|
|
|
64
73
|
```bash
|
|
65
74
|
echo "=== .CLAUDE/ INFRASTRUCTURE ==="
|
|
66
|
-
echo "Commands: $(ls .claude/commands/*.md
|
|
67
|
-
echo "
|
|
68
|
-
echo "
|
|
69
|
-
echo "
|
|
75
|
+
echo "Commands: $(ls .claude/commands/*.md | wc -l)"
|
|
76
|
+
echo "Patterns: $(ls .claude/patterns/*.md | wc -l)"
|
|
77
|
+
echo "Protocols: $(ls .claude/protocols/*.md | wc -l)"
|
|
78
|
+
echo "References: $(ls .claude/reference/*.md | wc -l)"
|
|
79
|
+
echo "Incidents: $(grep -c '^### Incident' .claude/incidents/INCIDENT-LOG.md 2>/dev/null || echo 0)"
|
|
80
|
+
echo "CR Rules: $(grep -c '^| CR-' .claude/CLAUDE.md)"
|
|
81
|
+
echo "VR Types: $(grep -c '^| VR-' .claude/reference/vr-verification-reference.md 2>/dev/null || echo '50+')"
|
|
82
|
+
echo "Hook Scripts: $(ls scripts/hooks/*.sh 2>/dev/null | wc -l)"
|
|
83
|
+
echo "Audit Scripts: $(ls scripts/audit-*.sh scripts/check-*.sh 2>/dev/null | wc -l)"
|
|
70
84
|
```
|
|
71
85
|
|
|
72
86
|
List top 10 most-used commands:
|
|
73
|
-
- `/massu-loop`
|
|
74
|
-
- `/massu-create-plan`
|
|
75
|
-
- `/massu-plan`
|
|
76
|
-
- `/massu-commit`
|
|
77
|
-
- `/massu-push`
|
|
78
|
-
- `/massu-verify`
|
|
79
|
-
- `/massu-test`
|
|
80
|
-
- `/massu-tdd`
|
|
81
|
-
- `/massu-hotfix`
|
|
82
|
-
- `/massu-debug`
|
|
87
|
+
- `/massu-loop` — Main implementation loop with verification
|
|
88
|
+
- `/massu-create-plan` — Plan generation from requirements
|
|
89
|
+
- `/massu-plan` — Plan audit and improvement
|
|
90
|
+
- `/massu-commit` — Pre-commit verification gate
|
|
91
|
+
- `/massu-push` — Pre-push full verification
|
|
92
|
+
- `/massu-verify` — Run all VR-* checks
|
|
93
|
+
- `/massu-test` — Test coverage audit
|
|
94
|
+
- `/massu-tdd` — Test-driven development cycle
|
|
95
|
+
- `/massu-hotfix` — Emergency fix protocol
|
|
96
|
+
- `/massu-debug` — Systematic debugging
|
|
83
97
|
|
|
84
98
|
---
|
|
85
99
|
|
|
@@ -89,56 +103,45 @@ Present the standard development workflow:
|
|
|
89
103
|
|
|
90
104
|
```
|
|
91
105
|
/massu-create-plan -> /massu-plan -> /massu-loop -> /massu-commit -> /massu-push
|
|
92
|
-
(CREATE)
|
|
106
|
+
(CREATE) (AUDIT) (IMPLEMENT) (COMMIT) (PUSH)
|
|
93
107
|
```
|
|
94
108
|
|
|
95
109
|
Explain the verification system:
|
|
96
110
|
- **VR-BUILD**: `npm run build` must exit 0
|
|
97
|
-
- **VR-TYPE**: `
|
|
111
|
+
- **VR-TYPE**: `npx tsc --noEmit` must have 0 errors
|
|
98
112
|
- **VR-TEST**: `npm test` must pass (MANDATORY)
|
|
99
|
-
- **VR-
|
|
113
|
+
- **VR-SCHEMA**: Query database before using column names
|
|
100
114
|
- **VR-NEGATIVE**: grep returns 0 matches for removed code
|
|
101
115
|
|
|
102
116
|
Explain the audit commands:
|
|
103
|
-
- `/massu-
|
|
104
|
-
- `/massu-internal-security-scan` -- Security-focused audit
|
|
105
|
-
- `/massu-internal-db-audit` -- Database schema audit
|
|
106
|
-
- `/massu-dead-code` -- Unused code detection
|
|
117
|
+
- `/massu-dead-code` — Unused code detection
|
|
107
118
|
|
|
108
119
|
---
|
|
109
120
|
|
|
110
121
|
### Section 5: Common Gotchas
|
|
111
122
|
|
|
112
|
-
Extract from CLAUDE.md:
|
|
123
|
+
Extract from CLAUDE.md and project patterns:
|
|
113
124
|
|
|
114
|
-
**
|
|
115
|
-
- Use `
|
|
116
|
-
- Use `
|
|
117
|
-
-
|
|
125
|
+
**Database Rules**:
|
|
126
|
+
- Use `ctx.db` NOT `ctx.prisma`
|
|
127
|
+
- Use `user_profiles` NOT `users`
|
|
128
|
+
- 3-step query pattern (no `include:`)
|
|
129
|
+
- BigInt: use `Number()` on return
|
|
130
|
+
- RLS + Grants: both needed
|
|
118
131
|
|
|
119
132
|
**Build Rules**:
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
**Tool Registration Rules**:
|
|
125
|
-
- Every new tool MUST be wired in `tools.ts` (CR-11)
|
|
126
|
-
- Preferred: 3-function pattern (getDefs + isTool + handleCall)
|
|
127
|
-
- Legacy: 2-function + inline routing
|
|
128
|
-
|
|
129
|
-
**Database Rules**:
|
|
130
|
-
- `getCodeGraphDb()` -- NEVER write to this (read-only)
|
|
131
|
-
- `getDataDb()` -- Import edges, tRPC, sentinel
|
|
132
|
-
- `getMemoryDb()` -- Session memory (ALWAYS close after use)
|
|
133
|
+
- JSDOM/Cheerio: dynamic import only
|
|
134
|
+
- Client/Server boundary: no `@/lib/db` in client components
|
|
135
|
+
- Suspense boundaries for `use(params)` pages
|
|
133
136
|
|
|
134
|
-
**
|
|
137
|
+
**UI Rules**:
|
|
138
|
+
- Select.Item: never `value=""`, use `__none__`
|
|
139
|
+
- Null guards: `(status || "pending").replace()`
|
|
140
|
+
- Page layout: always `page-container` class
|
|
135
141
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
| Config access | `getConfig().toolPrefix` | Direct YAML parse bypasses caching |
|
|
140
|
-
| Tool prefix | `p('tool_name')` helper | Hardcoded prefix breaks portability |
|
|
141
|
-
| memDb lifecycle | `try { ... } finally { memDb.close(); }` | DB connection leak |
|
|
142
|
+
**Known Schema Mismatches**:
|
|
143
|
+
- ALWAYS run VR-SCHEMA-PRE before writing queries
|
|
144
|
+
- Column names may differ from what you expect — verify against `information_schema.columns`
|
|
142
145
|
|
|
143
146
|
---
|
|
144
147
|
|
|
@@ -152,9 +155,9 @@ Present each section with a clear header and structured output. After all 5 sect
|
|
|
152
155
|
You are now oriented with:
|
|
153
156
|
- [X] Project tech stack and scale
|
|
154
157
|
- [X] Architecture map with key files
|
|
155
|
-
- [X] .claude/ infrastructure (commands,
|
|
158
|
+
- [X] .claude/ infrastructure (commands, hooks, rules)
|
|
156
159
|
- [X] Standard workflows and verification system
|
|
157
|
-
- [X] Common gotchas and
|
|
160
|
+
- [X] Common gotchas and schema traps
|
|
158
161
|
|
|
159
162
|
**Ready to start work. Recommended next steps:**
|
|
160
163
|
1. Read the plan file if one exists
|
|
@@ -164,4 +167,4 @@ You are now oriented with:
|
|
|
164
167
|
|
|
165
168
|
---
|
|
166
169
|
|
|
167
|
-
**This is a read-only command. It explores and presents
|
|
170
|
+
**This is a read-only command. It explores and presents — it does not modify any files.**
|
package/commands/massu-hooks.md
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: massu-hooks
|
|
3
|
-
description: "When user asks about hook status, profile configuration, or wants to see which hooks are active — 'hooks', 'hook status', 'what hooks are running'"
|
|
4
|
-
allowed-tools: Bash(*), Read(*)
|
|
5
|
-
---
|
|
6
1
|
name: massu-hooks
|
|
7
2
|
|
|
8
3
|
# Massu Hooks: Profile & Status Dashboard
|
|
9
4
|
|
|
10
|
-
> **Shared rules apply.** Read `.claude/commands/_shared-preamble.md` before proceeding.
|
|
11
|
-
|
|
12
5
|
## Objective
|
|
13
6
|
|
|
14
7
|
Display hook infrastructure status, profile configuration, and per-hook gating information.
|
|
@@ -32,8 +25,8 @@ Display hook infrastructure status, profile configuration, and per-hook gating i
|
|
|
32
25
|
### Step 1: Read Current Profile
|
|
33
26
|
|
|
34
27
|
```bash
|
|
35
|
-
echo "Current
|
|
36
|
-
echo "Disabled hooks: ${
|
|
28
|
+
echo "Current MASSU_HOOK_PROFILE: ${MASSU_HOOK_PROFILE:-strict}"
|
|
29
|
+
echo "Disabled hooks: ${MASSU_DISABLED_HOOKS:-none}"
|
|
37
30
|
```
|
|
38
31
|
|
|
39
32
|
### Step 2: Display Hook Inventory
|
|
@@ -55,21 +48,43 @@ Show ALL hooks grouped by tier with their source (project vs user settings):
|
|
|
55
48
|
| Hook | Source | Type | Trigger |
|
|
56
49
|
|------|--------|------|---------|
|
|
57
50
|
| pattern-feedback.sh | Project | Script | PostToolUse (Edit/Write) |
|
|
51
|
+
| post-tool-use.js | Project | CodeGraph | PostToolUse (Edit/Write/Bash) |
|
|
52
|
+
| user-prompt.js | Project | CodeGraph | UserPromptSubmit |
|
|
53
|
+
| session-start.js | Project | CodeGraph | SessionStart |
|
|
54
|
+
| session-end.js | Project | CodeGraph | Stop |
|
|
55
|
+
| pre-compact.js | Project | CodeGraph | PreCompact |
|
|
56
|
+
| compaction-advisor.sh | Project | Script | PostToolUse (all tools) |
|
|
58
57
|
| Pattern scanner on push | Project | Inline | PreToolUse (Bash) |
|
|
58
|
+
| CR-25 edit blast radius | Project | Inline | PreToolUse (Edit) |
|
|
59
59
|
| Validate features on commit | Project | Inline | PreToolUse (Bash) |
|
|
60
|
+
| CR-25 plan blast radius | Project | Inline | UserPromptSubmit |
|
|
60
61
|
| Incident detection | Project | Inline | UserPromptSubmit |
|
|
62
|
+
| PreCompact git status | Project | Inline | PreCompact |
|
|
61
63
|
| Uncommitted changes warning | Project | Inline | Stop |
|
|
62
64
|
| memory-enforcement.sh | User | Script | UserPromptSubmit |
|
|
63
65
|
| post-commit-memory.sh | User | Script | PostToolUse (Bash) |
|
|
66
|
+
| filter-cli-output | User | Inline | PreToolUse (Bash) |
|
|
67
|
+
| MEMORY.md injection audit | User | Inline | PostToolUse (Edit/Write) |
|
|
64
68
|
|
|
65
69
|
#### Advisory Tier (Skipped in minimal AND standard)
|
|
66
70
|
| Hook | Source | Type | Trigger |
|
|
67
71
|
|------|--------|------|---------|
|
|
72
|
+
| post-edit-context.js | Project | CodeGraph | PostToolUse (Edit/Write) |
|
|
73
|
+
| auto-ingest-incident.sh | Project | Script | PostToolUse (Edit/Write) |
|
|
74
|
+
| validate-deliverables.sh | Project | Script | PostToolUse + Stop |
|
|
75
|
+
| mcp-usage-tracker.sh | Project | Script | PostToolUse (MCP) |
|
|
68
76
|
| auto-review-on-stop.sh | Project | Script | Stop |
|
|
77
|
+
| surface-review-findings.sh | Project | Script | SessionStart + Stop |
|
|
69
78
|
| pattern-scanner single-file | Project | Inline | PostToolUse (Edit/Write) |
|
|
79
|
+
| CR-32 sentinel rm | Project | Inline | PreToolUse (Bash) |
|
|
70
80
|
| pattern-extractor.sh | Project | Script | Stop |
|
|
81
|
+
| cost-tracker.sh | Project | Script | StatusLine |
|
|
71
82
|
| audit-css-tokens.sh | User | Script | PostToolUse (Edit/Write) |
|
|
83
|
+
| backup-hook.sh | User | Script | PostToolUse (Edit/Write) |
|
|
84
|
+
| TS file tracker | User | Inline | PostToolUse (Edit/Write) |
|
|
85
|
+
| type-check-edited.sh | User | Script | UserPromptSubmit |
|
|
72
86
|
| Context size warning | User | Inline | UserPromptSubmit |
|
|
87
|
+
| mark-memory-ingested.sh | User | Script | PostToolUse (MCP ingest) |
|
|
73
88
|
|
|
74
89
|
### Step 3: Profile Comparison
|
|
75
90
|
|
|
@@ -82,7 +97,7 @@ If a specific profile was requested, highlight which hooks are ACTIVE vs SKIPPED
|
|
|
82
97
|
bash -n scripts/hooks/hook-gate.sh && echo "hook-gate.sh: OK" || echo "hook-gate.sh: SYNTAX ERROR"
|
|
83
98
|
|
|
84
99
|
# Verify key hook scripts exist
|
|
85
|
-
for hook in pattern-feedback output-secret-filter mcp-rate-limiter; do
|
|
100
|
+
for hook in compaction-advisor pattern-extractor pattern-feedback output-secret-filter mcp-rate-limiter; do
|
|
86
101
|
[ -f "scripts/hooks/${hook}.sh" ] && echo "${hook}.sh: EXISTS" || echo "${hook}.sh: MISSING"
|
|
87
102
|
done
|
|
88
103
|
```
|
|
@@ -102,8 +117,8 @@ Hook gate: scripts/hooks/hook-gate.sh (OK)
|
|
|
102
117
|
|
|
103
118
|
HOOK COUNTS BY PROFILE:
|
|
104
119
|
minimal: 7 hooks (critical only)
|
|
105
|
-
standard:
|
|
106
|
-
strict:
|
|
120
|
+
standard: 25 hooks (critical + standard)
|
|
121
|
+
strict: 35 hooks (all — current)
|
|
107
122
|
|
|
108
123
|
[Full hook table as above]
|
|
109
124
|
|