Slopcheck 标志

Slopcheck

社区
vicnaum
slopcheck

让 AI 智能体的写作对特定读者更易读,并明确指出违反的规则,而非给出分数。包含一个仅依赖 Python 标准库的检查器,以及 5 个 Claude Code 钩子,其中一个会在每轮对话中提醒规则:在每条较长回复下方显示提示;智能体写完任何文档后,将报告写入其上下文;发布工件时设置拒绝门禁;Slack、拉取请求、Linear 和 Notion 文本在问题清单清空前均设置拒绝门禁。检查硬性格式规则(句子长度、逗号数量、分号、长破折号、行内列表、段落和项目符号长度、承载事实的括号);检查正则表达式可识别的语气特征(将未完成工作描述为成果、表示赞同的开场语、引导性短语、对比句式、填充词);并提示首次出现但未作解释的术语。可选模型层默认关闭,可通过 Anthropic API 或 TypeSafe Jev API 检查夸大表达、未解释的行话、没有说明的数字和隐喻。可选结构层通过 `slopcheck install-structure` 安装,会在独立的 venv 中使用 spaCy 解析每个句子,并指出正则表达式无法识别的问题:解析器无法读懂的句子、没有动词、插在主语和动词之间的同位语、连续出现 4 个名词、由 7 个词组成的主语,以及按需检测 GPT-2 惊奇度峰值。适用于:(1)用户抱怨智能体输出冗长、充满行话、言辞耸动或夸大,或称之为“AI 垃圾”;(2)用户希望在最终消息、文档、工件或对外消息中强制执行写作规则;(3)安装或调整这些钩子;(4)发送前检查草稿(slopcheck --stdin);(5)为数据集中的问题文本片段添加标签(slopmark);(6)句子语法正确却难以理解,例如曲径句、隐藏从句、插入的同位语、名词堆叠或缺少动词。触发词包括:slopcheck、slopmark、structcheck、写作规则、可读性钩子、风格检查、结构检查、冗长文本、AI 垃圾、行话、耸动表达、长破折号、行内列表、曲径句、同位语。

Add to TypingMind

概览

发布者vicnaum
代码仓库vics-agent-skills
技能名称slopcheck
星标数
53
复刻数
5
附带文件
10
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 10 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 vicnaum 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Slopcheck AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/vicnaum/vics-agent-skills/tree/main/skills/slopcheck
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vicnaum/vics-agent-skills.git /tmp/vics-agent-skills
mkdir -p .claude/skills
cp -r /tmp/vics-agent-skills/skills/slopcheck .claude/skills/slopcheck
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Slopcheck,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Slopcheck。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Slopcheck 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

slopcheck: named rule breaks, four surfaces, no score

A percentage score cannot tell good writing from bad. We measured that on 45 texts one reader complained about and 17 he praised. A readability score failed 93% of the first set and 82% of the second.

What separates them is local and nameable:

  • one term not explained
  • one dramatic label
  • one list run inline
  • one number without its scope

So this tool reports a list of named breaks and leaves the decision to the agent. Where the text goes to other people, it denies the send until the list is empty.

The CLI lives at scripts/slopcheck (installed on PATH as slopcheck). It is standard library Python, no dependencies, and makes no network calls unless the model layer is on.

What it checks

Hard rules, reported as a named list. Thresholds live in the config and default to:

  • sentence over 30 words, or with more than 3 commas
  • em-dash or en-dash, anywhere. Ranges use a plain hyphen: 65-95%. This is the one rule checked in every field at any length, and the only character rule that denies.
  • more than one semicolon in a sentence. Reported, never denied: semicolons are normal, chains are not.
  • a list of 3 or more items run inline with commas and "and"
  • a parenthesis carrying a second fact (an address, a date, a "so that")
  • paragraph over 3 sentences, bullet over 2 sentences

Tone and voice tells, regex only. The achievement words are the one hard tell: they deny an outward send. The rest is advisory.

TellExamplesEffect
Achievement words for unfinished workdecided, converged, shipped, intel, breakthroughdenies an outward send
Agreement opener"You're right", "Good catch"advisory
Sign-post phrase"Here's what", "Let me show", "the real question"advisory
Contrast frame"rather than", "not X but Y"advisory
Filler or self-rating word"genuinely", "honestly", "robust", "delve"advisory
Hedged guarantee with a fallback"should appear... if it does not, run..."advisory
Bold sentence over 25 wordsadvisory

Terms to check, advisory. Acronyms and multiword names whose first use has no gloss pattern in the same sentence. Noisy on capitalised names, so it is a prompt to the agent, not a verdict.

Model layer, off by default. A small model judges what regex cannot, through the Anthropic API or the TypeSafe Jev API. See "Model layer" below.

Structure layer, off by default. A dependency parse of each sentence names faults of structure, from a verbless sentence to a wedged appositive. It runs in its own venv and never touches the network, see "Structure layer" below.

The four surfaces

SurfaceHookBehaviour
Every prompt you sendUserPromptSubmitOne reminder line with the rules, built from your config thresholds, so the rules stay in recent context.
Final reply to the userStopOne advisory line under replies of 60 words or more. Never blocks, so the user never sees two versions of one message.
Any .md, .html, .txt file the agent writesPostToolUse on Write and EditThe named list lands in the agent's context, so it fixes the file before finishing. Artifacts included. Code files ignored.
Text sent to other peoplePreToolUse on Slack, GitHub, Linear and Notion toolsDenied until the blocking items are fixed. The denial lists those first, then the full report. Every string field counts, titles included. Dashes are checked at any length, code spans excluded. Notion markup such as callouts, spans, mentions and toggles is stripped before any layer reads the text. The agent fixes the draft and calls the tool again.
Publishing an artifactPreToolUse on the Artifact toolDenied when the page prose has an em-dash or an en-dash. Quoted samples inside figures and tables are not counted. Other breaks are reported and allowed.

Subagent hand-backs are not checked. They are working material for the main agent, not text the user reads. Subagents do hit the document and outward gates when they write files or send messages.

Install (new machine or new agent CLI)

bash
git clone https://github.com/vicnaum/vics-agent-skills ~/github/vics-agent-skills   # once
ln -s ~/github/vics-agent-skills/skills/slopcheck/scripts/slopcheck ~/bin/slopcheck  # or any PATH dir
ln -s ~/github/vics-agent-skills/skills/slopcheck/scripts/slopmark  ~/bin/slopmark
slopcheck install --dry-run   # shows what it would change
slopcheck install             # backs up settings.json and CLAUDE.md, wires the hooks and the reminder, writes the rules block and the default config

Install puts the rules block between markers at the end of ~/.claude/CLAUDE.md. Edit the reader line there. A CLAUDE.md that already mentions slopcheck is left alone, so your own block wins. slopcheck rules prints the block if you want to place it yourself.

The hooks enforce. The reminder line repeats the rules every turn. The rules text tells the agent what good looks like.

Both are needed. Instructions alone decay within a few turns in every study we found, and hooks alone catch faults without teaching the fix.

Claude Code reloads hooks live. If no style line appears under the next long reply, run /hooks once or restart the session. slopcheck uninstall removes every hook entry, the reminder, and the managed rules block. --no-reminder and --no-rules skip those two steps. An existing reminder or rules block of your own is kept as it is.

Other agents (Cursor, Codex) have no hook system. Use the CLI by hand or from the agent's own pre-send step: slopcheck --stdin --surface doc < draft.md.

Use

bash
slopcheck FILE                          # report for a file, exit 0 clean, 1 style flags, 2 rule breaks
slopcheck --stdin --surface doc < draft # the agent's own pre-send check on a draft
slopcheck FILE --surface external       # judge as text for other people
slopcheck FILE --json                   # machine-readable
slopmark "the offending phrase" jargon  # label a bad span; themes: jargon, wall, tone, long, log, compressed, dash, metaphor, other
slopcheck labels                        # count labels by theme
slopcheck install-structure [--with-surprisal]   # venv with spaCy, WordNet and optionally GPT-2, then the structure layer is on
structcheck FILE                        # the structure layer alone, exit 0 clean, 1 advisory, 2 hard breaks

The full report of the last check is always at ~/.config/slopcheck/last.txt.

Agent rule to add to CLAUDE.md. Before any final message over 150 words, and before any text for other people, pipe the draft through slopcheck --stdin --surface doc and fix what it names. The Stop hook is advisory, so the improvement has to happen before sending.

Structure items in that report are breaks to fix, the same as the shape rules. The rules template says so, and the per-turn reminder repeats it once the structure layer is on. Agents skip advisory items they have no instruction for, so the instruction has to exist in all three places.

Config

~/.config/slopcheck/config.json is created on first run with these keys:

  • stop_mode: "advise" prints one line and never blocks. "block-chars" blocks once only for a dash. "block-once" blocks once for any rule break. A block means the agent writes a second message under the first.
  • min_words: below this the Stop hook is silent. Default 60.
  • external_min_words: below this outward text is not checked. Default 25.
  • block_external: deny outward sends with rule breaks or hard flags. Default true.
  • rules: the thresholds listed above.
  • SLOPCHECK_CONFIG=/path/to/config.json in the environment points the checker at another config, for a project or a test.
  • achievement_words: the word list that denies an outward send.
  • doc_extensions, ignore_globs: which written files are checked. Memory files, datasets and samples are skipped by default.
  • acronym_whitelist: acronyms the reader knows, kept out of the terms list.
  • external_tools: the tool names the PreToolUse gate matches. The default is the claude.ai Slack, GitHub, Linear and Notion MCP tools.
  • After editing external_tools, run slopcheck install again.
  • reader_profile: one sentence about who reads the text. Used by the model layer.
  • model_check and the other model_* keys: the model layer, described below.
  • structure_check: the structure layer, described below. slopcheck install-structure switches it on.
  • structure_venv: where that layer's venv lives. Default ~/.local/share/slopcheck/venv.
  • structure_model: the spaCy model it parses with. Default en_core_web_sm.
  • structure_surprisal: GPT-2 surprisal spikes, local and offline. Needs the --with-surprisal install.
  • structure_deny: the structure rules that deny an outward send. Default: none, the layer only reports.
  • structure_timeout: seconds before a hook gives up on the layer and goes on without it. Default 15.

Kill switch: SLOPCHECK_OFF=1 in the environment, or an empty file at ~/.config/slopcheck/off.

Override, one blocked call at a time. slopcheck allow lets the next blocked send or publish through, then the gate closes again. It is meant for a false alarm, or for a text the user wants sent as it is.

  • slopcheck allow 3 --minutes 30 --reason "user approved the wording" lets three calls through within 30 minutes. The defaults are one call within 10 minutes.
  • slopcheck allow --status shows a pending override, and slopcheck allow --clear drops it.
  • Each use is logged to ~/.config/slopcheck/overrides.jsonl with the reason and what it would have blocked. The session also sees a line that names the override.
  • An agent runs it only when the user asks. The user can run it from the Claude Code prompt as ! slopcheck allow.

Model layer

Regex cannot see general sensationalism. It cannot tell an explained term from an unexplained one. A small model can. The layer is off by default, and two backends exist. Both send the checked text to a third party under that party's terms, so switch one on only for an account whose terms you accept.

Anthropic backend, model_backend: "api". One JSON judgement from claude-haiku-4-5, in 2 to 3 seconds, for about a third of a cent per check. Key in ANTHROPIC_API_KEY or ~/.config/slopcheck/anthropic.key. Same vendor as Claude Code, so nothing new leaves if you already use Claude Code.

TypeSafe Jev backend, model_backend: "jev". Jev is a System One model: it answers yes-or-no questions with calibrated probabilities and generates nothing. The checker asks one narrow question per candidate, which is the design that tested best: each sentence for achievement words, metaphor and drama, each number for its scope, each term for whether this reader knows it and whether the text explains it, and the whole text for tone, naming, final state and verdict first. Four to six requests, about 4 seconds in total. Key in TYPESAFE_API_KEY, ~/.config/slopcheck/typesafe.key, or ~/.config/typesafe/.env. Model name in jev_model, default jev-latest.

What either backend reports:

  • inflation, with the offending spans quoted
  • terms the configured reader would not know, used without explanation
  • bare numbers, metaphors where a literal phrase was available, hints instead of names
  • log versus state, and whether the verdict comes first

To switch on: set model_check to true and model_backend to "api" or "jev", and provide the key. The layer runs on documents of 60 words or more and outward text of 25 words or more. An outward send is denied at a sensational score of 0.5 or higher, and also at three or more quoted spans. Every failure path returns "skipped" and never blocks.

model_backend: "cli" runs a nested claude -p on the user's subscription instead of an API key. We measured 6 to 70 seconds per call and frequent timeouts, so it is kept as an option and not recommended.

Structure layer

Regex counts words and commas. It cannot see that "Items this work needs ship now" hides a clause inside its subject, or that an appositive sits between a subject and its verb. A dependency parser can.

The layer lives in scripts/structcheck and runs in its own venv, so slopcheck itself stays standard-library. It is off until installed.

Install. slopcheck install-structure creates the venv, installs spaCy with the small English model and WordNet, runs a self-test and sets structure_check to true. With --with-surprisal it also installs torch and caches the GPT-2 weights, about 1 GB in all. Nothing leaves the machine afterwards: the layer runs with the Hugging Face offline flags set, so a missing model is an error, never a download.

Hard rules, listed first in the report:

  • parse-failure: the parser found no well-formed reading. The example sentence above gets this.
  • no-verb and no-finite-verb: the sentence has no verb, or only a participle.
  • fragment: a finite verb with no subject.
  • appositive-wedged: three or more words between a subject and its verb, or between a verb and its complement.
  • appositive-in-list: an appositive inside a comma list.
  • noun-pile: four nouns in a row.
  • heavy-subject: seven or more words before the verb.

Advisory rules:

  • center-embedding and zero-relative: a clause inside the subject with no "that" and no comma.
  • subject-verb-gap and passive.
  • bare-present-plan: "the fix lands before the upgrade", a rule written as a prediction.
  • ambiguous-subordinator: "now, while", where "now" primes the time reading.
  • adverb-as-modifier and bare-noun-subject: "a now value", "Owner lane names the team".
  • surprisal-spike, described next.

Nothing denies by default. The layer reports and the agent fixes, like the terms list. The key structure_deny names rules that refuse an outward send, and the study below is too small to trust one with that.

The small parser also misreads some clean sentences, such as "the first prints every rule" with "prints" as a noun. That is the other reason the layer only reports.

Three exemptions keep the verb rules honest. A bullet or a bold lead line under 15 words may be a noun phrase, and a line with a colon label such as "Gate: none" is not a sentence. Quoted spans are replaced by a placeholder noun before parsing, because a quoted word is a mention, not prose.

Surprisal spikes. With structure_surprisal on, GPT-2 scores every word by how unexpected it is, in bits. A word far above its sentence's level and above 16 bits is reported, at most eight per text. Domain names spike too, so read the list as words a newcomer may stumble on.

What it measured. One reader rewrote 54 sentences on one page and labelled each fault. The layer ran on both versions of every pair:

originalrewrite
pairs with a deny or hard break23 of 5411 of 54
pairs with any break34 of 5420 of 54
the side with the higher mean surprisal44 of 5410 of 54

The misses are the semantic faults, about 12 of the 54. Those belong to the model layer. The spikes landed on the complained-about word in about half of the lexical faults, such as a verb used as a noun.

The semantic faults in that reader's labels:

  • vague
  • unclear
  • meaning inverted
  • an instruction written as a fact
  • a rule written as a prediction

Thresholds were tuned on these same pairs, so expect a smaller gap on new text. Rules that fired as often on the rewrite as on the original were dropped: prepositional attachment, coined hyphen compounds, three-noun piles. The scripts are in research/structure, and the pairs stay with their owner.

Cost and limits. About 2 seconds per check for the parse and 5 with surprisal, most of it loading models. A hook gives up on the layer after structure_timeout seconds and reports the rest.

Every rule depends on the parse, and the small spaCy model misparses some clean sentences. The transformer model needs a Rust toolchain on Python 3.14 and was not tested.

Design notes, from the research behind this

  • Code owns counting and layout. Models cannot count reliably and read scope conditions such as "in the same sentence" literally.
  • A model judges one isolated candidate well and a whole text badly. Extract the number, the term, the label in code, then ask one narrow question about it.
  • Pairwise beats absolute. "Which of these two is easier to restate" was right 12 of 12 times on clean pairs where the same question as an absolute score was useless.
  • Whole-text scores of any kind did not separate praised from complained texts. Local checks did.
  • The report template with bold lead lines and bullets is not slop for a reader who asked for it. Do not penalise layout.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Slopcheck AI 技能有什么作用?

让 AI 智能体的写作对特定读者更易读,并明确指出违反的规则,而非给出分数。包含一个仅依赖 Python 标准库的检查器,以及 5 个 Claude Code 钩子,其中一个会在每轮对话中提醒规则:在每条较长回复下方显示提示;智能体写完任何文档后,将报告写入其上下文;发布工件时设置拒绝门禁;Slack、拉取请求、Linear 和 Notion 文本在问题清单清空前均设置拒绝门禁。检查硬性格式规则(句子长度、逗号数量、分号、长破折号、行内列表、段落和项目符号长度、承载事实的括号);检查正则表达式可识别的语气特征(将未完成工作描述为成果、表示赞同的开场语、引导性短语、对比句式、填充词);并提示首次出现但未作解释的术语。可选模型层默认关闭,可通过 Anthropic API 或 TypeSafe Jev API 检查夸大表达、未解释的行话、没有说明的数字和隐喻。可选结构层通过 `slopcheck install-structure` 安装,会在独立的 venv 中使用 spaCy 解析每个句子,并指出正则表达式无法识别的问题:解析器无法读懂的句子、没有动词、插在主语和动词之间的同位语、连续出现 4 个名词、由 7 个词组成的主语,以及按需检测 GPT-2 惊奇度峰值。适用于:(1)用户抱怨智能体输出冗长、充满行话、言辞耸动或夸大,或称之为“AI 垃圾”;(2)用户希望在最终消息、...

为什么在 TypingMind 中使用 Slopcheck?

因为您只需安装一次,就能搭配任何模型使用。Slopcheck 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Slopcheck?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/vicnaum/vics-agent-skills/tree/main/skills/slopcheck。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Slopcheck?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Slopcheck 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Slopcheck 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Slopcheck AI 技能免费吗?

vicnaum 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇