Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code.
JavaScript accessibilityagent-skillsai-agentsai-coding-agentai-slopanti-slopclaude-codecopywritingdesign-rulesui-design
v3.2.0: picker adds OpenCode, Cursor, Gemini CLI, Hermes (global-only), 7 agents total
miqdadbadzubair-design2cfa59e11b59
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 4ca96ff..38e4728 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -8,7 +8,7 @@{"name": "antislop","source": "./",- "version": "3.1.3",+ "version": "3.2.0","description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."}]diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 227f960..8f62cd1 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "antislop","displayName": "antislop",- "version": "3.1.3",+ "version": "3.2.0","description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.","author": {"name": "miqdadbadjuber"diff --git a/README.md b/README.mdindex 4b05e1d..ec54f0e 100644--- a/README.md+++ b/README.md@@ -30,7 +30,7 @@ The core prevents slop but cannot invent direction. `DESIGN.md` (yours) suppliesantislop is a set of **standard agent skills** (one folder per skill, `SKILL.md`) you can install as a package. The core is always loaded; the skills load only for the task at hand. Pick one of these three paths.-**1. The picker (recommended).** One command, then choose. It shows the antislop banner, lists the skills with the core locked on, and asks where (project or global) and which agents (Claude Code, Antigravity, Codex):+**1. The picker (recommended).** One command, then choose. It shows the antislop banner, lists the skills with the core locked on, asks where (project or global) and which agents (Claude Code, Antigravity, Codex, OpenCode, Cursor, Gemini CLI, Hermes), then installs the folders and writes the pointer that loads antislop every session. The skills directory (path 2) does not write that pointer, so this is the one to use:```bashnpx antislop-ai@@ -44,7 +44,7 @@ npx skills add miqdadbadjuber/anti-slopAdd `--all` for every skill, `-g` for a global install, or `--skill <name>` for a single one. Run `--list` first to see what is available.-`npx skills add` copies the skill folders but does not write the agent entry pointer that loads antislop every session. To add the pointer, run `npx antislop-ai`, choose the same skills and agent, and pick **Keep what is there** when it finds the existing folders. The picker (path 1) does both in one run.+`npx skills add` copies the skill folders but does not write the agent entry pointer that loads antislop every session; skills.sh does not write them, so that gap is theirs, not antislop's. That is why the picker (path 1) is the recommended way to install. If you already used path 2, run `npx antislop-ai`, choose the same skills and agent, and pick **Keep what is there** when it finds the existing folders; that writes the pointer.skills.sh reads the skill folders straight from this repository, so the listing appears as soon as the repo is live; there is no separate setup step.@@ -55,7 +55,7 @@ skills.sh reads the skill folders straight from this repository, so the listing/plugin install antislop@anti-slop```-Every skill is a folder of the open Agent Skills standard (`<name>/SKILL.md`), so it drops into Claude Code (`.claude/skills/`), Codex (`.codex/skills/`), Antigravity (`.agents/skills/`), and any other agent that reads the standard. The picker (path 1) asks which of these agents you use and installs into them, creating the skill folder if it does not exist yet; the skills directory (path 2) handles the same agents and more. The plugin (path 3) is the Claude Code door only.+Every skill is a folder of the open Agent Skills standard (`<name>/SKILL.md`), so it drops into any agent that reads the standard: Claude Code (`.claude/skills/`), Codex (`.codex/skills/`), Antigravity (`.agents/skills/`), OpenCode (`.opencode/skills/`), Cursor (`.cursor/skills/`), Gemini CLI (`.gemini/skills/`), and Hermes (`~/.hermes/skills/`). The picker (path 1) asks which of these agents you use and installs into them, creating the skill folder if it does not exist yet; the skills directory (path 2) handles the same agents and more. The plugin (path 3) is the Claude Code door only.**Manual (single file, no packaging).** The core `antislop.md` alone remains a complete filter you can paste into any chat window. Download it and tell your agent to read it; the First-Run wizard inside it installs skills the manual way:@@ -85,7 +85,7 @@ antislop is used one of two ways, chosen at the start of a session:## Roadmap-**v3.1.0 shipped** the `antislop-code` skill, per-skill READMEs, and the tagline rename. **v3.1.1** was a patch: the picker stopped copying per-skill READMEs into projects, and the wizard dropped install commands. **v3.1.2** removes the per-skill READMEs entirely and makes the picker ask which agent to install into, so a fresh Antigravity or Codex project lands in the right folder. **v3.1.3** states the `DESIGN.md` boundary explicitly, adds a security explainer ([SECURITY.md](SECURITY.md)), and documents what `npx skills add` does and does not install. See [ROADMAP.md](ROADMAP.md) for the tracker, including the cross-agent plugin plan.+**v3.1.0 shipped** the `antislop-code` skill, per-skill READMEs, and the tagline rename. **v3.1.1** was a patch: the picker stopped copying per-skill READMEs into projects, and the wizard dropped install commands. **v3.1.2** removes the per-skill READMEs entirely and makes the picker ask which agent to install into, so a fresh Antigravity or Codex project lands in the right folder. **v3.1.3** states the `DESIGN.md` boundary explicitly, adds a security explainer ([SECURITY.md](SECURITY.md)), and documents what `npx skills add` does and does not install. **v3.2.0** adds OpenCode, Cursor, Gemini CLI, and Hermes to the picker, so one run covers seven agents and the shared `.agents/skills/` folder covers the long tail that reads the standard. See [ROADMAP.md](ROADMAP.md) for the tracker, including the cross-agent plugin plan.## FAQ@@ -95,9 +95,9 @@ No, a filter. It does not prescribe colors, fonts, or layouts. It rejects techni**Which agents does it work with?**All of them, but the install paths differ:-- **The picker and the skills directory** support Claude Code, Codex, and Antigravity (the picker detects each agent's skill folder; `npx skills add` handles the same agents and more). These are the recommended paths.+- **The picker and the skills directory** support Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI, and Hermes (the picker detects each agent's skill folder; Hermes installs globally only). These are the recommended paths.- **The plugin** is Claude Code only. It is the Claude-specific door.-- **The single file** (`antislop.md`) works with any agent that reads plain Markdown: Cursor, Gemini CLI, or a plain chat window.+- **The single file** (`antislop.md`) works with any agent that reads plain Markdown, including a plain chat window.The packaged skills use the open Agent Skills standard (folder per skill), so they drop into any tool that reads the standard.diff --git a/ROADMAP.md b/ROADMAP.mdindex 381aa66..1087abd 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -4,7 +4,7 @@## Where we are-The latest release is **v3.1.3**. antislop is a **packaged system**: a lean, always-loaded **core** plus five **skills**, each shipped as a standard agent skill folder (`skills/<name>/SKILL.md`):+The latest release is **v3.2.0**. antislop is a **packaged system**: a lean, always-loaded **core** plus five **skills**, each shipped as a standard agent skill folder (`skills/<name>/SKILL.md`):- `antislop`: the core rules filter (rules, tiers, Delivery Gate, liveliness)- `antislop-ui`: UI / visual@@ -13,7 +13,7 @@ The latest release is **v3.1.3**. antislop is a **packaged system**: a lean, alw- `antislop-layoutmobile`: mobile / responsive- `antislop-code`: code comments-**v3.1.0** shipped `antislop-code`, the code comment filter. **v3.1.1** was a patch: the picker no longer copied per-skill READMEs into projects, and the wizard no longer named install commands (cleared the Socket warning on skills.sh). **v3.1.2** removes the per-skill READMEs entirely and makes the picker ask which agent to install into, so a fresh Antigravity or Codex project installs into the right folder instead of silently targeting Claude Code. **v3.1.3** states the `DESIGN.md` boundary explicitly (external files are data to apply, not instructions to obey), adds a security explainer ([SECURITY.md](SECURITY.md)), and documents what `npx skills add` does and does not install.+**v3.1.0** shipped `antislop-code`, the code comment filter. **v3.1.1** was a patch: the picker no longer copied per-skill READMEs into projects, and the wizard no longer named install commands (cleared the Socket warning on skills.sh). **v3.1.2** removes the per-skill READMEs entirely and makes the picker ask which agent to install into, so a fresh Antigravity or Codex project installs into the right folder instead of silently targeting Claude Code. **v3.1.3** states the `DESIGN.md` boundary explicitly (external files are data to apply, not instructions to obey), adds a security explainer ([SECURITY.md](SECURITY.md)), and documents what `npx skills add` does and does not install. **v3.2.0** adds four more agents to the picker: OpenCode, Cursor, Gemini CLI, and Hermes (global-only, so its skills always go to `~/.hermes/skills/`), and the shared `.agents/skills/` folder covers the long tail of agents that read the standard.The system installs three ways from one repo: the interactive picker (`npx antislop-ai`), the skills directory (`npx skills add miqdadbadjuber/anti-slop`, listed on skills.sh), and the Claude Code plugin marketplace (`.claude-plugin/plugin.json`). The contrast checker is also exposed as an MCP tool inside the plugin. What each skill covers is in the root README's skill table; there is no per-skill README.@@ -67,7 +67,8 @@ What v3.0.0 shipped:- [x] v3.1.0 - `antislop-code` skill, per-skill READMEs, Filler Data and Emoji as Decoration patterns- [x] v3.1.1 - picker stops copying per-skill READMEs; wizard drops install commands (clears the Socket warning on skills.sh)- [x] v3.1.2 - per-skill READMEs removed; picker asks which agent to install into (fresh Antigravity and Codex projects land in the right folder)-- [ ] v3.1.3 - `DESIGN.md` boundary stated; SECURITY.md audit explainer; `npx skills add` pointer note+- [x] v3.1.3 - `DESIGN.md` boundary stated; SECURITY.md audit explainer; `npx skills add` pointer note+- [ ] v3.2.0 - picker adds OpenCode, Cursor, Gemini CLI, Hermes (global-only); shared `.agents/skills/` folder covers the long tail of standard readers## After v3diff --git a/cli/index.mjs b/cli/index.mjsindex c90e74e..cb56dfc 100644--- a/cli/index.mjs+++ b/cli/index.mjs@@ -27,9 +27,14 @@ function stop(message) {process.exit(0)}+// A global-only agent (Hermes) installs into the home dir, never into the project.+function displayDir(agent) {+ return agent.globalOnly ? `~/${agent.dir}` : agent.dir+}+async function main() {if (process.argv.includes('--version') || process.argv.includes('-v')) {- console.log('antislop 3.1.3')+ console.log('antislop 3.2.0')return}@@ -68,7 +73,7 @@ async function main() {options: AGENTS.map((a) => ({value: a.id,label: a.label,- hint: detected.includes(a.id) ? `found here (${a.dir})` : `will create ${a.dir}`,+ hint: detected.includes(a.id) ? `found here (${displayDir(a)})` : `will create ${displayDir(a)}`,})),required: 'Pick at least one agent.',initialValues: detected,diff --git a/cli/lib/banner.mjs b/cli/lib/banner.mjsindex 3b1ea65..332ec46 100644--- a/cli/lib/banner.mjs+++ b/cli/lib/banner.mjs@@ -15,7 +15,7 @@ export function banner() {...LOGO,'',' ' + pc.dim('Anti Slop: Rules for AI Coding Agents'),- ' ' + pc.dim('installer v3.1.3'),+ ' ' + pc.dim('installer v3.2.0'),'',].join('\n')}diff --git a/cli/lib/install.mjs b/cli/lib/install.mjsindex 871a39f..9a5da24 100644--- a/cli/lib/install.mjs+++ b/cli/lib/install.mjs@@ -11,6 +11,11 @@ export const AGENTS = [{ id: 'claude', label: 'Claude Code', dir: '.claude/skills' },{ id: 'antigravity', label: 'Antigravity', dir: '.agents/skills' },{ id: 'codex', label: 'Codex', dir: '.codex/skills' },+ { id: 'opencode', label: 'OpenCode', dir: '.opencode/skills' },+ { id: 'cursor', label: 'Cursor', dir: '.cursor/skills' },+ { id: 'gemini', label: 'Gemini CLI', dir: '.gemini/skills' },+ // Hermes reads its skills from the home dir only, never from a project folder.+ { id: 'hermes', label: 'Hermes', dir: '.hermes/skills', globalOnly: true },]export function skillSourceDir() {@@ -27,19 +32,29 @@ function resolveBase(location) {export function resolveTargets(location, selected = AGENTS.map((a) => a.id)) {const base = resolveBase(location)- return AGENTS.filter((a) => selected.includes(a.id)).map((agent) => ({- agent,- path: path.join(base, agent.dir),- exists: fs.existsSync(path.join(base, agent.dir)),- }))+ return AGENTS.filter((a) => selected.includes(a.id)).map((agent) => {+ // A global-only agent (Hermes) always resolves to the home dir, even for a+ // project install, because it never reads skills from a project folder.+ const targetBase = agent.globalOnly ? os.homedir() : base+ return {+ agent,+ path: path.join(targetBase, agent.dir),+ exists: fs.existsSync(path.join(targetBase, agent.dir)),+ }+ })}// Which agents already have their folder present, used to pre-check the picker's// agent question. Absence of a folder is not absence of the agent, so the picker-// still lets the user add an agent whose folder does not exist yet.+// still lets the user add an agent whose folder does not exist yet. Global-only+// agents (Hermes) are detected only for global installs: a project install must+// not pre-check a folder that lives in the home dir.export function detectAgents(location) {const base = resolveBase(location)- return AGENTS.filter((a) => fs.existsSync(path.join(base, a.dir.split('/')[0]))).map((a) => a.id)+ return AGENTS.filter((a) => {+ if (a.globalOnly && location !== 'global') return false+ return fs.existsSync(path.join(base, a.dir.split('/')[0]))+ }).map((a) => a.id)}export function detectConflicts({ skills, targets }) {@@ -87,7 +102,15 @@ const POINTER_START = '<!-- antislop:start -->'const POINTER_END = '<!-- antislop:end -->'// The entry file each agent reads at session start.-const ENTRY_FILE = { claude: 'CLAUDE.md', codex: 'AGENTS.md', antigravity: 'AGENTS.md' }+const ENTRY_FILE = {+ claude: 'CLAUDE.md',+ codex: 'AGENTS.md',+ antigravity: 'AGENTS.md',+ opencode: 'AGENTS.md',+ cursor: 'AGENTS.md',+ gemini: 'GEMINI.md',+ hermes: 'AGENTS.md',+}const SKILL_LINES = {[CORE]: 'Core filter, always on: `antislop`',diff --git a/cli/package-lock.json b/cli/package-lock.jsonindex 23a69fe..d901fdc 100644--- a/cli/package-lock.json+++ b/cli/package-lock.json@@ -1,12 +1,12 @@{"name": "antislop-ai",- "version": "3.1.3",+ "version": "3.2.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "antislop-ai",- "version": "3.1.3",+ "version": "3.2.0","license": "MIT","dependencies": {"@clack/prompts": "^1.7.0",diff --git a/cli/package.json b/cli/package.jsonindex e1b997e..e3f7ed3 100644--- a/cli/package.json+++ b/cli/package.json@@ -1,6 +1,6 @@{"name": "antislop-ai",- "version": "3.1.3",+ "version": "3.2.0","description": "Interactive installer for the antislop skills. Anti Slop: Rules for AI Coding Agents.","type": "module","bin": {diff --git a/cli/scripts/smoke-test.mjs b/cli/scripts/smoke-test.mjsindex 604032f..a8fe429 100644--- a/cli/scripts/smoke-test.mjs+++ b/cli/scripts/smoke-test.mjs@@ -31,7 +31,7 @@ if (result.status !== 0) console.log('worker stderr:', result.stderr)console.log('\n--- files written to temp project ---')console.log(tree(tmp).join('\n'))-for (const name of ['CLAUDE.md', 'AGENTS.md']) {+for (const name of ['CLAUDE.md', 'AGENTS.md', 'GEMINI.md']) {const entry = path.join(tmp, name)if (!fs.existsSync(entry)) continueconsole.log(`\n--- ${name} ---`)diff --git a/cli/scripts/smoke-worker.mjs b/cli/scripts/smoke-worker.mjsindex 2d2c6eb..4a1b472 100644--- a/cli/scripts/smoke-worker.mjs+++ b/cli/scripts/smoke-worker.mjs@@ -1,4 +1,5 @@import fs from 'node:fs'+import os from 'node:os'import path from 'node:path'import {skillSourceDir,@@ -15,7 +16,7 @@ const skills = ['antislop', 'antislop-ui']const fresh = detectAgents('project')console.log('A detected (fresh project):', fresh.length === 0 ? 'none' : fresh.join(', '), '(expect none)')const defaultTargets = resolveTargets('project')-console.log('A default targets:', defaultTargets.map((t) => `${t.agent.id}@${t.path} exists=${t.exists}`).join(' | '), '(expect all three, exists=false)')+console.log('A default targets:', defaultTargets.map((t) => `${t.agent.id}@${t.path} exists=${t.exists}`).join(' | '), '(expect all seven, exists=false)')// 2. Claude Code only, via explicit selection (old behavior preserved).const targets = resolveTargets('project', ['claude'])@@ -42,15 +43,34 @@ const agPointers = updatePointers({ targets: agTargets, skills })console.log('D antigravity pointers:', agPointers.map((p) => path.basename(p)).join(', '), '(expect AGENTS.md)')console.log('D .agents/skills/antislop/SKILL.md exists:', fs.existsSync(path.join(process.cwd(), '.agents', 'skills', 'antislop', 'SKILL.md')))-// 4. Detection now sees both agents that were installed.+// 4. New providers on the fresh project: OpenCode, Cursor, Gemini install and+// point to their own entry files.+for (const agent of ['opencode', 'cursor', 'gemini']) {+ const t = resolveTargets('project', [agent])+ const w = installSkills({ skills, targets: t, overwrite: false })+ const pointers = updatePointers({ targets: t, skills })+ console.log(`D2 ${agent} written:`, w.map((x) => `${x.agent.id}:${x.skill}`).join(', '), '(expect 2)')+ console.log(`D2 ${agent} pointer:`, pointers.map((p) => path.basename(p)).join(', '), `(expect ${agent === 'gemini' ? 'GEMINI.md' : 'AGENTS.md'})`)+ console.log(`D2 ${agent} folder exists:`, fs.existsSync(path.join(process.cwd(), agent === 'gemini' ? '.gemini' : agent === 'cursor' ? '.cursor' : '.opencode', 'skills', 'antislop', 'SKILL.md')))+}++// 5. Hermes is global-only: even a project install resolves to the home dir, and+// it is never detected as a project agent. resolveTargets only, no install.+const hermesProject = resolveTargets('project', ['hermes'])+const hermesGlobal = resolveTargets('global', ['hermes'])+console.log('D3 hermes project target:', hermesProject[0].path, '(expect ' + path.join(os.homedir(), '.hermes', 'skills') + ')')+console.log('D3 hermes global target:', hermesGlobal[0].path, '(expect ' + path.join(os.homedir(), '.hermes', 'skills') + ')')+console.log('D3 hermes detected in project:', detectAgents('project').includes('hermes'), '(expect false)')++// 6. Detection now sees the agents that were installed.const after = detectAgents('project')-console.log('E detected after installs:', after.join(', '), '(expect claude, antigravity)')+console.log('E detected after installs:', after.join(', '), '(expect claude, antigravity, opencode, cursor, gemini)')-// 5. Global with a selection.+// 7. Global with a selection.const globalTargets = resolveTargets('global', ['claude', 'codex'])console.log('F global targets:', globalTargets.map((t) => `${t.agent.id}@${t.path}`).join(' | '))-// 6. Copies are identical and the pointer block dedupes.+// 8. Copies are identical and the pointer block dedupes.const src = fs.readFileSync(path.join(skillSourceDir(), 'antislop-ui', 'SKILL.md'), 'utf8')const dst = fs.readFileSync(path.join(process.cwd(), '.claude', 'skills', 'antislop-ui', 'SKILL.md'), 'utf8')console.log('G antislop-ui SKILL.md identical:', src === dst)diff --git a/guide.md b/guide.mdindex 8205958..7072d7a 100644--- a/guide.md+++ b/guide.md@@ -56,21 +56,21 @@ Pick the one that matches your work. UI work means `antislop-ui`. Copy work mean## How to install-**The one-command way.** Run this in the terminal:+**The one-command way (recommended).** Run this in the terminal:```bashnpx antislop-ai```-Pick the skills you want, choose "this project" or "everywhere", and antislop installs itself. The core is always on; the skills load only for the work you do.+Pick the skills you want, choose "this project" or "everywhere", pick which agent(s) you use, and antislop installs itself and writes the pointer that loads it every session. The core is always on; the skills load only for the work you do.-Or install straight from the skills directory, the open directory for agent skills:+**The skills directory.** Or install the skill folders straight from skills.sh, the open directory for agent skills:```bashnpx skills add miqdadbadjuber/anti-slop```-Add `--all` for every skill, `-g` for a global install, or `--skill <name>` for a single one. Run `--list` first to see what is available. The skills directory reads the skills straight from the GitHub repository, so it works as soon as the repository is live; there is no separate setup step.+Add `--all` for every skill, `-g` for a global install, or `--skill <name>` for a single one. Run `--list` first to see what is available. The skills directory reads the skills straight from the GitHub repository, so it works as soon as the repository is live; there is no separate setup step. One caveat: skills.sh copies the skill folders but does not write the agent entry pointer that loads antislop every session; that is a skills.sh limitation, not antislop's. Use the one-command way instead, or run it afterwards to write the pointer.**The plugin (Claude Code).** If you use Claude Code, add the marketplace once, then install the plugin:@@ -83,7 +83,8 @@ Add `--all` for every skill, `-g` for a global install, or `--skill <name>` forAll of them, but the install path differs by agent:-- **The one-command way and the skills directory** work with Claude Code, Codex, and Antigravity. The picker detects which of those agents exist in your project and installs into their skill folders. This is the recommended path.+- **The one-command way (`npx antislop-ai`) is recommended**: it installs the skill folders and writes the pointer that loads antislop every session, in one run. It works with Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI, and Hermes, and detects which of those agents exist in your project (Hermes installs globally, into `~/.hermes/skills/`).+- **The skills directory** (`npx skills add`) copies the skill folders but writes no agent pointer; skills.sh does not write them. Use it for the folders only, then run the one-command way to add the pointer.- **The plugin** is Claude Code only.- **The manual way** works with any agent that reads plain Markdown, including a plain chat window (ChatGPT, Gemini, and so on).diff --git a/skills/antislop-human/contrast-mcp.py b/skills/antislop-human/contrast-mcp.pyindex 17c57c9..e1aff55 100644--- a/skills/antislop-human/contrast-mcp.py+++ b/skills/antislop-human/contrast-mcp.py@@ -9,7 +9,7 @@ import sysPROTOCOL_VERSION = "2024-11-05"SERVER_NAME = "antislop-contrast"-SERVER_VERSION = "3.1.3"+SERVER_VERSION = "3.2.0"TOOLS = [{