🪝
AI EngineeringPython

Hooks

by nimadorostkar

Hooks is an AI Engineering skill for Claude Code, published by nimadorostkar in Claude-Skills-collection.

18 stars2 forkson nimadorostkar/Claude-Skills-collectionAdded 2026/07/16+13% in starsRepository updated 2026/07/14
aiclaudeclaude-skillsskills
Install in seconds
Install Hooks
Copy Hooks into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/agent-tooling/hooks ~/.claude/skills/hooks

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/nimadorostkar/Claude-Skills-collection.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/agent-tooling/hooks/SKILL.md in nimadorostkar/Claude-Skills-collection
Installs to
~/.claude/skills/hooks
Collection
One of 50 skills cataloged from this repository
Category
AI Engineering3670 skills

What Hooks does

Enforce rules deterministically in AI agents using lifecycle hooks. Automate formatting, block dangerous commands, and inject context without depending on model memory.

Hooks is cataloged under AI Engineering on DirSkills. Hooks comes from a repository tagged ai, claude, claude-skills and skills.

Documentation

README

Hooks

Purpose

Enforce a rule deterministically rather than asking the model to remember it. A hook runs every time, regardless of the model's attention, its context, or its mood — which is exactly what a rule requires.

When to Use

  • A rule must hold every time: formatting, a forbidden command, a required check.
  • The agent keeps forgetting an instruction despite it being in the instructions.
  • Automating a step that should happen around every edit or command.
  • Blocking a dangerous action before it executes.

Capabilities

  • Lifecycle events: before and after a tool call, on session start, on stop.
  • Deterministic enforcement: formatting, linting, blocking.
  • Injecting context at the right moment.
  • Notification and logging.

Inputs

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Hooks

  • What else does nimadorostkar publish alongside Hooks?

    Hooks is one of 50 skills that DirSkills catalogs from nimadorostkar/Claude-Skills-collection, the repository it ships in. Its siblings there include API Design, Agent Design and Agent Instructions. Each one is a separate skill with its own page in this directory, installs the same way Hooks does, and is maintained by nimadorostkar in that same repository. The rest of the collection is listed on the nimadorostkar/Claude-Skills-collection page.

  • How does Hooks compare to other AI Engineering skills?

    Hooks ranks #3592 by stars among the 3670 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Hooks against them. Open each page to compare what they document and how they install.

More from nimadorostkar/Claude-Skills-collection

Hooks is one of 50 skills cataloged on DirSkills from nimadorostkar/Claude-Skills-collection.

See all 50 skills