v1.26.040 skills · 33 hooks · MIT

Claude Code, with the gates a staff engineer would set.

Drop-in templates, 33 shell hooks and Plan. Confirm. Implement. Verify. The gate on the right has no success message — it refuses, names the file, and hands over the one key that releases it. When a check passes it says nothing at all.

60 seconds · macOS, Linux, Windows · Node 18+

or, as a Claude Code plugin

The Four Disciplines

A loop, not a checklist.

Every kit-managed session walks the same four-step loop. The rules are read at session boot; under each one below is the hook that enforces it, or an honest note where nothing does.

  1. Step 1 of 4

    Plan first.

    For any task touching three or more files, the agent writes a plan to tasks/todo.md before touching code. No silent assumptions, no leap-before-look.

    rule agent_docs/workflow.md

    no gate — session-start.sh points at the plan, nothing refuses a missing one

  2. Step 2 of 4

    Confirm with you.

    Plans pause on protected changes — new dependencies, schema migrations, auth logic, CI workflows. Two approaches with tradeoffs, then your call.

    rule CLAUDE.md → Protected Changes

    • protect-changes.shrefuses the edit· release CLAUDE_APPROVED=1
  3. Step 3 of 4

    Implement in scope.

    Touch only files directly required. No opportunistic refactors. Unrelated issues logged under tasks/todo.md → Not Now. Discipline as a deletion test.

    rule agent_docs/conventions.md — the scope rule is a rule, not a gate

    • protect-files.shrefuses secrets, keys and lock files
    • loop-detect.shspeaks up at the sixth edit to one file
  4. Step 4 of 4

    Verify before signing off.

    Mandatory order: typecheck, lint, tests, smoke test. The agent asks itself — would a staff engineer approve this? — and answers with evidence.

    rule CLAUDE.md → Verification

    • stop-gate.shrefuses to end the turn· release SKIP_QUALITY_GATE=1

“Would a staff engineer approve this?” — the question every task ends with.

CLAUDE.md → Verify

Hooks

The whole lifecycle, and the 9 places it can say no.

33 shell scripts across 9 lifecycle events. Most of them watch: they count, record, journal, format. 9 sit on an event where exit 2 actually stops the turn — those are the gates, and 2 of them only close once you install with --profile strict.

  1. SessionStart

    1 hook

    • session-start.sh
  2. UserPromptSubmit

    2 hooks

    • prompt-router.sh
    • skill-extract-reminder.shopt-in
  3. PreToolUse

    9 hooks · 7 can refuse

    • block-dangerous-commands.shrefuses
    • branch-protect.shrefuses
    • commit-gate.shrefuses under strict
    • conventional-commit.shrefuses
    • glob-guidance.sh
    • mcp-gate.shrefuses
    • protect-changes.shrefuses
    • protect-files.shrefuses
    • subagent-pre.sh
  4. PostToolUse

    12 hooks

    • auto-format.shopt-in
    • auto-lint.shopt-in
    • bash-budget.sh
    • loop-detect.sh
    • quality-gate.sh
    • read-budget.sh
    • secret-scan.sh
    • skill-compliance.shopt-in
    • subagent-post.sh
    • test-first.sh
    • test-run.sh
    • unicode-scan.sh
  5. PostToolUseFailure

    1 hook

    • tool-failure-observe.sh
  6. Notification

    1 hook

    • notify-waiting.shopt-in
  7. Stop

    3 hooks · 2 can refuse

    • stop-gate.shrefuses
    • task-complete-notify.sh
    • test-first-gate.shrefuses under strict
  8. StopFailure

    1 hook

    • stop-failure-observe.sh
  9. SessionEnd

    3 hooks

    • journal-fold.sh
    • next-red-test.sh
    • session-end.sh

A gate doesn't argue. It names the file and hands you the key.

Edit a dependency manifest without approval and protect-changes.sh returns exit 2. The turn stops, the reason is the one it was configured with, and the release key is printed under it — so the gate is never a wall you have to go around. The 5 opt-in hooks are the only ones you have to ask for.

BLOCKED by protect-changes.sh: package.json

  • Reason: dependency manifest — new dependencies require explicit approval (CLAUDE.md → Protected Changes)
releaseCLAUDE_APPROVED=1
.claude/hooks/protect-changes.sh
Before / After

Same prompt. Different agent.

The prompt: Add a search feature to the users page.

Without the kit

Illustration

The agent immediately starts coding…

  • Installs three new packages without asking
  • Refactors the entire users module “while it’s here”
  • Breaks the build because it didn’t typecheck
  • Doesn’t test anything
  • You finish the session reverting changes you never asked for

With the kit

Sourced

The agent restates, plans, asks, and verifies…

  • Restates the task in one sentence before touching code

    ruleCLAUDE.md → Session Boot

  • Reads CODEBASE_MAP.md, then writes a plan

    ruleagent_docs/workflow.md

  • Asks before installing dependencies

    gateprotect-changes.sh · release CLAUDE_APPROVED=1

  • Touches only the files in scope

    ruleCLAUDE.md → Scope Discipline — a rule, not a gate

  • Can’t end the turn while an edited file’s check is failing

    gatestop-gate.sh · release SKIP_QUALITY_GATE=1

Same model · same prompt · different rules. The left column is an illustration; every line on the right cites the rule that asks for it or the hook that refuses without it.

The Numbers

Kit, by the digits.

Every piece is in plain markdown or shell. Read every line in a sitting. Audit before you trust.

40
Skills
audit · workflow · meta · wiki
33
Hooks
deterministic shell · 28 on by default
6
Agents
reviewer · planner · QA · more
7
Recipes
concrete how-to guides
7
Templates
Next · Node · FastAPI · Go · Rust · Django · .NET
0
Lock-in
MIT · plain markdown
Agents

6 agents that didn't write the code.

Each one runs in its own context window and is addressed by name, so the agent reviewing a change is not the agent that just spent an hour defending it. They report; you decide. The descriptions below are the ones in their own frontmatter — the same line Claude Code reads when it picks one.

  • devils-advocate

    Adversarial reviewer that tries to falsify a change rather than approve it — surfaces unstated assumptions, the input that breaks it, the requirement it quietly reinterprets, and "works on my machine" gaps. Returns a ranked falsification list, not a checklist pass.

  • code-reviewer

    Thorough code reviewer focused on correctness, maintainability, and performance

  • dead-code-remover

    Removes verified unused code through static reference analysis across the entire project

  • planner

    Implementation planner that analyzes tasks, explores the codebase, and produces actionable plans

  • qa-reviewer

    Evidence-based QA reviewer that verifies task completion against contracts and verification criteria

  • security-reviewer

    Security-focused code reviewer that finds vulnerabilities, not style issues

A reviewer that wrote the code has already decided it works. That is the gap these close, and it is why devils-advocate returns a ranked list of ways the change fails instead of a verdict on whether it passes.

Stack Templates

Pre-mapped to your stack.

Each template ships a CLAUDE.md tuned for the framework and a CODEBASE_MAP.md scaffolded with the right sections.

  • Next.js

    16 + App Router

    Server Component rules, build verification, Prisma + Tailwind ready.

  • Node API

    Express + TypeScript

    Layered architecture, API design conventions, Knex.js patterns baked in.

  • FastAPI

    SQLAlchemy 2.0 + Pydantic v2

    Async patterns, dependency injection, Alembic-aware migration playbook.

  • Go

    modules + stdlib-first

    Error wrapping, context propagation, small interfaces, race-checked tests.

  • Rust

    Cargo + edition-pinned

    Result/? over unwrap, clippy as a gate, unsafe behind explicit approval.

  • Django

    ORM + DRF-aware

    Fat models, migration discipline, N+1 avoidance, settings-via-env.

  • .NET

    EF Core + nullable-strict

    Async all the way, constructor injection, AsNoTracking reads, migrations behind approval.

Versus the Alternatives

Why not just use .cursorrules?

That works fine until your rules file passes 200 lines and you can't reason about it anymore. The kit wins on tiered context loading, deterministic hooks, project overlay separation, and multi-tool export. It loses on learning curve and bash dependency.

“Versus raw Claude Code, .cursorrules, AGENTS.md, and Aider config — the comparison covers twelve dimensions including tiered context, deterministic enforcement, project overlay, and cross-tool export.”

Read the full comparison

One source. Seven outputs.

Claude CodeCursorAiderGitHub CopilotOpenAI CodexGoogle JulesWindsurf

Edit one CLAUDE.md, run ./scripts/convert.sh all, ship to every tool your team uses.

Set the gates.

Sixty seconds, either way. The next session your agent runs is shaped by the kit.

works on macOS, Linux, Windows · node 18+

or, as a Claude Code plugin