@zgeoff/skill-gate 0.2.2 → 0.2.3

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 (2) hide show
  1. package/README.md +9 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,18 +16,17 @@ Install it at the repo root, so that Bun resolves it from `.claude/hooks/`. The
16
16
 
17
17
  ## Entry point
18
18
 
19
- The hook runs a file in the repo that calls the package, at
20
- `.claude/hooks/skill-gate/skill-gate.ts`:
19
+ The hook runs a file in the repo that calls the package's `runSkillGate`, at
20
+ `.claude/hooks/skill-gate/skill-gate.ts`. The `hook-skill-gate` entry of repo-sync delivers this
21
+ file from zgeoff/tools. `runSkillGate` reads the hook payload from stdin, prints the hook output,
22
+ and exits the process.
21
23
 
22
- ```ts
23
- import { runSkillGate } from '@zgeoff/skill-gate';
24
+ The entry point fails closed. When the package cannot load, the entry point blocks each edit that a
25
+ gate in the rules file matches, and its error names the load failure. It also blocks every edit
26
+ inside the project when it cannot read the rules file or the file does not parse. Any other call
27
+ runs, and the hook reports the load failure as a non-blocking error.
24
28
 
25
- await runSkillGate();
26
- ```
27
-
28
- The `hook-skill-gate` entry of repo-sync delivers this file from zgeoff/tools. `runSkillGate` reads
29
- the hook payload from stdin, prints the hook output, and exits the process. Register the entry point
30
- in `.claude/settings.json`:
29
+ Register the entry point in `.claude/settings.json`:
31
30
 
32
31
  ```json
33
32
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/skill-gate",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A Claude Code PreToolUse hook that denies an edit until the session loads the skills the path needs, and warns on a Bash command that writes a gated path",
5
5
  "keywords": [
6
6
  "claude-code",