dislop 0.0.0-stage → 0.7.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.
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +33 -0
- package/.claude-plugin/plugin.json +23 -0
- package/.codex-plugin/plugin.json +49 -0
- package/.cursor-plugin/plugin.json +27 -0
- package/.mcp.json +8 -0
- package/.pre-commit-hooks.yaml +13 -0
- package/LICENSE +202 -0
- package/PRODUCT.md +49 -0
- package/README.md +245 -2
- package/README.zh-CN.md +242 -0
- package/action.yml +90 -0
- package/assets/logo.svg +8 -0
- package/bin/dislop-mcp.mjs +5 -0
- package/bin/dislop.mjs +1967 -0
- package/gemini-extension.json +10 -0
- package/mcp.json +9 -0
- package/models/manifest.json +90 -0
- package/models/pocket-slop-v1.json +1 -0
- package/package.json +92 -4
- package/packs/business-brief/pack.json +598 -0
- package/packs/core/pack.json +198 -0
- package/packs/deck-and-ui/pack.json +290 -0
- package/packs/engineering-spec/pack.json +144 -0
- package/packs/executive-deck/pack.json +98 -0
- package/packs/literary-essay/pack.json +324 -0
- package/packs/regulated-comms/pack.json +99 -0
- package/patterns/README.md +39 -0
- package/patterns/banks/composite-fusion.json +36 -0
- package/patterns/banks/discourse-rhythm.json +95 -0
- package/patterns/banks/lexical-signals.json +74 -0
- package/patterns/banks/syntactic-frames.json +45 -0
- package/patterns/banks/visual-deck.json +37 -0
- package/patterns/dimensions/artifacts.json +121 -0
- package/patterns/dimensions/discourse.json +412 -0
- package/patterns/dimensions/lexical.json +172 -0
- package/patterns/dimensions/rhythm.json +206 -0
- package/patterns/dimensions/syntactic.json +285 -0
- package/patterns/dimensions/visual-and-deck.json +322 -0
- package/patterns/taxonomy.json +112 -0
- package/plugin.json +41 -0
- package/server.json +18 -0
- package/skills/dislop/SKILL.md +58 -0
- package/skills/dislop/agents/openai.yaml +6 -0
- package/skills/dislop/references/business-and-rfc.md +26 -0
- package/skills/dislop/references/editorial-and-essay.md +20 -0
- package/skills/dislop/references/regulated-and-precision.md +27 -0
- package/skills/dislop/references/web-ui-and-deck.md +26 -0
- package/src/binary-node.mjs +85 -0
- package/src/core.mjs +2500 -0
- package/src/local-model.mjs +977 -0
- package/src/pattern-engine.mjs +853 -0
- package/src/pocket-model.mjs +707 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "core",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"tier": "invariant",
|
|
6
|
+
"extends": [],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "AI Delivery Artifacts",
|
|
9
|
+
"zh": "AI 残留硬伤"
|
|
10
|
+
},
|
|
11
|
+
"summary": {
|
|
12
|
+
"en": "Clear AI-generation artifacts enabled across every pack: stray chatbot greetings, unfilled placeholders, raw Markdown pasted into Word/PowerPoint, and dead placeholder links/buttons in generated UI.",
|
|
13
|
+
"zh": "所有规则包默认开启的明显 AI 残留硬伤:留在正文里的 AI 寒暄、未填占位符、贴进 Word/PPT 没渲染的裸 Markdown,以及 AI 网页里的空链接与假按钮。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": [
|
|
16
|
+
"markdown",
|
|
17
|
+
"text",
|
|
18
|
+
"html",
|
|
19
|
+
"css",
|
|
20
|
+
"jsx",
|
|
21
|
+
"svg",
|
|
22
|
+
"docx",
|
|
23
|
+
"pptx"
|
|
24
|
+
],
|
|
25
|
+
"thresholds": {},
|
|
26
|
+
"rules": [
|
|
27
|
+
{
|
|
28
|
+
"id": "unfilled-placeholder",
|
|
29
|
+
"tier": "invariant",
|
|
30
|
+
"severity": "error",
|
|
31
|
+
"family": "hygiene/placeholder",
|
|
32
|
+
"probe": "regex",
|
|
33
|
+
"zones": ["prose", "ui-text"],
|
|
34
|
+
"modalities": ["markdown", "text", "html", "jsx", "svg", "docx", "pptx"],
|
|
35
|
+
"patterns": [
|
|
36
|
+
"(?<![A-Za-z])(?:lorem ipsum|dolor sit amet)(?![A-Za-z])",
|
|
37
|
+
"\\[(?:insert|add|your|placeholder|tbd|todo)(?:\\s+[^\\]\\n]{1,50})?\\](?!\\s*\\()",
|
|
38
|
+
"\\[(?:待补充|待填写|此处插入|占位符)\\](?!\\s*\\()",
|
|
39
|
+
"\\{\\{\\s*[A-Za-z_][A-Za-z0-9_.-]{0,40}\\s*\\}\\}",
|
|
40
|
+
"【[^】\\n]{0,20}(?:待补充|待填写|此处插入|占位符)[^】\\n]{0,20}】",
|
|
41
|
+
"(?:Click to add (?:title|subtitle|text)|单击此处添加(?:标题|副标题|文本))"
|
|
42
|
+
],
|
|
43
|
+
"message": {
|
|
44
|
+
"en": "Unfilled AI template placeholder or dummy copy.",
|
|
45
|
+
"zh": "存在未替换的模板占位符或测试假文。"
|
|
46
|
+
},
|
|
47
|
+
"deletionTest": {
|
|
48
|
+
"en": "Supply the real value before sending, or delete the unfinished line instead of leaving a bracketed marker.",
|
|
49
|
+
"zh": "发稿前填入真实信息,或者直接删掉这一句,不要留括号占位。"
|
|
50
|
+
},
|
|
51
|
+
"exemplar": {
|
|
52
|
+
"bad": "Q3 settlement ran across 14 gateways; p95 latency was [insert p95 latency].",
|
|
53
|
+
"trap": "Q3 settlement improved dramatically across 14 gateways.",
|
|
54
|
+
"good": "Q3 settlement ran across 14 gateways (p95 latency pending load-test sign-off).",
|
|
55
|
+
"note": {
|
|
56
|
+
"en": "State what is still pending or fill in the measured figure instead of leaving a bracket.",
|
|
57
|
+
"zh": "尚未测出的数据直说待补,或填入实测数值,不要留括号占位。"
|
|
58
|
+
},
|
|
59
|
+
"source": "original"
|
|
60
|
+
},
|
|
61
|
+
"fixtures": {
|
|
62
|
+
"hit": [
|
|
63
|
+
"Contact [insert account owner] before Friday.",
|
|
64
|
+
"Summary: {{project_summary}}",
|
|
65
|
+
"附录见【此处插入测试数据】。",
|
|
66
|
+
"本次灰度覆盖 [待填写] 个集群。"
|
|
67
|
+
],
|
|
68
|
+
"clean": [
|
|
69
|
+
"Contact the on-call engineer before Friday.",
|
|
70
|
+
"Array indexing uses items[0] in JavaScript.",
|
|
71
|
+
"Read [Your First GitHub Commit](https://example.com/guide) before opening a PR.",
|
|
72
|
+
"已完成第 3 节压测记录。"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "chatbot-artifact",
|
|
78
|
+
"tier": "invariant",
|
|
79
|
+
"severity": "error",
|
|
80
|
+
"family": "hygiene/chat-residue",
|
|
81
|
+
"probe": "regex",
|
|
82
|
+
"zones": ["prose", "ui-text"],
|
|
83
|
+
"modalities": ["markdown", "text", "html", "jsx", "docx", "pptx"],
|
|
84
|
+
"patterns": [
|
|
85
|
+
"(?:^|\\n)\\s*(?:Certainly|Sure|Absolutely|Of course|Happy to help|Glad to help)[!,.]?\\s+(?:[Hh]ere(?:'s| is| are)|[Bb]elow is)\\b",
|
|
86
|
+
"(?:^|\\n)\\s*Here\\s+(?:is|are)\\s+the\\s+(?:revised|updated|polished)\\s+",
|
|
87
|
+
"\\bAs an AI(?: language model| assistant)?\\b",
|
|
88
|
+
"\\bI hope this helps[!.]?",
|
|
89
|
+
"\\bFeel free to (?:reach out|let me know|ask) if you (?:need|have) (?:anything|any (?:other |further )?questions)[!.]?",
|
|
90
|
+
"(?:^|\\n)\\s*(?:好的|当然可以|没问题)[,,!!]?\\s*(?:以下|下面)是",
|
|
91
|
+
"(?:^|\\n)\\s*以下是为您(?:整理|撰写|润色|生成|修改)的",
|
|
92
|
+
"(?:希望这对(?:你|您)有(?:所)?帮助|如果(?:你|您)(?:还有|需要)(?:任何|其他)?(?:问题|帮助)[,,]?请随时告诉我)[!!。.]?",
|
|
93
|
+
"作为一个?\\s*AI(?:\\s*语言模型|\\s*助手)?",
|
|
94
|
+
"\\[oaicite:\\d+\\]",
|
|
95
|
+
"contentReference\\[oaicite:\\d+\\]",
|
|
96
|
+
"【\\d+†[^】\\n]{1,40}】",
|
|
97
|
+
"[?&]utm_source=(?:chatgpt\\.com|openai)"
|
|
98
|
+
],
|
|
99
|
+
"message": {
|
|
100
|
+
"en": "Unstripped chatbot wrapper sentence or AI search citation token.",
|
|
101
|
+
"zh": "残留未清理的 AI 对话寒暄壳或检索引用内部标记。"
|
|
102
|
+
},
|
|
103
|
+
"deletionTest": {
|
|
104
|
+
"en": "Delete the conversational wrapper or internal citation token completely; start at the actual subject.",
|
|
105
|
+
"zh": "直接删掉对话寒暄句或内部引用残迹,正文从实际内容开始。"
|
|
106
|
+
},
|
|
107
|
+
"exemplar": {
|
|
108
|
+
"bad": "Certainly! Here is the revised rollout note: Cluster B migrates on November 24 at 02:00 UTC.",
|
|
109
|
+
"trap": "Cluster B isn't just migrating — it's entering a new chapter on November 24 at 02:00 UTC.",
|
|
110
|
+
"good": "Cluster B migrates on November 24 at 02:00 UTC.",
|
|
111
|
+
"note": {
|
|
112
|
+
"en": "Strip the chat preamble and leave the rollout note intact.",
|
|
113
|
+
"zh": "删去对话开场白,直接进入正题。"
|
|
114
|
+
},
|
|
115
|
+
"source": "original"
|
|
116
|
+
},
|
|
117
|
+
"fixtures": {
|
|
118
|
+
"hit": [
|
|
119
|
+
"Certainly! Here is the summary of Q2 churn.",
|
|
120
|
+
"Happy to help! Below is the updated RFC.",
|
|
121
|
+
"Latency dropped 18%【4†source】.",
|
|
122
|
+
"好的,以下是修改后的会议纪要:周三上线。",
|
|
123
|
+
"好的,以下是本周进展:接口延迟降到 120ms。",
|
|
124
|
+
"周二 10:00 切流。希望这对你有帮助!",
|
|
125
|
+
"以下是为您整理的会议纪要:周四发布。",
|
|
126
|
+
"Here is the revised launch note: deploys at 14:00 UTC.",
|
|
127
|
+
"作为一个 AI 助手,我建议先做灰度验证。"
|
|
128
|
+
],
|
|
129
|
+
"clean": [
|
|
130
|
+
"Sure enough, the cache warmed within 40 seconds.",
|
|
131
|
+
"Q2 churn dropped from 4.1% to 3.4%.",
|
|
132
|
+
"会议纪要:周三上线。",
|
|
133
|
+
"以下是本周进展:接口延迟降到 120ms。"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "markdown-leak",
|
|
139
|
+
"tier": "invariant",
|
|
140
|
+
"severity": "error",
|
|
141
|
+
"family": "hygiene/markdown-leak",
|
|
142
|
+
"probe": "office-markdown-leak",
|
|
143
|
+
"modalities": ["docx", "pptx"],
|
|
144
|
+
"message": {
|
|
145
|
+
"en": "Raw Markdown syntax (`**bold**` or `## heading`) pasted unrendered into Word or PowerPoint.",
|
|
146
|
+
"zh": "Word 或 PowerPoint 文本中残留未渲染的原始 Markdown 标记(如 `**加粗**` 或 `## 标题`)。"
|
|
147
|
+
},
|
|
148
|
+
"deletionTest": {
|
|
149
|
+
"en": "Convert the raw asterisks or hash marks into native Word/PowerPoint formatting.",
|
|
150
|
+
"zh": "去掉原始星号或井号,改用 Word/PowerPoint 原生样式或加粗格式。"
|
|
151
|
+
},
|
|
152
|
+
"exemplar": {
|
|
153
|
+
"bad": "**Key Milestone**: Ship v0.2 parser before Friday.",
|
|
154
|
+
"trap": "Key Milestone — a game-changing v0.2 parser ships Friday.",
|
|
155
|
+
"good": "Key Milestone: Ship v0.2 parser before Friday.",
|
|
156
|
+
"note": {
|
|
157
|
+
"en": "Apply native run bolding in DOCX/PPTX rather than pasting raw Markdown asterisks.",
|
|
158
|
+
"zh": "在 Office 文档中使用原生字体加粗,不保留裸露的星号。"
|
|
159
|
+
},
|
|
160
|
+
"source": "original"
|
|
161
|
+
},
|
|
162
|
+
"fixtures": {
|
|
163
|
+
"hit": ["DOCX_RAW_MARKDOWN:**Key Milestone**: Ship v0.2"],
|
|
164
|
+
"clean": ["DOCX_PLAIN_RUN:Key Milestone: Ship v0.2"]
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "ui-dead-control",
|
|
169
|
+
"tier": "invariant",
|
|
170
|
+
"severity": "error",
|
|
171
|
+
"family": "ui/dead-control",
|
|
172
|
+
"probe": "ui-dead-control",
|
|
173
|
+
"modalities": ["html", "jsx"],
|
|
174
|
+
"message": {
|
|
175
|
+
"en": "Placeholder `href=\"#\"` link, empty button, or unexplained disabled button typical of generated UI mockups.",
|
|
176
|
+
"zh": "AI 生成网页常见的空跳转链接(`href=\"#\"`)、空按钮或未说明原因的占位禁用按钮。"
|
|
177
|
+
},
|
|
178
|
+
"deletionTest": {
|
|
179
|
+
"en": "Wire the control to a real destination, explain why it is disabled via `title`/`aria-describedby`, or remove the fake button.",
|
|
180
|
+
"zh": "接上真实链接或交互,或者说明禁用原因;没做的功能直接删掉按钮。"
|
|
181
|
+
},
|
|
182
|
+
"exemplar": {
|
|
183
|
+
"bad": "<a href=\"#\" class=\"btn\">Download report</a>",
|
|
184
|
+
"trap": "<button disabled class=\"btn\">Download AI-Powered Insights</button>",
|
|
185
|
+
"good": "<a href=\"./reports/q3-audit.pdf\" class=\"btn\">Download Q3 audit (PDF)</a>",
|
|
186
|
+
"note": {
|
|
187
|
+
"en": "Point links to real targets and drop placeholder buttons that do nothing.",
|
|
188
|
+
"zh": "链接指向真实地址,不要摆放点不动的假按钮。"
|
|
189
|
+
},
|
|
190
|
+
"source": "original"
|
|
191
|
+
},
|
|
192
|
+
"fixtures": {
|
|
193
|
+
"hit": ["<a href=\"#\">Read specification</a>"],
|
|
194
|
+
"clean": ["<a href=\"/docs/spec.html\">Read specification</a>"]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "deck-and-ui",
|
|
4
|
+
"version": "0.2.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 slide word-walls, bullet overload, autofit text shrink, weak topic titles, default purple-pink AI gradients, pill-badge soup, triple nested cards, and prompt-echo chrome.",
|
|
13
|
+
"zh": "检查幻灯片文字墙、要点过多、字号自动缩排、空泛标题,以及网页里的默认紫粉渐变、满屏胶囊标签、三层套盒与提示词营销徽章。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": ["html", "css", "jsx", "svg", "pptx"],
|
|
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"],
|
|
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"],
|
|
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
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "engineering-spec",
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"tier": "taste",
|
|
6
|
+
"extends": ["business-brief"],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "Engineering RFC, PR & Postmortem",
|
|
9
|
+
"zh": "研发文档、PR 与故障复盘"
|
|
10
|
+
},
|
|
11
|
+
"summary": {
|
|
12
|
+
"en": "Catches empty AI PR summaries, stop-thinking 'human error' postmortem labels, and unowned wishful action items alongside core and brief checks.",
|
|
13
|
+
"zh": "在技术文档与简报检查之上,专门拦截空洞的 AI 代码提交总结、把事故归结为“人为失误”的止步归因,以及无负责人无指标的许愿式改进项。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": ["markdown", "text", "docx"],
|
|
16
|
+
"thresholds": {
|
|
17
|
+
"boldLeadListRun": 4
|
|
18
|
+
},
|
|
19
|
+
"rules": [
|
|
20
|
+
{
|
|
21
|
+
"id": "eng-pr-diff-parrot",
|
|
22
|
+
"tier": "taste",
|
|
23
|
+
"severity": "warning",
|
|
24
|
+
"family": "frame/pr-wrapper",
|
|
25
|
+
"probe": "regex",
|
|
26
|
+
"zones": ["prose"],
|
|
27
|
+
"modalities": ["markdown", "text"],
|
|
28
|
+
"patterns": [
|
|
29
|
+
"(?:^|\\n)\\s*(?:This\\s+(?:PR|pull\\s+request|commit|change)\\s+(?:introduces|updates|refactors|enhances|streamlines)\\b[^.\\n]{0,90}\\bto\\s+(?:ensure|provide|deliver|improve|enhance|facilitate)\\s+(?:a\\s+more\\s+)?(?:seamless|robust|scalable|maintainable|intuitive|streamlined|resilient)[^.\\n]{0,60})",
|
|
30
|
+
"(?:^|\\n)\\s*(?:本次\\s*(?:提交|改动|更新|PR|重构)\\s*(?:主要)?(?:旨在)?通过[^。!?\\n]{2,40}(?:进一步|全面|有效)?(?:提升|增强|保障)[^。!?\\n]{0,24}(?:可维护性|扩展性|健壮性|稳定性|研发效能))"
|
|
31
|
+
],
|
|
32
|
+
"message": {
|
|
33
|
+
"en": "Generic AI PR summary parrots file changes without stating the concrete bug, constraint, or metric.",
|
|
34
|
+
"zh": "空泛的 AI 提交摘要只重复“通过优化提升可维护性”,未说明具体修掉的缺陷、边界条件或单号。"
|
|
35
|
+
},
|
|
36
|
+
"deletionTest": {
|
|
37
|
+
"en": "Replace the wrapper sentence with why the change was needed, what breaks without it, and how it was verified.",
|
|
38
|
+
"zh": "删掉套话壳,直接写出关联问题单、改动前后的具体行为差异及验证方法。"
|
|
39
|
+
},
|
|
40
|
+
"exemplar": {
|
|
41
|
+
"bad": "本次 PR 旨在通过重构连接池管理逻辑进一步提升系统的稳定性与可维护性。",
|
|
42
|
+
"trap": "这不是一次普通的代码重构,而是连接池稳定性的底层重塑。",
|
|
43
|
+
"good": "修复连接池重连分支未释放旧句柄导致的连接泄漏,避免长运行后连接耗尽。",
|
|
44
|
+
"note": {
|
|
45
|
+
"en": "Name the concrete leak trigger and consequence instead of generic stability claims.",
|
|
46
|
+
"zh": "点明具体的泄漏触发分支与直接后果,不写空泛的稳定性套话。"
|
|
47
|
+
},
|
|
48
|
+
"source": "original"
|
|
49
|
+
},
|
|
50
|
+
"fixtures": {
|
|
51
|
+
"hit": [
|
|
52
|
+
"This PR updates the retry middleware to ensure a more seamless and resilient developer experience",
|
|
53
|
+
"本次 PR 旨在通过优化任务调度模块进一步提升整体系统的可维护性"
|
|
54
|
+
],
|
|
55
|
+
"clean": [
|
|
56
|
+
"This PR fixes #412 by capping exponential backoff at 8s when upstream returns HTTP 503.",
|
|
57
|
+
"本次提交在超时分支补齐文件句柄释放逻辑,单机压测 FD 占用稳定在 180 以内。"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "eng-shallow-root-cause",
|
|
63
|
+
"tier": "taste",
|
|
64
|
+
"severity": "warning",
|
|
65
|
+
"family": "evidence/root-cause",
|
|
66
|
+
"probe": "regex",
|
|
67
|
+
"zones": ["prose"],
|
|
68
|
+
"modalities": ["markdown", "text", "docx"],
|
|
69
|
+
"patterns": [
|
|
70
|
+
"(?:Root\\s+[Cc]ause|Primary\\s+[Cc]ause)\\s*[::]\\s*(?:human\\s+error|developer\\s+(?:error|mistake|oversight)|manual\\s+mistake|operator\\s+error|lack\\s+of\\s+attention)(?:\\s*[.!\\n]|$)",
|
|
71
|
+
"(?:根本原因|根因(?:分析)?|直接原因)\\s*[::]\\s*(?:人为(?:失误|疏忽|操作不当)|研发(?:疏忽|粗心)|操作失误|人员意识不到位)(?:\\s*[。!?\\n]|$)"
|
|
72
|
+
],
|
|
73
|
+
"message": {
|
|
74
|
+
"en": "Postmortem stops at 'human error' instead of identifying the missing system guardrail.",
|
|
75
|
+
"zh": "故障复盘停在“人为失误/操作不当”,没有追查缺失的系统校验或防呆机制。"
|
|
76
|
+
},
|
|
77
|
+
"deletionTest": {
|
|
78
|
+
"en": "Ask why the tooling allowed a single manual action to cause an outage, and write that missing check as the root cause.",
|
|
79
|
+
"zh": "追问“为什么发布或运维工具允许一次手误直接打挂线上”,把缺失的自动拦截写成根因。"
|
|
80
|
+
},
|
|
81
|
+
"exemplar": {
|
|
82
|
+
"bad": "根本原因:人为失误。",
|
|
83
|
+
"trap": "根本原因:值班人员风险意识有待进一步强化。",
|
|
84
|
+
"good": "根本原因:生产迁移脚本缺少库名白名单与行数上限预检,未拦截误指向主库的删除语句。",
|
|
85
|
+
"note": {
|
|
86
|
+
"en": "Point to the missing preflight check in the migration script rather than blaming the operator.",
|
|
87
|
+
"zh": "指出脚本缺失的白名单与预检机制,而非归咎个人粗心。"
|
|
88
|
+
},
|
|
89
|
+
"source": "original"
|
|
90
|
+
},
|
|
91
|
+
"fixtures": {
|
|
92
|
+
"hit": [
|
|
93
|
+
"Root cause: human error.",
|
|
94
|
+
"根本原因:人为操作不当。"
|
|
95
|
+
],
|
|
96
|
+
"clean": [
|
|
97
|
+
"Root cause: deploy runner skipped schema validation when `--fast` was set.",
|
|
98
|
+
"根本原因:灰度发布流水线未配置 5xx 超过 1% 自动回滚阈值。"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "eng-vague-action-item",
|
|
104
|
+
"tier": "taste",
|
|
105
|
+
"severity": "info",
|
|
106
|
+
"family": "evidence/actionability",
|
|
107
|
+
"probe": "regex",
|
|
108
|
+
"zones": ["prose"],
|
|
109
|
+
"modalities": ["markdown", "text", "docx"],
|
|
110
|
+
"patterns": [
|
|
111
|
+
"(?:^|\\n)\\s*(?:[-*]|\\d+\\.)\\s*(?:\\[[ xX]\\]\\s*)?(?:Add\\s+more\\s+(?:monitoring|logging|tests)|Improve\\s+(?:test\\s+coverage|error\\s+handling|documentation)|Be\\s+more\\s+careful(?:\\s+during\\s+deploys?)?|Continue\\s+to\\s+monitor(?:\\s+the\\s+situation)?)\\s*[.!]?(?=\\n|$)",
|
|
112
|
+
"(?:^|\\n)\\s*(?:[-*]|\\d+[.、])\\s*(?:\\[[ xX]\\]\\s*)?(?:加强(?:监控(?:与告警)?|测试覆盖|代码审查|风险意识)|完善(?:监控体系|日志记录|相关文档)|后续持续(?:关注|观察|跟进)|提高(?:研发质量|值班警惕性))\\s*[。!]?(?=\\n|$)"
|
|
113
|
+
],
|
|
114
|
+
"message": {
|
|
115
|
+
"en": "Wishful action item lacks a concrete target component, threshold, owner, or due date.",
|
|
116
|
+
"zh": "许愿式改进项(如“加强监控”“提高警惕”)缺少具体模块、阈值、负责人或截止时间,无法验收。"
|
|
117
|
+
},
|
|
118
|
+
"deletionTest": {
|
|
119
|
+
"en": "Rewrite as a binary-verifiable ticket: which service, what threshold or test case, who owns it, and by what date.",
|
|
120
|
+
"zh": "改成可验收的具体动作:给哪个服务加什么阈值告警或单测、谁负责、哪天上线。"
|
|
121
|
+
},
|
|
122
|
+
"exemplar": {
|
|
123
|
+
"bad": "- [ ] 加强监控与告警。",
|
|
124
|
+
"trap": "- [ ] 全面排查并持续跟进线上隐患。",
|
|
125
|
+
"good": "- [ ] 给 `checkout-api` 增加 P99 > 400ms 持续 3 分钟告警并接入值班群(负责人:李工,11 月 30 日前完成)。",
|
|
126
|
+
"note": {
|
|
127
|
+
"en": "Specify service, metric threshold, window, owner, and deadline.",
|
|
128
|
+
"zh": "写清服务名、延迟阈值、持续窗口、负责人与完成日期。"
|
|
129
|
+
},
|
|
130
|
+
"source": "original"
|
|
131
|
+
},
|
|
132
|
+
"fixtures": {
|
|
133
|
+
"hit": [
|
|
134
|
+
"- [ ] Add more monitoring.",
|
|
135
|
+
"- 加强监控与告警"
|
|
136
|
+
],
|
|
137
|
+
"clean": [
|
|
138
|
+
"- [ ] Add P99 > 400ms alert on `checkout-api` (@payments-oncall, due 2026-11-30).",
|
|
139
|
+
"- [ ] 为结算队列增加积压超过 5000 条自动告警(王工,周五前合入)。"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|