Claude Code hook

Claude Code Blueprint

Production-grade Claude Code configuration: skills, agents, hooks, rules, and permissions working as a system.

119 stars 34 forksHooks Source

Install

Install
brew install jq  # or: apt install jq

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/Aedelon/claude-code-blueprint.git

From the README

Claude Code Blueprint

A production-grade Claude Code configuration: skills, agents, hooks, rules, and permissions working as a system, not as isolated features.

Companion repo for the article: *"I Turned Claude Code Into an Operating System. Here's the Blueprint."*

Architecture

Each layer reinforces the others. The anti-hallucination protocol works because Context7 is an accessible MCP server. Security hooks work because static permissions define a perimeter. Multi-agent brainstorm works because agents have dedicated tools and models.

What's Included

What's NOT Included

This is a curated subset, not a mirror of a production setup. The full system has 32 skills, more agents, and exact security regex patterns. The hooks bash-guard and write-guard are sanitized: they show what categories of threats to block without exposing exact regex. Adapt them to your threat model.

Quick Start

Directory Structure

The 5-Phase Pattern (AAPEV)

Every skill follows the same cognitive discipline:

This prevents the model from jumping to Phase 4 (code) without understanding (Phase 1), researching (Phase 2), and planning (Phase 3).

Build Your Own

Adding a Skill

Create ~/.claude/skills/your-skill/SKILL.md:

Adding an Agent

Create ~/.claude/agents/your-agent.md:

Adding a Hook

1. Create the script in ~/.claude/hooks/scripts/your-hook.sh
2. Make it executable: chmod +x your-hook.sh
3. Register it in ~/.claude/settings.json under the appropriate lifecycle event

Claude Code supports 17 lifecycle events: SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, Notification, SubagentStart, SubagentStop, Stop, TeammateIdle, TaskCompleted, ConfigChange, WorktreeCreate, WorktreeRemove, PreCompact, SessionEnd. This blueprint covers 9 of…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Shell
Last updated
4 March 2026

FAQ

What is Claude Code Blueprint?

Production-grade Claude Code configuration: skills, agents, hooks, rules, and permissions working as a system. It is a hook for Claude Code, from Aedelon/claude-code-blueprint on GitHub.

How do I install Claude Code Blueprint?

Run brew install jq # or: apt install jq, then follow the setup in the README.

Is Claude Code Blueprint popular?

Aedelon/claude-code-blueprint has 119 GitHub stars and 34 forks, and is included in 1 curated Claude Code list. It was last updated on 4 March 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.