bengous/agents-skills/rekooh-cc
Claude Code and agent skill by bengous/agents-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Claude Code hooks authoring and audit skill. Use when creating, auditing, modifying, or explaining Claude Code hooks, .claude/settings.json hook configuration, hook events, handler types, matchers, testing, debugging, or official hooks examples. Focuses on current official docs plus small local scripts; not for generic Git hooks.
Install
npx vskill@latest install bengous/agents-skills/rekooh-ccSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as bengous/agents-skills/rekooh-cc.
Rekooh
Use this skill to build or audit Claude Code hooks with the smallest reliable implementation: current official docs, local repo inspection, copyable examples, and a few deterministic scripts.
Doctrine
Claude Code owns the hook runtime contract. This skill owns the authoring workflow around that contract.
Prefer boring command hooks for deterministic local automation. Reach for HTTP, MCP, prompt, or agent handlers only when the official docs and the project shape justify them. Do not invent a hook when a project script, README instruction, or agent prompt is enough.
Not For
- Generic Git hooks such as
pre-commit,post-merge, orpost-rewrite - Product or business logic hidden in agent hooks
- Broad security promises beyond deterministic local guardrails
- Building a custom hook framework before a plain script proves insufficient
Workflow
- Inspect local truth first:
.claude/settings.json,.claude/settings.local.json,
.claude/hooks/, package scripts, and existing agent instructions.
- Classify the request: audit, explain, create, modify, register, test, or debug.
- For contract details, consult the official docs before relying on memory.
- Choose the smallest handler type and storage scope that solves the problem.
- If changing files, implement narrowly and run direct hook smoke tests plus
settings validation.
- Report the exact files changed and any official docs consulted.
Official Docs
Start here when contract details matter:
- Hooks reference:
https://code.claude.com/docs/en/hooks - Hooks guide:
https://code.claude.com/docs/en/hooks-guide - Settings reference:
https://code.claude.com/docs/en/settings - Docs map:
https://code.claude.com/docs/llms.txt
Local Scripts
Run scripts by absolute path from this skill root. They are intentionally small and safe to inspect before use.
| Intent | Command | |
|---|---|---|
| Inspect a project | bun <skill-root>/scripts/inspect-project.ts --dir <project> | |
| Register a command hook | bun <skill-root>/scripts/patch-settings.ts --settings <settings.json> --event PreToolUse --matcher Bash --command ".claude/hooks/guard.sh" | |
| Validate hook config | bun <skill-root>/scripts/validate-hooks.ts --settings <settings.json> | |
| Check official doc links | bun <skill-root>/scripts/check-official-links.ts |
patch-settings.ts is deliberately command-hook-only. For HTTP, MCP, prompt, or agent handlers, use the official docs and edit settings explicitly.
Navigation
Load only the reference needed for the current task.
| File | Answers | |
|---|---|---|
references/official-docs.md | Which official docs and external examples should be checked? | |
references/decision-matrix.md | Should this be a hook, and which handler/scope fits? | |
references/configuration.md | What does .claude/settings.json look like? | |
references/events-and-outputs.md | Which events and output decisions matter? | |
references/patterns.md | What code shape should a hook use? | |
references/testing-debugging.md | How do I test, debug, and prove a hook works? | |
references/examples.md | Copyable examples for common hook tasks |
Guardrails
- Treat generated or copied hook code as project source once installed.
- Keep hook commands explicit; avoid hidden shell indirection unless necessary.
- Fail closed only for deterministic, high-confidence guards.
- Fail open for formatters, notifications, context helpers, and best-effort checks.
- Never silently swallow parse/config errors in auditing or validation tools.
- Keep local-only settings in
.claude/settings.local.json; commit shared policy
only when the team should inherit it.
Inspiration
GBrain's agent-facing docs are useful as a shape reference: a small docs map, explicit resolver/routing, and owned scaffolded skills. Do not copy its product claims or brain-specific behavior; borrow the idea that agents need concise entrypoints and links to deeper references.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrekooh-cc/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bengous/agents-skills/rekooh-cc)