dislop 0.9.1 → 1.1.0

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 (129) 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 -63
  7. package/README.md +358 -249
  8. package/README.zh-CN.md +391 -237
  9. package/action.yml +30 -39
  10. package/bin/dislop-mcp.mjs +3 -4
  11. package/bin/dislop.mjs +4 -4594
  12. package/gemini-extension.json +2 -2
  13. package/llms-install.md +68 -0
  14. package/package.json +17 -63
  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 +235 -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 +293 -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 +2 -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/agents/openai.yaml +1 -1
  56. package/skills/dislop/references/essay.md +6 -6
  57. package/skills/dislop/references/essay.zh-CN.md +6 -6
  58. package/skills/dislop/references/office.md +5 -5
  59. package/skills/dislop/references/office.zh-CN.md +5 -5
  60. package/skills/dislop/references/web-ui.md +4 -4
  61. package/skills/dislop/references/web-ui.zh-CN.md +4 -4
  62. package/skills/dislop/references/work-docs.md +7 -7
  63. package/skills/dislop/references/work-docs.zh-CN.md +7 -7
  64. package/src/cli-main.mjs +292 -0
  65. package/src/commands/check-fix.mjs +324 -0
  66. package/src/commands/doctor.mjs +132 -0
  67. package/src/commands/init.mjs +55 -0
  68. package/src/commands/login.mjs +82 -0
  69. package/src/commands/model.mjs +130 -0
  70. package/src/commands/packs.mjs +81 -0
  71. package/src/commands/verify.mjs +165 -0
  72. package/src/commands/voice.mjs +84 -0
  73. package/src/commands/worklog.mjs +424 -0
  74. package/src/kernel/config.mjs +759 -0
  75. package/src/kernel/document-model.mjs +1432 -0
  76. package/src/kernel/fact-gate.mjs +775 -0
  77. package/src/kernel/file-discovery.mjs +296 -0
  78. package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +615 -890
  79. package/src/kernel/pack-loader.mjs +801 -0
  80. package/src/kernel/pack-validator.mjs +491 -0
  81. package/src/kernel/patcher.mjs +471 -0
  82. package/src/kernel/pipeline.mjs +530 -0
  83. package/src/kernel/prompt-assembler.mjs +336 -0
  84. package/src/kernel/version.mjs +7 -0
  85. package/src/kernel/voice-profile.mjs +180 -0
  86. package/src/mcp/stdio-server.mjs +442 -0
  87. package/src/runners/auto-fix.mjs +74 -0
  88. package/src/runners/interactive-tty.mjs +488 -0
  89. package/src/runners/reporters.mjs +272 -0
  90. package/src/runtime/chunker.mjs +87 -0
  91. package/src/runtime/json-extract.mjs +144 -0
  92. package/src/runtime/privacy-gate.mjs +97 -0
  93. package/src/runtime/providers/anthropic.mjs +65 -0
  94. package/src/runtime/providers/cloud.mjs +138 -0
  95. package/src/runtime/providers/gemini.mjs +91 -0
  96. package/src/runtime/providers/local-model.mjs +147 -0
  97. package/src/runtime/providers/openai-compat.mjs +130 -0
  98. package/src/runtime/router.mjs +324 -0
  99. package/src/runtime/worklog.mjs +904 -0
  100. package/src/sdk/index.mjs +137 -0
  101. package/models/manifest.json +0 -90
  102. package/models/pocket-slop-v1.json +0 -1
  103. package/packs/business-brief/pack.json +0 -937
  104. package/packs/core/pack.json +0 -209
  105. package/packs/deck-and-ui/pack.json +0 -539
  106. package/packs/engineering-spec/pack.json +0 -144
  107. package/packs/executive-deck/pack.json +0 -98
  108. package/packs/literary-essay/pack.json +0 -344
  109. package/packs/regulated-comms/pack.json +0 -99
  110. package/patterns/ai-tic-rubric.json +0 -252
  111. package/patterns/banks/composite-fusion.json +0 -48
  112. package/patterns/banks/discourse-rhythm.json +0 -95
  113. package/patterns/banks/lexical-signals.json +0 -92
  114. package/patterns/banks/syntactic-frames.json +0 -52
  115. package/patterns/banks/visual-deck.json +0 -44
  116. package/patterns/dimensions/artifacts.json +0 -121
  117. package/patterns/dimensions/discourse.json +0 -438
  118. package/patterns/dimensions/lexical.json +0 -198
  119. package/patterns/dimensions/rhythm.json +0 -258
  120. package/patterns/dimensions/syntactic.json +0 -285
  121. package/patterns/dimensions/visual-and-deck.json +0 -530
  122. package/patterns/taxonomy.json +0 -112
  123. package/src/core.mjs +0 -5497
  124. package/src/dislop/review-picker.vim +0 -114
  125. package/src/local-model.mjs +0 -997
  126. package/src/pattern-engine.mjs +0 -1003
  127. package/src/pocket-model.mjs +0 -729
  128. package/src/review-apply.mjs +0 -151
  129. 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.1",
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.1.0",
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,8 +2,8 @@
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.1",
5
+ "description": "Cutting AI slop is real productivity. Editorial and artifact linter for docs, web UI & slides.",
6
+ "version": "1.1.0",
7
7
  "websiteUrl": "https://dislop.com",
8
8
  "icons": [
9
9
  {
@@ -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.1
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.1.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, follow Sections 2–3 directly.
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).
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,6 +1,6 @@
1
1
  interface:
2
2
  display_name: "dislop"
3
- short_description: "Cutting AI slop is real productivity — Linter for AI Slop"
3
+ short_description: "Cutting AI slop is real productivity — Pluggable Editorial & Artifact Linter"
4
4
  default_prompt: "Use $dislop to check my draft for AI slop, replacement slogans, and template UI while keeping every number, link, and qualifier intact."
5
5
  policy:
6
6
  allow_implicit_invocation: true
@@ -1,15 +1,15 @@
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
 
8
- 1. **Let sentence lengths vary naturally (`low-burstiness-vapor`)**: Avoid 5+ uniform medium sentences filled with abstract nouns. Anchor clauses in supplied times, places, and physical actions without chopping prose into artificial short fragments.
9
- 2. **Cut staged self-Q&A & semicolon tricolons (`literary-rhetorical-qa`, `literary-semicolon-tricolon`)**: Remove `"Why does this matter? Because..."`, `"The result?"`, and 3-part balanced semicolon chains.
10
- 3. **Break 5-comma run-on chains (`comma-chain-runon`)**: Split sprawling comma-spliced sentences into 2–3 clear sentences.
11
- 4. **End on the last concrete scene (`en-essay-moralizing-ending`, `literary-narrative-frame`)**: Cut closing paragraphs that zoom out into life lessons (`"Ultimately, this reminds us..."`). Stop on the final observed action or quote.
12
- 5. **Restrain em-dashes & binary pivots (`excessive-em-dash-density`, `literary-negation-pivot`)**: Replace stacked em-dashes with commas or periods, and replace `"Not just X — it's Y"` pivots with plain action.
8
+ 1. **Avoid low-information abstract filler (`stealth-vapor`, `hollow-transition`)**: Anchor clauses in supplied times, places, and physical actions without chopping prose into artificial short fragments (`staccato-slogan-run`).
9
+ 2. **Cut staged self-Q&A & macro preambles (`rhetorical-self-qa`, `hollow-transition`)**: Remove `"Why does this matter?"`, `"The result?"`, `"In today's fast-paced world..."`, and balanced semicolon padding.
10
+ 3. **Break sprawling comma-spliced sentences**: Split tangled multi-clause run-on sentences into 2–3 clear sentences when the subject gets lost.
11
+ 4. **End on the last concrete scene (`moralizing-closer`)**: Cut closing paragraphs that zoom out into life lessons (`"Ultimately, this reminds us..."`). Stop on the final observed action or quote.
12
+ 5. **Restrain em-dashes & binary pivots (`excessive-em-dash`, `unprompted-negation`)**: Replace stacked em-dashes (`3+` in one sentence) with commas or periods, and replace `"Not just X — it's Y"` pivots with plain action.
13
13
  6. **Zero invented scene detail**: Use only objects, weather, bystanders, and quotes in the notes; develop those supplied details clearly to fit the target length without adding outside scenery.
14
14
 
15
15
  ## Contrast
@@ -1,15 +1,15 @@
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
 
8
- 1. **保持长短句自然错落(`low-burstiness-vapor`)**:避免连续 5 句以上长度接近、缺少具体名词的空句子。按时间、地点和动作自然展开,不刻意切碎成三字短句口号。
9
- 2. **删掉设问过渡与三段分号(`literary-rhetorical-qa`、`literary-semicolon-tricolon`)**:删去 `为什么……?因为……`、`结果呢?` 以及工整排比的三段分号句。
10
- 3. **只在失控长句处拆句(`comma-chain-runon`)**:一逗到底超过五六个分句且主语不清时再拆成 2 到 3 句,本身节奏通顺的流水句无需强行拆断。
11
- 4. **停在最后一个现场画面,别强行升华(`zh-essay-moralizing-ending`、`literary-narrative-frame`)**:删掉 `在信息过载的当下……` 开头和 `这或许就是……真正的意义所在` 结尾,落在最后一个动作或原话直接收笔。
12
- 5. **纠回中文标点、否定转折腔与生硬译文腔(`zh-halfwidth-punctuation`、`literary-negation-pivot`)**:中文正文统一用全角逗号、句号和引号,删掉 `不是……而是……` 句式,并避开 `在他的……上,……着` 这类生硬的欧化状语堆砌。
8
+ 1. **保持长短句自然错落(`stealth-vapor`、`hollow-transition`)**:避免连续 5 句以上长度接近、缺少具体名词的空句子。按时间、地点和动作自然展开,不刻意切碎成三字短句口号。
9
+ 2. **删掉设问过渡与宏大套话(`rhetorical-self-qa`、`hollow-transition`)**:删去 `为什么这一点如此重要?`、`这意味着什么?`、`在当今……浪潮下` 以及工整排比的三段分号句。
10
+ 3. **只在失控长句处拆句**:一逗到底超过五六个分句且主语不清时再拆成 2 到 3 句,本身节奏通顺的流水句无需强行拆断。
11
+ 4. **停在最后一个现场画面,别强行升华(`moralizing-closer`、`hollow-transition`)**:删掉 `在当今……` 开头和 `这或许就是……真正的意义所在` 结尾,落在最后一个动作或原话直接收笔。
12
+ 5. **纠回中文标点、否定转折腔与生硬译文腔(`halfwidth-cjk-punctuation`、`unprompted-negation`)**:中文正文统一用全角逗号、句号和引号,删掉无语境支撑的 `不是……而是……` 句式,并避开生硬的欧化状语堆砌。
13
13
  6. **只写笔记实情**:用素材已有的器物、动作、天气和对话自然展开来匹配目标篇幅,绝不外编路人、对话或心理活动凑字数。
14
14
 
15
15
  ## 三段对照
@@ -1,15 +1,15 @@
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
 
8
- 1. **Strip leaked Markdown & chat wrappers (`markdown-leak`, `chatbot-artifact`, `unfilled-placeholder`)**: Remove `**bold**`, `## Heading`, backticks, placeholder tags, and conversational wrapper sentences. Delete wrapper nouns whole—never glue partial headings onto body sentences.
8
+ 1. **Strip leaked Markdown, chat wrappers & placeholders (`raw-markdown-leak`, `chatbot-artifact`, `unfilled-placeholder`, `leaked-slide-directive`)**: Remove `**bold**`, `## Heading`, backticks, placeholder tags, `[Image suggestion: ...]`, and conversational wrapper sentences. Delete wrapper nouns whole—never glue partial headings onto body sentences.
9
9
  2. **Keep XML structure, document-API styles & grammar intact**: Preserve valid XML tags (`<w:document>`, `<p:sld>`), document-API paragraph styles, tracked changes (`<w:ins>`, `<w:del>`), comments, and tables. Leave existing text runs and split numbers intact (for example `$18.` + `5M`) unless merging is necessary; after cutting hype modifiers (`Their faultless backup cluster`), keep determiner grammar intact (`Their backup cluster`).
10
- 3. **Write finding headlines (`slide-weak-topic-title`, `slide-process-not-finding-title`)**: Replace generic headings (`"Overview"`, `"Background"`) with the specific finding and source number (`"North Pier Pump Drew $42k Excess Power"`).
11
- 4. **Keep slides scannable without repeating numbers (`slide-word-wall`, `slide-bullet-overload`, `slide-autofit-shrink`)**: When drafting slides, stay within 120 words and 5–6 bullets without `<a:normAutofit fontScale="65000"/>`, and avoid repeating the headline number inside bullets. When revising, keep all source facts intact.
12
- 5. **Break consecutive bullet skeletons (`pptx-layout-monotony`)**: Across 4+ slides, vary layouts with tables for comparisons and charts for trends.
10
+ 3. **Write finding headlines (`buzzword-slide-headline`, `vague-slide-headline`, `closing-slide-slogan`)**: Replace generic headings (`"Overview"`, `"Strategic Synergy"`) with the specific finding and source number (`"North Pier Pump Drew $42k Excess Power"`), and drop closing slogan slides.
11
+ 4. **Keep slides scannable without repeating numbers (`slide-word-wall`, `slide-bullet-overload`, `slide-autofit-shrink`, `slide-prose-dump`)**: When drafting slides, stay within 120 words and 5–6 bullets without `<a:normAutofit fontScale="65000"/>`, and avoid repeating the headline number inside bullets. When revising, keep all source facts intact.
12
+ 5. **Break consecutive bullet skeletons (`repetitive-slide-skeleton`)**: Across 4+ slides, vary layouts with tables for comparisons and charts for trends, and strip image workflow metadata (`image-ai-workflow-residue`).
13
13
 
14
14
  ## Contrast
15
15
 
@@ -1,15 +1,15 @@
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
 
8
- 1. **清掉裸 Markdown、寒暄与占位符(`markdown-leak`、`chatbot-artifact`、`unfilled-placeholder`)**:删掉 `**加粗**`、`## 标题`、`[待补充]` 和整句模型寒暄(如 `很高兴协助,下方是……`)。寒暄里的名词整句删掉,不要硬粘成 `总体说明:` 这类半截小标题。
8
+ 1. **清掉裸 Markdown、寒暄与占位符(`raw-markdown-leak`、`chatbot-artifact`、`unfilled-placeholder`、`leaked-slide-directive`)**:删掉 `**加粗**`、`## 标题`、`[待补充]`、`[配图建议:...]` 和整句模型寒暄(如 `很高兴协助,下方是……`)。寒暄里的名词整句删掉,不要硬粘成 `总体说明:` 这类半截小标题。
9
9
  2. **保住 XML 标签、文档接口样式与语法完整**:修改原始 XML 或通过办公软件文档接口编辑时,保持 `<w:document>/<w:body>/<w:p>/<w:r>/<w:t>` 等标签配平,保留审阅修订、批注、段落样式与真实表格。默认保留原有的 `<w:t>` / `<a:t>` 分段边界,留意跨节点拆开的数字(如 `84.` 与 `6 万千瓦时`)和前面限定词;删掉虚高修饰词后检查主语和限定词是否通顺。
10
- 3. **把弱标签改成结论标题(`slide-weak-topic-title`、`slide-process-not-finding-title`)**:把 `概述`、`工作背景` 改成一句带数据的结论(如 `西站 6 号闸机早高峰积压 18 分钟`)。
11
- 4. **控住新建幻灯片密度且不重复数字(`slide-word-wall`、`slide-bullet-overload`、`slide-autofit-shrink`)**:起草单页控制在 120 字和 5–6 条要点以内,不用缩排硬塞,标题写过的数字不要在要点里反复重复;改旧稿时不要为了凑字数删掉原稿事实。
12
- 5. **打破连续同构模板页(`pptx-layout-monotony`)**:不要连续 4 页全放纯文字要点,对比改表格、趋势改图表。
10
+ 3. **把弱标签改成结论标题(`buzzword-slide-headline`、`vague-slide-headline`、`closing-slide-slogan`)**:把 `顶层设计与生态赋能`、`项目整体概况` 改成一句带数据的结论(如 `西站 6 号闸机早高峰积压 18 分钟`),并清掉 `携手并进,共创辉煌未来!` 类口号末页。
11
+ 4. **控住新建幻灯片密度且不重复数字(`slide-word-wall`、`slide-bullet-overload`、`slide-autofit-shrink`、`slide-prose-dump`)**:起草单页控制在 120 字和 5–6 条要点以内,不用缩排硬塞,标题写过的数字不要在要点里反复重复;改旧稿时不要为了凑字数删掉原稿事实。
12
+ 5. **打破连续同构模板页(`repetitive-slide-skeleton`)**:不要连续 4 页全放纯文字要点,对比改表格、趋势改图表;配图同步清掉生成工具工作流元数据(`image-ai-workflow-residue`)。
13
13
 
14
14
  ## 三段对照
15
15
 
@@ -1,13 +1,13 @@
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
 
8
- 1. **Zero dead controls (`ui-dead-control`, severity `error`)**: Never emit `<a href="#">`, empty `href=""`, or unexplained `<button disabled>`. Wire only real routes from the codebase or prompt; if an action is unbuilt, omit the control or explain why it is disabled with visible text linked via `aria-describedby`.
9
- 2. **Skip stock AI chrome (`ui-ai-gradient`, `ui-pill-soup`, `ui-box-in-box`, `ui-prompt-echo-badge`)**: Avoid indigo-purple-pink neon gradients, `bg-clip-text text-transparent` hero titles, `> 6` `rounded-full` pills per view, triple nested bordered boxes, and `"AI-Powered"` or `"Zero Hallucination"` badges.
10
- 3. **Skip secondary fallback templates (`ui-glassmorphism-overuse`, `ui-accent-stripe-card`)**: Do not replace neon gradients with stacked `backdrop-blur` translucent cards, thick `border-l-4` accent stripes, or warm-beige `#F7F5F0` 3-column icon boxes.
8
+ 1. **Zero dead controls (`placeholder-dead-link`, `empty-link-target`, `unexplained-disabled-button`, `svg-missing-viewbox`, severity `error`)**: Never emit `<a href="#">`, empty `href=""`, `<svg>` missing `viewBox`, or unexplained `<button disabled>`. Wire only real routes from the codebase or prompt; if an action is unbuilt, omit the control or explain why it is disabled with visible text linked via `aria-describedby`.
9
+ 2. **Skip stock AI chrome (`neon-ai-gradient`, `glow-blob-backdrop`, `pill-badge-soup`, `prompt-echo-copy`, `emoji-feature-grid`)**: Avoid indigo-purple-pink neon gradients, `blur-3xl` glow orbs, `> 6` `rounded-full` pills per view, decorative emoji headings, and `"AI-Powered"` or `"Supercharge Your Workflow"` copy.
10
+ 3. **Skip secondary fallback templates (`glassmorphism-overuse`, `placeholder-ui-copy`, `synthetic-testimonial-cliche`, `fabricated-stat-tile`, `redundant-feature-card-echo`, `verbose-cta-label`)**: Do not replace neon gradients with stacked `backdrop-blur` translucent cards, placeholder subcopy, fabricated stats, or chatty CTA labels.
11
11
  4. **Use clean structural grammar**: Use `1px` rules, clear type scale, `tabular-nums` for aligned metrics, and restrained radii (`0–6px`). When revising existing UI, fix flagged issues in place without redesigning working layout or wrapping a snippet prompt in a full `<!DOCTYPE html>` shell unless asked.
12
12
  5. **Keep UI copy exact**: State only requested labels, counts, states, and existing routes without inventing headings or file names.
13
13
  6. **Respect non-UI graphic deliverables (posters, infographics, flowcharts, diagrams, comics)**: Standalone posters are not slide decks—never recommend moving text to speaker notes; open diagram connectors and feedback loops are structural graph edges, never treat them as nested `box-in-box` UI chrome or delete return arrows; keep explicit warm-paper or dark palettes when chosen intentionally.
@@ -1,13 +1,13 @@
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
 
8
- 1. **清零死控件(`ui-dead-control`,硬伤)**:禁止输出 `<a href="#">`、空链接或没有原因说明的 `<button disabled>`。链接只填需求或代码库里真实存在的路径;未实现的功能直接删掉按钮,或用可见说明文字配 `aria-describedby` 写清禁用原因。
9
- 2. **去掉第一代默认 AI 模板(`ui-ai-gradient`、`ui-pill-soup`、`ui-box-in-box`、`ui-prompt-echo-badge`)**:不用蓝紫粉霓虹渐变、文字渐变标题、单屏超过 6 个圆角胶囊标签、三层套盒边框,以及 `AI 强力驱动`、`零幻觉保证` 徽章。
10
- 3. **别退回第二代替代模板(`ui-glassmorphism-overuse`、`ui-accent-stripe-card`)**:不要把紫粉渐变换成满屏半透明毛玻璃卡片、粗左侧彩条 `border-l-4`,或暖米白三栏图标卡片。
8
+ 1. **清零死控件(`placeholder-dead-link`、`empty-link-target`、`unexplained-disabled-button`、`svg-missing-viewbox`,硬伤)**:禁止输出 `<a href="#">`、空链接、缺少 `viewBox` 的 `<svg>`,或没有原因说明的 `<button disabled>`。链接只填需求或代码库里真实存在的路径;未实现的功能直接删掉按钮,或用可见说明文字配 `aria-describedby` 写清禁用原因。
9
+ 2. **去掉第一代默认 AI 模板(`neon-ai-gradient`、`glow-blob-backdrop`、`pill-badge-soup`、`prompt-echo-copy`、`emoji-feature-grid`)**:不用蓝紫粉霓虹渐变、弥散发光光斑、单屏超过 6 个圆角胶囊标签、标题前置装饰 Emoji,以及 `AI 强力驱动`、`开启新纪元` 类空洞套话。
10
+ 3. **别退回第二代替代模板(`glassmorphism-overuse`、`placeholder-ui-copy`、`synthetic-testimonial-cliche`、`fabricated-stat-tile`、`redundant-card-subcopy`、`verbose-cta-label`)**:不要把紫粉渐变换成满屏半透明毛玻璃卡片、占位假文案、无来源背书数据、同义重复卡片描述或冗长客套按钮文案。
11
11
  4. **用克制的版面结构呈现数据**:用 `1px` 细线、清晰字号层级与 `tabular-nums` 等宽数字对齐指标,保持按钮与面板克制圆角(`0–6px`)。要求输出片段时直接给组件片段,不要擅自套整页 `<!DOCTYPE html>` 壳;改旧页面时保留本来正常的布局,不无故重做。
12
12
  5. **界面文案直说数字和路径**:只写需求给出的文案标签、计数、状态与真实路径,不塞宣传口号,不自己编维护时间或导出文件名。
13
13
  6. **区分网页组件与海报/信息图/流程图/条漫**:单张海报或信息图不是演示文稿,不要建议“挪进演讲备注”;流程图里的开放连线和反馈回流箭头是结构关系,不要误判成多层套盒或建议删线;刻意设计的暖宣纸、暗底配色与漫画气泡予以保留。
@@ -1,16 +1,16 @@
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
 
8
- 1. **Strip chat wrappers & placeholders (`chatbot-artifact`, `unfilled-placeholder`)**: Delete opening conversational scaffolding and `[TBD]` markers; start directly on the ticket, release, or decision.
9
- 2. **Cut macro preambles & future-gazing (`narrative-sandwich-frame`)**: Drop trend openings (`"In an era defined by..."`) and vague outlooks (`"Looking ahead..."`).
10
- 3. **Break low-fact buzzword clusters (`cooccurrence-slop-cluster`)**: Replace stacked filler verbs (`leverage`, `streamline`, `robust`, `foster`) with the exact mechanism stated in the notes.
11
- 4. **Keep PRs, CLI copy & postmortems factual (`eng-pr-diff-parrot`, `eng-shallow-root-cause`, `eng-vague-action-item`)**: Copy owners, flags, thresholds, and due dates verbatim; list missing ones as open questions. State the missing check or recovery step directly instead of writing `"Not just X — it's Y"`.
12
- 5. **Cut absolute claims & unanchored multipliers (`reg-unsubstantiated-superlative`, `reg-unanchored-multiplier`)**: Delete unproven absolutes (`"always guaranteed"`, `"never fails"`) and bare multipliers (`"5x speed gain"`); cite a standard or baseline only when present in the source, and keep hedging words like `projected` intact.
13
- 6. **No invented attribution or bold list walls (`unsourced-attribution`, `bold-lead-list-wall`)**: Drop filler such as `"Studies show"`, keep source evidence labels (`benchmarked`, `measured`) without upgrading them, and turn stacked `- **Label**: text` lists into plain prose.
8
+ 1. **Strip chat wrappers, citations, placeholders & broken links (`chatbot-artifact`, `chatbot-citation-leak`, `unfilled-placeholder`, `broken-local-link`, `disguised-placeholder-prose`, `unchosen-draft-options`)**: Delete opening conversational scaffolding, `[oaicite:1]` leaks, `[TBD]` markers, author-facing reminders, and unchosen `Option A / Option B` branches; start directly on the ticket, release, or decision.
9
+ 2. **Cut macro preambles, throat-clearing & future-gazing (`hollow-transition`, `throat-clearing`, `moralizing-closer`)**: Drop trend openings (`"In today's fast-paced world..."`), `"It is worth noting that..."`, and vague outlooks (`"Looking ahead..."`).
10
+ 3. **Break low-fact buzzword clusters (`cooccurrence-hype-cluster`, `stealth-vapor`)**: Replace stacked filler verbs (`harnesses`, `elevate`, `streamline`, `unlock potential`) with the exact mechanism stated in the notes.
11
+ 4. **Keep PRs, CLI copy & postmortems factual (`unprompted-negation`, `rhetorical-self-qa`)**: Copy owners, flags, thresholds, and due dates verbatim; list missing ones as open questions. State the missing check or recovery step directly instead of writing `"This isn't just X — it's Y"` or `"Why does this matter?"`.
12
+ 5. **Cut absolute claims & unanchored multipliers**: Delete unproven absolutes (`"always guaranteed"`, `"never fails"`) and bare multipliers (`"5x speed gain"`); cite a standard or baseline only when present in the source, and keep hedging words like `projected` intact.
13
+ 6. **No invented attribution or bold list walls (`bold-lead-list-wall`)**: Drop filler such as `"Studies show"`, keep source evidence labels (`benchmarked`, `measured`) without upgrading them, and turn stacked `- **Label**: text` lists (`4+` items) into plain prose.
14
14
  7. **Honest edits only**: Remove real filler while keeping every distinct point and mechanism intact; never compress multi-paragraph prose into a stub or add fake typos.
15
15
 
16
16
  ## Contrast
@@ -1,16 +1,16 @@
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
 
8
- 1. **清掉寒暄壳与占位符(`chatbot-artifact`、`unfilled-placeholder`)**:删掉 `你好,下面为你附上……` 和 `[待填写]` 标记,第一句落到具体模块、单号或数字。
9
- 2. **删掉宏大三明治与口号结尾(`narrative-sandwich-frame`)**:删去 `随着……的不断深入`、`展望未来……`、`这标志着……`。
10
- 3. **拆散公文黑话与四字排比(`zh-bureaucratic-padding`、`zh-four-char-triad`、`cooccurrence-slop-cluster`)**:把 `重要抓手`、`全面赋能`、`精准高效、安全可靠、灵活易用`、`有效推动、持续优化、显著提升` 换成笔记里的真实动作。
11
- 4. **改实研发复盘、CLI 文案与改进项(`eng-pr-diff-parrot`、`eng-shallow-root-cause`、`eng-vague-action-item`)**:笔记给了负责人、命令参数、阈值和日期就照抄;没给就单独列为待确认问题。直接写缺了哪道校验或具体排查步骤,不要写 `并非单纯人为失误,而是……` 这种转折句。
12
- 5. **删掉绝对承诺与悬空倍数(`reg-unsubstantiated-superlative`、`reg-unanchored-multiplier`)**:删掉 `绝对安全`、`永不宕机`、`倍速跃升`;原文给了加密协议、合同可用性、预计目标或前后基线才保留。
13
- 6. **保留原始出处标签,别堆加粗列表,别缩成残句(`unsourced-attribution`、`bold-lead-list-wall`)**:只删模型自己加的 `业内普遍认为` 等空壳背书;笔记里原有 `实测结果` 时直接写结论(如 `升级后……`),不添 `上线后实测`,也别把短列表全堆成 `- **标签**:内容`;删掉空话时保留原句每个独立动作与数字,别硬压缩成一句话。
8
+ 1. **清掉寒暄壳、引用泄漏、占位符与死链(`chatbot-artifact`、`chatbot-citation-leak`、`unfilled-placeholder`、`broken-local-link`、`disguised-placeholder-prose`、`unchosen-draft-options`)**:删掉 `你好,下面为你附上……`、`[oaicite:1]`、`[待填写]`、正文里的待办提醒与未定稿的 `方案 A / 方案 B`,第一句落到具体模块、单号或数字。
9
+ 2. **删掉宏大空话、句首铺垫与口号结尾(`hollow-transition`、`throat-clearing`、`moralizing-closer`)**:删去 `在当今……浪潮下`、`值得注意的是,`、`展望未来……`、`这标志着……`。
10
+ 3. **拆散公文黑话与四字排比(`four-char-slogan-triad`、`buzzword-cluster`、`cooccurrence-padding`)**:把 `重要抓手`、`全面赋能`、`精准高效、安全可靠、灵活易用`、`深度融合、充分释放` 换成笔记里的真实动作。
11
+ 4. **改实研发复盘、CLI 文案与改进项(`unprompted-negation`、`rhetorical-self-qa`)**:笔记给了负责人、命令参数、阈值和日期就照抄;没给就单独列为待确认问题。直接写缺了哪道校验或具体排查步骤,不要写 `这不是……而是……` 或 `为什么这一点如此重要?`。
12
+ 5. **删掉绝对承诺与悬空倍数**:删掉 `绝对安全`、`永不宕机`、`倍速跃升`;原文给了加密协议、合同可用性、预计目标或前后基线才保留。
13
+ 6. **保留原始出处标签,别堆加粗列表,别缩成残句(`bold-lead-list-wall`)**:只删模型自己加的 `业内普遍认为` 等空壳背书;笔记里原有 `实测结果` 时直接写结论(如 `升级后……`),不添 `上线后实测`,也别把短列表全堆成 5 条及以上 `- **标签**:内容`;删掉空话时保留原句每个独立动作与数字,别硬压缩成一句话。
14
14
 
15
15
  ## 三段对照
16
16