@massu/core 0.4.2 → 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.
Files changed (125) hide show
  1. package/README.md +40 -0
  2. package/agents/massu-architecture-reviewer.md +104 -0
  3. package/agents/massu-blast-radius-analyzer.md +84 -0
  4. package/agents/massu-competitive-scorer.md +126 -0
  5. package/agents/massu-help-sync.md +73 -0
  6. package/agents/massu-migration-writer.md +94 -0
  7. package/agents/massu-output-scorer.md +87 -0
  8. package/agents/massu-pattern-reviewer.md +84 -0
  9. package/agents/massu-plan-auditor.md +170 -0
  10. package/agents/massu-schema-sync-verifier.md +70 -0
  11. package/agents/massu-security-reviewer.md +98 -0
  12. package/agents/massu-ux-reviewer.md +106 -0
  13. package/commands/_shared-preamble.md +53 -23
  14. package/commands/_shared-references/auto-learning-protocol.md +71 -0
  15. package/commands/_shared-references/blast-radius-protocol.md +76 -0
  16. package/commands/_shared-references/security-pre-screen.md +64 -0
  17. package/commands/_shared-references/test-first-protocol.md +87 -0
  18. package/commands/_shared-references/verification-table.md +52 -0
  19. package/commands/massu-article-review.md +343 -0
  20. package/commands/massu-autoresearch/references/eval-runner.md +84 -0
  21. package/commands/massu-autoresearch/references/safety-rails.md +125 -0
  22. package/commands/massu-autoresearch/references/scoring-protocol.md +151 -0
  23. package/commands/massu-autoresearch.md +258 -0
  24. package/commands/massu-batch.md +44 -12
  25. package/commands/massu-bearings.md +42 -8
  26. package/commands/massu-checkpoint.md +588 -0
  27. package/commands/massu-ci-fix.md +2 -2
  28. package/commands/massu-command-health.md +132 -0
  29. package/commands/massu-command-improve.md +232 -0
  30. package/commands/massu-commit.md +205 -44
  31. package/commands/massu-create-plan.md +239 -57
  32. package/commands/massu-data/references/common-queries.md +79 -0
  33. package/commands/massu-data/references/table-guide.md +50 -0
  34. package/commands/massu-data.md +66 -0
  35. package/commands/massu-dead-code.md +29 -34
  36. package/commands/massu-debug/references/auto-learning.md +61 -0
  37. package/commands/massu-debug/references/codegraph-tracing.md +80 -0
  38. package/commands/massu-debug/references/common-shortcuts.md +98 -0
  39. package/commands/massu-debug/references/investigation-phases.md +294 -0
  40. package/commands/massu-debug/references/report-format.md +107 -0
  41. package/commands/massu-debug.md +105 -386
  42. package/commands/massu-docs.md +1 -1
  43. package/commands/massu-full-audit.md +61 -0
  44. package/commands/massu-gap-enhancement-analyzer.md +276 -16
  45. package/commands/massu-golden-path/references/approval-points.md +216 -0
  46. package/commands/massu-golden-path/references/competitive-mode.md +273 -0
  47. package/commands/massu-golden-path/references/error-handling.md +121 -0
  48. package/commands/massu-golden-path/references/phase-0-requirements.md +53 -0
  49. package/commands/massu-golden-path/references/phase-1-plan-creation.md +168 -0
  50. package/commands/massu-golden-path/references/phase-2-implementation.md +397 -0
  51. package/commands/massu-golden-path/references/phase-2.5-gap-analyzer.md +156 -0
  52. package/commands/massu-golden-path/references/phase-3-simplify.md +40 -0
  53. package/commands/massu-golden-path/references/phase-4-commit.md +94 -0
  54. package/commands/massu-golden-path/references/phase-5-push.md +116 -0
  55. package/commands/massu-golden-path/references/phase-5.5-production-verify.md +170 -0
  56. package/commands/massu-golden-path/references/phase-6-completion.md +113 -0
  57. package/commands/massu-golden-path/references/qa-evaluator-spec.md +137 -0
  58. package/commands/massu-golden-path/references/sprint-contract-protocol.md +117 -0
  59. package/commands/massu-golden-path/references/vr-visual-calibration.md +73 -0
  60. package/commands/massu-golden-path.md +114 -848
  61. package/commands/massu-guide.md +72 -69
  62. package/commands/massu-hooks.md +27 -12
  63. package/commands/massu-hotfix.md +221 -144
  64. package/commands/massu-incident.md +49 -20
  65. package/commands/massu-infra-audit.md +187 -0
  66. package/commands/massu-learning-audit.md +211 -0
  67. package/commands/massu-loop/references/auto-learning.md +49 -0
  68. package/commands/massu-loop/references/checkpoint-audit.md +40 -0
  69. package/commands/massu-loop/references/guardrails.md +17 -0
  70. package/commands/massu-loop/references/iteration-structure.md +115 -0
  71. package/commands/massu-loop/references/loop-controller.md +188 -0
  72. package/commands/massu-loop/references/plan-extraction.md +78 -0
  73. package/commands/massu-loop/references/vr-plan-spec.md +140 -0
  74. package/commands/massu-loop-playwright.md +9 -9
  75. package/commands/massu-loop.md +115 -670
  76. package/commands/massu-new-pattern.md +423 -0
  77. package/commands/massu-perf.md +422 -0
  78. package/commands/massu-plan-audit.md +1 -1
  79. package/commands/massu-plan.md +389 -122
  80. package/commands/massu-production-verify.md +433 -0
  81. package/commands/massu-push.md +62 -378
  82. package/commands/massu-recap.md +29 -3
  83. package/commands/massu-rollback.md +613 -0
  84. package/commands/massu-scaffold-hook.md +2 -4
  85. package/commands/massu-scaffold-page.md +2 -3
  86. package/commands/massu-scaffold-router.md +1 -2
  87. package/commands/massu-security.md +619 -0
  88. package/commands/massu-simplify.md +115 -85
  89. package/commands/massu-squirrels.md +2 -2
  90. package/commands/massu-tdd.md +38 -22
  91. package/commands/massu-test.md +3 -3
  92. package/commands/massu-type-mismatch-audit.md +469 -0
  93. package/commands/massu-ui-audit.md +587 -0
  94. package/commands/massu-verify-playwright.md +287 -32
  95. package/commands/massu-verify.md +150 -46
  96. package/dist/cli.js +1451 -1047
  97. package/dist/hooks/post-tool-use.js +75 -6
  98. package/dist/hooks/user-prompt.js +16 -0
  99. package/package.json +6 -2
  100. package/patterns/build-patterns.md +302 -0
  101. package/patterns/component-patterns.md +246 -0
  102. package/patterns/display-patterns.md +185 -0
  103. package/patterns/form-patterns.md +890 -0
  104. package/patterns/integration-testing-checklist.md +445 -0
  105. package/patterns/security-patterns.md +219 -0
  106. package/patterns/testing-patterns.md +569 -0
  107. package/patterns/tool-routing.md +81 -0
  108. package/patterns/ui-patterns.md +371 -0
  109. package/protocols/plan-implementation.md +267 -0
  110. package/protocols/recovery.md +225 -0
  111. package/protocols/verification.md +404 -0
  112. package/reference/command-taxonomy.md +178 -0
  113. package/reference/cr-rules-reference.md +76 -0
  114. package/reference/hook-execution-order.md +148 -0
  115. package/reference/lessons-learned.md +175 -0
  116. package/reference/patterns-quickref.md +208 -0
  117. package/reference/standards.md +135 -0
  118. package/reference/subagents-reference.md +17 -0
  119. package/reference/vr-verification-reference.md +867 -0
  120. package/src/commands/init.ts +27 -0
  121. package/src/commands/install-commands.ts +149 -53
  122. package/src/hooks/post-tool-use.ts +17 -0
  123. package/src/hooks/user-prompt.ts +21 -0
  124. package/src/memory-file-ingest.ts +127 -0
  125. package/src/memory-tools.ts +34 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: massu-guide
3
- description: Interactive onboarding walkthrough for the Massu codebase and .claude/ infrastructure
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 Massu -- its architecture, .claude/ infrastructure, workflows, and common gotchas. Read-only exploration, no modifications.
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 packages/core/package.json | jq '{name, version, scripts: (.scripts | keys | length), dependencies: (.dependencies | keys | length), devDependencies: (.devDependencies | keys | length)}'
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 -- Project Overview and Architecture.
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 packages/core/src/*.ts 2>/dev/null | wc -l # Source modules
32
- ls packages/core/src/__tests__/*.test.ts 2>/dev/null | wc -l # Tests
33
- ls packages/core/src/hooks/*.ts 2>/dev/null | wc -l # Hooks
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: "Massu: TypeScript MCP Server + Claude Code Plugin with N source modules, N tests, N hooks."
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
- Count manually:
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 "Source modules: $(ls packages/core/src/*.ts 2>/dev/null | wc -l)"
46
- echo "Test files: $(ls packages/core/src/__tests__/*.test.ts 2>/dev/null | wc -l)"
47
- echo "Hook files: $(ls packages/core/src/hooks/*.ts 2>/dev/null | wc -l)"
48
- echo "Scripts: $(ls scripts/*.sh 2>/dev/null | wc -l)"
49
- echo "Commands: $(ls .claude/commands/*.md 2>/dev/null | wc -l)"
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
- - `packages/core/src/tools.ts` -- Tool definitions & routing (central hub)
54
- - `packages/core/src/config.ts` -- Config loader (massu.config.yaml)
55
- - `packages/core/src/server.ts` -- MCP server entry point
56
- - `packages/core/src/db.ts` -- Database connections (CodeGraph + Data)
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 2>/dev/null | wc -l)"
67
- echo "CR Rules: $(grep -c '^| CR-' .claude/CLAUDE.md 2>/dev/null)"
68
- echo "VR Types: $(grep -c '^| VR-' .claude/CLAUDE.md 2>/dev/null)"
69
- echo "Scripts: $(ls scripts/*.sh 2>/dev/null | wc -l)"
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` -- Main implementation loop with verification
74
- - `/massu-create-plan` -- Plan generation from requirements
75
- - `/massu-plan` -- Plan audit and improvement
76
- - `/massu-commit` -- Pre-commit verification gate
77
- - `/massu-push` -- Pre-push full verification
78
- - `/massu-verify` -- Run all VR-* checks
79
- - `/massu-test` -- Test coverage audit
80
- - `/massu-tdd` -- Test-driven development cycle
81
- - `/massu-hotfix` -- Emergency fix protocol
82
- - `/massu-debug` -- Systematic debugging
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) (AUDIT) (IMPLEMENT) (COMMIT) (PUSH)
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**: `cd packages/core && npx tsc --noEmit` must have 0 errors
111
+ - **VR-TYPE**: `npx tsc --noEmit` must have 0 errors
98
112
  - **VR-TEST**: `npm test` must pass (MANDATORY)
99
- - **VR-PATTERN**: `bash scripts/massu-pattern-scanner.sh` must exit 0
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-internal-codebase-audit` -- Full quality assessment
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
- **Config Rules**:
115
- - Use `getConfig()` NOT direct YAML parsing
116
- - Use `massu.config.yaml` for ALL project-specific data
117
- - Tool prefix is configurable (`massu_` default)
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
- - ESM imports require `.ts` extension: `import { x } from './y.ts'`
121
- - Hooks MUST compile with esbuild: `cd packages/core && npm run build:hooks`
122
- - All 3 databases have different access patterns (CodeGraph=read-only)
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
- **Known Patterns**:
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
- | Pattern | Correct | Error if Wrong |
137
- |---------|---------|----------------|
138
- | ESM imports | `import { x } from './y.ts'` | Pattern scanner fails |
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, scripts, rules)
158
+ - [X] .claude/ infrastructure (commands, hooks, rules)
156
159
  - [X] Standard workflows and verification system
157
- - [X] Common gotchas and patterns
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 -- it does not modify any files.**
170
+ **This is a read-only command. It explores and presents it does not modify any files.**
@@ -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 LIMN_HOOK_PROFILE: ${LIMN_HOOK_PROFILE:-strict}"
36
- echo "Disabled hooks: ${LIMN_DISABLED_HOOKS:-none}"
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: 14 hooks (critical + standard)
106
- strict: 19 hooks (all — current)
120
+ standard: 25 hooks (critical + standard)
121
+ strict: 35 hooks (all — current)
107
122
 
108
123
  [Full hook table as above]
109
124