Case study
guardrail-skills
AI drafts read like AI and AI agents leave code full of comments that repeat it, so I built three open-source guardrails that put a draft back in the author's voice, cut the useless comments and give multi-agent jobs an estimate and a finish line.
90-second version
- A draft from an AI reads like one, so readers hear it, AI writing detectors flag it, and it sounds nothing like the person whose name is on it.
- I built three guardrails and released them free under MIT: slop-scrub for writing, comment-scrub for code and an orchestration hook for multi-agent runs, each one usable as a skill the agent chooses or a hook the tooling forces.
- Same AI model, same request, scanned on one of the leading AI writing detectors: 0% human without the skill and 99.8% human with it.

Problem
A draft from an AI reads like one: readers hear it within a sentence or two, AI writing detectors flag it, and it sounds nothing like the author, and telling the agent to write better wears off by the next session. AI coding agents carry the same habit into code, where they write comments that repeat the line underneath. A job split across many agents tends to sprawl, with no estimate of its size or time and no test for each piece.
Non-obvious insight
Word lists and style rules catch the obvious tells, but the thing that makes writing sound real is that it comes from things that happened, in the author's own words, so I built slop-scrub to start there: it flags every claim without a source, asks the author for three to five real events or two or three finished pieces, and then scripts count how much of the result is the author's own words so nothing gets copied wholesale. comment-scrub applies the same idea to code, keeping a comment only when it tells the reader something the code can't, and the orchestration hook works on the prompt, handing any multi-agent request a recipe with a size and time estimate up front, a test for each fix and a human review wherever money or messages are involved.
Bets I made
- Start from things that really happened, never a stock voice, because from a bare list of facts 0 of 8 pieces scored human.
- Count the result instead of trusting how a piece feels, so three scripts measure own words and borrowed runs and slop_lint.py runs the mechanical checks on your own machine.
- Every guardrail works two ways, as a skill the agent chooses to run or as a hook the tooling forces, and neither one depends on Claude Code, so it pastes into any assistant's instructions.
- The banned-word list is a starting point that people are meant to fork and argue with, because a list tuned to your own writing beats a universal one.
- The orchestration hook says plainly what it can't enforce: it hands the agent a recipe, and permissions and spend caps still have to come from the runtime.
What shipped
- slop-scrub, with 14 checks for things like unsourced claims, stock words and assistant residue, which either checks a draft or writes one from real events in the author's voice.
- Four small Python scripts with no dependencies that run the mechanical checks and measure how much of a piece is the author's own words.
- comment-scrub, which in a real run cut a snippet's comments from 10 lines to 2 and left the code unchanged.
- An orchestration hook that gives multi-agent requests a recipe with an estimate, a test per fix and a review gate, and leaves every other prompt alone.
- Example pre-commit and GitHub Actions setups so any of the three can block a commit or a pull request.
- 79 tests that run the real scripts and the real hook.
- A README rebuilt around before-and-after pairs anyone can scan themselves, with a Safe to run section up top: nothing to install, no network, no file writes and no keys.
Evals and instrumentation
Each pair used the same AI model and the same request, nobody edited the texts, and both were scanned on November 23, 2026 on one of the leading AI writing detectors. With no writing given, the piece without the skill scored 0% human and the piece with it scored 99.8% human. Given one post of mine, the piece without the skill scored 0% human and the piece with it scored 99.8% human, and 3 of 3 AI readers matched it to me. In the larger test, 23 of 24 pieces from fresh AI writers with no samples scored human, and 24 of 24 written from an author's samples, for two authors and three kinds of piece, scored human, with three AI readers matching all 24 to the right author. From a bare list of facts with nothing that happened, 0 of 8 scored human. The limits: one day of scanning, pieces of 100 to 220 words, one detector and two authors, and of the 24 pieces written from samples, 5 scored under 90% human and the lowest scored 54%, so the numbers are evidence about how the text reads and make no promise about any detector. For code, a fresh AI agent with only comment-scrub cut a snippet's comments from 10 lines to 2 and left the syntax tree identical, and 26 of the 79 tests cover the hook, including tricky prompts.
What broke
On November 23 I scanned the first example in my own README and it came back 100% AI, so I rebuilt the README that morning around before-and-after pairs anyone can check. From a bare list of facts the skill went 0 of 8, which is why it now asks what happened before it writes, and of the 24 pieces written from samples 5 still scored under 90% human.
What's next
Continued refinement. The repo is fully open now, so I'll keep updating it from time to time, and issues, pull requests and forks are welcome.