Skip to content

Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code.

v3.1.2: picker asks which agent, per-skill READMEs removed, bump

miqdadbadzubair-design100dd950a33c
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 6396b1d..05a72e1 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "antislop",
"source": "./",
- "version": "3.1.1",
+ "version": "3.1.2",
"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.json
index f1e15d9..96a51a9 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "antislop",
"displayName": "antislop",
- "version": "3.1.1",
+ "version": "3.1.2",
"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.md
index 08101ac..0e6190f 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ The core prevents slop but cannot invent direction. `DESIGN.md` (yours) supplies
antislop 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 for project or global:
+**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):
```bash
npx antislop-ai
@@ -53,7 +53,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) detects which of these agents exist in your project and installs into them; 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 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.
**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:
@@ -83,7 +83,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** is a patch: the picker stops copying per-skill READMEs into projects, and the wizard drops install commands (clears the Socket warning). 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. See [ROADMAP.md](ROADMAP.md) for the tracker, including the cross-agent plugin plan.
## FAQ
diff --git a/ROADMAP.md b/ROADMAP.md
index 8657f0c..acceb9e 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -4,7 +4,7 @@
## Where we are
-The latest release is **v3.1.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`):
+The latest release is **v3.1.2**. 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,9 +13,9 @@ The latest release is **v3.1.0**. 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. The next release, **v3.1.1**, is a patch: the picker no longer copies per-skill READMEs into projects, and the wizard no longer names install commands (clears the Socket warning on skills.sh).
+**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.
-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. Each skill folder also carries a short `README.md` that says on GitHub what the skill is for.
+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.
The **First-Run Install Wizard** still lives inside `antislop.md` as the manual path. The single-file core remains a complete filter you can paste into any chat window.
@@ -65,7 +65,8 @@ What v3.0.0 shipped:
- [x] v3.0.1 - Snyk W012 fix (no runtime curl in the packaged core), npm package author to antislop, docs clarity
- [x] v3.0.2 - adaptive python (python3 on macOS/Linux, python on Windows), App & Dashboard + copy voice patterns, pointer fix
- [x] v3.1.0 - `antislop-code` skill, per-skill READMEs, Filler Data and Emoji as Decoration patterns
-- [ ] v3.1.1 - picker stops copying per-skill READMEs; wizard drops install commands (clears the Socket warning on skills.sh)
+- [x] v3.1.1 - picker stops copying per-skill READMEs; wizard drops install commands (clears the Socket warning on skills.sh)
+- [ ] v3.1.2 - per-skill READMEs removed; picker asks which agent to install into (fresh Antigravity and Codex projects land in the right folder)
## After v3
diff --git a/cli/index.mjs b/cli/index.mjs
index 475ac33..d79e185 100644
--- a/cli/index.mjs
+++ b/cli/index.mjs
@@ -5,8 +5,10 @@ import { intro, outro, select, multiselect, confirm, isCancel, cancel, log, spin
import { banner } from './lib/banner.mjs'
import {
CORE,
+ AGENTS,
skillSourceDir,
resolveTargets,
+ detectAgents,
detectConflicts,
installSkills,
updatePointers,
@@ -27,7 +29,7 @@ function stop(message) {
async function main() {
if (process.argv.includes('--version') || process.argv.includes('-v')) {
- console.log('antislop 3.1.1')
+ console.log('antislop 3.1.2')
return
}
@@ -59,7 +61,21 @@ async function main() {
})
if (isCancel(location)) stop('Install cancelled.')
- const targets = resolveTargets(location)
+ log.step('Choose which agents get antislop')
+ const detected = detectAgents(location)
+ const chosen = await multiselect({
+ message: 'Which agent(s) should antislop install into?',
+ options: AGENTS.map((a) => ({
+ value: a.id,
+ label: a.label,
+ hint: detected.includes(a.id) ? `found here (${a.dir})` : `will create ${a.dir}`,
+ })),
+ required: 'Pick at least one agent.',
+ initialValues: detected,
+ })
+ if (isCancel(chosen)) stop('Install cancelled.')
+
+ const targets = resolveTargets(location, chosen)
await log.message(
'Installing into:\n' + targets.map((t) => ' ' + t.path).join('\n'),
{ symbol: pc.cyan('│') }
diff --git a/cli/lib/banner.mjs b/cli/lib/banner.mjs
index e59ae29..55d56ee 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.1'),
+ ' ' + pc.dim('installer v3.1.2'),
'',
].join('\n')
}
diff --git a/cli/lib/install.mjs b/cli/lib/install.mjs
index 1d50822..871a39f 100644
--- a/cli/lib/install.mjs
+++ b/cli/lib/install.mjs
@@ -25,15 +25,21 @@ function resolveBase(location) {
return location === 'global' ? os.homedir() : process.cwd()
}
-export function resolveTargets(location) {
+export function resolveTargets(location, selected = AGENTS.map((a) => a.id)) {
const base = resolveBase(location)
- return AGENTS.map((agent) => ({ agent, path: path.join(base, agent.dir) }))
- .filter((t) => {
- if (t.agent.id === 'claude') return true
- const parent = path.join(base, t.agent.dir.split('/')[0])
- return fs.existsSync(parent)
- })
- .map((t) => ({ ...t, exists: fs.existsSync(t.path) }))
+ 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)),
+ }))
+}
+
+// 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.
+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)
}
export function detectConflicts({ skills, targets }) {
diff --git a/cli/package-lock.json b/cli/package-lock.json
index ce1d06f..1f56a02 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "antislop-ai",
- "version": "3.1.1",
+ "version": "3.1.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "antislop-ai",
- "version": "3.1.1",
+ "version": "3.1.2",
"license": "MIT",
"dependencies": {
"@clack/prompts": "^1.7.0",
diff --git a/cli/package.json b/cli/package.json
index 0bb849d..3965391 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "antislop-ai",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "Interactive installer for the antislop skills. Anti Slop: Rules for AI Coding Agents.",
"type": "module",
"bin": {
diff --git a/cli/scripts/smoke-worker.mjs b/cli/scripts/smoke-worker.mjs
index f5c7e3d..2d2c6eb 100644
--- a/cli/scripts/smoke-worker.mjs
+++ b/cli/scripts/smoke-worker.mjs
@@ -1,35 +1,60 @@
import fs from 'node:fs'
import path from 'node:path'
-import { skillSourceDir, resolveTargets, detectConflicts, installSkills, updatePointers } from '../lib/install.mjs'
+import {
+ skillSourceDir,
+ resolveTargets,
+ detectAgents,
+ detectConflicts,
+ installSkills,
+ updatePointers,
+} from '../lib/install.mjs'
const skills = ['antislop', 'antislop-ui']
-const targets = resolveTargets('project')
-let conflicts = detectConflicts({ skills, targets })
-let written = installSkills({ skills, targets, overwrite: false })
-const pointers = updatePointers({ targets, skills })
+// 1. Fresh state: nothing detected, and the default selection is every agent.
+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('cwd:', process.cwd())
-console.log('A targets:', targets.map((t) => `${t.agent.id}@${t.path} exists=${t.exists}`).join(' | '))
-console.log('A conflicts:', conflicts.length, '(fresh project, expect 0)')
-console.log('A written:', written.map((w) => `${w.agent.id}:${w.skill}`).join(', '))
-console.log('A pointers:', pointers.map((p) => path.basename(p)).join(', '), '(expect CLAUDE.md)')
+// 2. Claude Code only, via explicit selection (old behavior preserved).
+const targets = resolveTargets('project', ['claude'])
+let written = installSkills({ skills, targets, overwrite: false })
+let pointers = updatePointers({ targets, skills })
+console.log('B targets:', targets.map((t) => `${t.agent.id}@${t.path} exists=${t.exists}`).join(' | '))
+console.log('B written:', written.map((w) => `${w.agent.id}:${w.skill}`).join(', '))
+console.log('B pointers:', pointers.map((p) => path.basename(p)).join(', '), '(expect CLAUDE.md)')
-conflicts = detectConflicts({ skills, targets })
+const conflicts = detectConflicts({ skills, targets })
written = installSkills({ skills, targets, overwrite: false })
-console.log('B conflicts:', conflicts.length, '(expect 2)')
-console.log('B written:', written.length, '(expect 0)')
-
+console.log('C conflicts:', conflicts.length, '(expect 2)')
+console.log('C written:', written.length, '(expect 0)')
written = installSkills({ skills, targets, overwrite: true })
-console.log('C written:', written.length, '(expect 2)')
-
-const globalTargets = resolveTargets('global')
-console.log('D global targets:', globalTargets.map((t) => `${t.agent.id}@${t.path}`).join(' | '))
-
+console.log('C overwritten:', written.length, '(expect 2)')
+
+// 3. Antigravity on the fresh project: the reported bug. The target is included
+// even though .agents/ did not exist, install creates it, pointer goes to AGENTS.md.
+const agTargets = resolveTargets('project', ['antigravity'])
+console.log('D antigravity targets:', agTargets.map((t) => `${t.agent.id}@${t.path} exists=${t.exists}`).join(' | '), '(exists=false before install)')
+const agWritten = installSkills({ skills, targets: agTargets, overwrite: false })
+console.log('D antigravity written:', agWritten.map((w) => `${w.agent.id}:${w.skill}`).join(', '), '(expect 2)')
+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.
+const after = detectAgents('project')
+console.log('E detected after installs:', after.join(', '), '(expect claude, antigravity)')
+
+// 5. 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.
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('E antislop-ui SKILL.md identical:', src === dst)
+console.log('G antislop-ui SKILL.md identical:', src === dst)
updatePointers({ targets, skills })
const entry = fs.readFileSync(path.join(process.cwd(), 'CLAUDE.md'), 'utf8')
-console.log('F blocks after a second run:', (entry.match(/antislop:start/g) || []).length, '(expect 1)')
+console.log('H blocks after a second run:', (entry.match(/antislop:start/g) || []).length, '(expect 1)')
diff --git a/skills/antislop-code/README.md b/skills/antislop-code/README.md
deleted file mode 100644
index ace6bf0..0000000
--- a/skills/antislop-code/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# antislop-code
-
-Code comment rules for generated code. When your AI tool writes or edits code comments, this skill removes the ones that read as generic AI (decorative separators, restating the obvious, step-by-step narration) and keeps the ones that carry real information. Part of the antislop system.
-
-## What it is not
-
-Not about banning comments, and it never rewrites your code. It only removes comments that read as generic AI and keeps the ones that matter. The code stays exactly as it is.
-
-## Where the rules live
-
-Your AI agent loads this together with the core rules in `antislop.md`. The full detail is in `SKILL.md` in this folder.
diff --git a/skills/antislop-copywriting/README.md b/skills/antislop-copywriting/README.md
deleted file mode 100644
index 90be8ed..0000000
--- a/skills/antislop-copywriting/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# antislop-copywriting
-
-Copy and text rules for generated prose. When your AI tool writes headlines, landing pages, or product copy, this skill checks the text for the patterns that give AI-written prose away and fixes them. Part of the antislop system.
-
-## What it is not
-
-Not a thesaurus, and not a tone guide that makes your text fancier. It only removes the patterns that make AI-written prose easy to spot. The voice and the actual wording stay yours.
-
-## Where the rules live
-
-Your AI agent loads this together with the core rules in `antislop.md`. The full detail is in `SKILL.md` in this folder.
diff --git a/skills/antislop-human/README.md b/skills/antislop-human/README.md
deleted file mode 100644
index d86a8cc..0000000
--- a/skills/antislop-human/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# antislop-human
-
-Human and accessibility rules for generated UI. When your AI tool builds an interface, this skill checks that real people with different eyes, hands, and setups can use it: contrast, keyboard, focus, and states. Part of the antislop system.
-
-## What it is not
-
-Not a replacement for real accessibility testing, and not a style pass. It keeps the UI usable by people. A human check still runs last.
-
-## Where the rules live
-
-Your AI agent loads this together with the core rules in `antislop.md`. The full detail is in `SKILL.md` in this folder.
diff --git a/skills/antislop-human/contrast-mcp.py b/skills/antislop-human/contrast-mcp.py
index fd846cf..5d33133 100644
--- a/skills/antislop-human/contrast-mcp.py
+++ b/skills/antislop-human/contrast-mcp.py
@@ -9,7 +9,7 @@ import sys
PROTOCOL_VERSION = "2024-11-05"
SERVER_NAME = "antislop-contrast"
-SERVER_VERSION = "3.1.1"
+SERVER_VERSION = "3.1.2"
TOOLS = [
{
diff --git a/skills/antislop-layoutmobile/README.md b/skills/antislop-layoutmobile/README.md
deleted file mode 100644
index 2a1c43a..0000000
--- a/skills/antislop-layoutmobile/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# antislop-layoutmobile
-
-Mobile layout rules for generated interfaces. When your AI tool builds a layout, this skill checks that it still holds up on a small screen: breakpoints, grids, overflow, tap targets, and navigation. Part of the antislop system.
-
-## What it is not
-
-Not a responsive framework, and it will not write your CSS. It checks that a layout holds up on a phone and fixes what breaks. The layout structure stays yours.
-
-## Where the rules live
-
-Your AI agent loads this together with the core rules in `antislop.md`. The full detail is in `SKILL.md` in this folder.
diff --git a/skills/antislop-ui/README.md b/skills/antislop-ui/README.md
deleted file mode 100644
index 8212990..0000000
--- a/skills/antislop-ui/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# antislop-ui
-
-UI and visual rules for generated interfaces. When your AI tool builds or edits a website, app, or dashboard, this skill checks the result for the patterns that give AI-generated work away (decorative emoji, filler data like "John Doe", generic AI icons) and fixes them. Part of the antislop system.
-
-## What it is not
-
-Not a design system, and not a way to make your design prettier or more modern. It only filters the slop. The visual taste and the actual design stay with you.
-
-## Where the rules live
-
-Your AI agent loads this together with the core rules in `antislop.md`. The full detail is in `SKILL.md` in this folder.
diff --git a/skills/antislop/README.md b/skills/antislop/README.md
deleted file mode 100644
index 31c46dc..0000000
--- a/skills/antislop/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# antislop
-
-The core. Anti Slop: Rules for AI Coding Agents. A filter that stops generated UI and copy from reading as generic "AI slop". It is a filter, not a style guide: no prescribed colors, fonts, or layouts.
-
-## What it is
-
-The core rules always load. They have mandatory rules in three tiers, a Liveliness Toolkit, and a Delivery Gate that checks the work before it ships. The core works alone or with the deeper skills next to it (ui, copywriting, human, layoutmobile, code), one per concern.
-
-## What it is not
-
-Not a style guide and not a design system. It does not pick colors, fonts, or layouts, and it never beautifies on its own. Direction comes from you and your DESIGN.md.
-
-## Where the rules live
-
-The source is `antislop.md` at the repo root. `SKILL.md` in this folder is the same rules packaged as a skill so your AI agent can load it directly.