rekooh-cc

Inspect, scaffold, and validate Claude Code hook systems across repositories.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/bengous/agents-skills --skill rekooh-cc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rekooh-cc
Source: https://github.com/bengous/agents-skills/tree/main/rekooh-cc
Command: npx skills add https://github.com/bengous/agents-skills --skill rekooh-cc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @effect/platform, @effect/platform-bun, effect, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Help developers and maintainers turn a vague need for Claude Code hooks into a validated, working implementation by inspecting repositories, recommending a concrete hook strategy, scaffolding the necessary files, updating settings, and running deterministic validations. The skill reduces uncertainty and manual error when adding guard, notification, linting, or typed-runtime hooks across projects.

Core Features & Use Cases

  • Repository inspection: Detects .claude folders, settings.json, registered hooks, available runtimes, package managers, and quality commands to recommend an approach.
  • Scaffold & bootstrap: Idempotently creates .claude/hooks/, copies opinionated scaffolds, and writes standalone or typed-runtime hook templates.
  • Settings orchestration: Patch settings.json without duplicates and register hooks safely.
  • Validation & testing: Deterministic validators and a typed-runtime test harness verify hooks are present and executable.
  • Use cases: Add a PreToolUse guard for destructive commands, auto-run linters after edits, create desktop notifications on Stop, or migrate to a typed Bun/TypeScript runtime with vendored sources.

Quick Start

Run the inspection script to assess the repository, choose the recommended strategy, and then scaffold or patch hooks with the provided scripts.

Frequently Asked Questions about rekooh-cc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold Claude Code hooks using TypeScript and Bun?

To scaffold Claude Code hooks with TypeScript and Bun, generate opinionated hook templates, create a .claude/hooks directory, and write standalone or typed-runtime scripts for deterministic execution.

What is the best way to audit existing settings.json hooks in my repository?

Auditing existing settings.json hooks requires inspecting the repository to detect registered hooks, available runtimes, package managers, and quality commands, then recommending a concrete hook strategy based on that assessment.

How do I add a PreToolUse guard for destructive commands in Claude Code?

Adding a PreToolUse guard for destructive commands involves scaffolding a hook template, configuring it to intercept specified commands, and idempotently patching settings.json to register the hook safely.

Does this hook validation approach work with the Effect platform?

Yes, the hook validation approach integrates with the Effect platform, utilizing its platform and Bun-specific packages to run deterministic validators and a typed-runtime test harness for verifying hook execution.

Can I update settings.json without creating duplicate hook registrations?

You can update settings.json without duplicates by applying idempotent settings mutation, which safely patches the configuration file to register hooks while preventing redundant entries across multiple scaffold runs.

How do I validate that my typed-runtime Claude Code hooks are executable?

Validating typed-runtime Claude Code hooks involves running deterministic validators and a test harness provided by the scaffold, verifying that hooks are present, properly configured, and executable in the target environment.