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
feat(cli): add Kimi Code as an installer target and a plugin door (#37)
Fajar Hidayat2240b2352602
diff --git a/.kimi-plugin/plugin.json b/.kimi-plugin/plugin.jsonnew file mode 100644index 0000000..0b6aac6--- /dev/null+++ b/.kimi-plugin/plugin.json@@ -0,0 +1,20 @@+{+ "name": "antislop",+ "version": "3.2.11",+ "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"+ },+ "homepage": "https://github.com/miqdadbadjuber/anti-slop",+ "license": "MIT",+ "keywords": ["ai-slop", "design-rules", "copy-rules", "agent-skills", "ui", "accessibility"],+ "skills": "./skills/",+ "systemPromptPath": "./rules/antislop.md",+ "interface": {+ "displayName": "antislop",+ "shortDescription": "Anti Slop: Rules for AI Coding Agents.",+ "longDescription": "Stops generic AI slop in generated UI, copy, and code. The core filter is always available; the UI, copywriting, human, responsive layout, and code comment skills load for the task at hand. A filter, not a style guide.",+ "developerName": "miqdadbadjuber",+ "websiteURL": "https://github.com/miqdadbadjuber/anti-slop"+ }+}diff --git a/GUIDE.md b/GUIDE.mdindex 14a3b47..124c92e 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -36,18 +36,18 @@ There are four routes in, and the difference between them matters more than it l| Route | What it does | Works on ||-------|--------------|----------|-| **The installer** | Copies the skill folders into your project or your home folder | Eight agents, no setup beyond a terminal |+| **The installer** | Copies the skill folders into your project or your home folder | Nine agents, no setup beyond a terminal || **The skills directory** | Copies the same folders using the skills.sh tool | The agents that directory supports |-| **A plugin door** | Loads antislop straight from this repository, nothing copied | Claude Code, Antigravity, Codex, Cursor |+| **A plugin door** | Loads antislop straight from this repository, nothing copied | Claude Code, Antigravity, Codex, Cursor, Kimi Code || **The single file** | One Markdown file you hand to any AI | Anything that reads text, including a phone |Pick one. They load the same rules, so adding a second only gives you a second thing to keep updated.### Which route should I pick?-- **The installer** if you want antislop in one project or everywhere, and you use any of the eight agents. It is the only route that covers OpenCode, Gemini CLI, Hermes, and GitHub Copilot, and the only one that detects your agents for you.+- **The installer** if you want antislop in one project or everywhere, and you use any of the nine agents. It is the only route that covers OpenCode, Gemini CLI, Hermes, and GitHub Copilot, and the only one that detects your agents for you.- **The skills directory** if you already use that directory's tool and want the folders without the installer's questions. It writes no pointer, so antislop reloads by description alone.-- **A plugin door** if you use Claude Code, Antigravity, Codex, or Cursor and would rather not keep a copy in your project. You get updates from the plugin's own update command instead of re-running an installer.+- **A plugin door** if you use Claude Code, Antigravity, Codex, Cursor, or Kimi Code and would rather not keep a copy in your project. You get updates from the plugin's own update command instead of re-running an installer.- **The single file** if you have no terminal, or you want antislop in a chat window or on a phone.### Before you start@@ -131,7 +131,7 @@ What it does not do is write the pointer that reloads antislop every session. IfA plugin is a feature of the agent, not of antislop. You point the agent at this repository once, and from then on the agent loads antislop directly from there. Nothing is copied into your project, so there is no snapshot that can quietly go stale. A new version arrives by updating the plugin, not by re-running an installer.-Two things to know before you pick one. A plugin fits exactly one agent, so this route exists for four agents and not for the other three. And every agent below keeps its own local copy, so none of them updates by itself unless that agent says it does.+Two things to know before you pick one. A plugin fits exactly one agent, so this route exists for five agents and not for the other four. And every agent below keeps its own local copy, so none of them updates by itself unless that agent says it does.#### Claude Code@@ -167,6 +167,16 @@ agent plugin marketplace add https://github.com/miqdadbadjuber/anti-slopThen, inside Cursor, open **Customize** in the sidebar, find **antislop**, and select **Install**, choosing project or user scope. From the dashboard, **Dashboard → Plugins → Add Marketplace → Import from Repo** does the same.+#### Kimi Code++In a Kimi Code session:++```text+/plugins install https://github.com/miqdadbadjuber/anti-slop+```++The URL resolves to the latest release. Plugin changes do not reach the session you ran the command in, so run `/reload` or `/new` afterwards. Kimi Code installs plugins per user, and has no project scope for them, so one install covers every project. Its `systemPromptPath` loads the antislop pointer in every session, so there is nothing else to do.+---### The single file@@ -287,6 +297,16 @@ agent plugin marketplace update https://github.com/miqdadbadjuber/anti-slopIn the dashboard you can also enable **Auto Refresh** for the marketplace, or press **Refresh** by hand. Cursor re-indexes a marketplace at most once every ten minutes. If new plugins were added to the repo, re-importing the repository URL is what picks them up.+#### Kimi Code++Kimi Code has no plugin update command, so run the same install command again:++```text+/plugins install https://github.com/miqdadbadjuber/anti-slop+```++`/plugins` then **Enter** on the antislop row in the **Installed** tab does the same. Either way, run `/reload` or `/new` after it.+### The single fileDownload the file again and replace your copy. There is nothing else to update, since this route installs no folders.@@ -338,6 +358,14 @@ Cursor documents no plugin uninstall command, so remove the plugin from the Custagent plugin marketplace remove anti-slop```+#### Kimi Code++```text+/plugins remove antislop+```++It asks for confirmation. `/plugins disable antislop` switches it off without removing it. Removing only deletes the installation record, so the copy under `$KIMI_CODE_HOME/plugins/managed/antislop/` (default `~/.kimi-code/plugins/managed/antislop/`) stays on disk until you delete it.+### The single fileDelete the `antislop.md` file you downloaded. If you attached it to a chat project instead of keeping it as a file, remove it from that project's reference material.@@ -360,14 +388,15 @@ The installer writes into the folder your agent reads. This is what it writes an| Gemini CLI | `.gemini/skills/` || Hermes | `.hermes/skills/` || GitHub Copilot | `.agents/skills/` |+| Kimi Code | `.agents/skills/` |-A global install writes the same folder under your home directory, with three exceptions. OpenCode documents its global skills folder as `~/.config/opencode/skills/`, so the installer writes there rather than to `~/.opencode/skills/`, which OpenCode still reads but does not document. Antigravity reads a project's `.agents/skills/`, but under your home directory it reads `~/.gemini/config/skills/` and not `~/.agents/skills/`, so the installer writes there on a global install. Codex goes the other way: it marks its own `~/.codex/skills/` as the deprecated user location and documents `~/.agents/skills/` in its place, so a global Codex install writes the shared folder. Copilot reads that same home-level folder, so a global install reaches it through the folder name a project install uses.+A global install writes the same folder under your home directory, with three exceptions. OpenCode documents its global skills folder as `~/.config/opencode/skills/`, so the installer writes there rather than to `~/.opencode/skills/`, which OpenCode still reads but does not document. Antigravity reads a project's `.agents/skills/`, but under your home directory it reads `~/.gemini/config/skills/` and not `~/.agents/skills/`, so the installer writes there on a global install. Codex goes the other way: it marks its own `~/.codex/skills/` as the deprecated user location and documents `~/.agents/skills/` in its place, so a global Codex install writes the shared folder. Copilot and Kimi Code read that same home-level folder, so a global install reaches them through the folder name a project install uses.-Antigravity and Copilot share `.agents/skills/`. Copilot also reads `.github/skills/` and `.claude/skills/`, but there is no reason to write a second copy, so picking both installs once.+Antigravity, Copilot, and Kimi Code share `.agents/skills/`. Copilot also reads `.github/skills/` and `.claude/skills/`, and Kimi Code also reads `.kimi-code/skills/`, but there is no reason to write a second copy, so picking them together installs once.**One agent reading two of these is a problem.** OpenCode loads skills from `.opencode/skills/`, `.claude/skills/`, and `.agents/skills/`, and its documentation asks that skill names be unique across every location while never saying which copy wins if they are not. So if you install for OpenCode and for Claude Code, or for OpenCode and for Antigravity, the same skill names land in two folders it reads. The installer names that when it happens, and the fix is to remove the copy you do not need, usually the `.opencode/skills/` one, since OpenCode reads the other folder by its own documentation.-On a project install the installer also writes the pointer that reloads antislop every session: into the project's `AGENTS.md` for Codex, Antigravity, OpenCode, Cursor, Hermes, and Copilot, into `CLAUDE.md` for Claude Code, and into `GEMINI.md` for Gemini CLI. For OpenCode that is the whole mechanism: it loads the skill folders from `.opencode/skills/` and reads the pointer from `AGENTS.md`, which was verified against the opencode CLI.+On a project install the installer also writes the pointer that reloads antislop every session: into the project's `AGENTS.md` for Codex, Antigravity, OpenCode, Cursor, Hermes, Copilot, and Kimi Code, into `CLAUDE.md` for Claude Code, and into `GEMINI.md` for Gemini CLI. For OpenCode that is the whole mechanism: it loads the skill folders from `.opencode/skills/` and reads the pointer from `AGENTS.md`, which was verified against the opencode CLI.**Claude Code reads `AGENTS.md` too, since v2.1.277.** antislop still writes `CLAUDE.md` for it, because the two are not equal: Claude reads `AGENTS.md` only when no `CLAUDE.md` or `CLAUDE.local.md` exists in the working directory or any directory above it. In a project that has one, an `AGENTS.md`-only pointer would be ignored without an error. The setting under **Project instructions** in `/config` can change that, and `AGENTS.md` is not read at all on Bedrock, Vertex, or Foundry.diff --git a/README.md b/README.mdindex 804f67c..87f4586 100644--- a/README.md+++ b/README.md@@ -128,6 +128,16 @@ agent plugin marketplace add https://github.com/miqdadbadjuber/anti-slopThen open **Customize** in Cursor, find **antislop**, and select **Install**, choosing project or user scope.+### 7. The plugin (Kimi Code)++The same repo is a Kimi Code plugin. Install it in a Kimi Code session, then start a new one:++```text+/plugins install https://github.com/miqdadbadjuber/anti-slop+```++The URL resolves to the latest release. Kimi Code installs plugins per user, so this covers every project.+### Where the skills liveEvery skill is a folder of the open Agent Skills standard (`<name>/SKILL.md`), so it drops into any agent that reads the standard. The installer (path 1) installs into whichever of these you use, creating the folder if it is missing:@@ -142,12 +152,13 @@ Every skill is a folder of the open Agent Skills standard (`<name>/SKILL.md`), s| Gemini CLI | `.gemini/skills/` || Hermes | `.hermes/skills/` || GitHub Copilot | `.agents/skills/` |+| Kimi Code | `.agents/skills/` |The Gemini CLI row is legacy support: Antigravity replaced it, but the installer still writes there for existing setups.-Antigravity and Copilot share one folder. Copilot also reads `.github/skills/` and `.claude/skills/`, but the installer writes the folder they have in common, so picking both installs antislop once.+Antigravity, Copilot, and Kimi Code share one folder. Copilot also reads `.github/skills/` and `.claude/skills/`, and Kimi Code also reads `.kimi-code/skills/`, but the installer writes the folder they have in common, so picking them together installs antislop once.-Those are the project paths. A global install writes the same folder under your home directory, with three exceptions: OpenCode writes to `~/.config/opencode/skills/`, Antigravity to `~/.gemini/config/skills/`, and Codex to `~/.agents/skills/`, the user-level folder Codex documents in place of its own `~/.codex/skills/`. Copilot and OpenCode read that home-level folder too.+Those are the project paths. A global install writes the same folder under your home directory, with three exceptions: OpenCode writes to `~/.config/opencode/skills/`, Antigravity to `~/.gemini/config/skills/`, and Codex to `~/.agents/skills/`, the user-level folder Codex documents in place of its own `~/.codex/skills/`. Copilot, OpenCode, and Kimi Code read that home-level folder too, so it is where a global install reaches them.Hermes needs one extra step after a project install: it will not load skills out of a cloned repository until you run `hermes skills trust` once in that project.@@ -208,8 +219,8 @@ No, a filter. It does not prescribe colors, fonts, or layouts. It rejects techniAll of them, but the install paths differ:-- **The installer and the skills directory** support Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI, Hermes, and GitHub Copilot (the installer detects each agent's skill folder). These are the recommended paths.-- **The plugins** are per-agent doors: the Claude Code marketplace plugin (path 3), the Antigravity plugin (path 4), the Codex plugin (path 5), and the Cursor plugin (path 6), all installed from the same repo.+- **The installer and the skills directory** support Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI, Hermes, GitHub Copilot, and Kimi Code (the installer detects each agent's skill folder). These are the recommended paths.+- **The plugins** are per-agent doors: the Claude Code marketplace plugin (path 3), the Antigravity plugin (path 4), the Codex plugin (path 5), the Cursor plugin (path 6), and the Kimi Code plugin (path 7), all installed from the same repo.- **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 9d795af..0875027 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -8,9 +8,9 @@ The latest release is **v3.2.11**. antislop is a **packaged system**: a lean, al- **The core: 38 rules** across three tiers (Hard Gate, Purpose-Gate, Quality Locks), a Liveliness Toolkit, a mandatory Delivery Gate, and two usage modes (During / After). The count has held since v2.2 and the tiers have not moved, but individual rules have been sharpened many times since, and the release history below says where. The single-file `antislop.md` is still a complete filter you can paste into any chat window; its First-Run Install Wizard is the manual install path.- **The six skills:** `antislop` (the core), plus `antislop-ui`, `antislop-copywriting`, `antislop-human`, `antislop-layoutmobile`, and `antislop-code`. Each skill only loads when the task needs it.-- **Distribution:** six install paths from one repo, and the contrast checker is also exposed as an MCP tool inside the plugin. The paths are the interactive installer (`npx antislop-ai`), the skills.sh directory, and native plugin doors for Claude Code, Antigravity, Codex, and Cursor. Install commands live in the README, and the GUIDE walks through every route from zero.+- **Distribution:** seven install paths from one repo, and the contrast checker is also exposed as an MCP tool inside the plugin. The paths are the interactive installer (`npx antislop-ai`), the skills.sh directory, and native plugin doors for Claude Code, Antigravity, Codex, Cursor, and Kimi Code. Install commands live in the README, and the GUIDE walks through every route from zero.- **The doors:** each native plugin loads antislop straight from this repository, so there are no copies to keep in sync.-- **The shared folder:** the bet behind the long tail is that `.agents/skills/` is read widely enough that a new agent costs one row instead of a bespoke door. Antigravity reads it by default, Hermes treats it as a project tier beside its own `.hermes/skills/`, which ranks higher, and Copilot, OpenCode, and Codex read it as one of several roots. Claude Code is the holdout, reading `.claude/skills/` and nothing else. The home-level folder is shared by three of them: Copilot, OpenCode, and Codex, which marks its own `$CODEX_HOME/skills` deprecated in its favour. Antigravity is the one that reads neither, taking `~/.gemini/config/skills/` instead, and OpenCode keeps `~/.config/opencode/skills/` beside the shared one. The installer writes each agent's own documented path, so no door depends on another vendor's convention holding.+- **The shared folder:** the bet behind the long tail is that `.agents/skills/` is read widely enough that a new agent costs one row instead of a bespoke door. Antigravity reads it by default, Hermes treats it as a project tier beside its own `.hermes/skills/`, which ranks higher, and Copilot, OpenCode, Codex, and Kimi Code read it as one of several roots. Claude Code is the holdout, reading `.claude/skills/` and nothing else. The home-level folder is shared by four of them: Copilot, OpenCode, Codex, which marks its own `$CODEX_HOME/skills` deprecated in its favour, and Kimi Code, whose own user folder moves with `KIMI_CODE_HOME` and so cannot be written without reading that variable. Antigravity is the one that reads neither, taking `~/.gemini/config/skills/` instead, and OpenCode keeps `~/.config/opencode/skills/` beside the shared one. The installer writes each agent's own documented path, so no door depends on another vendor's convention holding.## Release historydiff --git a/cli/lib/install.mjs b/cli/lib/install.mjsindex a66534f..e6c8099 100644--- a/cli/lib/install.mjs+++ b/cli/lib/install.mjs@@ -27,6 +27,9 @@ export const AGENTS = [{ id: 'hermes', label: 'Hermes', dir: '.hermes/skills', readsAlso: ['.agents/skills'], entry: 'AGENTS.md' },// Copilot reads the shared .agents/skills folder, so it shares Antigravity's target.{ id: 'copilot', label: 'GitHub Copilot', dir: '.agents/skills', entry: 'AGENTS.md' },+ // Kimi Code reads the shared folder at both scopes. Its own .kimi-code/skills is never+ // written here, and $KIMI_CODE_HOME/skills moves with an env var the installer cannot see.+ { id: 'kimi', label: 'Kimi Code', dir: '.agents/skills', entry: 'AGENTS.md' },]export function skillSourceDir() {diff --git a/cli/scripts/smoke-worker.mjs b/cli/scripts/smoke-worker.mjsindex 5de3854..a6d341a 100644--- a/cli/scripts/smoke-worker.mjs+++ b/cli/scripts/smoke-worker.mjs@@ -30,9 +30,9 @@ const fresh = detectAgents('project')check('A detected (fresh project)', fresh, [])const defaultTargets = resolveTargets('project')console.log('A default targets:', defaultTargets.map((t) => `${t.agents.map((a) => a.id).join('+')}@${t.path} exists=${t.exists}`).join(' | '))-// Copilot shares Antigravity's folder, so eight agents resolve to seven folders.-check('A eight agents over seven folders', [AGENTS.length, defaultTargets.length], [8, 7])-check('A copilot shares the antigravity folder', resolveTargets('project', ['antigravity', 'copilot']).length, 1)+// Copilot and Kimi Code share Antigravity's folder, so nine agents resolve to seven folders.+check('A nine agents over seven folders', [AGENTS.length, defaultTargets.length], [9, 7])+check('A copilot and kimi share the antigravity folder', resolveTargets('project', ['antigravity', 'copilot', 'kimi']).length, 1)// Claude Code only, via explicit selection (old behavior preserved).const targets = resolveTargets('project', ['claude'])@@ -88,6 +88,9 @@ const agGlobal = resolveTargets('global', ['antigravity'])check('D5 antigravity project target', resolveTargets('project', ['antigravity'])[0].path, path.join(process.cwd(), '.agents', 'skills'))check('D5 antigravity global target', agGlobal[0].path, path.join(os.homedir(), '.gemini', 'config', 'skills'))+// Kimi Code has no folder of its own here: both scopes are the shared .agents/skills.+check('D7 kimi project target', resolveTargets('project', ['kimi'])[0].path, path.join(process.cwd(), '.agents', 'skills'))+// updatePointers has no other source for the entry file, so no row may omit it.check('D6 every agent names an entry file', AGENTS.filter((a) => !a.entry).map((a) => a.id), [])@@ -96,7 +99,7 @@ check('D6 hermes writes a project pointer', updatePointers({ targets: hermesProj// Detection now sees the agents that were installed.const after = detectAgents('project')-check('E detected after installs', [...after].sort(), ['antigravity', 'claude', 'copilot', 'cursor', 'gemini', 'hermes', 'opencode'])+check('E detected after installs', [...after].sort(), ['antigravity', 'claude', 'copilot', 'cursor', 'gemini', 'hermes', 'kimi', 'opencode'])// OpenCode reads .claude/skills and .agents/skills too, so a project that installs into// two of them holds the same names twice and OpenCode picks between them unpredictably.@@ -106,10 +109,11 @@ check('E one folder alone is not a duplicate', detectDuplicateReads({ targets: rcheck('E global scope is not checked', detectDuplicateReads({ targets: resolveTargets('global', ['claude', 'opencode']), location: 'global' }), [])// Codex's global scope is the shared folder, not ~/.codex/skills, which Codex calls deprecated.-const globalTargets = resolveTargets('global', ['claude', 'codex'])+// Kimi Code lands there too, so the grouping has to hold at global scope as well.+const globalTargets = resolveTargets('global', ['claude', 'codex', 'kimi'])check('F global targets', globalTargets.map((t) => `${t.agents.map((a) => a.id).join('+')}@${t.path}`), [`claude@${path.join(os.homedir(), '.claude', 'skills')}`,- `codex@${path.join(os.homedir(), '.agents', 'skills')}`,+ `codex+kimi@${path.join(os.homedir(), '.agents', 'skills')}`,])// Copies are identical and the pointer block dedupes.diff --git a/scripts/check-repo.mjs b/scripts/check-repo.mjsindex f260916..6591f68 100644--- a/scripts/check-repo.mjs+++ b/scripts/check-repo.mjs@@ -26,6 +26,7 @@ const MANIFESTS = ['.codex-plugin/plugin.json','.cursor-plugin/plugin.json','.cursor-plugin/marketplace.json',+ '.kimi-plugin/plugin.json','.agents/plugins/marketplace.json','plugin.json','cli/package.json',@@ -88,7 +89,7 @@ function skillReferences() {return bad}-/** The version is hand-written in eight places. They have to agree. */+/** The version is hand-written in nine places. They have to agree. */function versions() {// A malformed file is already reported by the manifest check; do not crash here.const json = (p) => {@@ -106,6 +107,7 @@ function versions() {['.claude-plugin/marketplace.json', json('.claude-plugin/marketplace.json')?.plugins?.[0]?.version],['.codex-plugin/plugin.json', json('.codex-plugin/plugin.json')?.version],['.cursor-plugin/plugin.json', json('.cursor-plugin/plugin.json')?.version],+ ['.kimi-plugin/plugin.json', json('.kimi-plugin/plugin.json')?.version],['cli/index.mjs', read('cli/index.mjs').match(/antislop (\d+\.\d+\.\d+)/)?.[1]],['cli/lib/banner.mjs', read('cli/lib/banner.mjs').match(/installer v(\d+\.\d+\.\d+)/)?.[1]],['skills/antislop-human/contrast-mcp.py', read('skills/antislop-human/contrast-mcp.py').match(/SERVER_VERSION = "(\d+\.\d+\.\d+)"/)?.[1]],