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
fix(cli): write Codex global installs to the shared ~/.agents/skills (#34)
Fajar Hidayat6bd86057c245
diff --git a/GUIDE.md b/GUIDE.mdindex faa08fa..14a3b47 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -361,7 +361,7 @@ The installer writes into the folder your agent reads. This is what it writes an| Hermes | `.hermes/skills/` || GitHub Copilot | `.agents/skills/` |-A global install writes the same folder under your home directory, with two 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. Copilot is the one agent that does read the home-level `.agents/skills/`, 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 reads that same home-level folder, so a global install reaches it 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.diff --git a/README.md b/README.mdindex eda6f71..e7642f2 100644--- a/README.md+++ b/README.md@@ -147,7 +147,7 @@ The Gemini CLI row is legacy support: Antigravity replaced it, but the installerAntigravity 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.-Those are the project paths. A global install writes the same folder under your home directory, with two exceptions: OpenCode writes to `~/.config/opencode/skills/`, and Antigravity to `~/.gemini/config/skills/`. Copilot is the one agent that also reads the home-level `.agents/skills/`.+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.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.diff --git a/ROADMAP.md b/ROADMAP.mdindex 5b5b977..571a95a 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -10,7 +10,7 @@ The latest release is **v3.2.10**. antislop is a **packaged system**: a lean, al- **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.- **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 and OpenCode read it as one of several roots. 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/`. Copilot is the one agent that does read the home-level `.agents/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, 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.## Release historydiff --git a/cli/lib/install.mjs b/cli/lib/install.mjsindex af404fa..a66534f 100644--- a/cli/lib/install.mjs+++ b/cli/lib/install.mjs@@ -15,7 +15,10 @@ export const AGENTS = [{ id: 'claude', label: 'Claude Code', dir: '.claude/skills', entry: 'CLAUDE.md' },// Antigravity reads a project's .agents/skills, but not the one under the home dir.{ id: 'antigravity', label: 'Antigravity', dir: '.agents/skills', globalDir: '.gemini/config/skills', entry: 'AGENTS.md' },- { id: 'codex', label: 'Codex', dir: '.codex/skills', entry: 'AGENTS.md' },+ // Codex reads $HOME/.agents/skills at user scope and calls its own $CODEX_HOME/skills+ // the deprecated user location, so a global install belongs in the shared folder. In a+ // project it reads .codex/skills and walks .agents/skills up from the working directory.+ { id: 'codex', label: 'Codex', dir: '.codex/skills', globalDir: '.agents/skills', readsAlso: ['.agents/skills'], entry: 'AGENTS.md' },// OpenCode documents ~/.config/opencode for global skills; ~/.opencode is undocumented.{ id: 'opencode', label: 'OpenCode', dir: '.opencode/skills', globalDir: '.config/opencode/skills', readsAlso: ['.claude/skills', '.agents/skills'], entry: 'AGENTS.md' },{ id: 'cursor', label: 'Cursor', dir: '.cursor/skills', entry: 'AGENTS.md' },diff --git a/cli/scripts/smoke-worker.mjs b/cli/scripts/smoke-worker.mjsindex bb07ed0..5de3854 100644--- a/cli/scripts/smoke-worker.mjs+++ b/cli/scripts/smoke-worker.mjs@@ -105,8 +105,12 @@ check('E duplicate read named', dupReads.map((d) => [d.agent.id, d.paths.length]check('E one folder alone is not a duplicate', detectDuplicateReads({ targets: resolveTargets('project', ['opencode']), location: 'project' }), [])check('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'])-console.log('F global targets:', globalTargets.map((t) => `${t.agents.map((a) => a.id).join('+')}@${t.path}`).join(' | '))+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')}`,+])// Copies are identical and the pointer block dedupes.const src = fs.readFileSync(path.join(skillSourceDir(), 'antislop-ui', 'SKILL.md'), 'utf8')