dislop 0.9.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +7 -8
  4. package/.cursor-plugin/plugin.json +2 -3
  5. package/.pre-commit-hooks.yaml +5 -12
  6. package/PRODUCT.md +19 -57
  7. package/README.md +360 -252
  8. package/README.zh-CN.md +390 -240
  9. package/action.yml +30 -39
  10. package/bin/dislop-mcp.mjs +3 -4
  11. package/bin/dislop.mjs +4 -4582
  12. package/gemini-extension.json +2 -2
  13. package/llms-install.md +68 -0
  14. package/package.json +17 -55
  15. package/packs/common/artifact-qa/pack.json +5 -0
  16. package/packs/common/artifact-qa/prompts/rules.md +11 -0
  17. package/packs/common/artifact-qa/scripts/index.mjs +173 -0
  18. package/packs/common/slide-deck/pack.json +6 -0
  19. package/packs/common/slide-deck/prompts/rules.md +11 -0
  20. package/packs/common/slide-deck/scripts/index.mjs +62 -0
  21. package/packs/common/web-ui/pack.json +6 -0
  22. package/packs/common/web-ui/prompts/rules.md +11 -0
  23. package/packs/common/web-ui/scripts/index.mjs +80 -0
  24. package/packs/en/artifact-qa/pack.json +6 -0
  25. package/packs/en/artifact-qa/prompts/rules.md +14 -0
  26. package/packs/en/artifact-qa/scripts/index.mjs +90 -0
  27. package/packs/en/prose/pack.json +7 -0
  28. package/packs/en/prose/prompts/rules.md +26 -0
  29. package/packs/en/prose/scripts/index.mjs +290 -0
  30. package/packs/en/slide-deck/pack.json +7 -0
  31. package/packs/en/slide-deck/prompts/rules.md +17 -0
  32. package/packs/en/slide-deck/scripts/index.mjs +81 -0
  33. package/packs/en/web-ui/pack.json +7 -0
  34. package/packs/en/web-ui/prompts/rules.md +20 -0
  35. package/packs/en/web-ui/scripts/index.mjs +103 -0
  36. package/packs/zh/artifact-qa/pack.json +6 -0
  37. package/packs/zh/artifact-qa/prompts/rules.md +14 -0
  38. package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
  39. package/packs/zh/prose/pack.json +7 -0
  40. package/packs/zh/prose/prompts/rules.md +26 -0
  41. package/packs/zh/prose/scripts/index.mjs +305 -0
  42. package/packs/zh/slide-deck/pack.json +7 -0
  43. package/packs/zh/slide-deck/prompts/rules.md +17 -0
  44. package/packs/zh/slide-deck/scripts/index.mjs +75 -0
  45. package/packs/zh/web-ui/pack.json +7 -0
  46. package/packs/zh/web-ui/prompts/rules.md +20 -0
  47. package/packs/zh/web-ui/scripts/index.mjs +98 -0
  48. package/plugin.json +5 -6
  49. package/server.json +8 -2
  50. package/skills/deslop-docs/SKILL.md +10 -8
  51. package/skills/deslop-slides-docx/SKILL.md +7 -8
  52. package/skills/deslop-verify/SKILL.md +7 -8
  53. package/skills/deslop-web-ui/SKILL.md +7 -8
  54. package/skills/dislop/SKILL.md +16 -28
  55. package/skills/dislop/references/essay.md +1 -1
  56. package/skills/dislop/references/essay.zh-CN.md +1 -1
  57. package/skills/dislop/references/office.md +1 -1
  58. package/skills/dislop/references/office.zh-CN.md +1 -1
  59. package/skills/dislop/references/web-ui.md +1 -1
  60. package/skills/dislop/references/web-ui.zh-CN.md +1 -1
  61. package/skills/dislop/references/work-docs.md +1 -1
  62. package/skills/dislop/references/work-docs.zh-CN.md +1 -1
  63. package/src/cli-main.mjs +210 -0
  64. package/src/commands/check-fix.mjs +169 -0
  65. package/src/commands/doctor.mjs +110 -0
  66. package/src/commands/init.mjs +49 -0
  67. package/src/commands/login.mjs +82 -0
  68. package/src/commands/model.mjs +130 -0
  69. package/src/commands/packs.mjs +44 -0
  70. package/src/commands/verify.mjs +133 -0
  71. package/src/commands/voice.mjs +84 -0
  72. package/src/kernel/config.mjs +232 -0
  73. package/src/kernel/document-model.mjs +1412 -0
  74. package/src/kernel/fact-gate.mjs +615 -0
  75. package/src/kernel/file-discovery.mjs +139 -0
  76. package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +532 -893
  77. package/src/kernel/pack-loader.mjs +715 -0
  78. package/src/kernel/patcher.mjs +341 -0
  79. package/src/kernel/pipeline.mjs +267 -0
  80. package/src/kernel/prompt-assembler.mjs +307 -0
  81. package/src/kernel/voice-profile.mjs +177 -0
  82. package/src/mcp/stdio-server.mjs +372 -0
  83. package/src/runners/auto-fix.mjs +59 -0
  84. package/src/runners/interactive-tty.mjs +461 -0
  85. package/src/runners/reporters.mjs +256 -0
  86. package/src/runtime/chunker.mjs +87 -0
  87. package/src/runtime/json-extract.mjs +144 -0
  88. package/src/runtime/privacy-gate.mjs +97 -0
  89. package/src/runtime/providers/anthropic.mjs +65 -0
  90. package/src/runtime/providers/cloud.mjs +136 -0
  91. package/src/runtime/providers/gemini.mjs +91 -0
  92. package/src/runtime/providers/local-model.mjs +139 -0
  93. package/src/runtime/providers/openai-compat.mjs +130 -0
  94. package/src/runtime/router.mjs +315 -0
  95. package/src/sdk/index.mjs +137 -0
  96. package/models/manifest.json +0 -90
  97. package/models/pocket-slop-v1.json +0 -1
  98. package/packs/business-brief/pack.json +0 -937
  99. package/packs/core/pack.json +0 -209
  100. package/packs/deck-and-ui/pack.json +0 -539
  101. package/packs/engineering-spec/pack.json +0 -144
  102. package/packs/executive-deck/pack.json +0 -98
  103. package/packs/literary-essay/pack.json +0 -344
  104. package/packs/regulated-comms/pack.json +0 -99
  105. package/patterns/ai-tic-rubric.json +0 -252
  106. package/patterns/banks/composite-fusion.json +0 -48
  107. package/patterns/banks/discourse-rhythm.json +0 -95
  108. package/patterns/banks/lexical-signals.json +0 -92
  109. package/patterns/banks/syntactic-frames.json +0 -52
  110. package/patterns/banks/visual-deck.json +0 -44
  111. package/patterns/dimensions/artifacts.json +0 -121
  112. package/patterns/dimensions/discourse.json +0 -438
  113. package/patterns/dimensions/lexical.json +0 -198
  114. package/patterns/dimensions/rhythm.json +0 -258
  115. package/patterns/dimensions/syntactic.json +0 -285
  116. package/patterns/dimensions/visual-and-deck.json +0 -530
  117. package/patterns/taxonomy.json +0 -112
  118. package/src/core.mjs +0 -5497
  119. package/src/dislop/review-picker.vim +0 -114
  120. package/src/local-model.mjs +0 -997
  121. package/src/pattern-engine.mjs +0 -1003
  122. package/src/pocket-model.mjs +0 -729
  123. package/src/review-apply.mjs +0 -151
  124. package/src/review-client.mjs +0 -1073
package/README.md CHANGED
@@ -1,300 +1,408 @@
1
- <p align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="./assets/banner-dark.svg">
4
- <img src="./assets/banner-light.svg" alt="dislop — Cutting AI slop is real productivity." width="100%">
5
- </picture>
6
- </p>
7
-
8
- <p align="center">
9
- <a href="./README.zh-CN.md">简体中文</a> ·
10
- <a href="https://dislop.com/">Try it at dislop.com</a> ·
11
- <a href="https://dislop.com/guides/">Guides</a> ·
12
- <a href="https://dislop.com/rules/">Rule Catalog</a> ·
13
- <a href="./awesome/README.md">Awesome Anti-Slop</a> ·
14
- <a href="https://www.npmjs.com/package/dislop">npm</a> ·
15
- <a href="https://pypi.org/project/dislop/">PyPI</a> ·
16
- <a href="https://x.com/dislop_ai">X (@dislop_ai)</a> ·
17
- <a href="./LICENSE">Apache-2.0</a>
18
- </p>
19
-
20
- **Cutting AI slop is real productivity.** `dislop` is a linter for AI slop. It catches AI-sounding text and template layouts in docs, web pages, and slides before you send them. Its rules come from vetted community projects and corpus findings, and the repo keeps a list of 90 related tools.
21
-
22
- It comes in three parts:
23
-
24
- - **Markdown-only Skill**: genre reference cards with zero scripts.
25
- - **Open-source CLI & editor plugins**: offline checks across Markdown, HTML/CSS/JSX/SVG, PNG/JPEG/WebP/GIF, Word, PowerPoint, and PDF slides.
26
- - **Official Cloud MCP & Web Workbench** (`https://dislop.com/mcp`): multi-model review by genre without local setup.
27
-
28
- Here is a short launch note straight from a model:
1
+ # dislop
29
2
 
30
- ```text
31
- Certainly! Here is the launch note. It's worth noting that exports are a game-changer, finishing in up to 12 minutes for workspaces above 500,000 rows.
32
- ```
33
-
34
- `dislop check launch-note.md` flags three things:
35
-
36
- ```text
37
- [ERROR] launch-note.md:1:1 chatbot-artifact "Certainly! Here is"
38
- [WARNING] launch-note.md:1:37 en-throat-clearing-opener "It's worth noting that"
39
- [INFO] launch-note.md:1:75 en-cliche-lexicon "game-changer"
40
- ```
3
+ English | [Chinese (zh-CN)](./README.zh-CN.md)
41
4
 
42
- If you rewrite it into a second-order AI slogan (`This isn't just an upgrade — it's a new standard.`), running `dislop check` catches that too. Clean it up into plain prose and `dislop check` exits `0`.
5
+ **Cutting AI slop is real productivity.**
43
6
 
44
- <p align="center">
45
- <img src="./assets/demos/proof-cycle-en-v2.gif" alt="dislop checking a launch note across 3 states: flagging chatbot artifact and filler, catching a second-order slogan, and passing with exit 0" width="840">
46
- </p>
7
+ `dislop` is a pluggable editorial and artifact linter built on a zero-dependency Node.js (`>= 20`) micro-kernel. It audits Markdown, plain text, HTML/CSS/JSX/TSX/SVG, Word (`.docx`), PowerPoint (`.pptx`), PDF, and raster images before publication, separating objective delivery **Defects** from non-blocking editorial **Suggestions**.
47
8
 
48
- It inspects Markdown, plain text, HTML/CSS/JSX/SVG, PNG/JPEG/WebP/GIF images, Word (`.docx`), PowerPoint (`.pptx`), and PDF slides (`.pdf`). The open-source CLI and local plugins run offline with zero uploads, bundling all **7 built-in packs (`53` rules)** and extended structural checks. Zero hits only means no known pattern matched—it does not prove deep content quality.
9
+ See [docs/architecture.md](./docs/architecture.md) for the full kernel lifecycle, [CONTRIBUTING.md](./CONTRIBUTING.md) for custom Pack authoring, [slop-samples/](./slop-samples/) for language-specific test samples (`en.md`, `zh-CN.md`), and [docs/MIGRATION-TODO.md](./docs/MIGRATION-TODO.md) for pending repository extraction items.
49
10
 
50
- For hosted review, sign in at [dislop.com](https://dislop.com/) or connect Official Cloud MCP (`https://dislop.com/mcp`): `dislop_review` returns structured issues and edit guidance for your local agent to revise in project context.
11
+ ## Core Design
51
12
 
52
- ## Quick start
13
+ 1. **Micro-Kernel + Stage-Gated Packs (`dislop/sdk`)**:
14
+ - The kernel owns document coordinate parsing (`DocumentModel`), immutable safety and prompt-injection invariants, the Dual Post-LLM Fact Gate, 3-Tier LLM routing, lossless coordinate patching, and CI exit-code arbitration.
15
+ - Rules live in modular Packs under `packs/<scope-or-lang>/<scenario>/{pack.json,scripts/,prompts/}` (`common/*` structural checks + `en/*` and `zh/*` language packs across `artifact-qa`, `prose`, `web-ui`, and `slide-deck`), where `scripts/` and `prompts/` are loaded lazily on demand.
16
+ 2. **Dual-Track Taxonomy (`Defect` vs. `Suggestion`)**:
17
+ - **Prose never breaks CI**: Editorial anti-slop findings are `Suggestion`s (`strong | moderate | hint`) and always return **Exit Code `0`** (mapped to `"note"` in SARIF).
18
+ - **Objective delivery bugs fail CI**: Unfilled `[TODO]` placeholders, stray chatbot wrappers, broken local links, and raw Markdown leaked into `.docx`/`.pptx` are `Defect`s (`error | warning`) emitted strictly by deterministic `scripts/` hooks. Only unresolved `Defect: error` returns **Exit Code `1`**.
19
+ 3. **Local-First Privacy with 3-Tier Semantic Upgrade**:
20
+ - Runs locally with zero external uploads by default (`--engine local`), using deterministic Pack scripts plus an optional Tier 3 local model (`dislop model pull`, powered by [Ollama](https://ollama.com); if Ollama is not installed, `dislop` falls back to offline deterministic rules and notes how to install it).
21
+ - Opt into `--engine auto`, `--engine cloud` (`dislop login`), or `--engine byok` (OpenAI-compatible, Anthropic, Gemini, local proxies, Ollama/vLLM) guarded by a first-run host consent gate (`privacy-gate.mjs`).
22
+ 4. **Dual Post-LLM Fact & Anti-Injection Gate**:
23
+ - Every proposed replacement is verified to preserve numbers, units, percentages, URLs, inline code spans, and proper nouns—while blocking fabricated numbers, injected URLs, or injected code spans and running custom `verifyFix()` hooks.
53
24
 
54
- ### One-line handoff to your Agent (evaluate, install, and run first check)
55
-
56
- Paste this sentence into your coding or office agent (Claude Code, Codex, Cursor, OpenClaw, etc.) so it reads `https://dislop.com/llms.txt`, selects the right surface for your environment, configures it, and checks existing files:
57
-
58
- ```text
59
- Read https://dislop.com/llms.txt, evaluate which dislop setup fits my environment and project (Skill, offline CLI, or Cloud MCP), install and configure it, and run a first check on our files.
60
- ```
61
-
62
- ### Node.js 20+ (npm, zero dependencies, all 7 packs bundled offline)
25
+ ## Quick Start
63
26
 
64
27
  ```bash
65
- # 1. Check the current folder (exits 1 on core AI artifact errors; prints cliché warnings)
66
- npx --yes dislop check .
28
+ # 1. Read-only check (local by default, zero network upload)
29
+ npx --yes dislop check README.md
67
30
 
68
- # 2. Inspect a rule's check question and Before / Fallback / Clean examples
69
- npx --yes dislop explain negation-pivot-frame
31
+ # 2. Compact output for coding and writing agents
32
+ npx --yes dislop check docs/ --format agent
70
33
 
71
- # 3. Check only lines changed against main and emit GitHub PR annotations
72
- npx --yes dislop check --changed origin/main --format github
73
- ```
34
+ # 3. Interactive hunk-by-hunk review in terminal (y/n/e/p/a/A/s/u/q)
35
+ npx --yes dislop fix draft.md
74
36
 
75
- <details>
76
- <summary>More CLI commands (deep checks, review, verify, personal style, Python)</summary>
37
+ # 4. Non-interactive batch cleanup of verified deterministic 'safe' items
38
+ npx --yes dislop fix draft.md --auto --backup
77
39
 
78
- ```bash
79
- # Deep inspection (auto-routed pack + scenario register + rhythm stats + Pocket ML + pattern banks, compact JSON)
80
- npx --yes dislop check draft.md --pack auto --register argumentative --deep --profile --compact --json
81
-
82
- # Multi-signal BYOK review, scenario-aware anti-degradation check, three-layer doctor, and offline voice card
83
- npx --yes dislop review draft.md --register casual
84
- npx --yes dislop verify --git HEAD draft.md --register casual
85
- npx --yes dislop doctor
86
- npx --yes dislop voice my-notes.md
87
-
88
- # Python 3.10+ (PyPI, zero dependencies)
89
- uvx dislop check quarterly-review.pptx
90
- pip install dislop && dislop check .
40
+ # 5. Verify a revised draft preserved all facts against git HEAD
41
+ npx --yes dislop verify --git HEAD draft.md
91
42
  ```
92
43
 
93
- </details>
44
+ ## Execution Tiers on `slop-samples/en.md`
94
45
 
95
- <p align="center">
96
- <img src="./assets/demos/cli-check-en-v2.gif" alt="dislop CLI offline check failing with exit code 1 on draft and passing with exit code 0 after cleanup" width="840">
97
- </p>
46
+ All outputs below were captured verbatim against [slop-samples/en.md](./slop-samples/en.md) (for Chinese anti-slop use cases on [slop-samples/zh-CN.md](./slop-samples/zh-CN.md), see [README.zh-CN.md](./README.zh-CN.md)).
98
47
 
99
- ### Apply review suggestions
48
+ ### Baseline: Deterministic Script Packs (`--no-llm`, 0 tokens, offline)
100
49
 
101
- Open the Vim picker for a local draft, or save a JSON review and apply selected edits later.
50
+ Runs only Pack `scripts/` hooks (`prompts/` are never loaded). Catches objective delivery `DEFECT`s (`[oaicite:1]`, `[Company Name]`, `[TODO: ...]`, empty/dead links, assistant wrappers) and self-contained syntactic `SUGGESTION`s in milliseconds:
102
51
 
103
- ```sh
104
- dislop review draft.md --offline --interactive-apply
105
- dislop review draft.md --offline --json > review.json
106
- dislop apply --review-file review.json --source-file draft.md --include 2,5
52
+ ```bash
53
+ dislop check slop-samples/en.md --no-llm --format agent
107
54
  ```
108
55
 
109
- Use the `edit.id` values in your report. To apply every available edit except one, use `--all --exclude 3`. In Vim, move with `j`/`k` or the arrow keys, accept with `y`, reject with `n`, and press Enter to write your choices. Press `q` to discard them. Items that need a source or a writer’s judgment appear as advice. Batch apply runs without Vim. Both commands apply edits to supported UTF-8 text files, including Markdown and HTML. If the file has changed since review, generate a fresh report.
110
-
111
- ## AI artifacts vs. style warnings
112
-
113
- Auto-rewriters often trade one AI cliché for another or flatten your voice into a generic template. Flat banned-word lists also cause false alarms on ordinary nouns (`Delve` debugger, `wool tapestry`).
114
-
115
- `dislop` splits its 53 rules across 7 bundled packs into two layers:
116
-
117
- 1. **AI delivery artifacts (`packs/core/`, `severity: error`, always on)**: Clear leftovers from AI generation—stray chatbot greetings (`Certainly! Here is...`, `[oaicite:1]`), unfilled `[insert ...]` / `{{var}}` / `[TBD]` placeholders, raw Markdown asterisks pasted unrendered into `.docx`/`.pptx`, and dead `<a href="#">` placeholder buttons.
118
- 2. **Built-in scenario & vertical packs (`warning` / `info`, advisory by default, 0 network downloads)**: `business-brief`, `engineering-spec` (PR diff parrots, shallow root causes, unowned action items), `regulated-comms` (unsubstantiated superlatives, unanchored `"10x faster"` multipliers), `literary-essay`, `deck-and-ui`, and `executive-deck` (process-only slide titles, 4+ consecutive identical slide skeletons). Each rule includes a check question, before / still sounds like AI / after examples, and automated hit/clean tests.
119
-
120
- ## What it reads
121
-
122
- Both the Node.js CLI (`bin/dislop.mjs`) and the Python CLI (`src/dislop/`) run with zero external runtime dependencies and pass the same conformance suite (`tests/test_conformance.py`).
123
-
124
- | What you bring | Extensions | What `dislop` catches | Known boundary |
125
- |---|---|---|---|
126
- | Drafts & docs | `.md`, `.mdx`, `.txt` | AI artifacts + throat-clearing openers, `"Not X, but Y"` pivots, staccato slogan runs, bureaucratic padding, four-character triads, moralizing endings, unsourced claims, bold-lead bullet walls, em-dash overuse, half-width CJK punctuation | Code blocks, inline code, URLs, blockquotes, and `dislop-quote` blocks are masked for style rules |
127
- | Web pages, SVG & UI | `.html`, `.css`, `.jsx`, `.tsx`, `.svg` | Dead `<a href="#">` placeholder links, unexplained `<button disabled>`, purple-pink AI gradients (incl. SVG gradients), `blur-3xl` glow orbs, pulsing dots, emoji chrome, icon-tile grids, fake window dots, `01/02/03` kickers, pill soup, 3-level nested boxes, missing `viewBox`, overlapping `<text>`, orphaned `<defs>` | Static per-file inspection; runtime DOM state still needs browser tests |
128
- | Raster images | `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif` | Unstripped A1111/ComfyUI workflow prompt parameters (`warning`), C2PA/IPTC AI provenance tags (`info`, keeping required legal disclosures), and PNG/GIF dark-neon purple or plastic oversaturated palette heuristics | Pixel heuristics require uncompressed 8-bit PNG (`>= 64x64`) or GIF frame 0 (`>= 64x64`); JPEG/WebP inspect metadata only |
129
- | Word | `.docx` | Joined `<w:t>` runs, raw Markdown asterisks pasted from chat, and prose slop rules (`para N`) | Reports paragraph number rather than rendered page number |
130
- | PowerPoint & PDF | `.pptx`, `.pdf` | Slide order (`p:sldIdLst`), raw Markdown, landscape slide word-walls (`> 120` words / `> 280` Han chars), bullet caps (`> 6`), `<a:normAutofit>` shrink (`< 80%`), generic/process titles, layout monotony, multi-page raster-only PDFs, collapsed type scales (`< 1.2x` or `< 9.5pt`), purple RGB shadings | Portrait PDFs exempt from slide rules; encrypted PDFs report `[SKIP]` honestly; not a generic PDF/X print preflight |
131
-
132
- <table>
133
- <tr>
134
- <td width="50%" align="center">
135
- <img src="./assets/demos/workbench-live-en-v2.gif" alt="dislop.com offline browser workbench checking original draft, 2nd-order slop, and clean copy" width="100%"><br>
136
- <sub>Offline browser workbench in action</sub>
137
- </td>
138
- <td width="50%" align="center">
139
- <img src="./assets/demos/ui-slop-en-v2.gif" alt="Auditing AI gradient, pill wall, and dead href='#' control before switching to a plain 1px sheet" width="100%"><br>
140
- <sub>UI template slop audit before and after</sub>
141
- </td>
142
- </tr>
143
- <tr>
144
- <td colspan="2" align="center">
145
- <img src="./assets/demos/deck-office-en-v2.gif" alt="dislop auditing quarterly-review.pptx for raw markdown leaks, word walls, 68% autofit shrink, and process titles" width="840"><br>
146
- <sub>PowerPoint (.pptx) audit: raw markdown, word walls, autofit shrink, and process titles</sub>
147
- </td>
148
- </tr>
149
- </table>
150
-
151
- ## Guides, Rule Catalog & Awesome Anti-Slop
152
-
153
- Beyond the CLI, this repository compiles into a full reference library at `dislop.com`:
154
-
155
- - **[Rule Catalog (53 rules)](https://dislop.com/rules/)**: Every built-in rule with its Deletion Test question, Before / Fallback / Clean examples, and one-line citation links for PR reviews.
156
- - **[Practical Guides](https://dislop.com/guides/)**: [What is AI slop](https://dislop.com/guides/what-is-ai-slop/) · [Remove AI slop from writing](https://dislop.com/guides/remove-ai-slop-writing/) · [Fix AI slop in web UI](https://dislop.com/guides/fix-ai-slop-web-ui/) · [Clean up PPTX & DOCX](https://dislop.com/guides/deslop-pptx-docx/) · [Agent, CLI & CI setup](https://dislop.com/guides/agent-cli-mcp-tutorial/) · [Linter vs. detector vs. skill](https://dislop.com/guides/linter-vs-detector-vs-skill/).
157
- - **[Awesome Anti-Slop (90 tools)](./awesome/README.md)** ([Chinese edition](./awesome/README.zh-CN.md) · [Interactive web filter](https://dislop.com/awesome/)): Verified linters, writing skills, UI rules, PR policies, and papers ([index.json](https://dislop.com/awesome/index.json) · [index.md](https://dislop.com/awesome/index.md)).
158
- - **Submit a sample**: Found a classic AI-slop phrase, template card, or messy slide? [Submit a redacted sample](https://github.com/dislop-ai/dislop/issues/new?template=slop_sample.yml) so it can inform future fixtures.
159
-
160
- ## Use it across agents, editors, and CI
161
-
162
- | Surface | One-liner or 1-click install | What you get |
163
- |---|---|---|
164
- | **Any AI chat** | Paste: `Read https://dislop.com/llms.txt and apply its anti-slop rules and checks before delivering my next draft.` | Zero install; reads the `~2.4 KB` index, task guides (`/tasks/*.md`), or atomic rule cards (`/rules/<id>.md`) |
165
- | **Agent Skill (75+ hosts)** | `npx skills add dislop-ai/dislop` | Installs pure-Markdown [skills/dislop/SKILL.md](./skills/dislop/SKILL.md) (`+` 4 task-focused skills: [deslop-docs](./skills/deslop-docs/SKILL.md), [deslop-slides-docx](./skills/deslop-slides-docx/SKILL.md), [deslop-web-ui](./skills/deslop-web-ui/SKILL.md), [deslop-verify](./skills/deslop-verify/SKILL.md); `0` scripts, `0` network calls) |
166
- | **Claude Code Plugin** | `/plugin marketplace add dislop-ai/dislop` then `/plugin install dislop@dislop-ai` | Bundles pure-doc Skill + Official Cloud MCP connection (`~130` always-on tokens) |
167
- | **OpenAI Codex Plugin** | `codex plugin marketplace add dislop-ai/dislop` then `codex plugin add dislop@dislop-ai` | Ships native UI card metadata ([openai.yaml](./skills/dislop/agents/openai.yaml)) and `$dislop` trigger |
168
- | **Gemini CLI Extension** | `gemini extensions install https://github.com/dislop-ai/dislop` | Connects Official Cloud MCP `https://dislop.com/mcp` via [gemini-extension.json](./gemini-extension.json) |
169
- | **Official MCP Registry** | Search `io.github.dislop-ai/dislop` on `registry.modelcontextprotocol.io` | Lists the Official Cloud MCP endpoint `https://dislop.com/mcp` (Streamable HTTP) |
170
- | **VS Code / Cursor 1-Click MCP** | [Install in VS Code (Cloud MCP)](https://vscode.dev/redirect/mcp/install?name=dislop&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdislop.com%2Fmcp%22%7D) · [Install in Cursor (Cloud MCP)](cursor://anysphere.cursor-deeplink/mcp/install?name=dislop&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vZGlzbG9wLmNvbS9tY3AifQ==) | Opens the editor's native confirmation dialog without manual JSON edits |
171
- | **GitHub Action / `pre-commit`** | Reference `uses: dislop-ai/dislop@main` ([action.yml](./action.yml) and [.pre-commit-hooks.yaml](./.pre-commit-hooks.yaml)) | Gates modified lines in PRs with inline annotations or SARIF 2.1.0 |
172
-
173
- <p align="center">
174
- <img src="./assets/demos/agent-workflow-en-v2.gif" alt="Coding Agent and CI loop: reading pure-Markdown SKILL.md, gating PR diff with exit code 1, and passing dislop verify" width="840"><br>
175
- <sub>Agent + CI closed loop: Skill before drafting, diff gate before commit, verify after edits</sub>
176
- </p>
177
-
178
- ### Connect Official Cloud MCP (`Claude Code`, `Codex`, `Cursor`, `WorkBuddy`, `Claude Cowork`)
179
-
180
- ```json
181
- {
182
- "mcpServers": {
183
- "dislop": {
184
- "type": "http",
185
- "url": "https://dislop.com/mcp",
186
- "headers": {
187
- "Authorization": "Bearer dslp_your_token_here"
188
- }
189
- }
190
- }
191
- }
56
+ ```text
57
+ # dislop file=slop-samples/en.md engine=deterministic defects=8 suggestions=6
58
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
59
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
60
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
61
+ fix: DELETE
62
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
63
+ quote: "[oaicite:1]"
64
+ reason: Internal AI search/citation token leaked into output text.
65
+ fix: DELETE
66
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
67
+ quote: "[Company Name]"
68
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
69
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
70
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
71
+ quote: "[TODO: confirm incident owner]"
72
+ reason: Unfilled developer or template token left in deliverable.
73
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
74
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
75
+ quote: "[on-call runbook]()"
76
+ reason: Link has an empty destination URL.
77
+ prompt: Provide a valid destination URL or unwrap the link.
78
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
79
+ quote: "I hope this helps!"
80
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
81
+ fix: DELETE
82
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
83
+ quote: "Let me know if you'd like any further adjustments."
84
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
85
+ fix: DELETE
86
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
87
+ quote: "[incident timeline](#)"
88
+ reason: Placeholder non-navigating link target '#'.
89
+ prompt: Wire a real destination URL or use a <button type="button"> control.
90
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
91
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
92
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
93
+ fix: DELETE
94
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
95
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
96
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
97
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
98
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
99
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
100
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
101
+ fix: "It is a new reliability baseline for our checkout pipeline."
102
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
103
+ quote: "Looking ahead, the possibilities are truly endless."
104
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
105
+ fix: DELETE
106
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
107
+ quote: "Why does this matter?"
108
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
109
+ fix: DELETE
110
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
111
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
112
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
113
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
192
114
  ```
193
115
 
194
- Official Cloud MCP (`https://dislop.com/mcp`, auto-discovery card at `https://dislop.com/.well-known/mcp/server-card.json`) exposes `dislop_check`, `dislop_verify`, and `dislop_rules` at 0 credits without login. Signing in via OAuth 2.1 or claiming a free Bearer key at [dislop.com](https://dislop.com/#cloud-token-box) unlocks 30 monthly credits for `dislop_review` (1 credit), `dislop_deslop` (2 credits), `dislop_office` (2–3 credits for `.docx`/`.pptx`), `dislop_visual_review` (2 credits), and `dislop_voice_extract` (2 credits).
116
+ ### Tier 1: Official Cloud (`--engine cloud`)
195
117
 
196
- ## Configure it, or overrule it
197
-
198
- Settings load in order from `~/.config/dislop/config.json` (plus optional personal style card `voice.json`), project `.dislop.json`, and Git-ignored `.dislop.local.json`. Run `dislop init` to create `.dislop.json`:
199
-
200
- ```json
201
- {
202
- "failOn": "error",
203
- "ignore": ["vendor/**", "dist/**"],
204
- "overrides": [
205
- { "files": ["docs/**/*.md"], "pack": "business-brief" },
206
- { "files": ["essays/**/*.md"], "pack": "literary-essay" },
207
- { "files": ["site/**/*.{html,css,svg}"], "pack": "deck-and-ui" }
208
- ],
209
- "allow": ["Delve", "Bayeux Tapestry"],
210
- "rules": {
211
- "bold-lead-list-wall": "info"
212
- }
213
- }
118
+ ```bash
119
+ dislop login --token dslp_...
120
+ dislop check slop-samples/en.md --engine cloud --format agent
214
121
  ```
215
122
 
216
- For a narrow one-off exception, add a reason above the line (`--report-unused` flags stale comments):
123
+ > **Status:** Official Cloud backend support for the `dislop.report/1` micro-kernel contract is currently under construction; sample output will be added once the hosted endpoint is live.
217
124
 
218
- ```markdown
219
- <!-- dislop-ignore-next-line en-cliche-lexicon -- quoting vendor press release verbatim -->
220
- ```
125
+ ### Tier 2: BYOK / OpenAI-Compatible Endpoint (`--engine byok`)
221
126
 
222
- ### Install once locally (true air-gapped / fast hooks)
127
+ Combines deterministic `DEFECT` detection with frontier semantic `SUGGESTION` analysis—catching unchosen `Option A / Option B` branches (`[P10-S1|L16]`), disguised prose placeholders (`Mention the Q3 error-budget burn rate here once SRE signs off` at `[P10-S3|L16]`), and implicit assistant handoffs (`Based on the notes you shared...` at `[P3-S2|L5]`), while the Dual Fact Gate withholds any rewrite that drops entities (`[P1-S1|L1]`):
223
128
 
224
129
  ```bash
225
- # Node.js 20+ (published on npm, < 250 KB tarball, zero network after install)
226
- npm install -g dislop
227
- dislop check .
228
-
229
- # Or Python 3.10+ (published on PyPI, zero external dependencies)
230
- pip install dislop
231
- dislop check .
130
+ dislop check slop-samples/en.md --engine byok --format agent
232
131
  ```
233
132
 
234
- ### Open-Source Local (`Skill` + `CLI`) vs. Official Cloud (`dislop.com/mcp`)
133
+ ```text
134
+ # dislop file=slop-samples/en.md engine=byok:gpt-6.2-astra defects=8 suggestions=14
135
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
136
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
137
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
138
+ fix: DELETE
139
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
140
+ quote: "[oaicite:1]"
141
+ reason: Internal AI search/citation token leaked into output text.
142
+ fix: DELETE
143
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
144
+ quote: "[Company Name]"
145
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
146
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
147
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
148
+ quote: "[TODO: confirm incident owner]"
149
+ reason: Unfilled developer or template token left in deliverable.
150
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
151
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
152
+ quote: "[on-call runbook]()"
153
+ reason: Link has an empty destination URL.
154
+ prompt: Provide a valid destination URL or unwrap the link.
155
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
156
+ quote: "I hope this helps!"
157
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
158
+ fix: DELETE
159
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
160
+ quote: "Let me know if you'd like any further adjustments."
161
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
162
+ fix: DELETE
163
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
164
+ quote: "[incident timeline](#)"
165
+ reason: Placeholder non-navigating link target '#'.
166
+ prompt: Wire a real destination URL or use a <button type="button"> control.
167
+ [P1-S1|L1] SUGGESTION(strong,manual) en/artifact-qa/implicit-assistant-framing
168
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
169
+ reason: This announces delivery of a draft to its requester. The title already introduces the migration to readers.
170
+ note: Fact Gate withheld replacement (dropped proper noun/entity: Q3).
171
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
172
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
173
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
174
+ fix: DELETE
175
+ [P3-S2|L5] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
176
+ quote: "Based on the notes you shared, I have organized the key findings for [Company Name] below [oaicite:1]."
177
+ reason: The sentence tells the requester how their notes were used rather than reporting a finding. Removing it also removes the company placeholder and stray citation marker.
178
+ fix: DELETE
179
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
180
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
181
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
182
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
183
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
184
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
185
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
186
+ fix: "It is a new reliability baseline for our checkout pipeline."
187
+ [P5-S2|L9] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
188
+ quote: "Review the [incident timeline](#) or open the [on-call runbook]() before Friday, and assign follow-up verification to [TODO: confirm incident owner]."
189
+ reason: The TODO is an instruction to the writer, not an assignee. The timeline and runbook links also lack usable destinations, so readers cannot act on the Friday instruction as written.
190
+ prompt: Supply [incident timeline URL], [on-call runbook URL], and [confirmed incident owner] while retaining the Friday instruction.
191
+ [P10-S1|L16] SUGGESTION(strong,manual) common/artifact-qa/unchosen-draft-options
192
+ quote: "Option A: Roll out pooler settings to EU shards on Tuesday."
193
+ reason: The Tuesday rollout and the following billing-freeze hold are competing drafts of the same next step. The text does not establish which was approved.
194
+ prompt: Confirm [approved EU rollout decision]. Keep the matching instruction without its option label and remove the other alternative.
195
+ [P10-S3|L16] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
196
+ quote: "Mention the Q3 error-budget burn rate here once SRE signs off."
197
+ reason: This tells the writer what to add after sign-off rather than giving readers a confirmed result.
198
+ prompt: Report [SRE-confirmed Q3 error-budget burn rate] after sign-off, or omit the reminder before publication.
199
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
200
+ quote: "Looking ahead, the possibilities are truly endless."
201
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
202
+ fix: DELETE
203
+ [P12-S1|L20] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
204
+ quote: "I hope this helps!"
205
+ reason: This closes a conversation with the requester rather than the postmortem.
206
+ fix: DELETE
207
+ [P12-S2|L20] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
208
+ quote: "Let me know if you'd like any further adjustments."
209
+ reason: The offer concerns revisions to the draft, not follow-up work on the migration.
210
+ fix: DELETE
211
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
212
+ quote: "Why does this matter?"
213
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
214
+ fix: DELETE
215
+ [P11-S1|L18] SUGGESTION(moderate,review) en/prose/moralizing-closer
216
+ quote: "Looking ahead, the possibilities are truly endless."
217
+ reason: The optimistic sign-off names no operational consequence or next step. The rollout decision, once confirmed, makes a more useful ending.
218
+ fix: DELETE
219
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
220
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
221
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
222
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
223
+ ```
235
224
 
236
- - **Open Source (`dislop-ai/dislop`, Apache-2.0)**: Pure-Markdown `SKILL.md` + local `./references/*.md` (no bundled scripts), zero-dependency Node/Python CLI (`check`, `patterns`, `voice`, `explain`, `packs`, `catalog`, `resources`), all 7 built-in packs (`53` rules) + 65-pattern catalog (`patterns/`), bundled `14.6 KB` gzip (`49.0 KB` raw) Pocket ML ensemble (`models/pocket-slop-v1.json`, `< 0.5 ms`, `100.0%` F1 / `0.0%` Clean FPR on `stealth-vapor-v1`), `Awesome Anti-Slop`, and `dislop-bench v2` + `visual-design-v1`. `check` / `patterns` / `voice` make `0` network calls so private drafts never leave your machine (existing `--mcp` and optional local-model modules stay in-repo during real-world evaluation).
237
- - **Official Cloud MCP & Web Workbench (`https://dislop.com/mcp`, `https://dislop.com/#pricing`)**: Closed-source hosted backend calling paid-tier Google Gemini endpoints that do not train on your text (no draft storage or text logging; see [privacy.md](https://dislop.com/privacy.md)). Deterministic `dislop_check`, `dislop_verify`, and `dislop_rules` run at 0 credits without login; OAuth 2.1 or a free key unlocks **30 monthly credits** for `dislop_review` (1 credit), `dislop_deslop` (2 credits), `dislop_office` (2–3 credits), `dislop_visual_review` (2 credits), and `dislop_voice_extract` (2 credits, `dislop.voice/1`), with early-access waitlists for Pro (`$12/mo`, 1,500 credits), PAYGO (`$10 / 800 credits`), and Team (`$29/seat/mo`).
225
+ ### Tier 3: Managed Local Small Model (`--engine local`)
238
226
 
239
- ## Anti-slop benchmark (`dislop-bench v2`)
227
+ > **Prerequisite — [Ollama](https://ollama.com):** Tier 3 local semantic checks (`--engine local` LLM mode and `dislop model pull`) require **Ollama** installed and running locally (`http://127.0.0.1:11434/v1`). `dislop --help`, `dislop doctor`, `dislop model`, and `dislop check --engine local` automatically detect whether Ollama is missing or stopped and show installation instructions when needed.
240
228
 
241
- Run the full offline benchmark (`112` cross-modality detection samples across Node & Python + `18` end-to-end writing and design tasks comparing raw AI, naive humanizers, and `dislop`-guided revisions):
229
+ Runs completely on-device via Ollama with zero external network traffic. Even when an ultra-small 1.5B model (`qwen2.5:1.5b`) produces noisy rule classifications on bullet items, `dislop` confines all LLM items strictly to `SUGGESTION` and downgrades unverified rewrites to `manual` so `dislop fix --auto` never corrupts technical metrics (use `qwen2.5-7b-instruct` for tighter local precision):
242
230
 
243
231
  ```bash
244
- node scripts/run_benchmark.mjs --assert
245
- ```
232
+ # Install and start Ollama (macOS Homebrew example; see https://ollama.com for Linux/Windows)
233
+ brew install ollama
234
+ ollama serve &
246
235
 
247
- Latest baseline on our own benchmark ([benchmarks/REPORT.md](./benchmarks/REPORT.md) and [benchmarks/PATTERN-BENCHMARK.md](./benchmarks/PATTERN-BENCHMARK.md)):
236
+ # Pull and register a Tier 3 model, then run local checks
237
+ dislop model pull qwen2.5-1.5b-instruct
238
+ dislop check slop-samples/en.md --engine local --format agent
239
+ ```
248
240
 
249
- - **Core Detection (`Suite A`, 112 samples = 48 v1 + 16 `holdout-v1` + 48 `text-hard-v2`)**: Precision `100.0%` · Recall `100.0%` · Clean FPR `0.0%` · Adversarial Near-Miss FPR `0.0%` · 2nd-Order Trap Recall `100.0%` · Node/Python Rule & Statistical Profile Parity `100.0%`.
250
- - **Multi-Angle Pattern Benchmark (`154` samples = 48 + 16 + 62 `pattern-challenge-v2` + 28 `holdout-v2`)**: Precision `100.0%` · Recall `100.0%` · F1 `100.0%` · Clean FPR `0.0%` · Node/Python Parity `100.0%`.
251
- - **Bundled Pocket ML (`stealth-vapor-v1`, 24 paired samples; 36 blind eval with holdouts)**: `14.6 KB` gzip (`49.0 KB` raw), `< 0.5 ms`, `100.0%` F1, `0.0%` Clean FPR.
252
- - **End-to-End Revision (`Suite B`, 18 tasks = 12 `revision-v1` + 6 `revision-hard-v2`, weights `D1=45 / D2=20 / D3=25 / D4=10`)**: `raw_ai` **60.8 / 100** → `naive_humanizer` **70.8 / 100** (doubles 3rd-order slop and drops or invents numbers) → reference edits written to `dislop`'s rules **100.0 / 100** (`18/18` all-clear).
253
- - **Live 5-model comparison ([benchmarks/MODEL-COMPARISON.md](./benchmarks/MODEL-COMPARISON.md))**: Across `Gemini 3.1/3.5 Flash-Lite`, `Gemini 3.5/3.8 Flash`, and `Qwen 3.8 Flash`, bare prompts averaged `76.0–84.2 / 100` (`2/10–4/10` all-clear on the 10-task `revision-v1` live subset), while the `dislop` re-checked cloud pipeline lifted every model by **+15.8 to +22.3 points** (`97.0–100.0 / 100`, `8/10–10/10` all-clear; `Gemini 3.1 Flash-Lite` reached `98.5 / 100` in `1.2s` at `~$0.09 / 1k calls`).
241
+ ```text
242
+ # dislop file=slop-samples/en.md engine=local:qwen2.5:1.5b defects=8 suggestions=20
243
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
244
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
245
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
246
+ fix: DELETE
247
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
248
+ quote: "[oaicite:1]"
249
+ reason: Internal AI search/citation token leaked into output text.
250
+ fix: DELETE
251
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
252
+ quote: "[Company Name]"
253
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
254
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
255
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
256
+ quote: "[TODO: confirm incident owner]"
257
+ reason: Unfilled developer or template token left in deliverable.
258
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
259
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
260
+ quote: "[on-call runbook]()"
261
+ reason: Link has an empty destination URL.
262
+ prompt: Provide a valid destination URL or unwrap the link.
263
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
264
+ quote: "I hope this helps!"
265
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
266
+ fix: DELETE
267
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
268
+ quote: "Let me know if you'd like any further adjustments."
269
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
270
+ fix: DELETE
271
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
272
+ quote: "[incident timeline](#)"
273
+ reason: Placeholder non-navigating link target '#'.
274
+ prompt: Wire a real destination URL or use a <button type="button"> control.
275
+ [P1-S1|L1] SUGGESTION(strong,review) common/artifact-qa/unchosen-draft-options
276
+ quote: "Certainly!"
277
+ reason: The phrase 'Certainly!' is redundant and does not add any value to the document.
278
+ fix: DELETE
279
+ [P2-S1|L3] SUGGESTION(strong,manual) common/artifact-qa/meta-editing-note
280
+ quote: "Q3 Storage Tier Migration Notes"
281
+ reason: The note is a placeholder for future editorial work and does not belong in the published document.
282
+ prompt: Remove the stray editorial meta-note.
283
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
284
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
285
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
286
+ fix: DELETE
287
+ [P3-S1|L5] SUGGESTION(strong,manual) en/artifact-qa/implicit-assistant-framing
288
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
289
+ reason: The sentence is a placeholder for future editorial work and does not belong in the published document.
290
+ prompt: Remove the assistant handoff sentence.
291
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
292
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
293
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
294
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
295
+ [P4-S1|L7] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
296
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
297
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
298
+ prompt: Replace the placeholder with the confirmed figure or link.
299
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
300
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
301
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
302
+ fix: "It is a new reliability baseline for our checkout pipeline."
303
+ [P5-S1|L9] SUGGESTION(strong,manual) en/artifact-qa/synthetic-example-entity
304
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
305
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
306
+ prompt: Replace the placeholder with the real organization or contact details.
307
+ [P6-S1|L11] SUGGESTION(strong,manual) en/prose/unprompted-negation
308
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
309
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
310
+ prompt: Replace the placeholder with the confirmed figure or link.
311
+ [P7-S1|L12] SUGGESTION(strong,manual) en/prose/hollow-transition
312
+ quote: "**Lower Memory**: Worker nodes stayed below 4.2GB RSS at peak load."
313
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
314
+ prompt: Replace the filler sentence with the concrete claim.
315
+ [P8-S1|L13] SUGGESTION(strong,manual) en/prose/throat-clearing
316
+ quote: "**Cleaner Telemetry**: Slow-query logs now sample queries above 50ms."
317
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
318
+ prompt: Replace the filler sentence with the concrete claim.
319
+ [P9-S1|L14] SUGGESTION(strong,manual) en/prose/moralizing-closer
320
+ quote: "**Simpler Rollbacks**: Snapshot restore scripts run from a single CLI flag."
321
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
322
+ prompt: Replace the filler sentence with the concrete claim.
323
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
324
+ quote: "Looking ahead, the possibilities are truly endless."
325
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
326
+ fix: DELETE
327
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
328
+ quote: "Why does this matter?"
329
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
330
+ fix: DELETE
331
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
332
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
333
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
334
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
335
+ [P10-S1|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
336
+ quote: "Option A: Roll out pooler settings to EU shards on Tuesday."
337
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
338
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
339
+ [P10-S2|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
340
+ quote: "/ Option B: Hold EU rollout until after the billing freeze."
341
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
342
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
343
+ [P10-S3|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
344
+ quote: "Mention the Q3 error-budget burn rate here once SRE signs off."
345
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
346
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
347
+ [P11-S1|L18] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
348
+ quote: "Looking ahead, the possibilities are truly endless."
349
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
350
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
351
+ [P12-S1|L20] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
352
+ quote: "I hope this helps!"
353
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
354
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
355
+ ```
254
356
 
255
- See [benchmarks/README.md](./benchmarks/README.md) to score your own model, Skill, or cloud endpoint (`--eval`) or export randomized blind human A/B review sheets (`--export-blind-sheet`).
357
+ ## CLI Reference
256
358
 
257
- ## dislop checks dislop
359
+ ```text
360
+ dislop check <files/globs...> [options] Read-only Dual-Track audit
361
+ dislop fix <files/globs...> [options] Interactive TTY hunk loop, or batch safe fixes (--auto)
362
+ dislop verify <before> <after> [--json] Verify edits preserved facts, units, links, and entities
363
+ dislop verify --git [ref] <file> [--json] Verify working-tree edits against a Git revision
364
+ dislop init [--global] [--voice <glob>] Initialize .dislop.json or ~/.config/dislop/config.json
365
+ dislop login [--token <dslp_*>] Save Official Cloud credentials
366
+ dislop logout Remove Official Cloud credentials
367
+ dislop voice <extract|show|clear> [files] Manage personal voice profile (voice.json)
368
+ dislop model <list|pull|rm> [name] Manage Tier 3 local models (requires Ollama)
369
+ dislop packs [--json] List built-in multi-level Packs
370
+ dislop doctor [--json] Diagnose active routing tier, Ollama status, auth, config, and Packs
371
+ dislop mcp Start local stdio MCP server (also `dislop-mcp`)
372
+ ```
258
373
 
259
- GitHub Actions CI runs `dislop pack-test` (164 fixture assertions in both Node and Python), 26 Python `unittest` conformance and engine tests across 4 modules (`test_conformance`, `test_engine`, `test_pattern_library`, `test_pocket_and_local_models`), pattern catalog checks (`node scripts/pattern_lab.mjs verify` and `assert`), and site checks (`tests/test_site.mjs`). It also runs `dislop check . --fail-on warning` across this repository's docs, `awesome/`, and `site/`.
374
+ ## Configuring an LLM Provider (`~/.config/dislop/config.json` or `.dislop.json`)
260
375
 
261
- ## Docs & layout
376
+ ```json
377
+ {
378
+ "routing": "byok",
379
+ "activeProvider": "openai-default",
380
+ "approvedHosts": ["api.openai.com"],
381
+ "providers": {
382
+ "openai-default": {
383
+ "protocol": "openai",
384
+ "baseUrl": "https://api.openai.com/v1",
385
+ "apiKeyEnv": "OPENAI_API_KEY",
386
+ "model": "gpt-4o-mini",
387
+ "structuredOutput": "json_schema",
388
+ "maxInputTokens": 16000
389
+ },
390
+ "local-ollama": {
391
+ "protocol": "openai",
392
+ "baseUrl": "http://127.0.0.1:11434/v1",
393
+ "apiKey": "ollama",
394
+ "model": "qwen2.5:7b",
395
+ "structuredOutput": "json_object",
396
+ "maxInputTokens": 8000
397
+ }
398
+ }
399
+ }
400
+ ```
262
401
 
263
- - [Product Brief](./PRODUCT.md) · [Brand & Voice Guide](./docs/brand-and-voice-guide.md) ([zh-CN](./docs/brand-and-voice-guide.zh-CN.md))
264
- - [Architecture](./docs/architecture.md) ([zh-CN](./docs/architecture.zh-CN.md)) · [Design System](./docs/design-system.md) ([zh-CN](./docs/design-system.zh-CN.md))
265
- - [Roadmap](./ROADMAP.md) ([zh-CN](./ROADMAP.zh-CN.md)) · [Releasing](./docs/releasing.md) · [Contributing](./CONTRIBUTING.md) · [Research Index](./docs/research/README.md) · [Changelog](./CHANGELOG.md)
402
+ ## Contributing & Custom Packs
266
403
 
267
- ```text
268
- dislop/
269
- ├── .agents/plugins/ # OpenAI Codex marketplace manifest (marketplace.json)
270
- ├── .claude-plugin/ # Claude Code plugin & marketplace manifests (pure-doc Skill + Official Cloud MCP)
271
- ├── .codex-plugin/ # OpenAI Codex native plugin manifest & UI card metadata
272
- ├── plugin.json # Agent Plugins 1.0 portable manifest (paired with root mcp.json)
273
- ├── gemini-extension.json # Gemini CLI Extension Gallery manifest
274
- ├── server.json # Official MCP Registry manifest (Official Cloud HTTP MCP)
275
- ├── action.yml # Reusable GitHub Marketplace incremental check Action
276
- ├── awesome/ # Awesome Anti-Slop (README.md & README.zh-CN.md, 90 entries)
277
- ├── benchmarks/ # Offline anti-slop benchmark datasets (CC0-1.0) & reproducible reports
278
- ├── bin/ # Node.js CLI (dislop.mjs) and compatibility launcher (dislop-mcp.mjs)
279
- ├── src/
280
- │ ├── core.mjs # Zero-dep ES module shared by Node CLI, MCP, and browser workbench
281
- │ ├── pattern-engine.mjs # Multi-angle 12-probe extended pattern-bank scanner
282
- │ ├── pocket-model.mjs# Bundled 14.6 KB gzip zero-dep Pocket ML ensemble & domain pack router
283
- │ ├── local-model.mjs# Hardware-aware optional local small-model advisor (Node.js)
284
- │ ├── binary-node.mjs# Zero-dep ZIP, PNG/JPEG/WebP/GIF, and PDF reader for Node.js
285
- │ └── dislop/ # Zero-dep Python 3.10+ engine, pattern scanner, local-model advisor, CLI, and MCP
286
- ├── packs/ # Declarative dislop.pack/2 manifests (7 built-in packs, 53 rules, 214 fixtures)
287
- ├── patterns/ # Structured 65-pattern anti-slop catalog across 6 dimensions & 7 angles
288
- ├── skills/dislop/ # Cross-host Agent Skill (SKILL.md + local ./references/ + openai.yaml)
289
- ├── tests/ # 26 Python unittest tests, Node/Python conformance, and site tests
290
- ├── scripts/ # Manifest lockstep sync (sync_manifests.mjs), site compiler & benchmarks
291
- ├── site/ # Compiled dislop.com workbench, /awesome/, and /llms.txt pages
292
- ├── assets/ # Logo mark, light/dark banners, and 1200x630 social preview card
293
- └── docs/ # Brand guide, architecture, design system, roadmap, and research
294
- ```
404
+ To build custom Packs (separated `pack.json` + `scripts/` + `prompts/`, single-file `<name>.pack.md` Markdown Packs, or programmatic `definePack()` plugins), see [CONTRIBUTING.md](./CONTRIBUTING.md).
295
405
 
296
406
  ## License
297
407
 
298
- [Apache License 2.0](./LICENSE)
299
-
300
- <!-- mcp-name: io.github.dislop-ai/dislop -->
408
+ [Apache-2.0](./LICENSE)