All work

AI and developer tools

agent-skills: conventions Claude Code actually follows

Claude Code skills and hooks that teach agents a team's conventions for commits, code review and deploys, and enforce the ones that can't be left to memory.

Personal project · 2026

The problem

Agents are quick, but they don’t know how your team works. A rule in a long instructions file gets skimmed or forgotten, and the same mistakes come back: the wrong commit style, or a push to a branch that should have been left alone.

What I built

How a hook holds the line

  1. Agentabout to run a tool
  2. PreToolUse hookreads the call
  3. Rule matches?e.g. push to a shared branch
  4. Blockwith the reason and the right route
  5. Allowedtool runs

A sketch of the idea, not the production code.

on PreToolUse(tool, input):
    for rule in rules_for(tool):
        if rule.matches(input):
            if rule.kind == "hold-once" and seen_before(input):
                return allow()                     # re-issuing the same call is a deliberate yes
            return block(rule.reason + "\n" + rule.sanctioned_route)
    return allow()

Skills are the other half: short Markdown docs with a one-line description, loaded only when a task matches, so the agent reads the convention right when it needs it.

Why it matters

The skills explain why a rule exists, and the hooks make sure the ones that really matter hold on an overnight run nobody’s watching.

Stack

The agent-skills repository is private, so there's no public link.