SlopMonster README

项目的 README,来自 github.com/ItsssssJack/SlopMonster。合并为一个 markdown 文件:README.md。

SlopMonster

The five SlopMonster mascots, one for each scoring category

SlopMonster checks English writing for common AI writing patterns and provides instructions for editing the draft. Use it on a README, a landing page, an email or a script.

The Python checker reports matches in five categories and gives the text a score out of 5. The editing workflow asks an AI agent to review the draft for its intended reader, revise it, and request another pass from a different model family.

A score of 5/5 means the checker found no scored matches. You still need to review whether the text makes sense, supports its claims and gives the reader what they came for. The previous version of this README passed while using repetitive metaphors and vague contrasts. That exposed a gap in the editing guidance.

Quick start

The checker uses Python 3 and its standard library. It needs no API key or packages to install.

git clone https://github.com/ItsssssJack/SlopMonster
cd SlopMonster

# Check a short draft.
python3 tools/deslop.py --text "It's not just a tool, it's a game-changing journey."
# Scores 3/5 and exits with status 1.

# Check a Markdown file.
python3 tools/deslop.py README.md

# Check text extracted from an HTML file.
python3 tools/deslop.py index.html

Each category with a match costs one point, regardless of how many matches it contains. The command exits with status 0 at 5/5 and status 1 below 5/5. Empty input also fails. Checking a file leaves its contents unchanged.

For Markdown, the checker skips fenced code blocks, inline code, images and struck-through examples. For HTML, it removes tags and script/style contents. It doesn't render the page, so text hidden by CSS can still be included.

Edit a draft

Give your agent SKILL.md and the draft. Include the intended audience and where the writing will appear if those are unclear from the text.

  1. Run the checker to identify the patterns it recognizes.
  2. Review the draft's purpose and order. A README should explain the tool and show how to use it. An email should make its reason for writing clear.
  3. Rewrite unclear or repetitive passages. Check that each sentence adds useful information and that claims match the supplied facts.
  4. Request a second editing pass from a different model family, then inspect the changes and run the checker again.

The second pass uses prompts/cleanse.txt. With a supported AI command-line tool (CLI) installed and authenticated, run:

# If Claude wrote the draft, use Codex for the second pass.
DESLOP_WRITER=claude tools/cleanse.sh draft.md > cleansed.md

# If GPT wrote the draft, use Claude for the second pass.
DESLOP_WRITER=gpt tools/cleanse.sh draft.md > cleansed.md

# Read the edited file, then check it as Markdown.
python3 tools/deslop.py cleansed.md

Run the command for the family that wrote your draft. The script writes edited copy to standard output and change notes to standard error. It uses the installed CLI's configured model.

If the required CLI is missing, the script prints the editing prompt and draft, then exits with status 127. Paste that output into the other model family's chat. A timeout exits with status 124. Check the exit status before treating the output file as an edited draft. A warning about a missing notes marker means the response may include change notes in the copy.

Using another model provides another editing pass. It doesn't guarantee better writing. Review the result for changed facts and lost context before accepting it.

Use as an agent skill

For Claude Code, copy this folder to ~/.claude/skills/slopmonster/ and invoke /slopmonster. For Codex or another agent, ask it to follow SKILL.md.

What the checker flags

The current score has five categories:

Category What it checks
Vocabulary Listed words such as delve and seamless, including selected word forms.
Sentence patterns Listed constructions such as not just X, but Y, stacked hedges and certain self-answering questions.
Punctuation Repeated em dashes or stacked hyphenated compounds within a 220-character window in a sentence, plus semicolon density.
Three-item lists Two specific list patterns that often occur in promotional copy.
Possible unsupported proof Numbers near nouns such as users or customers. The checker cannot verify the claim.

The patterns are in tools/deslop.py. The broader editing catalogue is in references/signs-of-ai-writing.md. Some entries in that catalogue require editorial judgment and have no automated check.

If a flagged customer count is accurate and you have evidence for it, use:

python3 tools/deslop.py index.html --allow-proof

This option still reports proof matches but removes their score penalty. It doesn't check the evidence. In this mode, 5/5 can include proof warnings.

Review beyond the score

Read the draft in the context where someone will encounter it. Check these points before accepting an edit:

See references/principles.md for more editing guidance and examples. Never add a statistic or testimonial to make a sentence sound specific. If information is missing, flag it for the author.

Limits

The checker uses English patterns and has no language detection. Text in another language can score 5/5 because those patterns don't match.

It can flag ordinary wording and miss poor writing. It cannot determine who wrote the text, verify facts or judge whether a hook suits the audience. Use its findings as prompts for review. A passing score alone doesn't establish writing quality.

Optional CI check

You can run the checker in continuous integration (CI), the automated checks a repository runs when code changes. Because a score below 5/5 returns a failure status, a workflow that runs the command can fail on flagged copy.

This repository's workflow runs the regression tests and checks both this README and a sample file. Copy it to your repository and set the file paths you want checked. Blocking a merge or deployment requires your own repository rules or deployment configuration.

python3 tools/test_deslop.py
bash tools/test_cleanse.sh
python3 tools/deslop.py README.md

Examples and sources

MIT license.

SlopMonster (ItsssssJack/SlopMonster)

正在搜索数据库…

这是什么?SlopMonster 是一个 linter,按满分 5 分为文案中泄露 AI 写作痕迹的模式打分,分数太差时可以让 CI 构建失败;它还有一个 cleanse 步骤,用另一个 AI 模型重写被标记的句子。
这是 linter,还是 AI 写作生成器?它是 linter 而非生成器:一个 CLI 检查器,读取现有文案,标记五类 AI「特征」,还可以选择把草稿交给另一个模型家族进行清理。
怎么运行它?运行 `python3 tools/deslop.py README.md`(或任意文件)即可得到一个分数;把 `.github/workflows/slop.yml` 复制到你的仓库,就能将其用作构建门禁;作为 Claude Code 技能,把该文件夹复制到 `~/.claude/skills/slopmonster/`,然后输入 '/slopmonster'。
使用它需要 AI CLI 吗?评分器本身只需要 Python 标准库。cleanse 步骤在安装了 'codex' 或 'claude' CLI 时效果最好;如果两者都不存在,它只会打印提示词,由你自己粘贴到任意模型中。
它对其他语言写的文案有效吗?无效,词汇表和模式库仅支持英文,因此非英文文本会自动得到满分 5/5 —— 那是因为评分器无法解析它,而不是因为它真的干净。
它是给谁用的?任何要发布供人阅读和评判的文案的人:落地页、README、电子邮件和脚本;还为想把它用作 CI 门禁或 Claude Code / Codex 智能体技能的开发者内置了挂钩。
评分器具体检查什么?五组规则:AI 风味词汇(词根匹配和精确匹配),「不只是 X,而是 Y」之类的特征性句式,标点节奏(破折号和分号),三段式排比节奏,以及诸如编造客户数量之类未经证实的营销说辞。
为什么用与原作者不同的模型来清理文本?模型很难听出自己的写作风格,所以 Claude 写的草稿由 GPT 来清理,反之亦然;该工具明确拒绝把草稿送回它自己的模型家族。
如果我没装竞争 AI 的 CLI 会怎样?cleanse.sh 会打印完整的重写提示词,你可以手动把它粘贴到你能使用的任何其他模型的聊天界面中。
我能保留真实的数字声明而不让构建失败吗?可以,--allow-proof 标志会把被标记的数字(如客户数量)降级为警告而不是导致失败的分数,同时仍会打印命中项,方便你核实。
大小
6.5 MB
星标
1.3K
更新
提交Sep 26
时长
3个月
提交 · 90 天