{"slug":"slop-gate-3","title":"slop-gate","summary":"Deterministic pre-publish scan that refuses AI-slop tells in anything about to be written, published, or sent: files, artifacts, slide titles, table headers, diagram labels, chat messages, commit messages. Use before publishing or sending any deliverable, in CI, or wired as a Cla","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-28T15:11:45.045515Z","repo":{"url":"https://github.com/huytieu/COG-second-brain","stars":1415,"forks":172,"license":"MIT","updatedAt":"2026-10-23T02:52:56Z"},"bodyHtml":"<hr>\n<h2>name: slop-gate\ndescription: Deterministic pre-publish scan that refuses AI-slop tells in anything about to be written, published, or sent: files, artifacts, slide titles, table headers, diagram labels, chat messages, commit messages. Use before publishing or sending any deliverable, in CI, or wired as a Claude Code hook so the check runs without being remembered. The editorial counterpart is no-ai-slop, which rewrites; this one blocks.</h2>\n\n<h1>slop-gate</h1>\n<p><code>no-ai-slop</code> is an editor you invoke. This is a gate that runs whether or not anyone\nremembers it. It scans outgoing text, refuses on a tell, and returns the hit list so\nthe rewrite is targeted.</p>\n<p>Two rules make it usable rather than annoying: hard tells fail on a single hit, and\nwords that are decoration at volume but legitimate once are counted rather than\nbanned. Text inside quotes or backticks is stripped before scanning, so a piece that\nquotes a tell as an exhibit does not fail on its own examples.</p>\n<h2>Why a gate and not a rule</h2>\n<p>A rules file is advisory, and advisory rules fail in a specific, repeatable way: they\nfire in the step the model thinks of as writing and not in the steps it thinks of as\nsomething else. A deck built by an agent can carry clean paragraphs under headline\nslide titles, because the titles were produced in a layout step where the writing\nrules never ran. Every surface nobody named explicitly sits on the unchecked side:</p>\n<pre><code>slide titles, kickers          table headers, row keys       commit messages\ntile and card labels           diagram node and edge labels  code comments\nchart titles and legends       button copy, subtitles        memory files\nalt text, image captions       Slack, email, issue bodies    PR descriptions\n</code></pre>\n<p>The gate closes that by scanning the text on its way out, whatever produced it.</p>\n<h2>Run it</h2>\n<pre><code>python3 scripts/scan.py DRAFT.md              # one file\npython3 scripts/scan.py content/**/*.md       # many\ncat draft.md | python3 scripts/scan.py -      # stdin\n</code></pre>\n<p>Exit code 0 is clear, 1 is tells found, so it drops into CI or a pre-commit hook\nunchanged. Every hit prints its label and the surrounding text.</p>\n<h2>Wire it as a hook (Claude Code, optional)</h2>\n<p>COG ships no hooks by default. If you want the check enforced rather than remembered,\nadd this to <code>.claude/settings.json</code> yourself. <code>--hook</code> reads the hook payload on stdin\nand answers with a permission decision.</p>\n<pre><code>{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Write|Edit|mcp__.*slack.*send.*|mcp__atlassian__(create|update)Confluence.*\",\n        \"hooks\": [{ \"type\": \"command\",\n                    \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/.claude/skills/slop-gate/scripts/scan.py\\\" --hook\" }]\n      }\n    ],\n    \"Stop\": [\n      { \"hooks\": [{ \"type\": \"command\",\n                    \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/.claude/skills/slop-gate/scripts/scan.py\\\" --hook\" }] }\n    ]\n  }\n}\n</code></pre>\n<p>The <code>Stop</code> entry scans the agent's own reply, which is where most of these land in a\nworking session. Expect it to fire on you within the hour; that is the point of it.</p>\n<h2>What fails on one hit</h2>\n<table>\n<thead>\n<tr>\n<th>Tell</th>\n<th>Specimen</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Em dash</td>\n<td>any <code>—</code></td>\n</tr>\n<tr>\n<td>Honesty framing</td>\n<td>\"honestly\", \"the honest part:\", \"if I'm being honest\"</td>\n</tr>\n<tr>\n<td>\"not X, it's Y\"</td>\n<td>\"It's not about speed, it's about trust\"</td>\n</tr>\n<tr>\n<td>\"X, not Y\" (trailing form)</td>\n<td>\"a test, not a permission\", \"machinery, not memory\"</td>\n</tr>\n<tr>\n<td>Rhetorical heading</td>\n<td>\"Why this matters\", \"The bottom line\", \"What comes next\"</td>\n</tr>\n<tr>\n<td>\"The &lt;Noun&gt;\" heading</td>\n<td>\"The Wedge\", \"The Shot\", \"The Gamechanger\"</td>\n</tr>\n<tr>\n<td>Verdict kicker</td>\n<td>\"That is the point.\", \"That is all a title is for.\"</td>\n</tr>\n<tr>\n<td>Fake-profound closer</td>\n<td>\"let that sink in\", \"this changes everything\"</td>\n</tr>\n<tr>\n<td>Throat-clearing</td>\n<td>\"Here's the thing\", \"It's worth noting\", \"At the end of the day\"</td>\n</tr>\n<tr>\n<td>Sycophancy</td>\n<td>\"Great question\", \"You were right to push back\", \"That's on me\"</td>\n</tr>\n<tr>\n<td>Recap ending</td>\n<td>a final paragraph opening \"In conclusion\" or \"Ultimately\"</td>\n</tr>\n<tr>\n<td>Emoji heading</td>\n<td><code>## \uD83D\uDE80 Results</code></td>\n</tr>\n</tbody>\n</table>\n<h2>What is counted, not banned</h2>\n<p><code>robust, seamless, leverage, utilize, delve, empower, streamline, genuinely, quietly, load-bearing, deep dive, clean, plain, simple, elegant, powerful, lightweight, tapestry, game-changer, paradigm shift, cutting-edge</code></p>\n<p>Three or more in one piece fails, on the reading that density means decoration. One\nis a word choice. The test for any single use: remove the adjective, and if the reader\nwould do nothing differently, it was decoration. \"A robust retry\" fails that test;\n\"a retry that survives a mail-slot timeout\" passes, because it names the behaviour.\nKeep the word when it is the term of art (\"robust statistics\").</p>\n<h2>Exhibits</h2>\n<p>A piece that must quote a tell (a style guide, a post about slop, a test fixture)\ncarries <code>slop-ok: &lt;reason&gt;</code> anywhere in the file, usually as an HTML comment or a\nfront-matter key. Quoted and backticked spans are already exempt, so the marker is\nonly needed when a tell appears in the author's own voice on purpose.</p>\n<p>Never add the marker to get past a gate you disagree with. Rewrite instead, or change\nthe pattern list and say why.</p>\n<h2>What it cannot see</h2>\n<p>The gate is regular expressions, so it catches surface and near-surface tells. It is\nblind to the structural ones: a declared count that the source does not contain, a\nframework invented to organise two paragraphs, uniform sentence rhythm, a paragraph\nthat restates the previous one. Those need a reader. Use <code>no-ai-slop</code> in detect mode,\nand prefer a reviewer from a different model family than the author, because a\nsame-family reviewer shares the author's sense of what a finished answer looks like\nand waves through the same shapes.</p>\n<p>For the tics that are yours rather than universal, measure them: <code>voice-baseline</code>.</p>\n<h2>Comparing models against the gate</h2>\n<p><code>scripts/model_compare.py</code> replays your own Claude Code transcripts through <code>scan.py</code> and reports, per model, the share of chat replies and Markdown writes the gate would have refused and the hit rate per rule. It also reports workload per human prompt (tool calls, active minutes, tool error rate, subagent spawns) and punctuation per 10k words. When a hook refuses a reply, the transcript keeps the refused attempt as well as the rewrite, so the counts include what the model wrote before the gate saw it.</p>\n<pre><code>python3 scripts/model_compare.py --since 2026-09-15T00:00:00+00:00 --rules\n</code></pre>\n<p>Pick a window in which the rules file and hook did not change. A rule that tightened mid-window makes the earlier model look worse than it was.</p>\n","files":[{"path":"scripts/model_compare.py","sizeBytes":13520,"isText":true},{"path":"scripts/scan.py","sizeBytes":8256,"isText":true},{"path":"SKILL.md","sizeBytes":6565,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-28T15:14:00.489257Z","sha256":"CB315FF920D3A943DF58C230361185EA8B7812F44DFCFFD72D2B6E2532E74EEE","sizeBytes":11158},"review":null,"source":{"repositoryUrl":"https://github.com/huytieu/COG-second-brain","path":".claude/skills/slop-gate","license":"MIT","commit":"144c7a3a959cc99538b7dfee9c22c4b065a0e156","subtreeSha":"E03EEB7C6CEEDC1CF7B5D3D98CF5645F4CE392A89ECD6DD812B75C68D9DBFE5D","lastSyncedAt":"2026-11-12T21:45:41.891381Z"},"reviewedAt":"2026-09-28T15:18:06.907792Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/huytieu/COG-second-brain/tree/main/.claude/skills/slop-gate"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install huytieu-cog-second-brain@llmmart"},{"target":"git","command":"git clone https://github.com/huytieu/COG-second-brain.git"}]}