Pre-computed context
check's config resolve ran at load time. The detector's --show-config output below names the
layer supplying each effective value; (detector unavailable) means it did not run:
!"${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/detect.sh" --show-config 2>/dev/null || echo "(detector unavailable)"
When it reads (detector unavailable) or [shell command execution disabled by policy], run the
detector's --show-config via Bash or read the three layers directly.
- Pointer: for the placeholder a skipped load-time command leaves, fetch
skills ยง Inject dynamic context
live.
- As of: 2026-11-11
- Recheck trigger: the placeholder text changes.
Purpose
The ai-slop detector ships neutral defaults. A consumer repo declares its own exemptions and
tuning in <home>/ai-slop.yaml, resolved per the config-cascade convention: team
(<home>/ai-slop.yaml, tracked) and personal override (<home>/ai-slop.local.yaml, gitignored),
where <home> is the convention home the repository binds in its instruction file
(docs/conventions by default). The file is validated by the plugin's
schemas/ai-slop.schema.json. Later layers refine earlier ones per key.
The audit does not read the older JSON files (the same names with a .json extension, in
.claude/) that a repository may still keep. apply writes the YAML: when the repository has the
JSON team file and no YAML, offer to carry its values into
<home>/ai-slop.yaml (the JSON _comment text becomes YAML comments) and leave the JSON file
for the repository to delete.
The old user-global file ~/.claude/ai-slop.json is still read, in the personal layer's place,
while <home>/ai-slop.local.yaml is absent; each detector run prints one warning naming it.
Every key is a convention for one repository's markdown, so its new home is the personal
override, not a userConfig option. apply moves it there (see [Move the old user-global
file](#move-the-old-user-global-file)).
Keys
| Key | Type | Meaning |
|---|---|---|
| excluded_paths | glob list | Files the audit never scans |
| em_dash_allowed_paths | glob list | Documents exempt from the zero-tolerance em-dash rule |
| vocab_add | word list | Additions to the AI-vocabulary list |
| vocab_remove | word list | Removals from the AI-vocabulary list |
| phrase_add | ERE fragment list | Additions to the model-era phrase roster (rule-model-era-phrases); whole fragments, spaces allowed, apostrophes spelled . |
| phrase_remove | ERE fragment list | Removals from the shipped phrase roster, matched verbatim against the shipped fragments |
| disabled_rules | rule slugs | Rules the audit skips entirely (reported as disabled) |
| thresholds | map | Per-rule density thresholds: ai_vocabulary, copulative_avoidance (matches per 1000 words; density rules also need at least 3 matches) |
| rule_allowed_paths | map of rule slug to glob list | Files that decline that one rule |
| verification | off, light, standard, strict | How much independent checking /ai-slop:audit runs; team file only, read from the default branch by lib/read-verification.sh, never by --show-config (levels) |
| verification_skills | map of skill name to level | A per-skill verification level that beats the plugin value; same reader and layer |
Record the rationale for a choice as a YAML comment above the key: a config that disables a rule
without recording why is the drift this skill exists to catch. A legacy JSON file carries it as a
_comment string key, which is not drift, so do not flag it as an unknown key.
check (default, read-only)
Report the current state and change nothing:
- Read the pre-computed
--show-configoutput (it names the layer supplying each value), or read
the layers directly when it is unavailable; report which layer wins each key and which layers are
absent.
- Flag drift: unknown keys, an em-dash threshold key (the rule is zero-tolerance by design, and
per-document exemption via em_dash_allowed_paths is the supported mechanism), globs that
match nothing, a disabled_rules slug that names no shipped rule, a phrase_add fragment
that is not a valid ERE (the detector skips it with a stderr note; surface it here as
drift), or a phrase_remove fragment matching no shipped phrase.
- Name the old
~/.claude/ai-slop.jsonwhen the--show-configoutput carries itsWarning:
line, and say whether it is read. When the personal override already exists, the old file is
not read: list each key it sets, since none of them applies.
- End with what
applywould change, if anything was flagged.
apply
Everything check does, then the confirmed write:
- Interview the user for what they want changed. For em-dash exemptions, ask for the documents
that genuinely require em dashes; the default posture is that most work does not.
- Write only the team layer (
<home>/ai-slop.yaml), showing the diff and getting explicit
confirmation before writing. Never write the personal override on the user's behalf, apart from
the move below; name it as an option the user edits themselves.
- Re-run
--show-configvia Bash (the pre-computed output predates the write) and report the
new effective state. Then run the tracked-file pair on
the written team file: git check-ignore -v <home>/ai-slop.yaml reports no match (a match is
FAIL with the pattern) and git ls-files --error-unmatch <home>/ai-slop.yaml exits 0
(non-zero right after a fresh write means "written but untracked: commit it to share with the
team", never success).
- When
checknamed the old~/.claude/ai-slop.json, run the move below.
Move the old user-global file
The one write this skill makes to the personal override, and only after the user's yes:
- Run the move from inside the repository whose override should hold the settings; at a home or
non-repository root, say so and stop. Read ~/.claude/ai-slop.json with one Read of that
literal path. When it is not valid JSON, name the file, write nothing, and stop. Its
_comment text becomes YAML comments, as for the JSON team file, since the schema has no
_comment key.
- Run
git check-ignore -v <home>/ai-slop.local.yaml. With no match, write nothing: name the
ignore line <home>/**/*.local.* the repository needs first, so the personal file never
reaches the index.
- Preview the YAML the personal override would hold: the old file's keys, plus the existing
override's keys when it exists, where the override's value wins each key both set. Name each
old key that loses that way. Say that the old file applied in every repository and the
override applies only here, so another repository that relied on it needs its own override.
Ask for a yes.
- On a yes, write the override, then re-run
--show-configvia Bash and check each previewed
key by the line that reports it. A vocab_add, vocab_remove, phrase_add or
phrase_remove key: each word or fragment is present in (add) or absent from (remove) the
vocab= or model_phrases= line, and that line names the override as its add or remove
layer. A rule_allowed_paths slug: its globs appear on its line, and the override is among
the layers named. Every other key: its line shows the previewed value with
[layer: <home>/ai-slop.local.yaml]. The output must carry no Warning: line still reading
the old file. On any difference, restore the
override's previous content (or remove the file this step created), keep the old file, and
report the difference.
- When the values match, delete
~/.claude/ai-slop.json, so one home holds the settings, and
report the effective state.