Anti-AI-Slop
A practical, opinionated guide for writing code, docs, and repo content that reads as if a thoughtful human wrote it before 2020. Built from a forensic scan of cpython, requests, flask, sqlalchemy, httpx, git, linux, curl, ripgrep, serde, tokio, express, kubernetes, moby, sinatra, django, sindresorhus/*, and 50+ other pre-AI reference repos.
Activation
This skill is always active when the agent produces any of:
- Source code (Python, JS/TS, Go, Rust, C, shell, SQL, etc.)
- README, CONTRIBUTING, CHANGELOG, design docs
- Commit messages, PR descriptions, issue text, code-review replies
- API error messages, log strings, docstrings, type stubs
- Test code, fixture data, examples, tutorials
- Project metadata (
pyproject.toml,package.json,Cargo.tomldescriptions) - Comments, inline docs, JSDoc, reST, doc-comments
If the user says "write it like a human", "no AI slop", "professional", "clean", "ship it", or anything implying craftsmanship — this skill applies in full force.
Core principles (read these first)
- Restraint beats completeness. A real maintainer deletes more than they add. A 30-line README with one code example beats a 300-line one with badges, a TOC, and emoji headers.
- Pointers, not explanations. Docs say "see X" instead of "X is a comprehensive solution that…". Changelogs say "(#1234)" instead of restating the diff in prose.
- Project voice, not product voice. "It is under active development" beats "Welcome to Remix 3, the future of…".
- Imperfection is human. Typos, commented-out code,
XXXmarkers,TODOs, inconsistent quoting. AI code is too clean; the absence of imperfection is itself a tell. - Stance, not neutrality. Real maintainers have opinions. "We don't support Windows" is human. "Cross-platform compatibility considerations are evaluated on a case-by-case basis" is AI.
- Brevity is respect. The reader is technically competent. Skip the onboarding theatre.
- The name is the documentation.
def factorial(n): return 1 if n == 0 else n * factorial(n-1)needs no comment. Comments are for why, never for what.
Mandatory rules — apply to every line you write
Banned words and phrases
These phrases appear zero times across the surveyed pre-2020 reference repos. If you use one, delete it and rewrite the sentence.
Marketing / hype: leverage, seamless, seamlessly, robust, cutting-edge, state-of-the-art, blazing fast, lightning fast, next-generation, best-in-class, world-class, production-grade, battle-tested, modern web, modern development, highly performant, scales seamlessly, drop-in replacement, out of the box, supercharge, turbocharge, revolutionize, transformative, empower, unlock the power, harness the power, elevate your workflow.
Filler: delve into, delve deeper, navigate the complexities, navigate the intricacies, in today's fast-paced world, in the realm of, in the world of, it is worth noting that, it's important to note, furthermore, moreover, tapestry, myriad of, plethora of, whether you're a beginner or an expert, whether you're X or Y, everything you need to know about, a comprehensive guide to, with just a few lines of code, in just a few clicks.
Closing flourishes: happy coding!, that's it! now go build something amazing!, and there you have it!, let's dive in!, buckle up!, let's get started!.
Replacements:
leverage→userobust→ (delete; say what makes it robust) orhandles X, Y, Zseamless→ (delete) orwithout re-implementing Xutilize→usefacilitate→help,let, or (delete)in order to→to
Banned structures
- Emoji in section headers (
## 🚀 Quick Start,## ✨ Features,## 📚 Documentation,## 🤝 Contributing,## 🔧 Configuration,## 🛠️ Installation,## 💡 Examples,## ⚡ Performance,## 🔒 Security,## ❤️ Sponsors,## ⭐ Star History). None of these appear in the surveyed pre-2020 READMEs. Use plain##headings. - The "Why X?" sales section with 5–8 emoji-bulleted items. Real maintainers don't write these.
- Three-tier "Sponsors: 🥇 🥈 🥉" blocks. Post-2022 marketing.
- The "Comparison with {Competitor}" table in the README. Real maintainers let users decide.
- "Show your support ⭐ this repo!" sections.
- Stacked adjectives in descriptions:
A modern, powerful, flexible, lightweight, blazing-fast framework…— one or two adjectives max. - The verb
delvein any tense. - Tutorials that begin "In this tutorial, we will explore…" — start with the code or the question.
- Marketing-suffix closings on sections: "And that's how easy it is!" — just stop.
- Verbose
# Arrange / # Act / # Assertcomments in tests. - The
def main(): ...; if __name__ == "__main__": main()wrapper in scripts under ~50 lines that don't need it. try/except Exception(orexcept:) followed bypassorreturn Nonewith a comment like "Silently ignore errors." Either re-raise, log, or fix the call site.- Triple-nested defensive
is not Nonechains when a guard clause or a single early return would do.
Tone rules
- Open with a factual one-sentence definition.
requests: A simple, yet elegant, HTTP library.pydantic: Data validation using Python type hints.ripgrep: ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern.No adjectives stacked before the noun. - Use imperative mood in subject lines and instructions. "Add a handler" not "Adds a handler" or "Added a handler".
- Use first-person plural sparingly and only for the project speaking as a whole ("We don't support Windows"), not as filler.
- Prefer contractions when natural.
don't,won't,it's— these read more naturally thando not/will not/it isand they're what humans type. - Don't apologize in error messages. No "Please double-check your input and try again." Just state the failure.
- Don't summarize what the code does in a docstring — name the function clearly, write a one-line summary in the imperative, and stop.
- Reference issues and PRs by number, not by narrative.
#3761,(#1234),:pr:5648` — the entry is a pointer, not a story.
Code rules
- No comments that paraphrase the code.
# Loop through itemsabovefor item in items:is noise. Comments are for why (gotcha, RFC, performance, link to issue). - Tight variable names in small scopes.
i, j, k, n, p, x, m, hare fine in 5-line functions. Verbose names (element_index,mapping_dictionary) are noise. - Reuse the same name across transformations of one concept instead of inventing
parsed_url_components→initial_host_value→final_host_value_without_port→normalized_host_string. - One assertion per test is the rule, not the ideal. Spell out the expected value as a tuple/dict, not as a re-computation.
- Test names describe the case, not the function.
test_raises_on_empty_inputnottest_function_behavior. assertis for internal invariants;raise ValueErroris for public input validation. Neverassertuser input.- Use
from __future__ import annotationsonly when you actually need forward refs. Not by default. - Type-annotate the public API, leave internals untyped.
requests/api.pyships with zero type hints.flask/ctx.pytypes theAppContextfields but not the helper methods. - One docstring style per file. Pick Sphinx-style, Google-style, or NumPy-style, and stick to it. Don't mix
Args:with:param:in the same file. - Imports are at the top unless there's a reason (circular dependency, deferred-cost optimization, optional feature). Don't sprinkle them throughout unless the reason is documented.
- Errors are values, not exceptions of last resort. Use sentinel returns (
None,"",-1) when the caller already checks; raise only when the situation is genuinely exceptional. - No
**kwargsforwarding unless a real second caller needs it. Add it when there's pressure to, not preemptively. - Local imports to break circular deps — humans do this; AI hoists everything to the top.
Repository / meta rules
- Don't generate these files by default — humans only add them with a real reason:
.github/ISSUE_TEMPLATE/(zero mature pre-2024 repos have these).github/PULL_REQUEST_TEMPLATE.md(rare).github/dependabot.yml(most pre-2024 repos use Renovate or nothing).devcontainer/(mostly 2020+)SECURITY.md(only when you have a real disclosure process)CODE_OF_CONDUCT.md(Contributor Covenant verbatim is fine, but don't generate one unsolicited)CHANGELOG.md(use whatever convention the project already has; if none, hand-write entries rather than auto-generating)- Do not normalize file casing retroactively.
Readme.md,readme.md,History.md,HISTORY.mdall coexist in the wild. Pick a style and commit to it; don't rename later. - Use a small, opinionated file set. Pre-2020 repos typically have:
LICENSE,README, a CHANGELOG of some name,CONTRIBUTING(sometimes),.gitignore, and the build file. That's it. - One-line
descriptionfields. Compare: - Human:
A simple, yet elegant, HTTP library. - Human:
Node version management - Human:
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, MQTTS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. - AI:
A modern, powerful, and flexible HTTP library designed to streamline your API development workflow. - The human ones name the project and stop. The AI one stacks adjectives and adds a value claim.
- Don't add
keywords = ["fast", "modern", "lightweight"]. Use specific, technical terms:["async", "non-blocking", "io"].
Pre-flight checklist (run before submitting any output)
Before you finish writing, scan your own output for these tells. If any are present, fix them.
- Emoji scan. Are there
🚀,✨,🔥,📦,📚,🤝,🔧,💡,🛠️,⚡,🔒,❤️,⭐in section headers or list bullets? Strip them. - Banned-word scan. Search for:
leverage,robust,seamless,delve,cutting-edge,modern,production-grade,battle-tested,world-class,next-generation,best-in-class,state-of-the-art,in today's,furthermore,moreover,myriad,plethora,whether you're. Zero hits. - "Whether you're X or Y" scan. If present, delete the sentence and write a single direct one.
- Closing-flourish scan. Strip
happy coding!,let's dive in,that's it!,buckle up,and there you have it. - Description-length scan. One-line descriptions must be < 12 words. Project one-liners must be < 25 words.
- Tutorial-opening scan. No "In this tutorial, we will…" or "Welcome to…". Start with the code, the question, or the definition.
- Docstring-paraphrase scan. Read every docstring; if it says what the function name already says, delete it.
- Comment-paraphrase scan. Read every comment; if it says what the next line of code does, delete it.
- Type-hint density scan. Public APIs: annotated. Helpers and internals: not annotated. If a file has 10+ type hints in a row, ask whether every one is load-bearing.
- Test name scan. Names describe the case, not the function.
test_raises_on_empty_inputis good;test_function_behavioris AI. - Error-message scan. Strip "Please try again" / "Please contact support" / "double-check your input". State the actual failure.
- Default
main()wrapper scan. If a script has onemain()and oneif __name__, and the script is < 50 lines, drop the wrapper and put the code at module level. - Triple-nested
if x is not None: if y is not None: if z is not None:scan. Replace with a single early return. - "I built this to…" scan. Project voice speaks as the project, not as a personal blog.
- "Whether you're a beginner or an expert" scan. The user is the user; let them decide their level.