Personal tooling · 2026
manju-kit. Guardrails for an AI pair programmer.
A Claude Code plugin I built for my own day-to-day work: hooks that stop risky commands and leaked secrets, read-only agents that check the work, and skills for the jobs I repeat.
- Role
- Sole author
- Timeline
- 2026
- Stack
- Claude Code plugin, Node.js hooks, Markdown skills and agents
- Source
- Private repository
01 · Context and problem
Fast, but not always careful.
An AI coding agent does a lot of my day-to-day work, on an internal platform and two public SDKs. It moves fast. It can also force-push, edit a secrets file, save a pasted key into a transcript on disk, or tell me its own work is done when it isn’t.
Rules written into a prompt are suggestions. I needed hard stops for the risky things, and a second pair of eyes that wasn’t the one that wrote the code.
Sweep across the tray to tidy it.
02 · My part
Sole author
- 01I designed and wrote all of it: 5 hooks, 3 read-only agents and 7 skills.
- 02I use it every day, and prune it with a usage audit that proposes retiring a skill only on two separate signals.
03 · Key decisions
The calls that shaped it.
- q1
Why hooks, not instructions?
A hook runs on every command and can refuse it; an instruction can be forgotten. The guard reads the whole command, because permission rules only match how a command starts, and agents usually start with a change of folder.Trade-off · Node takes about 0.3 seconds to start on Windows, so the command guard is filtered to the commands it cares about instead of running on every one. - q2
Who decides the work is done?
Never the agent that wrote it. A separate, read-only verifier re-checks each claim against the code and rates it verified, partial, unproven or false. For a second opinion, two fresh agents on different models answer independently.Trade-off · More time and tokens on every task that claims to be finished. - q3
What if someone pastes a secret into chat?
It never gets there. A prompt guard blocks keys, tokens and database URLs with passwords, and says to put them in a gitignored file or the shell instead, because chat is saved to disk. One tag lets a single prompt through when it’s a false alarm.Trade-off · The occasional false alarm. - q4
How does one change reach two SDKs?
One repository at a time. The skill edits only the SDK it’s working in, then hands over a parity checklist and a ready-to-paste brief for the other one’s session. Differences in idiom are fine; differences in meaning are not.Trade-off · Two sessions instead of one, so neither can quietly edit the other.
04 · Outcome
Speed, with the brakes built in.
Risky commands stop at a hook instead of at my attention, and nothing is called done until something other than its author has checked it.
05 · In hindsight
In hindsight
I’d build the verifier first. It catches more than any guard, and it changed how I read an agent’s claims.