Claude Code hook
Claude Code Blueprint
Production-grade Claude Code configuration: skills, agents, hooks, rules, and permissions working as a system.
Install
brew install jq # or: apt install jqFound in the project README. Check it for setup steps after installing.
git clone https://github.com/Aedelon/claude-code-blueprint.gitFrom 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…
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.
Details
- Repository
- Aedelon/claude-code-blueprint
- Type
- Hooks
- Language
- Shell
- Last updated
- 4 March 2026
- Listed in
- awesome-claude-code-hooks
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
Kim Service
177KimYx0207/Kim_Service
面向 Claude Code、Codex 等 AI 编码助手的 Hook 与 Agent Skill 开源合集。
Rulebricks Guardrails
79rulebricks/claude-code-guardrails
Real-time guardrails for Claude Code tool calls backed by Rulebricks rule tables.
Codex Skill
226cathrynlavery/codex-skill
Give Claude Code a second opinion using OpenAI Codex - automatic plan review via hooks
Pitchcraft
201moshuying/pitchcraft
汇报.skill · pitchcraft — Structured persuasion for tech leads, PMs, and founders: kickoff, status, wrap-up, pitch, and solution selling on one 5-part framework (Hook→Context→Proposal→Evidence→Ask), with AI material intake and a pre-submit checklist. Works with Claude Code, Cursor, Codex, and more.
Sondera Coding Agent Hooks
231sondera-ai/sondera-coding-agent-hooks
Hooking implementations and supporting tools for various coding agents (Claude, Cursor, Gemini, etc)
Claude Heartbeat
184Siigari/claude-heartbeat
Keep Claude Code alive and autonomous without -p. Heartbeat hook + inbox/outbox pattern.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.