anti-slop-kit
Controlled-language writing skills and deterministic linters that remove AI slop from technical prose. Five languages: English (ASD-STE100 mechanics), Russian (GOST R 58049-2017, clause 8.2.3), Spanish, German and French.
A skill tells the model how to write. A linter proves whether the model did it. The linter is the part most anti-slop advice leaves out.
Installation
Prerequisites
- Python 3.9 or higher
- pip (Python package manager)
Quick Install
Install via pip:
pip install anti-slop-kit
Development Install
Clone and install in development mode:
git clone https://github.com/ameobius-ai/anti-slop-kit.git
cd anti-slop-kit
pip install -e ".[dev]"
pip install pre-commit
pre-commit install
Verify Installation
Check if package is installed:
anti-slop-check --version
The command lists every rulepack with its version and calibration date.
The language linters themselves ship in the source tree, so a
non-editable pip install carries only the tools package - install
editable (pip install -e .) to lint with the rulepacks.
Or run tests:
python -m pytest tests/
Usage
The linters are the interface: python3 en/ste-lint.py FILE (likewise
ru/, es/, de/, fr/). Agent-facing wrappers — JSON in, JSON out,
plus an MCP server, baseline gating and a write-time hook — live in
tools/aslint/; see tools/README.md. .anti-slop.yaml
in a project root disables rules that are wrong for a document class.
Walkthroughs with real before/after pairs: docs/USAGE.md
and examples/.
Who this is for
Use this for: API docs, runbooks, release notes, incident reports, onboarding docs, support macros, changelogs — any text where a reader must act correctly on the first read. Also useful as a gate on LLM-generated documentation.
Do not use this for: essays, marketing copy where voice is the point, fiction, or anything where rhythm and register matter more than being parsed correctly. The sentence-length and semicolon rules will fight you, and they should: they come from maintenance-manual standards, not from general writing advice.
What the score means: violations per 100 words. A smoke alarm, not a grade. The useful signal is the delta across revisions of the same text. An absolute threshold means something only once a team picks one for a document class — the CI samples gate at 2, and that is a convention, not a law.
What is in here
AGENTS.md instructions for an agent working in this repository
en/SKILL.md ste-writing skill, English
en/ste-lint.py English linter, 11 rule groups
en/samples/ one slop text and one clean rewrite
ru/SKILL.md utrya-writing skill, Russian
ru/ru-ste-lint.py Russian linter, 13 rule groups + typography
ru/samples/ one slop text and one clean rewrite
es/, de/, fr/ Spanish, German, French linters and samples
harness/SKILL.md separate skill: how to design an agent harness
evals/ eval harness: 14 tasks, 4 conditions, scorer, runner
examples/ five before/after pairs with measured scores
tests/ unittest suite, standard library only
tools/ wrappers: JSON tools, MCP server, baseline, write-time gate
scripts/check.sh the whole gate: tests, then the sample linters
hooks/pre-commit git hook that blocks a commit above the limit
hooks/pre-push git hook that runs the whole gate before a push
.pre-commit-config.example.yaml
RESULTS.md measured scores and their limits
CONTRIBUTING.md how to contribute rules, tests, and fixes
demo.sh one-command demo: samples, findings, tests
Quick start
git clone https://github.com/ameobius-ai/anti-slop-kit
cd anti-slop-kit
./demo.sh
Or step by step:
python3 en/ste-lint.py en/samples/baseline.md en/samples/ste.md
python3 ru/ru-ste-lint.py ru/samples/baseline.md ru/samples/utr.md
python3 -m unittest discover -s tests
No dependencies. Python 3.9 or later. The linters use the standard library only, because a skill directory is copied as a unit and must keep working after the copy.
The gate
One entry point runs everything this project checks:
bash scripts/check.sh # tests, then the sample linters
bash scripts/check.sh tests
bash scripts/check.sh lint
.github/workflows/ci.yml calls the same script, so a green local run and a
green CI run cannot disagree about what they checked.
GitHub Actions is disabled at the account level for the account that hosts this
repository: POST /actions/workflows/ci.yml/dispatches answers 422, Actions has been disabled for this user. Until that is lifted the workflow never runs
here, and the local hooks are the only enforcement that exists:
ln -s ../../hooks/pre-commit .git/hooks/pre-commit # blocks one bad file
ln -s ../../hooks/pre-push .git/hooks/pre-push # blocks a bad push
The workflow file stays in the tree because a fork with Actions enabled runs it unchanged.
Score
The score is violations per 100 words. Lower is cleaner.
| Text | Score | Longest sentence |
|---|---|---|
en/samples/baseline.md |
29.94 | 49 words |
en/samples/ste.md |
0.83 | 14 words |
ru/samples/baseline.md |
33.33 | 27 words |
ru/samples/utr.md |
0.00 | 11 words |
Read RESULTS.md before you quote these numbers. Two texts per language is a
smoke test, not a benchmark. evals/ holds the harness for a real measurement
across seven tasks per language and four prompt conditions. First live runs were
executed on 2026-08-04 (EN 23/28 cells, RU 24/28, via a local OpenAI-compatible
gateway); see evals/README.md for the setup and scores. No number on this page
comes from it yet. A separate lane scores the detection side:
evals/detection_benchmark.py runs every kit signal over a labeled AI/human
corpus (public eras via the fetchers in scripts/, the current generation via
scripts/corpus_from_evals_run.py on top of a run.py run); the measured
tables are in RESULTS.md, under the era ladder.
Russian is a first-class citizen
The RU side is not a translation of the EN side. English plain-language tooling is crowded; a deterministic Russian linter is rare. It targets канцелярит, отглагольные существительные, цепочки родительного падежа and причастные обороты, plus typography (ёлочки, тире), against ГОСТ Р 58049-2017 §8.2.3 (УТР). It carries its own lexicon, its own morphology handling (ё-folding, a participle stoplist), and its own samples and scores.
Use it in a pipeline
The linters return exit code 1 when a file scores above the limit, so they can gate a build:
python3 en/ste-lint.py --max 5 docs/*.md
python3 ru/ru-ste-lint.py --max 5 --json README.ru.md
Exit codes:
0: every file is at or below the limit, or no limit was given1: at least one file is above the limit2: bad option or unreadable file
Git hook:
ln -s ../../hooks/pre-commit .git/hooks/pre-commit
chmod +x hooks/pre-commit
ANTI_SLOP_MAX=3 git commit # change the limit for one commit
git commit --no-verify # skip the hook
For pre-commit, copy .pre-commit-config.example.yaml
and adjust the two paths.
Explain a score
A score says where the problems are, not only how many. --explain prints one
line per finding: line number, rule, matched text, and the suggested fix.
python3 en/ste-lint.py --explain docs/draft.md
draft.md words= 412 total= 9 per100w= 2.18 maxsent= 24
L14 passive_voice 'is handled' Name the actor. Use active voice.
L22 banned_word 'utilize' Use 'use' instead.
Split the score
One total hides two different problems. --breakdown prints them apart: slop
counts banned words, marketing adjectives, AI filler and hedges; cl counts the
controlled-language mechanics, which are sentence length, passive voice,
nominalizations and participle chains.
python3 ru/ru-ste-lint.py --breakdown ru/samples/baseline.md
python3 en/ste-lint.py --only slop docs/draft.md
baseline.md words= 117 total= 39 per100w= 33.33 maxsent= 27 slop= 15 cl= 24
The split changes what you do next. In ru/samples/baseline.md, 24 of the 39
findings are structural, so a search for banned words finds 15 and misses the
larger half. --only slop and --only cl gate on one component alone, which
helps when a document class tolerates long sentences but not marketing language.
GitHub Actions annotations
--format github emits workflow commands, so findings appear inline on pull
request diffs when the linter runs in GitHub Actions:
- name: Lint prose
run: python3 en/ste-lint.py --format github --max 5 docs/*.md
Each finding becomes a ::warning annotation with file, line, rule name and
suggested fix. Combine with --max to fail the job and annotate at once.
Exclude a region
The linters skip frontmatter, code blocks, inline code, link targets, bare URLs and HTML comments. To exclude prose as well:
<!-- anti-slop: off -->
A quoted paragraph that you must not rewrite.
<!-- anti-slop: on -->
What the score does not tell you
The linters match patterns. They do not read.
- A score of 0 says nothing about whether the text is correct or complete.
- Every rule can produce a false positive. Passive voice is right when the actor is unknown. Some long sentences are clear.
- Use the score to find candidates for a rewrite, not to grade a writer.
Examples
The examples directory holds runnable before/after pairs with
measured scores: basic-lint, custom-rules, rewrite-validation,
transmit-check, and per-language API doc, incident report and release
note cases (en-*, ru-*). USAGE.md walks them.
Security
Report vulnerabilities through a private GitHub Security Advisory, not a public issue. Details: SECURITY.md.
The linters read only the files you name, send nothing anywhere, and execute nothing they analyze. Runtime dependencies: none.
FAQ
Q: What does the score mean? A: Violations per 100 words. Lower is cleaner. It is a smoke alarm, not a grade — see "What the score means" above.
Q: What languages are supported?
A: English, Russian, Spanish, German and French — each linter lives in its
<lang>/ directory, and every clean sample is pinned in the gate.
Q: A rule is wrong for my document class. How do I turn it off?
A: .anti-slop.yaml in the project root: rules: {rule_id: off}.
For one run: --off rule_id. See tools/README.md.
Q: Does it send data anywhere? A: No. The linters are standard-library Python over local files.
Q: How fast is it?
A: Milliseconds per document — regex over text, no dependencies.
scripts/benchmark.py measures the eval harness.
Contributing
See CONTRIBUTING.md for the ground rules (standard library only, no shared
modules between linters, a test in the same commit as a rule change) and how to
add a banned word or report a false positive.
Sources
- ASD-STE100 Simplified Technical English, Issue 9 (15 January 2025), ASD and the STEMG: https://asd-ste100.org. The specification is copyrighted. This repository reproduces the mechanics and no part of the text. Request a free copy from ASD.
- GOST R 58049-2017, clause 8.2.3, controlled Russian technical language.
- The English skill follows the approach shown in https://github.com/woosal1337/blog/tree/main/videos/ep01-the-cure-for-ai-slop. The skill and the linter here are written from scratch and share no code with it.
- https://github.com/talkstream/ru-text is a larger Russian rule set (about 1044 rules) and works well next to this kit.
harness/SKILL.mdis built from https://github.com/ai-boost/awesome-harness-engineering (CC0) and the sources it lists.
License
MIT. See LICENSE.
Citation
If you use anti-slop-kit in your research, please cite:
ameobius-ai. (2026). anti-slop-kit: Text Quality Analysis Toolkit.
https://github.com/ameobius-ai/anti-slop-kit
Related Projects
Other tools for improving writing quality:
- Write Good - Naive linter for English prose
- Proselint - Linter for prose
- Hemingway Editor - Writing clarity tool
- Grammarly - AI writing assistant
- LanguageTool - Grammar and style checker
Roadmap
Direction is set by dogfooding the kit on its own repository. Shipped in 0.4.0: the MCP server, baseline gating, the write-time gate, and the per-rule off switch.
Metadata
Release files for anti-slop-kit 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anti_slop_kit-0.4.1.tar.gz | 128.4 kB | Without provenance | Details for anti_slop_kit-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anti_slop_kit-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for anti_slop_kit-0.4.1-py3-none-any.whl |
Total release size: 170.3 kB
Release files / anti_slop_kit-0.4.1.tar.gz
| Download URL | anti_slop_kit-0.4.1.tar.gz |
|---|---|
| Size | 128.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f4250d175c7b977c4ff2e01125cfd3a0775bf6109e81b51a087f9c44fceaf71
|
|
BLAKE2b-256 checksum How to use checksums |
2106b187cbd9b9cff6243f1794395f6c03450da4dcd2f89e8755c4d8b66ddbf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / anti_slop_kit-0.4.1-py3-none-any.whl
| Download URL | anti_slop_kit-0.4.1-py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
413e804e43e8f9d728ae0409d1bb0496b6c53360cedae5a63c432e02501a719a
|
|
BLAKE2b-256 checksum How to use checksums |
c77acb77665ae9a5bf808b954aa454c010f8eabb1e66db185c709d5ba538fa20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for anti-slop-kit 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.