setup
Configure the ai-slop plugin for a consumer repository: exemption paths for documents that legitimately need em dashes, excluded paths, AI-vocabulary word-list tuning, and per-rule thresholds, written to the team layer docs/conventions/ai-slop.yaml with the user's confirmation. Use when: 'set up ai-slop', 'configure slop detection', 'exempt this doc from the em-dash rule', 'tune the slop thresholds'.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- shell
- bash
- description
- Configure the ai-slop plugin for a consumer repository: exemption paths for documents that legitimately need em dashes, excluded paths, AI-vocabulary word-list tuning, and per-rule thresholds, written to the team layer docs/conventions/ai-slop.yaml with the user's confirmation. Use when: 'set up ai-slop', 'configure slop detection', 'exempt this doc from the em-dash rule', 'tune the slop thresholds'.
- argument-hint
- [check|apply]
- user-invocable
- true
- disable-model-invocation
- true
02 资源文件 1
- 参考文档evals/evals.json4.2 KB
03 SKILL.md 正文
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.
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_pathsis the supported mechanism), globs that match nothing, adisabled_rulesslug that names no shipped rule, aphrase_addfragment that is not a valid ERE (the detector skips it with a stderr note; surface it here as drift), or aphrase_removefragment matching no shipped phrase. - 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; 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.yamlreports no match (a match is FAIL with the pattern) ANDgit ls-files --error-unmatch <home>/ai-slop.yamlexits 0 (non-zero right after a fresh write means "written but untracked: commit it to share with the team", never success).
04 同仓库更多 Skills
track
Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.
reviewer-media
Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
principles
Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.
write
Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').