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
Merge upstream main and resolve Oh My Pi integration conflicts
oggiesutrisna5c8d974eb521
diff --cc .omp-plugin/README.mdindex f6cecf6,0000000..f86ff03mode 100644,000000..100644--- a/.omp-plugin/README.md+++ b/.omp-plugin/README.md@@@ -1,36 -1,0 +1,36 @@@+# Oh My Pi: antislop plugin++This folder contains the Oh My Pi marketplace catalog and plugin manifest for **antislop** (Anti Slop: Rules for AI Coding Agents).++## Quick start++Add this repository as an Oh My Pi marketplace, then install the plugin:++```bash+omp plugin marketplace add oggiesutrisna/omp-anti-slop-integration+omp plugin install antislop@anti-slop+```++Or from inside an active Oh My Pi session:++```text+/marketplace add oggiesutrisna/omp-anti-slop-integration+/marketplace install antislop@anti-slop+```++## What it loads++- **6 skills**:+ - `antislop`: Core filter, always on.+ - `antislop-ui`: UI and visual design rules.+ - `antislop-copywriting`: Copy & text rules.+ - `antislop-human`: Accessibility and contrast rules.+ - `antislop-layoutmobile`: Responsive layout and mobile viewport rules.+ - `antislop-code`: Code comments rules.- - **MCP server**:- - `antislop-contrast`: Computes WCAG contrast ratios and pass/fail verdicts via JSON-RPC.++++Contrast checks use `contrast-check.py` bundled with `antislop-human`. The skill also includes a formula and reference table as fallbacks. This integration does not register an MCP server.++## Scope++- **User scope (default)**: Installed into `~/.omp/plugins/installed_plugins.json`, available across all projects automatically.+- **Project scope**: Pass `--scope project` to install only inside the active project.diff --cc .omp-plugin/marketplace.jsonindex 39b3ba4,0000000..939f869mode 100644,000000..100644--- a/.omp-plugin/marketplace.json+++ b/.omp-plugin/marketplace.json@@@ -1,15 -1,0 +1,15 @@@+{+ "name": "anti-slop",+ "description": "The antislop skill/plugin. Anti Slop: Rules for AI Coding Agents.",+ "owner": {+ "name": "miqdadbadjuber"+ },+ "plugins": [+ {+ "name": "antislop",+ "source": "./",- "version": "3.2.9",++ "version": "3.2.16",+ "description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."+ }+ ]+}diff --cc .omp-plugin/plugin.jsonindex 8ceed1c,0000000..2749de4mode 100644,000000..100644--- a/.omp-plugin/plugin.json+++ b/.omp-plugin/plugin.json@@@ -1,21 -1,0 +1,14 @@@+{+ "name": "antislop",+ "displayName": "antislop",- "version": "3.2.9",++ "version": "3.2.16",+ "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",+ "repository": "https://github.com/miqdadbadjuber/anti-slop",+ "license": "MIT",+ "keywords": ["ai-slop", "design-rules", "copy-rules", "agent-skills", "ui", "accessibility"],- "skills": ["./skills/"],- "mcpServers": {- "antislop-contrast": {- "command": "node",- "args": ["${CLAUDE_PLUGIN_ROOT}/.claude-plugin/contrast-mcp-launcher.mjs"],- "env": {}- }- }++ "skills": ["./skills/"]+}diff --cc GUIDE.mdindex 64d3d0f,6046b0a..b863ab8--- a/GUIDE.md+++ b/GUIDE.md@@@ -36,18 -36,18 +36,18 @@@ There are four routes in, and the diffe| Route | What it does | Works on ||-------|--------------|----------|- | **The installer** | Copies the skill folders into your project or your home folder | Seven agents, no setup beyond a terminal |+ | **The installer** | Copies the skill folders into your project or your home folder | Eleven 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, Oh My Pi |-| **A plugin door** | Loads antislop straight from this repository, nothing copied | Claude Code, Antigravity, Codex, Cursor, Kimi Code, Cline |++| **A plugin door** | Loads antislop straight from this repository, nothing copied | Claude Code, Antigravity, Codex, Cursor, Kimi Code, Cline, Oh My Pi || **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 seven agents. It is the only route that covers OpenCode, Gemini CLI, and Hermes, 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 eleven agents. It is the only route that covers OpenCode, Cline, Amp, 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, Cursor, or Oh My Pi 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, Kimi Code, or Cline 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, Kimi Code, Cline, or Oh My Pi 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 +131,7 @@@ What it does not do is write the pointeA 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 five agents and not for the other two. 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.++Two things to know before you pick one. A plugin fits exactly one agent, so use the door for your agent from the list below. 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,22 -167,28 +167,44 @@@ agent plugin marketplace add https://giThen, 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.++ #### Cline++ Cline plugins install from the CLI:++ ```bash+ cline plugin install https://github.com/miqdadbadjuber/anti-slop.git+ ```++ The plugin registers no tools and no hooks. Its whole payload is the `skills/` folder it bundles, which Cline discovers when the plugin is installed, so there is no pointer to write and nothing is copied into your project.++ **Read this before you pick it.** Cline's own documentation limits plugins to the SDK, the CLI, and Kanban, and states that the feature does not apply to the VS Code and JetBrains extensions. So this door is for a Cline CLI install. If you run Cline inside an editor, use the installer instead: it writes the same skills into `.cline/skills/`, which both the CLI and the extensions read.+#### Oh My Pi++Add the marketplace once, then install the plugin:++```bash+omp plugin marketplace add oggiesutrisna/omp-anti-slop-integration+omp plugin install antislop@anti-slop+```++Or from inside an active Oh My Pi session:++```text+/marketplace add oggiesutrisna/omp-anti-slop-integration+/marketplace install antislop@anti-slop+```++---### The single file@@@ -303,22 -331,26 +347,42 @@@ agent plugin marketplace update https:/In 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.++ #### Cline++ Cline replaces an existing install only when you say so, so the update carries `--force`:++ ```bash+ cline plugin install https://github.com/miqdadbadjuber/anti-slop.git --force+ ```++ Without it, Cline keeps what is installed and tells you so.+#### Oh My Pi++Update the marketplace catalog and upgrade the plugin:++```bash+omp plugin marketplace update anti-slop+omp plugin upgrade antislop@anti-slop+```++Or inside an active session:++```text+/marketplace update anti-slop+/marketplace upgrade antislop@anti-slop+```++### The single fileDownload the file again and replace your copy. There is nothing else to update, since this route installs no folders.@@@ -370,18 -402,18 +434,30 @@@ Cursor documents no plugin uninstall coagent 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.++ #### Cline++ Cline documents no plugin uninstall command, only `cline plugin install`, so delete the plugin's folder under `~/.cline/plugins/_installed/` instead. Nothing was copied into your project, so that is the whole removal.++#### Oh My Pi++```bash+omp plugin uninstall antislop@anti-slop+```++To drop the marketplace as well:++```bash+omp plugin marketplace remove anti-slop+```+### 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.@@@ -444,7 -486,7 +530,7 @@@ If your `DESIGN.md` happens to ask for## Where is this going?- antislop is packaged three ways at once: standard skill folders, native plugins for Claude Code, Antigravity, Codex, Cursor, and Oh My Pi, and the single-file core that works anywhere. Agent support grows over time. For the current release and what comes next, see the [roadmap](ROADMAP.md). For the full picture of every skill, see the [README](README.md).-antislop is packaged three ways at once: standard skill folders, native plugins for Claude Code, Antigravity, Codex, Cursor, Kimi Code, and Cline, and the single-file core that works anywhere. Agent support grows over time. For the current release and what comes next, see the [roadmap](ROADMAP.md). For the full picture of every skill, see the [README](README.md).++antislop is packaged three ways at once: standard skill folders, native plugins for Claude Code, Antigravity, Codex, Cursor, Kimi Code, Cline, and Oh My Pi, and the single-file core that works anywhere. Agent support grows over time. For the current release and what comes next, see the [roadmap](ROADMAP.md). For the full picture of every skill, see the [README](README.md).## Feedbackdiff --cc README.mdindex 99dfa44,8b79d32..8268563--- a/README.md+++ b/README.md@@@ -127,28 -127,27 +127,50 @@@ agent plugin marketplace add https://gi```Then open **Customize** in Cursor, find **antislop**, and select **Install**, choosing project or user scope.- ### 7. The plugin (Oh My Pi)++ ### 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.++ ### 8. The plugin (Cline)++ The same repo is a Cline plugin. Install it with the Cline CLI:++ ```bash+ cline plugin install https://github.com/miqdadbadjuber/anti-slop.git+ ```++ The plugin ships no tools and no hooks. Its whole payload is the `skills/` folder it bundles, which Cline discovers on install. This has to be said plainly: Cline's own documentation limits plugins to the SDK, the CLI, and Kanban, and says the feature does not apply to the VS Code and JetBrains extensions yet. So this door covers a Cline CLI install and not an editor install, and the installer in path 1 is the route for an editor.+++### 9. The plugin (Oh My Pi)++This repository is an Oh My Pi plugin and marketplace. Add the marketplace once, then install the plugin:++```bash+omp plugin marketplace add oggiesutrisna/omp-anti-slop-integration+omp plugin install antislop@anti-slop+```++Or from an active Oh My Pi session:++```text+/marketplace add oggiesutrisna/omp-anti-slop-integration+/marketplace install antislop@anti-slop+```++If you are using the upstream repository directly:++```bash+omp plugin marketplace add miqdadbadjuber/anti-slop+omp plugin install antislop@anti-slop+```++### 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:@@@ -228,8 -262,8 +285,8 @@@ No, a filter. It does not prescribe colAll of them, but the install paths differ:- - **The installer and the skills directory** support Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI, and Hermes (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 Oh My Pi plugin (path 7), all installed from the same repo.+ - **The installer and the skills directory** support Claude Code, Codex, Antigravity, OpenCode, Cursor, Cline, Amp, 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), the Kimi Code plugin (path 7), and the Cline plugin (path 8), all installed from the same repo.++- **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), the Kimi Code plugin (path 7), the Cline plugin (path 8), and the Oh My Pi plugin (path 9), 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 --cc ROADMAP.mdindex 6f4e700,a0149a3..7137353--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -8,9 -8,9 +8,9 @@@ The latest release is **v3.2.16**. anti- **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:** 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 Oh My Pi. 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.++- **Distribution:** nine install paths from one repo, and the contrast checker is also exposed as an MCP tool inside the Claude Code plugin. The paths are the interactive installer (`npx antislop-ai`), the skills.sh directory, and native plugin doors for Claude Code, Antigravity, Codex, Cursor, Kimi Code, Cline, and Oh My Pi. 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, and Hermes treats it as a project tier beside its own `.hermes/skills/`, which ranks higher. Neither reads the home-level one. Claude Code is the holdout, reading `.claude/skills/` and nothing else. Global scope is not shared either: OpenCode reads `~/.config/opencode/skills/` and Antigravity `~/.gemini/config/skills/`. 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 --cc scripts/check-repo.mjsindex 1fd2a82,f92105e..3ea1924--- a/scripts/check-repo.mjs+++ b/scripts/check-repo.mjs@@@ -26,9 -27,8 +27,10 @@@ const MANIFESTS ='.codex-plugin/plugin.json','.cursor-plugin/plugin.json','.cursor-plugin/marketplace.json',+ '.kimi-plugin/plugin.json','.agents/plugins/marketplace.json',+ '.omp-plugin/plugin.json',+ '.omp-plugin/marketplace.json','plugin.json','cli/package.json',]@@@ -90,7 -90,7 +92,7 @@@ function skillReferences()return bad}- /** The version is hand-written in ten places. They have to agree. */-/** The version is hand-written in nine places. They have to agree. */++/** The version is hand-written in eleven places. They have to agree. */function versions() {// A malformed file is already reported by the manifest check; do not crash here.const json = (p) => {@@@ -108,9 -110,9 +112,11 @@@['.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],+ ['.omp-plugin/plugin.json', json('.omp-plugin/plugin.json')?.version],+ ['.omp-plugin/marketplace.json', json('.omp-plugin/marketplace.json')?.plugins?.[0]?.version],- ['cli/index.mjs', read('cli/index.mjs').match(/antislop (\d+\.\d+\.\d+)/)?.[1]],+ ['.kimi-plugin/plugin.json', json('.kimi-plugin/plugin.json')?.version],+ // Stamped into every install, so a stale one makes the installer misreport what is on disk.+ ['skills/antislop/VERSION', read('skills/antislop/VERSION').trim()],['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]],]