/ai-slop:initfrom ai-slop
Sets up writing rules and AI trope catalog for Claude Code, Codex, or pi across projects. Exports as a single Markdown file for system prompts or global instructions.
Ships in ai-slop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill writes the general rule layer and the AI trope catalog (fetched live from tropes.fyi) into one Markdown file, under an instruction to apply them to all prose that the assistant writes: replies in chat, files that it creates or edits, code comments and docstrings, and commit messages. Claude Code loads the file from its rules directory. Codex and pi read it through a reference in their global instructions. The selected client determines the default destination and loading step.
Audience and tone. The user wants the assistant's own output to follow the rules everywhere, instead of auditing it afterward. The file applies to any prose, so it carries no rules for a single genre or file format.
Init and writing. /ai-slop:writing writes a WRITING.md into one project, with the layers that the project calls for (the scientific and LaTeX layers for a paper), for co-authors to read and edit and to commit with the project. Init writes one file for every session, with the general layer and the Economist or STE layers on request, and replaces it on each run.
This workflow works in Claude Code, Codex, and pi. Resolve <skill-dir> to the absolute directory containing this SKILL.md, using the skill path supplied by the client. Substitute that directory in every command below and keep the script path quoted. Resolve ../../shared/ and other bundled paths relative to that directory, while keeping the working directory at the user's project. No client-specific environment variable is required.
In Claude Code, invoke /ai-slop:init. In Codex, select the ai-slop:init skill through /skills or a $ mention. In pi, invoke /skill:init. References to other /ai-slop: commands below mean the corresponding sibling skill in any client.
Invoke this skill when the user:
/ai-slop:init.Do not invoke when the user wants the rules of one project as an editable file (use /ai-slop:writing) or wants to audit text (use /ai-slop:review or its variants).
Client. Use the current client unless the user names a different target. If the client cannot be identified and the user has not given an export path, ask which client to set up.
Output path. A positional path sets the file to write and skips the automatic Codex or pi registration step. With no path, Claude Code uses ~/.claude/rules/ai-slop.md. Codex uses <codex-home>/ai-slop.md, where <codex-home> is the configured CODEX_HOME or ~/.codex when unset. Pi uses <pi-agent-dir>/ai-slop.md, where <pi-agent-dir> is the configured PI_CODING_AGENT_DIR or ~/.pi/agent when unset. Expand these paths before passing them to the helper. Never export the full rules into an existing AGENTS.md, AGENTS.override.md, or CLAUDE.md as part of automatic setup.
Flags. --economist adds core advice from Writing with Style: The Economist Guide (../../shared/rules-economist.md). --ste adds the Simplified Technical English layer (../../shared/rules-ste.md). Both layers apply to any prose and can be combined, with the stricter STE limits retained (E.precedence). --tropes=<path> (repeatable) reads the catalog from local files instead of tropes.fyi, concatenated in the order given, as in /ai-slop:review. The scientific and LaTeX layers are not available here, since they apply to research articles and LaTeX source. /ai-slop:writing writes them into the WRITING.md of a paper project.
Resolve the output path. Take the positional path, or select the default for the target client as described in Inputs. Record whether the path was explicit.
Write the file. Run python3 "<skill-dir>/../../scripts/export_rules.py" <output> [--economist] [--ste] [--tropes=<path> ...]. The script builds the file from ../../shared/rules-general.md, the requested optional layers, and the catalog, each under its own heading. It leaves out the self-check of each layer, which restates the rules, and the status line, label, and --- line of each catalog entry. The script writes the file in one step, so do not compose or edit the file by hand. The next step depends on its exit code:
0: the file is written. The stderr line says whether it was created or replaced, and gives its size in bytes and approximate tokens.1: there is no catalog. tropes.fyi is the only source and there is no bundled fallback, so stop and tell the user that fetching the catalog failed and that --tropes=<path> writes the file from a local copy.2: a usage error, or a file that could not be read. Pass the message on and stop.3: a file that this mode did not write already exists at the output path. The script replaces a file from an earlier run without asking, because running this mode again is how the rules and the catalog are refreshed. Any other file may hold the user's own rules, so ask before replacing it (e.g., "<output> exists and was not written by /ai-slop:init. Replace it (y/n)?"). On yes, run the script again with --force. On no, stop and leave the file as it is.Register the Codex or pi default. Only after a successful export, when setting up Codex or pi without an explicit output path, add a reference in the global instructions of the client. For Codex, use a nonempty <codex-home>/AGENTS.override.md if present, otherwise <codex-home>/AGENTS.md. For pi, use the first of these files that exists in <pi-agent-dir>: AGENTS.override.md, which pi reads even when it is empty, then AGENTS.md or AGENTS.MD, then CLAUDE.md or CLAUDE.MD, and otherwise a new AGENTS.md. Preserve all existing text. If the selected file already instructs the client to read the exported rules, leave it alone. Otherwise append a ## Writing conventions section with this instruction, substituting the absolute path:
Read `/absolute/path/to/ai-slop.md` before writing prose, and apply its rules to replies, edited files, comments, and commit messages. Project-specific writing conventions take precedence.
Create the selected file if missing. Keep the rules themselves in the export file. The separate file keeps the global instruction file small, and a later run replaces the rules without touching the user's own instructions. A Markdown link or Claude's @path syntax alone does not substitute for this explicit read instruction. If permissions prevent updating the global file, report that the export succeeded but registration did not, and show the reference to add. Claude Code reads its rules directory automatically, so the registration step does not apply.
Print a short summary that covers:
<output>, with the layers and its size in tokens, rounded to the nearest thousand. The whole file stays in the context of every session that loads it..claude/rules/ in a repository loads in that project. An explicit path outside those Claude directories is an export only. Explain how to load it in the target client: an explicit read instruction in the AGENTS.md of Codex or pi, an @<path> import in Claude's CLAUDE.md, or a system prompt attachment.Stop. Do not review the project or edit files beyond the export and the Codex or pi registration described above. Do not commit.
../../scripts/export_rules.py assembles and writes the file. Unless --force is passed, it replaces only a file that an earlier run wrote.../../scripts/fetch_tropes.py fetches the catalog from tropes.fyi. export_rules.py calls it unless --tropes=<path> is passed.../../shared/rules-general.md, ../../shared/rules-economist.md, and ../../shared/rules-ste.md are the rule layers available for the file.~/.claude/rules/.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub se-uhd/ai-slop-skill --plugin ai-slop9 skills in this plugin
/glossaryExtract or maintain GLOSSARY.md for a document and validate its terminology. Use when the user asks for a glossary, proposed definitions, a synonym audit, or a check that a paper or document uses one term for each concept. Flags competing names, conflicting meanings, undefined terms, and newly invented labels for existing concepts. Supports LaTeX, PDF, Markdown, and plain text, and finds the main document when no filename is supplied. Writes a glossary and a terminology report, validates an existing glossary with --check, or converts it to the format and to ISO 704 definitions with --convert. --ste adds the Simplified Technical English layer. Does not rewrite the document. For the text of a whole repository, use glossary-repo./glossary-repoBuild or maintain GLOSSARY.md for a whole repository and check its terminology. Use when the user asks for a glossary of a code base, a project, or a paper repository, or for a check that its documentation, code comments, user-facing messages, and LaTeX or Markdown files use one term for each concept. Reads every text file of the repository through the shared repository scan, including the comments and prose string literals of source code, and the identifiers that name each concept. Flags competing names, conflicting meanings, undefined terms, avoided vocabulary, and newly invented labels for existing concepts. Writes a glossary and a terminology report grouped by file, validates an existing glossary with --check, or converts it to the format and to ISO 704 definitions with --convert. --ste adds the Simplified Technical English layer. Does not change the repository files that it checks./groundFill the grounding comments that review only flags as missing. For each `\cite{}` in a LaTeX paper that has no quote-backed grounding comment, whether no comment at all or a `TODO verify` stub left by revise mode or an earlier run, fetch the cited source, extract a verbatim quote that supports the claim, and write a `% GROUNDING` comment carrying that quote into the source, or a `TODO verify` stub with a reason when the source cannot be retrieved. Use when the user asks to ground citations, fill grounding comments, or close the grounding to-do from a review. LaTeX source only./reviewReview a document (LaTeX, PDF, or plain prose) for AI slop and rule violations. Use when the user asks to check, audit, or review a draft (a `.tex`, `.pdf`, or text file) or other prose for AI tropes and, for research papers, for statistical reporting, citations, BibTeX correctness, and hallucinated references. The general rules apply by default. `--scientific` adds the scientific layer, LaTeX source loads all three, and `--ste` adds a Simplified Technical English (STE) layer to any input. `--economist` adds core Economist style advice. Writes a structured Markdown report with concrete suggested revisions that revise mode can apply./review-diffReview only the modified parts of a git-versioned document for AI slop and rule violations. Use when the user has uncommitted edits or a feature branch and wants to audit only what they changed, not the whole draft. Triggers on prompts such as "check my edits", "review what I just changed", "audit this branch's prose", or `/ai-slop:review-diff`. Uses the same layered rules as `/ai-slop:review` (general by default; `--scientific` and LaTeX layers as detected; `--ste` for the Simplified Technical English layer; `--economist` for core Economist style advice), scoped to the diff. Writes a structured Markdown report that revise mode can apply./review-repoReview the natural-language text of a whole code repository for AI slop and rule violations, covering every Markdown, plain-text, and LaTeX file plus the comments, doc-comments, user-facing string literals, and UI template text of its source and config files, not just one document or a diff. Use when the user wants to audit the prose spread across a codebase (READMEs, changelogs, design docs, the comments in code and config, and the messages that the code shows). Triggers on prompts such as "scan this repo for slop", "check the prose across the codebase", "audit the comments and docs", or `/ai-slop:review-repo`. Loads the general rules by default. `--scientific` adds the research article layer, `--ste` adds the Simplified Technical English layer, and `--economist` adds core Economist style advice. Writes a structured Markdown report grouped by file.Other plugins' skills for the same job