dislop 0.9.1 → 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 -63
  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 -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 +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 +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/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
@@ -1,539 +0,0 @@
1
- {
2
- "schema": "dislop.pack/2",
3
- "id": "deck-and-ui",
4
- "version": "0.3.0",
5
- "tier": "taste",
6
- "extends": ["core"],
7
- "name": {
8
- "en": "Slide Deck, Web UI & Graphic Layout",
9
- "zh": "演示文稿、Web 界面与平面视觉"
10
- },
11
- "summary": {
12
- "en": "Flags PowerPoint and PDF slide word-walls, autofit text shrink, generic titles, Web UI neon gradients, glow orbs, emoji chrome, icon-tile grids, SVG layout defects, and raster image AI workflow/palette slop.",
13
- "zh": "检查 PPT 与横版 PDF 文字墙、自动缩排、空泛标题,以及网页里的紫粉渐变、霓虹光球、Emoji 图标堆砌、模板卡格、SVG 排版缺陷和图片工作流残留与塑料配色。"
14
- },
15
- "modalities": ["html", "css", "jsx", "svg", "pptx", "pdf", "image"],
16
- "thresholds": {
17
- "maxSlideWords": 120,
18
- "maxSlideCharsZh": 280,
19
- "maxSlideBullets": 6,
20
- "minAutofitScale": 80000,
21
- "maxPillsPerFile": 6
22
- },
23
- "rules": [
24
- {
25
- "id": "slide-word-wall",
26
- "tier": "taste",
27
- "severity": "warning",
28
- "family": "deck/density",
29
- "probe": "slide-word-wall",
30
- "modalities": ["pptx", "pdf"],
31
- "message": {
32
- "en": "Slide exceeds readable copy budget (> 120 Latin words or > 280 Chinese characters).",
33
- "zh": "单页幻灯片可见文字超载(英文 > 120 词或中文 > 280 字),变成文档搬家。"
34
- },
35
- "deletionTest": {
36
- "en": "Move background narrative to speaker notes or an appendix doc; keep one takeaway headline and <= 3 supporting evidence points on the slide.",
37
- "zh": "将长篇背景移入演讲者备注或配套文档,画面仅保留 1 句结论标题与不超过 3 条核心论据。"
38
- },
39
- "exemplar": {
40
- "bad": "Slide 3 packs 215 words of full-sentence prose explaining migration history, rollback scripts, staffing, and Q4 SLA targets.",
41
- "trap": "Slide 3 shrinks body font to 9pt so all 215 words fit inside one rounded box.",
42
- "good": "Slide 3 headline: 'Zero-downtime migration cut p99 latency from 420 ms to 95 ms' + 3 short metric rows (54 words total); full runbook linked in notes.",
43
- "note": {
44
- "en": "State the conclusion in the slide title and move prose paragraphs into speaker notes.",
45
- "zh": "用结论句做标题,长段落移入备注栏而非缩小字号硬塞。"
46
- },
47
- "source": "original"
48
- },
49
- "fixtures": {
50
- "hit": ["PPTX_WORD_WALL:145"],
51
- "clean": ["PPTX_CONCISE:48"]
52
- }
53
- },
54
- {
55
- "id": "slide-bullet-overload",
56
- "tier": "taste",
57
- "severity": "warning",
58
- "family": "deck/density",
59
- "probe": "slide-bullet-overload",
60
- "modalities": ["pptx"],
61
- "message": {
62
- "en": "Slide contains more than 6 bullet items (`maxSlideBullets`), fragmenting visual hierarchy.",
63
- "zh": "单页幻灯片项目符号超过 6 条(`maxSlideBullets`),视觉层级碎裂。"
64
- },
65
- "deletionTest": {
66
- "en": "Group related bullets into 2–3 structured columns or split across two slides.",
67
- "zh": "将零散条目归并为 2–3 组结构化分栏,或拆分为两页演示。"
68
- },
69
- "exemplar": {
70
- "bad": "Slide lists 9 separate top-level bullets covering pricing, onboarding, compliance, SLA, and billing.",
71
- "trap": "Slide wraps 9 bullets into 9 tiny pill badges.",
72
- "good": "Slide groups commercial terms into 3 columns: Pricing ($49/seat), Onboarding (2 days), SLA (99.95%).",
73
- "note": {
74
- "en": "Keep all 3 commercial numbers while capping list items per slide at <= 6.",
75
- "zh": "保留全部商业数字,将单页列表控制在 6 条以内。"
76
- },
77
- "source": "original"
78
- },
79
- "fixtures": {
80
- "hit": ["PPTX_BULLETS:8"],
81
- "clean": ["PPTX_BULLETS:4"]
82
- }
83
- },
84
- {
85
- "id": "slide-autofit-shrink",
86
- "tier": "taste",
87
- "severity": "warning",
88
- "family": "deck/density",
89
- "probe": "slide-autofit-shrink",
90
- "modalities": ["pptx"],
91
- "message": {
92
- "en": "PowerPoint `normAutofit` shrank text below 80% (`fontScale < 80000`) because copy overflowed its box.",
93
- "zh": "文本框触发 PowerPoint 自动缩排(`fontScale < 80%`),表明文案超出容器容量。"
94
- },
95
- "deletionTest": {
96
- "en": "Trim the overflowing copy or enlarge the text frame so body type renders at 100% scale.",
97
- "zh": "精简溢出文案或调大文本框尺寸,使正文按 100% 原始字号清晰排布。"
98
- },
99
- "exemplar": {
100
- "bad": "<a:normAutofit fontScale=\"62500\" lnSpcReduction=\"20000\"/> on body placeholder",
101
- "trap": "Manually hardcode 10pt font so `normAutofit` disappears while text stays illegible.",
102
- "good": "<a:noAutofit/> with 42 words set at 18pt and full line spacing",
103
- "note": {
104
- "en": "Autofit below 80% is deterministic proof that text did not fit its layout frame.",
105
- "zh": "低于 80% 的自动缩排是文案撑破版面的确定性证据。"
106
- },
107
- "source": "original"
108
- },
109
- "fixtures": {
110
- "hit": ["PPTX_AUTOFIT:65000"],
111
- "clean": ["PPTX_AUTOFIT:100000"]
112
- }
113
- },
114
- {
115
- "id": "slide-weak-topic-title",
116
- "tier": "taste",
117
- "severity": "info",
118
- "family": "deck/density",
119
- "probe": "slide-weak-topic-title",
120
- "modalities": ["pptx"],
121
- "message": {
122
- "en": "Content-heavy slide uses a generic topic label ('Overview', 'Background', '背景') instead of stating its takeaway.",
123
- "zh": "正文密集的幻灯片使用“背景/概述/总结”等空泛名词做标题,未直接亮出本页结论。"
124
- },
125
- "deletionTest": {
126
- "en": "Replace 'Overview' with the one-sentence finding the audience should remember from this slide.",
127
- "zh": "把“项目背景/数据概述”替换为听众看完本页应记住的一句具体结论。"
128
- },
129
- "exemplar": {
130
- "bad": "Title: 'Background' (above 65 words detailing 38% cart abandonment on mobile Safari)",
131
- "trap": "Title: 'Reimagining Checkout Excellence'",
132
- "good": "Title: 'Mobile Safari accounts for 38% of cart abandonment due to 4-step address entry'",
133
- "note": {
134
- "en": "Section dividers with <= 12 words are exempt; dense content slides benefit from assertion titles.",
135
- "zh": "少于 12 词的章节过渡页豁免;高信息量内容页建议采用结论式标题。"
136
- },
137
- "source": "original"
138
- },
139
- "fixtures": {
140
- "hit": ["PPTX_WEAK_TITLE:Overview"],
141
- "clean": ["PPTX_STRONG_TITLE:Cache hit ratio reached 94% after key sharding"]
142
- }
143
- },
144
- {
145
- "id": "ui-ai-gradient",
146
- "tier": "taste",
147
- "severity": "warning",
148
- "family": "ui/slop-chrome",
149
- "probe": "ui-ai-gradient",
150
- "modalities": ["html", "css", "jsx", "svg", "pdf"],
151
- "message": {
152
- "en": "Default purple/indigo-to-pink generator gradient or gradient-clipped display headline.",
153
- "zh": "使用默认紫粉/蓝紫高饱和渐变或渐变裁切艺术字标题(典型生成式模板特征)。"
154
- },
155
- "deletionTest": {
156
- "en": "Replace decorative neon gradients with solid surface tokens, crisp 1px rules, and typographic contrast.",
157
- "zh": "去掉装饰性霓虹渐变,改用克制的纯色纸面令牌、1px 结构分界线与字重对比。"
158
- },
159
- "exemplar": {
160
- "bad": "<h1 class=\"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 bg-clip-text text-transparent\">Release Notes v2.4</h1>",
161
- "trap": "<h1 class=\"bg-gradient-to-r from-teal-400 to-cyan-500 bg-clip-text text-transparent\">Release Notes v2.4</h1>",
162
- "good": "<h1 class=\"page-title\">Release Notes v2.4</h1>",
163
- "note": {
164
- "en": "Swapping purple-pink for teal-cyan gradient text repeats the same template habit; set headlines in solid high-contrast ink.",
165
- "zh": "把紫粉渐变换成青蓝渐变字仍是同一模板套路;正文标题应使用高对比度纯色墨迹。"
166
- },
167
- "source": "original"
168
- },
169
- "fixtures": {
170
- "hit": [
171
- "<div class=\"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500\">Hero</div>",
172
- ".hero-title { background: linear-gradient(90deg, #6366f1, #ec4899); -webkit-background-clip: text; color: transparent; }"
173
- ],
174
- "clean": [
175
- "<div class=\"surface-panel\">Hero</div>",
176
- ".hero-title { color: #15171A; border-bottom: 1px solid #D5D7D2; }"
177
- ]
178
- }
179
- },
180
- {
181
- "id": "ui-pill-soup",
182
- "tier": "taste",
183
- "severity": "warning",
184
- "family": "ui/slop-chrome",
185
- "probe": "ui-pill-soup",
186
- "modalities": ["html", "jsx"],
187
- "message": {
188
- "en": "Excessive `rounded-full` / `999px` text pills (> 6 per view) turn interface metadata into badge soup.",
189
- "zh": "单视图堆砌超过 6 个胶囊圆角文字标签(`rounded-full` / `999px`),导致视觉噪音泛滥。"
190
- },
191
- "deletionTest": {
192
- "en": "Render metadata as plain tabular text separated by middots (`·`) or hairlines; save one high-contrast label for actionable status.",
193
- "zh": "将常规元数据改为用间隔号(`·`)或细线分隔的纯文本,仅对需要干预的异常状态保留单枚强调标记。"
194
- },
195
- "exemplar": {
196
- "bad": "8 adjacent `rounded-full` badges on one card: `Active`, `v2.4`, `US-West`, `SOC2`, `Fast`, `AI`, `Pro`, `Verified`.",
197
- "trap": "8 square pastel badges with 8 emoji icons on one card.",
198
- "good": "Plain mono metadata line: `v2.4 · us-west-2 · SOC2` + single status word `degraded` when unhealthy.",
199
- "note": {
200
- "en": "Circular avatars and icon-only buttons are exempt; text-bearing pills are counted.",
201
- "zh": "圆形头像与纯图标按钮豁免,仅统计带文字的胶囊标签。"
202
- },
203
- "source": "original"
204
- },
205
- "fixtures": {
206
- "hit": [
207
- "<div><span class=\"rounded-full px-3\">Tag 1</span><span class=\"rounded-full px-3\">Tag 2</span><span class=\"rounded-full px-3\">Tag 3</span><span class=\"rounded-full px-3\">Tag 4</span><span class=\"rounded-full px-3\">Tag 5</span><span class=\"rounded-full px-3\">Tag 6</span><span class=\"rounded-full px-3\">Tag 7</span></div>"
208
- ],
209
- "clean": [
210
- "<div class=\"meta\"><span>v0.2.0</span> · <span>Apache-2.0</span> · <span class=\"rounded-full px-2\">error</span></div>"
211
- ]
212
- }
213
- },
214
- {
215
- "id": "ui-box-in-box",
216
- "tier": "taste",
217
- "severity": "warning",
218
- "family": "ui/slop-chrome",
219
- "probe": "ui-box-in-box",
220
- "modalities": ["html", "jsx"],
221
- "message": {
222
- "en": "Three or more nested bordered/rounded containers wrap the same content (`box-in-box-in-box`).",
223
- "zh": "连续三层及以上带边框与圆角的容器层层套盒,挤压有效内容空间。"
224
- },
225
- "deletionTest": {
226
- "en": "Remove outer wrapper borders and separate sections with alignment, whitespace, or a single 1px rule.",
227
- "zh": "去掉多余的外层描边套盒,改用对齐、留白或单根 1px 分界线组织层级。"
228
- },
229
- "exemplar": {
230
- "bad": "<div class=\"border rounded-xl p-6\"><div class=\"border rounded-lg p-4\"><div class=\"border rounded-md p-3\">99.98% uptime</div></div></div>",
231
- "trap": "<div class=\"shadow-xl rounded-2xl p-6\"><div class=\"shadow-md rounded-xl p-4\"><div class=\"bg-slate-900 rounded-lg p-3\">99.98% uptime</div></div></div>",
232
- "good": "<section class=\"metric-row\"><span>Uptime (90d)</span><strong>99.98%</strong></section>",
233
- "note": {
234
- "en": "One container boundary or hairline rule is enough to group a metric.",
235
- "zh": "一层边界或一根分隔细线足以建立视觉分组。"
236
- },
237
- "source": "original"
238
- },
239
- "fixtures": {
240
- "hit": [
241
- "<div class=\"border rounded-xl p-4\"><div class=\"border rounded-lg p-4\"><div class=\"border rounded-md p-4\">Nested</div></div></div>"
242
- ],
243
- "clean": [
244
- "<section class=\"border-t py-4\"><div class=\"card border rounded-sm p-4\">Clean single card</div></section>"
245
- ]
246
- }
247
- },
248
- {
249
- "id": "ui-prompt-echo-badge",
250
- "tier": "taste",
251
- "severity": "warning",
252
- "family": "ui/slop-chrome",
253
- "probe": "regex",
254
- "zones": ["ui-text"],
255
- "modalities": ["html", "jsx", "svg"],
256
- "patterns": [
257
- "\\b(?:AI-Powered|Powered by AI|Next-Gen AI|Zero Hallucinations?|100% Hallucination-Free|Supercharge Your Workflow|Unleash the Power of AI)\\b",
258
- "(?:AI\\s*强力驱动|零幻觉保证|开启智能新时代|颠覆式智能体验)"
259
- ],
260
- "message": {
261
- "en": "Interface chrome echoes prompt-engineering hype ('AI-Powered', 'Zero Hallucination') instead of naming the function.",
262
- "zh": "界面标签直接回显提示词营销口号(如“AI 强力驱动”“零幻觉保证”),未说明具体功能。"
263
- },
264
- "deletionTest": {
265
- "en": "Delete the 'AI-Powered' badge; label the control by the exact task it performs ('Extract invoice totals', 'Check slide word count').",
266
- "zh": "删去“AI 驱动”装饰标牌,直接用控件完成的实际动作命名(如“核对幻灯片字数”)。"
267
- },
268
- "exemplar": {
269
- "bad": "<span class=\"eyebrow\">AI-Powered · Zero Hallucination</span><h2>Document Checker</h2>",
270
- "trap": "<span class=\"eyebrow\">Built for Craft · Pure Signal</span><h2>Document Checker</h2>",
271
- "good": "<h2>Document Linter for Markdown, HTML, DOCX & PPTX</h2>",
272
- "note": {
273
- "en": "Name the supported file formats instead of boasting about intelligence.",
274
- "zh": "直接列出支持的文件格式,不贴自我标榜的口号签。"
275
- },
276
- "source": "original"
277
- },
278
- "fixtures": {
279
- "hit": [
280
- "<span class=\"badge\">AI-Powered</span>",
281
- "<p>Supercharge Your Workflow today</p>"
282
- ],
283
- "clean": [
284
- "<span>Checks Markdown, HTML, DOCX, and PPTX</span>",
285
- "<button type=\"submit\">Run check</button>"
286
- ]
287
- }
288
- },
289
- {
290
- "id": "ui-glow-blob-chrome",
291
- "tier": "taste",
292
- "severity": "warning",
293
- "family": "ui/slop-chrome",
294
- "probe": "ui-glow-blob-chrome",
295
- "modalities": ["html", "css", "jsx", "svg"],
296
- "message": {
297
- "en": "Decorative ambient blur orbs (`blur-3xl`), neon box-shadows, pulsing `animate-ping` pill dots, or heavy SVG glow filters.",
298
- "zh": "堆砌装饰性环境光晕球(`blur-3xl`)、霓虹色阴影、闪烁 `animate-ping` 小圆点或重度 SVG 发光滤镜。"
299
- },
300
- "deletionTest": {
301
- "en": "Delete decorative blur orbs and colored glow shadows; separate layers with solid surface tokens and crisp 1px borders.",
302
- "zh": "删掉无功能的光晕球和霓虹发光阴影,改用单调阶梯底色和 1px 实线分隔层次。"
303
- },
304
- "exemplar": {
305
- "bad": "<div class=\"blur-3xl rounded-full bg-purple-500/30\"></div><button class=\"shadow-indigo-500/50\">Launch</button>",
306
- "trap": "<div class=\"blur-3xl rounded-full bg-amber-500/20\"></div><button class=\"shadow-teal-500/50\">Launch</button>",
307
- "good": "<section class=\"surface-sheet border\"><button class=\"btn-primary\">Launch</button></section>",
308
- "note": {
309
- "en": "Swapping purple glow for teal glow repeats the same decorative haze; use solid ink contrast.",
310
- "zh": "把紫色光晕换成青色光晕还是同一种发光套路,直接去掉模糊光斑即可。"
311
- },
312
- "source": "original"
313
- },
314
- "fixtures": {
315
- "hit": [
316
- "<div class=\"blur-3xl rounded-full bg-indigo-500/30\"></div>",
317
- "<span class=\"rounded-full\"><span class=\"animate-ping bg-emerald-400\"></span>Live</span>",
318
- "<svg viewBox=\"0 0 100 100\"><defs><filter id=\"g\"><feGaussianBlur stdDeviation=\"12\"/></filter></defs></svg>"
319
- ],
320
- "clean": [
321
- "<section class=\"border bg-white p-6\"><h2>Release status</h2></section>",
322
- "<svg viewBox=\"0 0 100 100\"><rect width=\"100\" height=\"100\" fill=\"#F6F7F5\"/></svg>"
323
- ]
324
- }
325
- },
326
- {
327
- "id": "ui-emoji-icon-chrome",
328
- "tier": "taste",
329
- "severity": "warning",
330
- "family": "ui/slop-chrome",
331
- "probe": "ui-emoji-icon-chrome",
332
- "modalities": ["html", "jsx", "svg"],
333
- "message": {
334
- "en": "Three or more decorative AI stock emojis (`🚀`, `✨`, `⚡`, `🛡️`) used as interface or heading icons.",
335
- "zh": "在界面标题、按钮或卡片里堆砌 3 处及以上通用 Emoji(如 `🚀`、`✨`、`⚡`、`🛡️`)充当图标。"
336
- },
337
- "deletionTest": {
338
- "en": "Strip decorative emojis from headings and controls; use plain typography or a consistent single-stroke SVG icon set.",
339
- "zh": "删去标题与按钮里的装饰 Emoji,改用纯文字层级或统一线宽的单色矢量图标。"
340
- },
341
- "exemplar": {
342
- "bad": "<h3>🚀 Fast</h3><h3>⚡ Sync</h3><h3>🛡️ Safe</h3>",
343
- "trap": "<h3>🌟 Fast</h3><h3>💎 Sync</h3><h3>🎯 Safe</h3>",
344
- "good": "<h3>Sub-50 ms checks</h3><h3>Local sync</h3><h3>Offline by default</h3>",
345
- "note": {
346
- "en": "Swapping rockets for sparkles and gems still looks like generated filler; plain concrete headings read faster.",
347
- "zh": "把火箭换成星星和钻石仍是生成式拼贴味,直接用具体小标题更利落。"
348
- },
349
- "source": "original"
350
- },
351
- "fixtures": {
352
- "hit": [
353
- "<h3>🚀 Deploy</h3><h3>✨ Smart</h3><h3>⚡ Fast</h3>"
354
- ],
355
- "clean": [
356
- "<h3>Deploy CLI</h3><h3>Run offline checks</h3><h3>Export SARIF</h3>"
357
- ]
358
- }
359
- },
360
- {
361
- "id": "ui-template-card-grid",
362
- "tier": "taste",
363
- "severity": "warning",
364
- "family": "ui/slop-chrome",
365
- "probe": "ui-template-card-grid",
366
- "modalities": ["html", "jsx"],
367
- "message": {
368
- "en": "Stock generator UI boilerplate: tinted rounded-square icon tiles (>= 3), fake macOS 3-dot window chrome, or sequential `01`/`02`/`03` eyebrow kickers.",
369
- "zh": "命中生成式界面三大件:彩色圆角方块图标卡(>= 3 组)、假 macOS 三色窗口圆点或 `01`/`02`/`03` 编号眉题。"
370
- },
371
- "deletionTest": {
372
- "en": "Remove fake window dots, sequential numeric kickers, and tinted icon tiles; organize cards with real headings and alignment.",
373
- "zh": "删去假窗口圆点、编号眉题和马卡龙图标块,靠真实小标题和对齐建立网格秩序。"
374
- },
375
- "exemplar": {
376
- "bad": "<div class=\"rounded-xl w-10 h-10 bg-indigo-50\">A</div><div class=\"rounded-xl w-10 h-10 bg-purple-50\">B</div><div class=\"rounded-xl w-10 h-10 bg-pink-50\">C</div>",
377
- "trap": "<div><span>01</span><h3>Speed</h3><span>02</span><h3>Scale</h3><span>03</span><h3>Trust</h3></div>",
378
- "good": "<section class=\"grid\"><div><h3>CLI</h3><p>Checks Markdown and PPTX locally.</p></div><div><h3>MCP</h3><p>Connects to coding agents.</p></div></section>",
379
- "note": {
380
- "en": "Replacing tinted icon tiles with `01`/`02`/`03` kickers swaps one boilerplate chrome for another.",
381
- "zh": "把彩色图标块换成 `01`/`02`/`03` 编号眉题只是换了另一种模板壳。"
382
- },
383
- "source": "original"
384
- },
385
- "fixtures": {
386
- "hit": [
387
- "<div class=\"rounded-xl w-10 h-10 bg-indigo-50\">1</div><div class=\"rounded-xl w-10 h-10 bg-blue-50\">2</div><div class=\"rounded-xl w-10 h-10 bg-emerald-50\">3</div>",
388
- "<div><span class=\"rounded-full bg-red-500\"></span><span class=\"rounded-full bg-yellow-400\"></span><span class=\"rounded-full bg-green-500\"></span></div>",
389
- "<section><span>01</span><span>02</span><span>03</span></section>"
390
- ],
391
- "clean": [
392
- "<section class=\"grid\"><article><h3>Parser</h3><p>Reads OOXML locally.</p></article></section>"
393
- ]
394
- }
395
- },
396
- {
397
- "id": "svg-layout-slop",
398
- "tier": "taste",
399
- "severity": "warning",
400
- "family": "graphic/svg-structure",
401
- "probe": "svg-layout-slop",
402
- "modalities": ["svg"],
403
- "message": {
404
- "en": "SVG graphic has structural generation defects: missing `viewBox` on a large canvas, overlapping `<text>` coordinates, or >= 2 orphaned `<defs>` entries.",
405
- "zh": "SVG 平面图形存在生成式结构缺陷:大画布缺失 `viewBox`、文字坐标重叠或 `<defs>` 中残留 2 处及以上孤立未用定义。"
406
- },
407
- "deletionTest": {
408
- "en": "Add an explicit `viewBox`, separate `<text>` coordinates cleanly, and delete unused gradients or filters from `<defs>`.",
409
- "zh": "补齐显式 `viewBox`,拉开重叠文字坐标,并清理 `<defs>` 里未被引用的冗余渐变与滤镜。"
410
- },
411
- "exemplar": {
412
- "bad": "<svg width=\"640\" height=\"360\"><text x=\"40\" y=\"50\">Step 1</text><text x=\"42\" y=\"52\">Overlap</text></svg>",
413
- "trap": "<svg viewBox=\"0 0 640 360\" width=\"640\" height=\"360\"><defs><linearGradient id=\"u1\"/><linearGradient id=\"u2\"/></defs><rect width=\"640\" height=\"360\"/></svg>",
414
- "good": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 360\" width=\"640\" height=\"360\"><text x=\"40\" y=\"50\">Step 1</text><text x=\"40\" y=\"96\">Step 2</text></svg>",
415
- "note": {
416
- "en": "Non-icon SVGs need a responsive `viewBox`, non-overlapping text coordinates, and zero orphaned `<defs>` bloat.",
417
- "zh": "非小图标画布应声明 `viewBox`、保证文字坐标不碰撞,并删去未被引用的 `<defs>`。"
418
- },
419
- "source": "original"
420
- },
421
- "fixtures": {
422
- "hit": [
423
- "<svg width=\"480\" height=\"320\"><rect width=\"480\" height=\"320\"/></svg>",
424
- "<svg viewBox=\"0 0 400 200\"><text x=\"20\" y=\"40\">A</text><text x=\"22\" y=\"43\">B</text></svg>",
425
- "<svg viewBox=\"0 0 200 200\"><defs><linearGradient id=\"unused1\"/><filter id=\"unused2\"/></defs><rect width=\"100\" height=\"100\"/></svg>"
426
- ],
427
- "clean": [
428
- "<svg viewBox=\"0 0 400 200\" width=\"400\" height=\"200\"><text x=\"20\" y=\"40\">Input</text><text x=\"20\" y=\"88\">Output</text></svg>"
429
- ]
430
- }
431
- },
432
- {
433
- "id": "image-ai-workflow-residue",
434
- "tier": "taste",
435
- "severity": "warning",
436
- "family": "graphic/image-residue",
437
- "probe": "image-ai-workflow-residue",
438
- "modalities": ["image"],
439
- "message": {
440
- "en": "Raster image embeds unstripped AI generation prompt/workflow parameters (warning) or explicit synthetic provenance tags (info — retain required legal disclosures).",
441
- "zh": "图片文件内嵌了未清理的生成提示词/工作流参数(提醒),或带有显式 AI 生成来源标识(提示:合规场景请保留法定标识,重点复核成图质感)。"
442
- },
443
- "deletionTest": {
444
- "en": "Strip accidental raw prompt/seed workflow JSON before shipping assets; keep legally required C2PA or IPTC `trainedAlgorithmicMedia` disclosures intact.",
445
- "zh": "交付前清理意外残留的提示词与工作流 JSON;属于法规要求的 C2PA 或 `trainedAlgorithmicMedia` 标识请勿私自剥除,仅作质感复核。"
446
- },
447
- "exemplar": {
448
- "bad": "PNG tEXt chunk `parameters`: `masterpiece, neon glow\\nNegative prompt: blurry\\nSteps: 28, Sampler: Euler a, CFG scale: 7`",
449
- "trap": "Stripping legal C2PA / `trainedAlgorithmicMedia` provenance tags instead of inspecting or re-shooting the asset",
450
- "good": "Clean PNG/JPEG export with raw prompt/node-graph chunks removed and natural photographic or editorial raster assets",
451
- "note": {
452
- "en": "Removing leaked ComfyUI/A1111 prompt strings protects internal workflows; never strip legally mandated AI disclosures.",
453
- "zh": "清理工作流参数块可避免提示词与节点图外泄;面向公众分发的合成图片应依法保留来源标识。"
454
- },
455
- "source": "original"
456
- },
457
- "fixtures": {
458
- "hit": [
459
- "IMG_WORKFLOW:parameters: cyberpunk UI\\nNegative prompt: text\\nSteps: 30, CFG scale: 7",
460
- "IMG_PROVENANCE:xmp: trainedAlgorithmicMedia"
461
- ],
462
- "clean": [
463
- "IMG_CLEAN:800x600 editorial screenshot"
464
- ]
465
- }
466
- },
467
- {
468
- "id": "image-ai-palette-slop",
469
- "tier": "taste",
470
- "severity": "info",
471
- "family": "graphic/image-aesthetics",
472
- "probe": "image-ai-palette-slop",
473
- "modalities": ["image"],
474
- "message": {
475
- "en": "PNG pixel profile matches default AI-slop aesthetics: dominant neon purple-indigo-pink palette or hyper-saturated airbrushed plastic sheen.",
476
- "zh": "PNG 像素分布呈现典型生成式视觉套路:高占比蓝紫霓虹主色,或大面积高饱和光滑“塑料感”涂抹。"
477
- },
478
- "deletionTest": {
479
- "en": "Review the rendered image for plastic skin/surfaces or generic neon-purple backdrops; re-grade toward natural micro-contrast and restrained accents.",
480
- "zh": "人工复核图片是否存在塑料反光质感或默认黑底蓝紫霓虹,改用自然材质细节与克制配色。"
481
- },
482
- "exemplar": {
483
- "bad": "1024x1024 dark-mode hero PNG with 42% #0B0B14 dark backdrop and 28% glowing #7C3AED/#EC4899 purple-pink pixels",
484
- "trap": "1024x1024 PNG pushing every surface to 92% saturation with airbrushed zero-texture gradients",
485
- "good": "1024x1024 PNG on #F6F7F5 paper ground with crisp ink typography and <= 5% single vermilion accent",
486
- "note": {
487
- "en": "Pixel heuristics are advisory signals; crisp UI screenshots on neutral grounds stay cleanly below thresholds.",
488
- "zh": "像素分布仅作温和提示,白底或克制暗底的正常 UI 截图不会误报。"
489
- },
490
- "source": "original"
491
- },
492
- "fixtures": {
493
- "hit": [
494
- "IMG_NEON_PALETTE:neonPurple=28%,darkBg=42%",
495
- "IMG_PLASTIC:highSat=48%,smooth=78%"
496
- ],
497
- "clean": [
498
- "IMG_CLEAN:neutral=95%,neonPurple=0%"
499
- ]
500
- }
501
- },
502
- {
503
- "id": "pdf-visual-layout-slop",
504
- "tier": "taste",
505
- "severity": "warning",
506
- "family": "graphic/pdf-layout",
507
- "probe": "pdf-visual-layout-slop",
508
- "modalities": ["pdf"],
509
- "message": {
510
- "en": "PDF slide/poster layout exhibits synthetic template defects: multi-page raster-only slides, collapsed font hierarchy, crushed < 9.5pt body copy, or 4+ consecutive identical landscape slide skeletons.",
511
- "zh": "PDF 演示页或海报存在排版缺陷:多页全图无可选文字、横版页字阶扁平或正文缩至 < 9.5pt,或连续 4 页及以上同骨架纯字横版页。"
512
- },
513
- "deletionTest": {
514
- "en": "Export slides with selectable vector text, restore a >= 1.2x title-to-body type scale, keep body type >= 11pt, and vary layout structure across slides.",
515
- "zh": "导出可选择矢量文本而非整页贴图,拉开至少 1.2 倍的标题与正文字号阶梯(正文 >= 11pt),并穿插表格或图表。"
516
- },
517
- "exemplar": {
518
- "bad": "4-page landscape 960x540 PDF deck where every slide is a single rasterized PNG image with 0 selectable text operators",
519
- "trap": "4-page landscape PDF deck shrinking all body text to 8.5pt with 10pt titles (1.17x ratio) to cram paragraphs",
520
- "good": "5-page landscape PDF deck with 28pt assertion headlines, 13pt body copy, and alternating tables and charts",
521
- "note": {
522
- "en": "Portrait prose reports and single-page portfolios are exempt from landscape slide density and monotony rules.",
523
- "zh": "竖版长文报告与单页作品集豁免横版幻灯片单调与文字墙检查。"
524
- },
525
- "source": "original"
526
- },
527
- "fixtures": {
528
- "hit": [
529
- "PDF_RASTER_DECK:3 raster-only landscape pages",
530
- "PDF_FLAT_TYPE:min=8.5pt,max=10pt",
531
- "PDF_MONOTONY:4 consecutive identical pages"
532
- ],
533
- "clean": [
534
- "PDF_CLEAN:varied typography and portrait report"
535
- ]
536
- }
537
- }
538
- ]
539
- }