bengous/agents-skills/rekooh-cc

Claude Code and agent skill by bengous/agents-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-cc

Semi-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, or post-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

  1. Inspect local truth first: .claude/settings.json, .claude/settings.local.json,

.claude/hooks/, package scripts, and existing agent instructions.

  1. Classify the request: audit, explain, create, modify, register, test, or debug.
  2. For contract details, consult the official docs before relying on memory.
  3. Choose the smallest handler type and storage scope that solves the problem.
  4. If changing files, implement narrowly and run direct hook smoke tests plus

settings validation.

  1. 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.

IntentCommand
Inspect a projectbun <skill-root>/scripts/inspect-project.ts --dir <project>
Register a command hookbun <skill-root>/scripts/patch-settings.ts --settings <settings.json> --event PreToolUse --matcher Bash --command ".claude/hooks/guard.sh"
Validate hook configbun <skill-root>/scripts/validate-hooks.ts --settings <settings.json>
Check official doc linksbun <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.

FileAnswers
references/official-docs.mdWhich official docs and external examples should be checked?
references/decision-matrix.mdShould this be a hook, and which handler/scope fits?
references/configuration.mdWhat does .claude/settings.json look like?
references/events-and-outputs.mdWhich events and output decisions matter?
references/patterns.mdWhat code shape should a hook use?
references/testing-debugging.mdHow do I test, debug, and prove a hook works?
references/examples.mdCopyable 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bengous/agents-skills/rekooh-cc/badge)](https://verified-skill.com/skills/bengous/agents-skills/rekooh-cc)

Something wrong with this skill or its page? Tell us.