cc-hook-registry 1.1.0 → 2.0.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 (3) hide show
  1. package/README.md +9 -6
  2. package/index.mjs +21 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,22 +28,25 @@ npx cc-hook-registry stats # Registry statistics
28
28
 
29
29
  | Category | Hooks | What They Do |
30
30
  |----------|-------|-------------|
31
- | safety | 11 | Block destructive commands, protect files |
31
+ | safety | 14 | Block destructive commands, protect files, secrets |
32
32
  | quality | 4 | Syntax checks, commit quality, edit validation |
33
33
  | utility | 3 | Cleanup, debugging, session handoff |
34
34
  | monitoring | 2 | Context window, cost tracking |
35
+ | ux | 2 | Desktop notifications, sound alerts |
36
+ | framework | 2 | Python + TypeScript/Bun frameworks |
35
37
  | approve | 1 | Auto-approve safe compound commands |
36
- | ux | 1 | Desktop notifications |
37
- | framework | 1 | Python hook framework |
38
38
  | security | 1 | Prompt injection defense |
39
39
 
40
- ## 24 Hooks
40
+ ## 29 Hooks
41
41
 
42
42
  The registry includes hooks from:
43
- - **cc-safe-setup** (21 hooks) — `npx cc-safe-setup`
43
+ - **cc-safe-setup** (22 hooks) — `npx cc-safe-setup`
44
44
  - **claude-code-safety-net** (1,185★) — TypeScript safety hooks
45
- - **claude-code-hooks-mastery** (3,386★) — Python hook framework
45
+ - **karanb192/claude-code-hooks** (298★) — JavaScript safety
46
+ - **johnlindquist/claude-hooks** (329★) — TypeScript/Bun
47
+ - **claude-code-hooks-mastery** (3,386★) — Python framework
46
48
  - **claude-hooks** by lasso-security — Prompt injection defense
49
+ - **awesome-claude-code** by pascalporedda — Sound notifications
47
50
 
48
51
  ## How It Works
49
52
 
package/index.mjs CHANGED
@@ -60,6 +60,27 @@ const REGISTRY = [
60
60
  { id: 'read-before-edit', name: 'Read Before Edit Warning', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when editing files not recently read', tags: ['read', 'edit', 'mismatch', 'old_string'], install: 'npx cc-safe-setup --install-example read-before-edit' },
61
61
  { id: 'commit-quality-gate', name: 'Commit Message Quality', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on vague commit messages and long subjects', tags: ['commit', 'message', 'quality', 'conventional'], install: 'npx cc-safe-setup --install-example commit-quality-gate' },
62
62
 
63
+ // cc-safe-setup — additional examples
64
+ { id: 'allowlist', name: 'Allowlist (Inverse Permission)', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block everything not explicitly approved', tags: ['allowlist', 'whitelist', 'inverse'], install: 'npx cc-safe-setup --install-example allowlist' },
65
+ { id: 'auto-approve-build', name: 'Auto-Approve Build/Test', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve npm/cargo/go build, test, lint commands', tags: ['build', 'test', 'lint', 'npm', 'cargo'], install: 'npx cc-safe-setup --install-example auto-approve-build' },
66
+ { id: 'auto-approve-docker', name: 'Auto-Approve Docker', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve docker build, compose, ps, logs', tags: ['docker', 'compose', 'container'], install: 'npx cc-safe-setup --install-example auto-approve-docker' },
67
+ { id: 'auto-approve-git-read', name: 'Auto-Approve Git Read', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve git status/log/diff even with -C flags', tags: ['git', 'read', 'status', 'log'], install: 'npx cc-safe-setup --install-example auto-approve-git-read' },
68
+ { id: 'auto-approve-python', name: 'Auto-Approve Python', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve pytest, mypy, ruff, black, isort', tags: ['python', 'pytest', 'lint', 'format'], install: 'npx cc-safe-setup --install-example auto-approve-python' },
69
+ { id: 'auto-approve-ssh', name: 'Auto-Approve SSH', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve safe SSH commands (uptime, whoami)', tags: ['ssh', 'remote', 'server'], install: 'npx cc-safe-setup --install-example auto-approve-ssh' },
70
+ { id: 'auto-checkpoint', name: 'Auto-Checkpoint', category: 'recovery', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Auto-commit after edits for rollback protection', tags: ['checkpoint', 'commit', 'rollback', 'recovery'], install: 'npx cc-safe-setup --install-example auto-checkpoint' },
71
+ { id: 'auto-snapshot', name: 'Auto-Snapshot', category: 'recovery', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Save file copies before edits', tags: ['snapshot', 'backup', 'rollback'], install: 'npx cc-safe-setup --install-example auto-snapshot' },
72
+ { id: 'session-checkpoint', name: 'Session Checkpoint', category: 'recovery', source: 'cc-safe-setup', trigger: 'PreCompact', desc: 'Save session state before context compaction', tags: ['session', 'compact', 'state'], install: 'npx cc-safe-setup --install-example session-checkpoint' },
73
+ { id: 'branch-name-check', name: 'Branch Name Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on non-conventional branch names', tags: ['branch', 'naming', 'convention'], install: 'npx cc-safe-setup --install-example branch-name-check' },
74
+ { id: 'commit-message-check', name: 'Commit Message Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on non-conventional commit messages', tags: ['commit', 'message', 'conventional'], install: 'npx cc-safe-setup --install-example commit-message-check' },
75
+ { id: 'edit-guard', name: 'Edit Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block Edit/Write to protected files', tags: ['edit', 'write', 'protected'], install: 'npx cc-safe-setup --install-example edit-guard' },
76
+ { id: 'enforce-tests', name: 'Enforce Tests', category: 'quality', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Warn when source files change without test files', tags: ['tests', 'enforce', 'quality'], install: 'npx cc-safe-setup --install-example enforce-tests' },
77
+ { id: 'large-file-guard', name: 'Large File Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when Write creates files over 500KB', tags: ['large', 'file', 'size'], install: 'npx cc-safe-setup --install-example large-file-guard' },
78
+ { id: 'todo-check', name: 'TODO Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when committing files with TODO/FIXME markers', tags: ['todo', 'fixme', 'hack'], install: 'npx cc-safe-setup --install-example todo-check' },
79
+ { id: 'verify-before-commit', name: 'Verify Before Commit', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block commit unless tests passed recently', tags: ['verify', 'test', 'commit'], install: 'npx cc-safe-setup --install-example verify-before-commit' },
80
+ { id: 'symlink-guard', name: 'Symlink Traversal Guard', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Detect symlink/junction traversal in rm targets', tags: ['symlink', 'junction', 'ntfs', 'traversal'], install: 'npx cc-safe-setup --install-example symlink-guard', issue: '#36339' },
81
+ { id: 'binary-file-guard', name: 'Binary File Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when Write targets binary file types', tags: ['binary', 'image', 'archive'], install: 'npx cc-safe-setup --install-example binary-file-guard' },
82
+ { id: 'stale-branch-guard', name: 'Stale Branch Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Warn when branch is far behind default', tags: ['branch', 'stale', 'behind', 'rebase'], install: 'npx cc-safe-setup --install-example stale-branch-guard' },
83
+
63
84
  // External projects
64
85
  { id: 'safety-net', name: 'Safety Net (Full Suite)', category: 'safety', source: 'kenryu42/claude-code-safety-net', trigger: 'PreToolUse', desc: 'TypeScript safety hooks with configurable severity levels', tags: ['typescript', 'safety', 'configurable'], install: 'npx @anthropic-ai/claude-code-safety-net', stars: 1185 },
65
86
  { id: 'hooks-mastery', name: 'Hooks Mastery (Python)', category: 'framework', source: 'disler/claude-code-hooks-mastery', trigger: 'All', desc: 'Python hooks covering all hook events + LLM integration', tags: ['python', 'mastery', 'all-events', 'llm'], install: 'git clone + copy', stars: 3386 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hook-registry",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Search, browse, and install Claude Code hooks from the community. GitHub-based registry, no server needed.",
5
5
  "main": "index.mjs",
6
6
  "bin": {