You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/hooks/fleet/claude-segmentation-guard/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Every entry under those four directories must live under one of:
12
12
13
13
Top-level dangling entries like `.claude/skills/foo/SKILL.md` shadow the canonical `.claude/skills/fleet/foo/SKILL.md` copy and break skill resolution in unpredictable ways.
14
14
15
-
Past incident: 2026-06-01 fleet-wide audit found ~200 dangling entries across 10 repos — every fleet repo had at least 18 duplicate top-level skill directories shadowing their `fleet/<name>/` counterparts. The cleanup script (`node scripts/check-claude-segmentation.mts --fix`) resolved them in bulk; this hook prevents the regression at edit time.
15
+
Past incident: 2026-06-01 fleet-wide audit found ~200 dangling entries across 10 repos — every fleet repo had at least 18 duplicate top-level skill directories shadowing their `fleet/<name>/` counterparts. The cleanup script (`node scripts/fleet/check-claude-segmentation.mts --fix`) resolved them in bulk; this hook prevents the regression at edit time.
16
16
17
17
## What it blocks
18
18
@@ -39,7 +39,7 @@ Fails open on malformed payloads or unknown errors (exit 0).
39
39
40
40
## Bypass
41
41
42
-
None. The autofix is always available: `node scripts/check-claude-segmentation.mts --fix` moves dangling entries into the right subdir based on the wheelhouse-canonical fleet/ set.
42
+
None. The autofix is always available: `node scripts/fleet/check-claude-segmentation.mts --fix` moves dangling entries into the right subdir based on the wheelhouse-canonical fleet/ set.
Copy file name to clipboardExpand all lines: .claude/hooks/fleet/plugin-patch-format-guard/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# plugin-patch-format-guard
2
2
3
-
PreToolUse Edit/Write hook that blocks malformed plugin-cache patches under `scripts/plugin-patches/`.
3
+
PreToolUse Edit/Write hook that blocks malformed plugin-cache patches under `scripts/fleet/plugin-patches/`.
4
4
5
5
## What it enforces
6
6
@@ -13,7 +13,7 @@ The runtime consumer is `scripts/install-claude-plugins.mts` — its `reapplyPlu
13
13
14
14
## Scope
15
15
16
-
Fires only when the target `file_path` resolves under `scripts/plugin-patches/` and ends in `.patch` (normalized to `/`-separators first). Everything else passes through untouched.
16
+
Fires only when the target `file_path` resolves under `scripts/fleet/plugin-patches/` and ends in `.patch` (normalized to `/`-separators first). Everything else passes through untouched.
17
17
18
18
`Write` carries the whole file in `tool_input.content`, so it's fully validated. `Edit` only carries a `new_string` fragment — the hook can't see the surrounding file, so an `Edit` without `content` is skipped (the next `Write` or commit-time path catches it).
0 commit comments