A skill for Claude Code, Codex, and other coding agents that removes AI-writing tells from a draft and then checks the result before handing it back.
You give your agent a draft. It rewrites it, and then the draft has to get through four gates before you see it:
If a check fails, the draft goes back for another pass, up to two times. Anything still unresolved is listed for you instead of hidden.
The second reviewer is there because the linter can't tell a real fact from an invented one. In testing, rewrites that scored 100 on the linter still had details the original never mentioned.
By default the skill assumes a model wrote the draft and cuts hard. If you say you wrote it yourself, it keeps your voice and only fixes the obvious tells.
For Claude Code:
git clone https://github.com/misbahsy/anti-ai-slop.git
cp -r anti-ai-slop/skills/anti-ai-slop ~/.claude/skills/
For other agents, copy skills/anti-ai-slop into whatever folder your agent loads
skills from.
The checks need Python 3.8 or newer. The optional model review also needs LiteLLM:
pip install litellm
The first time you ask for a model review, the agent asks where your API key is stored and runs everything for you. It saves where the key lives, never the key itself.
Just ask your agent:
You get back the edited draft plus a short list of what changed, including anything it cut because there was no source for it.
python3 skills/anti-ai-slop/scripts/sanitize.py draft.md --fix
python3 skills/anti-ai-slop/scripts/slopcheck.py draft.md
python3 skills/anti-ai-slop/scripts/grade.py original.md rewrite.md
slopcheck.py exits with 0 on a pass and 1 on a fail, so it works in a pre-commit
hook or CI.
If the linter flags something you want to keep, add a comment to that line:
Our leverage ratio fell to 2.1x. <!-- slop-ignore W1 -->
python3 skills/anti-ai-slop/tests/test_slopcheck.py
python3 skills/anti-ai-slop/tests/test_credentials.py
python3 skills/anti-ai-slop/tests/test_grade.py
No network or API keys needed. One of the tests checks that the skill's own docs pass the linter.
Everything the linter looks for lives in skills/anti-ai-slop/scripts/rules.json. Add
a word, phrase, or pattern there and rerun the tests. If the clean test file drops
below 95, the new rule is flagging normal writing.
MIT
1 commits
Python
100.0%
A skill for Claude Code, Codex, and other coding agents that removes AI-writing tells from a draft and then checks the result before handing it back.
You give your agent a draft. It rewrites it, and then the draft has to get through four gates before you see it:
If a check fails, the draft goes back for another pass, up to two times. Anything still unresolved is listed for you instead of hidden.
The second reviewer is there because the linter can't tell a real fact from an invented one. In testing, rewrites that scored 100 on the linter still had details the original never mentioned.
By default the skill assumes a model wrote the draft and cuts hard. If you say you wrote it yourself, it keeps your voice and only fixes the obvious tells.
For Claude Code:
git clone https://github.com/misbahsy/anti-ai-slop.git
cp -r anti-ai-slop/skills/anti-ai-slop ~/.claude/skills/
For other agents, copy skills/anti-ai-slop into whatever folder your agent loads
skills from.
The checks need Python 3.8 or newer. The optional model review also needs LiteLLM:
pip install litellm
The first time you ask for a model review, the agent asks where your API key is stored and runs everything for you. It saves where the key lives, never the key itself.
Just ask your agent:
You get back the edited draft plus a short list of what changed, including anything it cut because there was no source for it.
python3 skills/anti-ai-slop/scripts/sanitize.py draft.md --fix
python3 skills/anti-ai-slop/scripts/slopcheck.py draft.md
python3 skills/anti-ai-slop/scripts/grade.py original.md rewrite.md
slopcheck.py exits with 0 on a pass and 1 on a fail, so it works in a pre-commit
hook or CI.
If the linter flags something you want to keep, add a comment to that line:
Our leverage ratio fell to 2.1x. <!-- slop-ignore W1 -->
python3 skills/anti-ai-slop/tests/test_slopcheck.py
python3 skills/anti-ai-slop/tests/test_credentials.py
python3 skills/anti-ai-slop/tests/test_grade.py
No network or API keys needed. One of the tests checks that the skill's own docs pass the linter.
Everything the linter looks for lives in skills/anti-ai-slop/scripts/rules.json. Add
a word, phrase, or pattern there and rerun the tests. If the clean test file drops
below 95, the new rule is flagging normal writing.
MIT
1 commits
Python
100.0%