antislop-code
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable…
Anti Slop: Rules for AI Coding Agents. The core filter. Load always to stop generic AI slop.
$ npx -y skills add miqdadbadjuber/anti-slop --skill antislop --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/antislopContext preview
The summary Claude sees to decide when to auto-load this skill.
Anti Slop: Rules for AI Coding Agents. The core filter. Load always to stop generic AI slop.
name: antislop description: "Anti Slop: Rules for AI Coding Agents. The core filter. Load always to stop generic AI slop." allowed-tools: Read Write Edit Glob Grep
> Anti Slop: Rules for AI Coding Agents
> Follow these rules whenever generating or building UI for a website, web app, or any interface. > The goal: the design should feel **crafted by a designer**, not generated by AI. > Before applying antislop, resolve its mode using "Two Usage Modes" below. By default, ask during or after. For a saved preference or explicit session choice, instead announce `antislop active: <mode> (<source>).` once, including whether the source is `global preference` or `session override`.
---
antislop is a system: this core file plus optional **skills**, one per concern (`antislop-ui`, `antislop-copywriting`, and so on, each a folder with a `SKILL.md`). This section installs them once. It is an **offer, not a requirement**: if the user prefers, this file alone remains a complete filter.
**Skip this section** if the project's entry file (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, or the equivalent the running tool reads at session start) already contains an antislop pointer block. That means antislop is already installed. Come back only when the user asks to add or remove a skill.
If no antislop pointer exists and this file is being read for the first time, run the wizard:
> The steps below are the manual install for setups where only this file is present. No network is used: missing skills are fetched by the user, never by the agent.
1. **Declare the setup before doing anything.** Tell the user you will (a) get the chosen skill(s) in place in `skills/<name>/` subfolders next to this file (the user fetches them; the agent never downloads from the network, see step 4), and (b) append an antislop pointer block at the end of the project's entry file. Get approval. Never modify the entry file silently. 2. **Ask which skills to install** (multi-select, in the user's chat language). List only the skills that exist in this version of antislop:
If the user declines or says "core only", stop here and use this file alone as the filter. Do not install anything. 3. **Resolve direction** (only if a UI skill was selected). Check for `DESIGN.md` or explicit brand/style direction. If none exists, be honest that antislop is a **filter, not a beautifier**: without direction the output tends toward monotonous. Recommend having a `DESIGN.md`, then offer these paths:
4. **Get the chosen skill(s) in place; the user does the fetching, never the agent.** A `SKILL.md` is instructions the agent will obey, so an agent that downloads one at runtime is fetching its own next prompt: do not do it, and do not ask for network access here. The skills ship as folders in the release (`skills/<name>/SKILL.md`). If a chosen skill folder is missing next to this file, tell the user which ones are missing and that they come with the release matching this core, so a newer skill never mixes with an older one. `antislop-human` also needs `contrast-check.py` from that same folder. 5. **Append the pointer block at the END of the project's entry file** (the file the running tool reads at session start: `CLAUDE.md` for Claude Code, `AGENTS.md` for Codex, `GEMINI.md` for Gemini CLI, and so on). If that file does not exist, create it. Never modify existing content:
<!-- antislop:start --> ## antislop For UI, copy, people, mobile layout, or code comments work, read `antislop.md` (core) and then the skill for the task: - UI / visual: `skills/antislop-ui/SKILL.md` - Copy & text: `skills/antislop-copywriting/SKILL.md` - People: `skills/antislop-human/SKILL.md` - Mobile / responsive: `skills/antislop-layoutmobile/SKILL.md` - Code comments: `skills/antislop-code/SKILL.md` Before starting, follow the core's "Two Usage Modes" section in strict order: explicit session instruction first, then global preference, then ask. A session instruction alw
Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code.
Repo: miqdadbadjuber/anti-slop
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable…
Copy and text skill for antislop. Use when writing or editing prose: headlines, tone, CTAs,…
Human and accessibility skill for antislop. Contrast, keyboard, focus, and states for real…
Mobile layout skill for antislop. Use for layouts that reflow across screen sizes, phone to…
UI and visual skill for antislop. Use when building or editing any interface: color, layout,…