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
@@ -0,0 +1,98 @@
1
+ import { definePackScripts, maskInlineCode } from "dislop/sdk";
2
+
3
+ const ZH_PLACEHOLDER_UI_COPY =
4
+ /^(?:卡片标题|功能(?:一|二|三|标题|名称)|此处输入(?:简短)?描述|请输入(?:您的)?(?:标题|标语|内容)|按钮文字|示例文本)$/;
5
+
6
+ const ZH_PROMPT_ECHO_HERO_RE =
7
+ /(?:开启[^\s,。!?]{0,8}新纪元|一站式智能赋能平台|全方位重塑(?:您的)?(?:工作流|工作方式|业务体验)|重新定义[^\s,。!?]{2,8}新标准|智能驱动的新一代)/;
8
+
9
+ const ZH_LEADING_EMOJI_RE = /^[\u{1F300}-\u{1FAFF}\u2600-\u27BF]\uFE0F?\s*[\u4e00-\u9fff]/u;
10
+
11
+ const ZH_FAKE_TESTIMONIAL_RE =
12
+ /彻底改变了我们团队的(?:工作|协作|交付)方式/;
13
+
14
+ const ZH_UI_SLOGAN_REGRESSION_RE =
15
+ /(?:新纪元|全方位赋能|一站式闭环|颠覆性体验|丝滑体验|(?:不是|并非)[^,。]{1,16}[,,]\s*而是)/;
16
+
17
+ export default definePackScripts({
18
+ check(doc, ctx) {
19
+ const emojiPrefixedSegs = [];
20
+
21
+ for (const seg of doc.segments) {
22
+ const text = seg.text.trim();
23
+ const masked = maskInlineCode(text);
24
+
25
+ if (ZH_PLACEHOLDER_UI_COPY.test(masked)) {
26
+ ctx.reportDefect({
27
+ ruleId: "placeholder-ui-copy",
28
+ severity: "error",
29
+ targetId: seg.id,
30
+ line: seg.line,
31
+ originalQuote: seg.text,
32
+ fixSafety: "manual",
33
+ actionType: "prompt",
34
+ reason: "前端界面节点中遗留了未替换的组件脚手架假文。",
35
+ rewritePrompt: `请将“${seg.text}”替换为真实产品界面文案,或移除多余占位节点。`,
36
+ });
37
+ continue;
38
+ }
39
+
40
+ if (ZH_PROMPT_ECHO_HERO_RE.test(masked)) {
41
+ ctx.reportSuggestion({
42
+ ruleId: "prompt-echo-copy",
43
+ priority: "moderate",
44
+ fixSafety: "manual",
45
+ actionType: "prompt",
46
+ targetId: seg.id,
47
+ line: seg.line,
48
+ originalQuote: seg.text,
49
+ reason: "“开启新纪元 / 全方位重塑 / 一站式赋能”属于典型的生成式落地页空洞口号,无法传达产品具体用途。",
50
+ rewritePrompt: "直接写清产品解决的具体任务、输入输出或实际节省的步骤:[填入具体产品功能与使用场景]",
51
+ });
52
+ }
53
+
54
+ if (ZH_FAKE_TESTIMONIAL_RE.test(masked)) {
55
+ ctx.reportSuggestion({
56
+ ruleId: "synthetic-testimonial-cliche",
57
+ priority: "moderate",
58
+ fixSafety: "manual",
59
+ actionType: "prompt",
60
+ targetId: seg.id,
61
+ line: seg.line,
62
+ originalQuote: seg.text,
63
+ reason: "“彻底改变了我们团队的协作方式”是高频 AI 编造的客户评价模板句。",
64
+ rewritePrompt: "替换为真实署名客户的具体使用反馈,或直接移除无出处的证言模块。",
65
+ });
66
+ }
67
+
68
+ if (ZH_LEADING_EMOJI_RE.test(text) && text.length <= 36) {
69
+ emojiPrefixedSegs.push(seg);
70
+ }
71
+ }
72
+
73
+ if (emojiPrefixedSegs.length >= 3) {
74
+ const first = emojiPrefixedSegs[0];
75
+ ctx.reportSuggestion({
76
+ ruleId: "emoji-feature-grid",
77
+ priority: "hint",
78
+ fixSafety: "manual",
79
+ actionType: "prompt",
80
+ targetId: first.id,
81
+ line: first.line,
82
+ originalQuote: first.text,
83
+ reason: `页面中连续 ${emojiPrefixedSegs.length} 个标题或卡片以装饰性 Emoji 开头,呈现明显的模板生成痕迹。`,
84
+ rewritePrompt: "去掉卡片标题前缀的装饰 Emoji,保持干净的纯文字排版或统一线性图标。",
85
+ });
86
+ }
87
+ },
88
+
89
+ verifyFix(_issue, candidateText) {
90
+ if (candidateText && ZH_UI_SLOGAN_REGRESSION_RE.test(candidateText)) {
91
+ return {
92
+ ok: false,
93
+ reason: "界面改写文案引入了“新纪元 / 全方位赋能 / 丝滑体验 / 不是…而是…”等二阶营销口号。",
94
+ };
95
+ }
96
+ return { ok: true };
97
+ },
98
+ });
package/plugin.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "dislop",
4
- "version": "0.9.0",
5
- "description": "Cutting AI slop is real productivity. Linter for AI Slop with vetted rules (7 packs, 53 rules, 65 patterns) across pure-doc Skill, offline CLI, and Official Cloud MCP.",
4
+ "version": "1.0.1",
5
+ "description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
6
6
  "author": {
7
7
  "name": "dislop-ai",
8
8
  "url": "https://dislop.com"
@@ -14,7 +14,6 @@
14
14
  "anti-slop",
15
15
  "de-slop",
16
16
  "ai-slop",
17
- "humanizer",
18
17
  "writing",
19
18
  "linter",
20
19
  "proofreading",
@@ -27,15 +26,15 @@
27
26
  "com.openai": {
28
27
  "interface": {
29
28
  "displayName": "dislop",
30
- "shortDescription": "Linter for AI Slop",
31
- "longDescription": "Cutting AI slop is real productivity. Linter for AI Slop with vetted rules (7 packs, 53 rules, 65 patterns) across pure-doc Skill, offline CLI, and Official Cloud MCP.",
29
+ "shortDescription": "Pluggable Editorial & Artifact Linter",
30
+ "longDescription": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
32
31
  "developerName": "dislop-ai",
33
32
  "category": "Productivity",
34
33
  "capabilities": [
35
34
  "Interactive",
36
35
  "Read"
37
36
  ],
38
- "defaultPrompt": "Check my draft for AI slop, replacement slogans, and template UI while keeping every number and qualifier intact."
37
+ "defaultPrompt": "Check my draft for delivery defects and AI scaffolding while keeping every number, unit, and entity intact."
39
38
  }
40
39
  }
41
40
  }
package/server.json CHANGED
@@ -2,9 +2,15 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.dislop-ai/dislop",
4
4
  "title": "dislop",
5
- "description": "Cutting AI slop is real productivity. Linter for AI Slop in docs, web UI & slides (Cloud MCP).",
6
- "version": "0.9.0",
5
+ "description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter in docs, web UI & slides.",
6
+ "version": "1.0.1",
7
7
  "websiteUrl": "https://dislop.com",
8
+ "icons": [
9
+ {
10
+ "src": "https://dislop.com/assets/logo.svg",
11
+ "mimeType": "image/svg+xml"
12
+ }
13
+ ],
8
14
  "repository": {
9
15
  "url": "https://github.com/dislop-ai/dislop",
10
16
  "source": "github"
@@ -1,19 +1,21 @@
1
1
  ---
2
2
  name: deslop-docs
3
- description: Audit Markdown docs, READMEs, RFCs, and release notes for AI chat wrappers, clichés, and vague filler using dislop offline rules.
3
+ description: Audit Markdown docs, READMEs, RFCs, and release notes for delivery Defects and editorial anti-slop Suggestions using dislop.
4
4
  ---
5
5
 
6
6
  # deslop-docs
7
7
 
8
- Use when drafting, cleaning, or checking Markdown documentation, technical RFCs, postmortems, READMEs, release notes, or short briefs.
8
+ Use when drafting, cleaning, or checking Markdown documentation, technical RFCs, postmortems, READMEs, release notes, or briefs.
9
9
 
10
10
  ## Workflow
11
11
 
12
- 1. Run an offline deterministic check before rewriting:
12
+ 1. Run a compact read-only check before rewriting:
13
13
  ```bash
14
- npx --yes dislop check <path> --pack auto --deep --compact --json
14
+ npx --yes dislop check <path> --format agent
15
+ ```
16
+ 2. Fix objective `DEFECT` items first (stray chatbot wrappers, leaked `[oaicite:N]` citations, unfilled `[TODO]` placeholders, broken relative links).
17
+ 3. Apply `SUGGESTION` items with restraint: delete zero-information throat-clearing or macro filler, and unwrap unprompted `"Not X, but Y"` framing without inventing facts.
18
+ 4. Verify your revision kept every number, unit, URL, inline code span, and proper noun intact:
19
+ ```bash
20
+ npx --yes dislop verify --git HEAD <path>
15
21
  ```
16
- 2. Remove `error` artifacts first (stray chatbot greetings, citations like `[oaicite:N]`, unfilled placeholders).
17
- 3. Rewrite flagged `warning` clichés and 2nd-order negation slogans (`"Not X, but Y"`) into plain specifics. Keep every original number, unit, date, and qualifier intact.
18
- 4. Do not invent causes, metrics, or examples absent from the draft.
19
- 5. Re-run `npx --yes dislop check <path> --fail-on warning` until hard errors and clichés clear.
@@ -1,19 +1,18 @@
1
1
  ---
2
2
  name: deslop-slides-docx
3
- description: Check Word (.docx) and PowerPoint (.pptx) files offline for unrendered markdown, chat leftovers, dense slide walls, and empty process titles.
3
+ description: Check Word (.docx), PowerPoint (.pptx), PDF, and raster image deliverables offline for raw Markdown leaks, placeholders, and slide overflow.
4
4
  ---
5
5
 
6
6
  # deslop-slides-docx
7
7
 
8
- Use when preparing, inspecting, or cleaning `.docx`, `.pptx`, or PDF slide decks before sharing.
8
+ Use when preparing, inspecting, or cleaning `.docx`, `.pptx`, `.pdf`, or image deliverables before sharing.
9
9
 
10
10
  ## Workflow
11
11
 
12
- 1. Scan the Office document offline without uploading files:
12
+ 1. Scan the Office or slide file locally (`0` network uploads by default):
13
13
  ```bash
14
- npx --yes dislop check <deck.pptx-or-doc.docx> --compact --json
14
+ npx --yes dislop check <deck.pptx-or-doc.docx> --format agent
15
15
  ```
16
- 2. Fix OOXML `error` findings first: unrendered `**bold**` or `` `code` `` markup inside text runs, stray AI chat openers, and unfilled bracket placeholders.
17
- 3. Trim slide copy density when `deck-and-ui` or `executive-deck` flags text walls, `normText` shrink-to-fit overflow, empty process titles, or identical consecutive slide layouts.
18
- 4. Keep every metric, date, currency figure, and boundary qualifier exact while shortening sentences.
19
- 5. Re-run `npx --yes dislop check <file>` before exporting or sending.
16
+ 2. Fix `DEFECT` items first: unrendered `**bold**` Markdown syntax leaked into OOXML runs, stray AI chat wrappers, unfilled placeholders, `normAutofit` font shrink below `80%`, and unstripped ComfyUI/A1111 workflow metadata in images.
17
+ 3. Address `SUGGESTION` items on overloaded slides (`> 120` words or `> 6` bullets) while keeping every metric, currency symbol, unit, and entity intact.
18
+ 4. Re-run `npx --yes dislop check <file> --format agent` to confirm zero `DEFECT(error,...)` items remain.
@@ -1,21 +1,20 @@
1
1
  ---
2
2
  name: deslop-verify
3
- description: Verify LLM-revised drafts after using Humanizer or stop-slop to catch lost metrics, dropped qualifiers, and 2nd-order slogan drift.
3
+ description: Verify revised drafts against original text or git HEAD to catch dropped numbers, units, URLs, code spans, proper nouns, and second-order AI slogans.
4
4
  ---
5
5
 
6
6
  # deslop-verify
7
7
 
8
- Use right after running a style rewrite prompt or external humanizer skill on any important draft.
8
+ Use right after revising prose or running an external rewrite prompt on any important document.
9
9
 
10
10
  ## Workflow
11
11
 
12
- 1. Check the revised file for leaked AI artifacts, `Not X, but Y` 2nd-order slogans, or leftover filler:
12
+ 1. Check the revised file for leftover delivery `DEFECT`s or unprompted negation slogans:
13
13
  ```bash
14
- npx --yes dislop check <revised-file> --pack auto --deep --compact --json
14
+ npx --yes dislop check <revised-file> --format agent
15
15
  ```
16
- 2. Verify against git HEAD or the original source file so no numbers, dates, units, URLs, or risk qualifiers (`up to`, `projected`, `only if`) were dropped or altered:
16
+ 2. Run the deterministic Fact Gate against `git HEAD` (or `<before-file> <after-file>`):
17
17
  ```bash
18
- npx --yes dislop verify --git HEAD <revised-file> --strict
18
+ npx --yes dislop verify --git HEAD <revised-file>
19
19
  ```
20
- 3. If the check catches new AI slogans (`negation-pivot-frame`), swallowed bounds (`up to 12 minutes` -> `5 minutes`), or stiff register drift, restore the exact source numbers and rewrite only the offending phrase.
21
- 4. Re-run both commands until exit code is `0`.
20
+ 3. If `dislop verify` reports dropped numbers, units, URLs, inline code spans, proper nouns, or newly introduced `"not just X — it's Y"` slogans, restore the exact facts and re-verify until exit code is `0`.
@@ -1,19 +1,18 @@
1
1
  ---
2
2
  name: deslop-web-ui
3
- description: Inspect AI-generated HTML, CSS, JSX, and SVG pages offline for dead placeholder links, fake disabled buttons, pill soup, and default gradients.
3
+ description: Inspect HTML, CSS, JSX, TSX, and SVG files for dead placeholder links, unexplained disabled buttons, pill-badge soup, and stock neon gradients.
4
4
  ---
5
5
 
6
6
  # deslop-web-ui
7
7
 
8
- Use when reviewing or cleaning generated frontend components, landing pages, dashboards, or SVGs.
8
+ Use when reviewing or cleaning frontend components, landing pages, dashboards, or SVGs.
9
9
 
10
10
  ## Workflow
11
11
 
12
- 1. Run the offline structural and UI check:
12
+ 1. Run the multi-modal UI & artifact check:
13
13
  ```bash
14
- npx --yes dislop check <ui-dir-or-file> --pack deck-and-ui --compact --json
14
+ npx --yes dislop check <ui-dir-or-file> --format agent
15
15
  ```
16
- 2. Eliminate `error` UI bugs first: `<a href="#">` dead links, unimplemented placeholder buttons, `TODO` labels, and `AI-Powered` prompt-echo badges.
17
- 3. Simplify flagged AI layout tics (`warning`): purple-pink neon gradients, pill-badge walls, 3-level nested card frames, and templated eyebrow numbers (`01 / ...`).
18
- 4. Replace banned placeholder copy with concrete product details already in scope; do not fabricate stats or customer logos.
19
- 5. Re-run `npx --yes dislop check <ui-dir-or-file> --fail-on warning` before committing.
16
+ 2. Fix `DEFECT` items first: empty links, `<a href="#">` placeholder links, unexplained `<button disabled>` controls, missing `<svg viewBox>`, and unrendered Markdown leaks.
17
+ 3. Review `SUGGESTION` items (`common/web-ui`): stock purple-to-pink gradients, `blur-3xl` glow orbs, and stacked `rounded-full` pill-badge soup.
18
+ 4. Re-run `npx --yes dislop check <ui-dir-or-file> --format agent` before committing.
@@ -1,52 +1,40 @@
1
1
  ---
2
2
  name: dislop
3
- version: 0.9.0
4
- description: "Use when drafting or revising text a person will read: README, docs, PR descriptions, release notes, RFCs, postmortems, CLI help/errors, emails, essays, web pages and UI copy (HTML/CSS/JSX), or Word and PowerPoint files. Removes AI-sounding phrasing, chatbot leftovers, placeholders, and template layouts without changing facts. Skip code logic, tests, refactors, commit messages, and configs with no reader-facing text."
3
+ version: 1.0.0
4
+ description: "Use when drafting or revising text or deliverables a person will read: README, docs, PR descriptions, release notes, RFCs, postmortems, CLI help/errors, emails, essays, web pages and UI copy (HTML/CSS/JSX/SVG), or Word and PowerPoint files. Removes AI-sounding phrasing, chatbot leftovers, placeholders, and template layouts without changing facts."
5
5
  ---
6
6
 
7
7
  # dislop
8
8
 
9
- Pick the single card below matching the **language of the text you are writing or editing**, not the request language (English -> `.md` such as `office.md`, Chinese -> `.zh-CN.md`). Read it before drafting or revising. If `./references/` files are unavailable in your host, fetch the same file from `https://dislop.com/tools/references/<file>` (or follow Sections 2–3 directly if offline).
9
+ Pick the single reference card matching the **language of the text you are writing or editing** (English -> `.md`, Chinese -> `.zh-CN.md`). Read it before drafting or revising.
10
10
 
11
11
  ## 1. Reference Cards
12
12
 
13
13
  | Deliverable | English | Chinese |
14
14
  |---|---|---|
15
- | Docs, README, PR, RFC, postmortem, release notes, CLI help & error copy, email, notices | `./references/work-docs.md` | `./references/work-docs.zh-CN.md` |
15
+ | Docs, README, PR, RFC, postmortem, release notes, CLI help & error copy, email | `./references/work-docs.md` | `./references/work-docs.zh-CN.md` |
16
16
  | Essays, columns, narrative non-fiction | `./references/essay.md` | `./references/essay.zh-CN.md` |
17
17
  | Word (`.docx`) & PowerPoint (`.pptx`) files | `./references/office.md` | `./references/office.zh-CN.md` |
18
18
  | Web pages, HTML/CSS/JSX & browser UI copy | `./references/web-ui.md` | `./references/web-ui.zh-CN.md` |
19
19
 
20
- Match cleanup strategy to the writing scenario (`--register`):
21
-
22
- | Scenario (`--pack` / `--register`) | Cut | Protect (never alter) | Avoid drift into |
23
- |---|---|---|---|
24
- | `engineering-spec` / `technical` | Marketing adjectives, diff parroting, ownerless action items | Uniform lists, passive voice, code identifiers, thresholds | Rewriting technical clauses into casual chatter |
25
- | `regulated-comms` / `official` | Superlatives, unanchored multipliers, AI greetings | Formal phrasing, numbered clauses, scope qualifiers | Casual slang or unverified compliance claims |
26
- | `business-brief` / `argumentative` | Macro openers, buzzword clusters, 3-part balanced pitches | Upfront takeaways, concrete metrics, named sources | Trading slogans for aphorisms or macro sign-offs |
27
- | `literary-essay` / `narrative` | Moralizing endings, stock metaphors, mechanical Q&A | Sensory detail, dialogue, deliberate rhythm contrast | Flattening prose into bullets or inventing scenes |
28
- | C2C / IM / `casual` | Scripted influencer clichés, chatbot wrappers, corporate jargon | First-person spoken wording, fixed shop/shipping policy lines | Stiff bookish prose or synonym cycling on policy lines |
29
- | `deck-and-ui` / `deck-ui` | Topic-label slide titles, dead `#` links, gradient/pill soup | Action-takeaway headlines, tight UI slot lengths | Expanding microcopy past slot bounds or decorative AI badges |
30
-
31
20
  ## 2. Drafting New Text
32
21
 
33
- 1. Open on a concrete fact, file, metric, or action from the notes; let sentence length follow the thought naturally.
34
- 2. Every clause must trace to the notes or workspace files. Never add unstated causes, downstream effects, wider scope, altered evidence timing (`measured` -> `tested in production`), unstated completion, resolved relative dates (`by Monday` -> `by next Monday`), or stronger modality (`projected` / `target` -> `cuts`).
35
- 3. Keep source labels (`measured`, `projected`, `about`, `by Monday`) and requested length bounds using only the supplied notes. Omit missing metadata fields (`Date`, `Author`) without `[bracketed placeholders]`; list open questions separately if handing back a draft.
22
+ 1. Open directly on a concrete fact, file, metric, or action from the notes; let sentence length follow the thought naturally.
23
+ 2. Every clause must trace to the notes or workspace files. Never invent unstated causes, downstream effects, wider scope, or stronger modality (`projected` -> `cuts`).
24
+ 3. Keep source qualifiers (`measured`, `projected`, `about`, `up to`) intact. Omit missing metadata fields without leaving `[TODO]` or `[insert ...]` placeholders; list open questions separately if needed.
36
25
 
37
26
  ## 3. Revising Existing Drafts
38
27
 
39
- 1. Leave clean, direct sentences, grounded industry/domain terms, and the author's natural phrasing untouched.
40
- 2. Check all 5 AI-tic layers (`patterns/ai-tic-rubric.json`): lexical fluff (without hurting grounded technical terms), syntactic shells (pivots, role metaphors, dangling `-ing` commentary tails), rhythm uniformity, cognitive framing (false-neutral "both sides" hedging, forced macro elevation, defensive caveats, fake specificity), and rhetorical stance (lecturing, spoon-feeding recaps, cheesy fake-human slang).
41
- 3. Fix `error` findings first; follow each finding's `fixStrategy` (`delete`, `need-source`, `unwrap-layout`, or `rephrase`). Treat `warning` and `info` as prompts, keeping personal perspective, short-long rhythm contrast, quoted speech, and explicit user choices intact.
42
- 4. Keep numbers, units, bounds (`up to`, `at least`, `no less than`), direction (`from A to B`), modality (`projected`, `estimated`, `only if`), relative dates (`yesterday`), names, quotes, inline code, URLs, and every distinct fact intact—remove filler without collapsing multi-point prose into a one-sentence stub.
43
- 5. Never replace filler with `"Not X — it's Y"`, staccato slogan triplets, self-Q&A, moralizing closers, or fake-casual fillers. Keep output in a single language unless quoting an identifier.
28
+ 1. Leave clean, direct sentences, grounded domain terms, and the author's natural voice untouched. Do not rewrite ordinary sentences merely because they contain an abstract verb.
29
+ 2. Fix objective `Defect`s (`error` / `warning`) first: stray chatbot greetings, unfilled bracket placeholders, broken links, and unrendered Markdown syntax in `.docx`/`.pptx`/`.html`.
30
+ 3. Treat editorial `Suggestion`s (`strong` / `moderate` / `hint`) with restraint: delete zero-information macro preambles and moralizing closers, and unwrap unprompted `"Not X, but Y"` shells using only existing facts.
31
+ 4. Preserve every number, unit, percentage, URL, inline code span, and proper noun intact. Never replace filler with second-order AI slogans (`"Not just X — it's Y"`).
44
32
 
45
- ## 4. Check & Finish
33
+ ## 4. Check & Verify
46
34
 
47
- Run a check only if a callable tool or shell exists in this session:
48
- 1. Only if `dislop_*` tools appear in your active tool list: call `dislop_check` first, then `dislop_review` if needed, and verify edits with `dislop_verify` (pass `register` to match scenario strategy; setup: `https://dislop.com/tools/mcp-sdk-api.md`).
49
- 2. Only if you have a shell tool: run `dislop check <path> --pack auto --register <scenario> --deep` (or `npx --yes dislop check ...`), run `dislop review` with user config (`~/.config/dislop/config.json` / `voice.json`) when deep review is needed, and finish with `dislop verify --git HEAD <path> --register <scenario>` (or `dislop verify <before> <after> --register <scenario>`) to check facts and anti-degradation guards.
50
- 3. Otherwise, review your draft against Sections 2–3 and the loaded card checklist.
35
+ Run a check when a callable MCP tool or shell exists in your session:
36
+ 1. If `dislop_*` MCP tools are active: call `dislop_check` first, revise in project context, and verify with `dislop_verify`.
37
+ 2. If you have a shell tool: run `npx --yes dislop check <path> --format agent` (or `dislop fix --auto <path>` for verified `safe` cleanups), and finish with `npx --yes dislop verify --git HEAD <path>` (or `dislop verify <before> <after>`).
38
+ 3. Otherwise, review your draft against Sections 2–3 and the loaded reference card.
51
39
 
52
40
  Always return the finished document or copy itself—never reply with only a tool name, shell command, or file path.
@@ -1,7 +1,7 @@
1
1
  # Essays, Columns & Narrative Non-Fiction
2
2
 
3
3
  Scope: Long-form essays, newsletters, columns, op-eds, and reported sketches.
4
- CLI pack: `dislop check <essay.md> --pack literary-essay --profile` (optional voice check: `dislop voice <past1.md> <past2.md>`).
4
+ CLI check: `dislop check <essay.md> --format agent` (optional personal voice baseline: `dislop voice extract <past1.md> <past2.md>`).
5
5
 
6
6
  ## Rules & Fixes
7
7
 
@@ -1,7 +1,7 @@
1
1
  # 随笔、专栏与非虚构长文
2
2
 
3
3
  适用范围:个人随笔、品牌专栏、人物记事与公众号长文。
4
- 检查命令:`dislop check <essay.md> --pack literary-essay --profile`(对照个人文风可运行 `dislop voice`)。
4
+ 检查命令:`dislop check <essay.md> --format agent`(对照个人文风可运行 `dislop voice extract <past1.md>`)。
5
5
 
6
6
  ## 常见问题与改法
7
7
 
@@ -1,7 +1,7 @@
1
1
  # Word (`.docx`) & PowerPoint (`.pptx`) Decks
2
2
 
3
3
  Scope: Word proposals and reports (`.docx`), executive decks (`.pptx`), slide outlines, and Office XML or document-API edits.
4
- CLI pack: `dislop check <file.docx-or-pptx> --pack executive-deck` (or `business-brief` for `.docx`).
4
+ CLI check: `dislop check <file.docx-or-pptx> --format agent` (mounts `slide-deck` + `artifact-qa` + `prose` automatically).
5
5
 
6
6
  ## Rules & Fixes
7
7
 
@@ -1,7 +1,7 @@
1
1
  # Word(`.docx`)与演示文稿(`.pptx`)
2
2
 
3
3
  适用范围:Word 交付方案与报告(`.docx`)、汇报幻灯片(`.pptx`)、单页大纲及 Office XML 或文档接口编辑。
4
- 检查命令:`dislop check <file.docx-or-pptx> --pack executive-deck`(Word 报告用 `business-brief`)。
4
+ 检查命令:`dislop check <file.docx-or-pptx> --format agent`(自动挂载 `slide-deck`、`artifact-qa` 与 `prose`)。
5
5
 
6
6
  ## 常见问题与改法
7
7
 
@@ -1,7 +1,7 @@
1
1
  # Web UI, Components & Interface Copy
2
2
 
3
3
  Scope: Web pages, CSS, HTML, JSX/TSX components, dashboards, and browser interface copy.
4
- CLI pack: `dislop check <dir> --pack deck-and-ui --patterns`
4
+ CLI check: `dislop check <dir> --pack web-ui --format agent`
5
5
 
6
6
  ## Rules & Fixes
7
7
 
@@ -1,7 +1,7 @@
1
1
  # 网页界面、前端组件与界面文案
2
2
 
3
3
  适用范围:HTML、CSS、JSX/TSX 组件、状态看板与浏览器界面文案。
4
- 检查命令:`dislop check <dir> --pack deck-and-ui --patterns`
4
+ 检查命令:`dislop check <dir> --pack web-ui --format agent`
5
5
 
6
6
  ## 常见问题与改法
7
7
 
@@ -1,7 +1,7 @@
1
1
  # Work Docs, Technical Specs & Regulated Comms
2
2
 
3
3
  Scope: READMEs, PRDs, RFCs, PR descriptions, postmortems, release notes, CLI help and error copy, emails, and regulated notices.
4
- CLI pack: `dislop check <path> --pack business-brief` (or `engineering-spec` / `regulated-comms`).
4
+ CLI check: `dislop check <path> --format agent` (verify edits via `dislop verify --git HEAD <path>`).
5
5
 
6
6
  ## Rules & Fixes
7
7
 
@@ -1,7 +1,7 @@
1
1
  # 工作简报、研发复盘与对外通告
2
2
 
3
3
  适用范围:工作简报、技术方案与故障复盘、发版说明、CLI 帮助与报错文案、邮件及对外通告。
4
- 检查命令:`dislop check <path> --pack business-brief`(研发场景用 `engineering-spec`,合规通告用 `regulated-comms`)。
4
+ 检查命令:`dislop check <path> --format agent`(改稿后运行 `dislop verify --git HEAD <path>` 核验事实)。
5
5
 
6
6
  ## 常见问题与改法
7
7