claude-skills
What this is
A set of guardrails for Claude Code, the AI coding tool. Each
one is a short rule that Claude loads by itself, at the moment it is about to do the thing that
rule covers. Almost every one exists because that mistake already shipped on a real project.
Each rule came from the lessons-learned records of four production codebases. One of them is a
regulated UK property-management platform, so the examples are concrete and a few are specific to
that field. Install the lot, fork it, or read two and borrow the ideas.
If you only read two, read verify-the-effect and
prove-it-can-fail. The first says a command that exits without an
error has not proved anything worked. The second says a test that can never fail is not testing
anything.
Four kinds of thing live here.
- Skills are short playbooks Claude reads at the right moment. The table below lists all 60.
- Hooks are small scripts that run automatically around what Claude does. One stops and asks you
before Claude uploads any code to GitHub. One checks a file Claude has just edited, using
whatever checker that project already has. One tells Claude what has changed in your project
since you last worked on it, so it starts from an up-to-date picture.
- Norms are six one-line rules that apply in every session, listed in NORMS.md.
- Agents are reviewers Claude can hand a change to for a second opinion, listed under
Agents.
It installs once per machine and applies to every project on it. Day to day, it runs by itself.
The only parts you run by hand are the learning loop tools, covered in
Keep it learning.
Install
About five minutes.
- Install Claude Code, git and Node.js. For the
checks that read your project's state, also install the GitHub CLI
and run
gh auth login.
- In a Claude Code session, run
/plugin marketplace add randommonicle/claude-skills, then
/plugin install ash@ash-skills.
- Check it worked.
/plugin should list the plugin. Then ask Claude to do something a skill
guards, such as writing a test. You should see it load that skill.
- Optional: the two-model code review (
cross-agent-review, where Claude has Gemini and GPT
argue over a change) needs the agy and codex command-line tools and one settings file.
The steps are in cross-agent-review/SKILL.md.
Before you install, read What installing changes. One hook asks for
confirmation on every push, and you may not want that.
Afterwards you will notice:
- a confirmation prompt before Claude pushes anything;
- a short note about your project's state at the start of each session;
- a report when Claude edits a JavaScript or TypeScript file in a project with a checker set up;
- Claude loading a named rule before it writes a test, changes a database or calls an AI model.
Where to find things:
Keep it learning: run your own loop
The skills here are a snapshot of what went wrong on our projects. Your projects will go wrong in
their own ways. This library is built to learn from that, and you can run the same loop on your
own work.
The loop has four steps.
- Record what loads. A hook logs every skill Claude loads. This happens by itself.
- Record what went wrong. When a mistake ships, you write it up in your project's lessons log
and name the skill that should have caught it.
- Compare the two. A script lines up what loaded against what was missed.
- Sweep. Every few weeks, Claude reads the misses and proposes fixes. You decide what goes
in.
Step 1: the fire log
Nothing to set up. Every time a skill loads, skill-fire-log.mjs adds a line to
~/.claude/skills/FIRE_LOG.jsonl. It works the same in plugin and direct-clone installs. The file
stays on your machine.
The log has blind spots. The six norms are always on, so they never "load". The hooks act without
loading anything. A skill Claude applies from what it already knows leaves no line either. So a
skill with no fires has not necessarily gone unused. Treat a zero as a question to look into.
Step 2: a lessons log in each project
In each project, keep a file at docs/LESSONS_LEARNED.md. Add an entry whenever something ships
broken, or nearly does. End every entry with one line in this exact form: