/code-slop:glossaryfrom code-slop
Build or maintain GLOSSARY.md for a code repository and check its terminology. Use when the user asks for a glossary of a code base, for proposed definitions, for a check of competing names, or for a check that the comments, the Markdown documents, the messages of the program, and the identifiers use one term for each concept, or runs `/code-slop:glossary`. Reads the text through the language adapters and lexers of code-slop with `code-slop glossary`, and writes definitions in the form of ISO 704 and in the format of the glossary of ai-slop. Flags competing names, avoided terms, new terms without a definition, and deficient definitions. Writes the glossary and `build/code-slop/glossary-report.md`, and validates an existing glossary with --check.
Ships in code-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 establishes the concepts of a code repository, records one term for each concept in GLOSSARY.md, and
checks how the comments, the documents, the messages, and the identifiers name them. It follows the method of the
repository glossary of ai-slop. The glossary is maintained project content, and the report records suggestions for
revising the files. Preserve the distinctions that matter to the project and the prose that explains them.
The skill works in Claude Code, Codex, and pi. <skill-dir> is the directory of this SKILL.md. The catalog is in the
first of <skill-dir>/../../code-slop/catalog/ (the shared copy that code-slop vendor wrote) and <skill-dir>/../../
(the plugin) that contains rules/ai-slop/glossary-format.md.
rules/ai-slop/glossary-format.md defines the format of the glossary and the deficient definitions after ISO 704.
Where it names the scripts of ai-slop, use the commands below instead.rules/ai-slop/general.md holds the terminology rules: G.one-term, G.define-once, G.distinct-synonyms,
G.definition-form, G.no-coinages, and G.context-first. With --ste, also read rules/ai-slop/ste.md, whose
T.one-meaning applies.The command line is code-slop. Run it as java -jar "$JAR" <command>, where $JAR is the file in $CODE_SLOP_JAR,
or the code-slop-cli-*.jar in it when it is a directory, or else the code-slop-cli-*.jar in the directory that
mise where http:code-slop-cli prints. Without a jar, tell the user, and read the files with git grep instead of the
commands.
glossary prints a table of terms: the terms of the glossary and the compounds of the identifiers, such as
exemption comment for ExemptionComment. Each row has the uses in prose, the identifiers, the files, the status in
the glossary, and the first use. A compound needs --min-uses <n> uses in prose (default 2).glossary --check checks the repository against the glossary. It fails on an avoided word that is also a term and
on a use of a word that a row avoids in every sense. It prints these candidates:
--exclude <glob>,<glob> and [glossary] exclude keep files out,
and --glossary <file> names another glossary.--check: read the existing glossary and write only the report. Without a glossary, explain that a normal run
creates it, and stop.--convert: rewrite the existing glossary into the format and its definitions into the form of ISO 704 before the
check, as the section on existing glossaries of rules/ai-slop/glossary-format.md describes.--exclude=<glob> (repeatable): skip records and data, such as docs/adr/*.--ste: write the definitions and notes in Simplified Technical English (STE), and apply T.one-meaning to the key
words.The skill writes the glossary (not in check mode) and build/code-slop/glossary-report.md. It does not edit the other
files of the repository.
Read the text. Run java -jar "$JAR" glossary and save the table in the scratchpad. List the directories of the
repository with git ls-files | sed 's|/[^/]*$||' | sort | uniq -c, and sort them into the kinds of the method of
ai-slop. Defining sources state what the terms mean: the README, AGENTS.md, CLAUDE.md, design documents, current
decision records, and the doc comments of the main modules. Using sources use the terms: other documents, comments,
messages, scripts, and tests. Records keep the terms of their date: the changelog, dated notes, decision records
that describe a past state, and commit messages. Data is text that the project stores but did not write, such as
fixtures and copies of other projects. Exclude the records and the data with --exclude in every later run, and name
them in the scope paragraph.
Establish the concepts. Read the defining sources in full where they describe the product and its terms, and the using sources through searches for the terms of the table and their variants. Identify the concepts that readers have to tell apart: the parts of the system, roles, data, states, commands, and named artifacts. For each, collect its terms and paraphrases with their locations, the passages that define it, and the identifiers that name it, which the table lists by compound. Compare meanings before grouping names: two modules can use one word for two concepts. Record a distinction that the sources leave unclear as an open question.
Write or update the glossary. Skip this step in check mode. Prefer an established term of the glossary, then an
explicit definition of a defining source, then the wording that users see in the messages, then the most frequent
term. Do not invent a label to replace several existing ones. Write the glossary in the format of
rules/ai-slop/glossary-format.md, with the Code column. Write each definition in the form of G.definition-form:
the superordinate concept without an article, the delimiting characteristics, and notes for the rest. Apply the
substitution test to each definition. Mark a definition as proposed unless a defining source states it. An existing
glossary keeps its structure, its definitions, and the edits of its authors, unless --convert is passed.
Vocabulary to avoid. Put the competing names that the sources replace into the table of vocabulary to avoid, with
the sense in which each is avoided. A row whose scope starts with Retired, the word of ai-slop for retired
vocabulary, avoids its words in every sense. The code-slop.toml of a repository can name the glossary in
[vocabulary] glossary. Then the checks of code-slop fail on every use of such a word:
no-avoided-words-in-comments in comments, no-avoided-words-in-markdown in Markdown files, and
no-avoided-words-in-messages in commit messages and messages. [vocabulary] glossary-scope sets another pattern
for such rows. Every other row avoids a word in one sense, which only a review judges. A term of the glossary is
never vocabulary to avoid. no-avoided-words-in-markdown leaves the words of the table to the glossary itself, so
its notes can name the old terms. A word of [vocabulary.avoid] that the table does not list needs
<!-- code-slop: allow no-avoided-words-in-markdown <reason> --> on the line above the table.
Check. Run java -jar "$JAR" glossary --check with the exclusions of step 1. A violation is a defect unless you
show that the row is wrong, which goes into the report as a revision of the row. Judge each candidate:
rules/ai-slop/glossary-format.md gives for the defect.
When a word shows up in the avoided sense in more than about 20 places, report a few as findings and put the count
and the files under author judgment.Report. Write build/code-slop/glossary-report.md below the root. Before you write it, run git check-ignore -q
on the path. If Git does not ignore the path, tell the user that the report is an untracked file, or write the
report to a path that the user names. This happens, for example, in a repository that tracks a folder build/. The
report has these sections:
Answer. Tell the user the paths of the glossary and the report, the main decisions on terms, and the open questions. Stop without committing or changing other files.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/adversarial-reviewReview the code of a whole repository adversarially for defects of functional correctness, safety and security, robustness, maintainability and readability, architecture, and documentation, and for fixes that hide a defect instead of removing its cause, and report only the defects that a reproduction or the exact lines show. Use when the user asks for an adversarial, critical, deep, or security review of a repository or a code base, asks to find the bugs or the weak points of a project, wants an audit before a release, or runs `/code-slop:adversarial-review`. Runs the deterministic checks of code-slop first, gives each area to an independent reviewer (a subagent in Claude Code and Codex), lets a second pass try to disprove each finding, and writes `build/code-slop/adversarial-review.md`. Changes nothing in the repository. For a change, a branch, a commit range, or a pull request, use `/code-slop:adversarial-review-diff`./adversarial-review-diffReview one change adversarially for defects of functional correctness, safety and security, robustness, maintainability and readability, architecture, and documentation, and for fixes that hide a defect instead of removing its cause in the changed lines and the code that depends on them. The change is the diff from the merge base with the default branch to the working tree, a commit range, or a pull request or merge request by its number, which gh or glab read without changing it. Use when the user asks to review, break, or audit a change, a branch, a commit range, a PR, or an MR adversarially, asks what a change breaks, wants a critical review before a merge, or runs `/code-slop:adversarial-review-diff`. Runs the deterministic checks of code-slop on the change, gives each area to an independent reviewer, lets a second pass try to disprove each finding, and writes `build/code-slop/adversarial-review-diff.md`. Changes nothing in the repository./domain-modelModel the stored classes of an app and the rules for their values in Alloy, check the model against the code, and draw it as a PlantUML class diagram. Use for /domain-model, when a class or a property of the domain changes, to find where the layers of an app state different limits, or to review the domain as a diagram. The commands that write and check a diagram need the JVM library code-slop-models, and without it, the skill runs the Alloy Analyzer by hand./review-commentsReview the comments and doc comments of a repository, or of the files that a change touches, against the comment catalog of code-slop. Finds comments that narrate or restate the code, explanations that belong in a decision record, pointers to missing records, doc comments that are too long or document private code, missing contracts, filler phrases, and markers of unfinished work. Use when the user asks to review, audit, or clean up the comments of a repository or a change, or runs `/code-slop:review-comments`. Runs `check-comments` and the native tools that the language profiles name, judges the rest against the catalog, and writes `build/code-slop/review-comments.md`. Covers Kotlin, Go, TypeScript and JavaScript, Swift, shell, Lua, Python, and AppleScript./review-testsReview the tests of a whole repository for tests that cannot fail when the behavior breaks (tautological tests), tests that fail when only the implementation changes, tests that never run, and flaky tests. Use when the user asks to review, audit, or check the tests or the test quality of a repository, or runs `/code-slop:review-tests`. Runs the deterministic scanner first, then judges the candidates and the patterns that need judgment against the test catalog, confirms the strongest findings by changing the code in a scratch worktree, and writes `build/code-slop/review-tests.md`. Covers Kotlin, Go, TypeScript and JavaScript, Swift, and shell tests through the profiles of their frameworks./review-tests-diffReview only the tests that a change adds or modifies, and the production code that it changes, for tests that cannot fail, tests coupled to implementation details, and tests that the change weakens. Use when the user has uncommitted changes or a branch and asks to check the tests of the change, such as "review the tests I just wrote", "did the agent fake the tests", or `/code-slop:review-tests-diff`. Uses the test catalog of `/code-slop:review-tests`, adds the rules of a diff (an expected value that changes together with the code, a weakened test), confirms the strongest findings in a scratch worktree, and writes `build/code-slop/review-tests-diff.md`.npx claudepluginhub se-uhd/code-slop-skill --plugin code-slop