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.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +7 -8
- package/.cursor-plugin/plugin.json +2 -3
- package/.pre-commit-hooks.yaml +5 -12
- package/PRODUCT.md +19 -63
- package/README.md +358 -249
- package/README.zh-CN.md +391 -237
- package/action.yml +30 -39
- package/bin/dislop-mcp.mjs +3 -4
- package/bin/dislop.mjs +4 -4594
- package/gemini-extension.json +2 -2
- package/llms-install.md +68 -0
- package/package.json +17 -63
- package/packs/common/artifact-qa/pack.json +5 -0
- package/packs/common/artifact-qa/prompts/rules.md +11 -0
- package/packs/common/artifact-qa/scripts/index.mjs +235 -0
- package/packs/common/slide-deck/pack.json +6 -0
- package/packs/common/slide-deck/prompts/rules.md +11 -0
- package/packs/common/slide-deck/scripts/index.mjs +62 -0
- package/packs/common/web-ui/pack.json +6 -0
- package/packs/common/web-ui/prompts/rules.md +11 -0
- package/packs/common/web-ui/scripts/index.mjs +80 -0
- package/packs/en/artifact-qa/pack.json +6 -0
- package/packs/en/artifact-qa/prompts/rules.md +14 -0
- package/packs/en/artifact-qa/scripts/index.mjs +90 -0
- package/packs/en/prose/pack.json +7 -0
- package/packs/en/prose/prompts/rules.md +26 -0
- package/packs/en/prose/scripts/index.mjs +293 -0
- package/packs/en/slide-deck/pack.json +7 -0
- package/packs/en/slide-deck/prompts/rules.md +17 -0
- package/packs/en/slide-deck/scripts/index.mjs +81 -0
- package/packs/en/web-ui/pack.json +7 -0
- package/packs/en/web-ui/prompts/rules.md +20 -0
- package/packs/en/web-ui/scripts/index.mjs +103 -0
- package/packs/zh/artifact-qa/pack.json +6 -0
- package/packs/zh/artifact-qa/prompts/rules.md +14 -0
- package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
- package/packs/zh/prose/pack.json +7 -0
- package/packs/zh/prose/prompts/rules.md +26 -0
- package/packs/zh/prose/scripts/index.mjs +305 -0
- package/packs/zh/slide-deck/pack.json +7 -0
- package/packs/zh/slide-deck/prompts/rules.md +17 -0
- package/packs/zh/slide-deck/scripts/index.mjs +75 -0
- package/packs/zh/web-ui/pack.json +7 -0
- package/packs/zh/web-ui/prompts/rules.md +20 -0
- package/packs/zh/web-ui/scripts/index.mjs +98 -0
- package/plugin.json +5 -6
- package/server.json +2 -2
- package/skills/deslop-docs/SKILL.md +10 -8
- package/skills/deslop-slides-docx/SKILL.md +7 -8
- package/skills/deslop-verify/SKILL.md +7 -8
- package/skills/deslop-web-ui/SKILL.md +7 -8
- package/skills/dislop/SKILL.md +16 -28
- package/skills/dislop/agents/openai.yaml +1 -1
- package/skills/dislop/references/essay.md +6 -6
- package/skills/dislop/references/essay.zh-CN.md +6 -6
- package/skills/dislop/references/office.md +5 -5
- package/skills/dislop/references/office.zh-CN.md +5 -5
- package/skills/dislop/references/web-ui.md +4 -4
- package/skills/dislop/references/web-ui.zh-CN.md +4 -4
- package/skills/dislop/references/work-docs.md +7 -7
- package/skills/dislop/references/work-docs.zh-CN.md +7 -7
- package/src/cli-main.mjs +292 -0
- package/src/commands/check-fix.mjs +324 -0
- package/src/commands/doctor.mjs +132 -0
- package/src/commands/init.mjs +55 -0
- package/src/commands/login.mjs +82 -0
- package/src/commands/model.mjs +130 -0
- package/src/commands/packs.mjs +81 -0
- package/src/commands/verify.mjs +165 -0
- package/src/commands/voice.mjs +84 -0
- package/src/commands/worklog.mjs +424 -0
- package/src/kernel/config.mjs +759 -0
- package/src/kernel/document-model.mjs +1432 -0
- package/src/kernel/fact-gate.mjs +775 -0
- package/src/kernel/file-discovery.mjs +296 -0
- package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +615 -890
- package/src/kernel/pack-loader.mjs +801 -0
- package/src/kernel/pack-validator.mjs +491 -0
- package/src/kernel/patcher.mjs +471 -0
- package/src/kernel/pipeline.mjs +530 -0
- package/src/kernel/prompt-assembler.mjs +336 -0
- package/src/kernel/version.mjs +7 -0
- package/src/kernel/voice-profile.mjs +180 -0
- package/src/mcp/stdio-server.mjs +442 -0
- package/src/runners/auto-fix.mjs +74 -0
- package/src/runners/interactive-tty.mjs +488 -0
- package/src/runners/reporters.mjs +272 -0
- package/src/runtime/chunker.mjs +87 -0
- package/src/runtime/json-extract.mjs +144 -0
- package/src/runtime/privacy-gate.mjs +97 -0
- package/src/runtime/providers/anthropic.mjs +65 -0
- package/src/runtime/providers/cloud.mjs +138 -0
- package/src/runtime/providers/gemini.mjs +91 -0
- package/src/runtime/providers/local-model.mjs +147 -0
- package/src/runtime/providers/openai-compat.mjs +130 -0
- package/src/runtime/router.mjs +324 -0
- package/src/runtime/worklog.mjs +904 -0
- package/src/sdk/index.mjs +137 -0
- package/models/manifest.json +0 -90
- package/models/pocket-slop-v1.json +0 -1
- package/packs/business-brief/pack.json +0 -937
- package/packs/core/pack.json +0 -209
- package/packs/deck-and-ui/pack.json +0 -539
- package/packs/engineering-spec/pack.json +0 -144
- package/packs/executive-deck/pack.json +0 -98
- package/packs/literary-essay/pack.json +0 -344
- package/packs/regulated-comms/pack.json +0 -99
- package/patterns/ai-tic-rubric.json +0 -252
- package/patterns/banks/composite-fusion.json +0 -48
- package/patterns/banks/discourse-rhythm.json +0 -95
- package/patterns/banks/lexical-signals.json +0 -92
- package/patterns/banks/syntactic-frames.json +0 -52
- package/patterns/banks/visual-deck.json +0 -44
- package/patterns/dimensions/artifacts.json +0 -121
- package/patterns/dimensions/discourse.json +0 -438
- package/patterns/dimensions/lexical.json +0 -198
- package/patterns/dimensions/rhythm.json +0 -258
- package/patterns/dimensions/syntactic.json +0 -285
- package/patterns/dimensions/visual-and-deck.json +0 -530
- package/patterns/taxonomy.json +0 -112
- package/src/core.mjs +0 -5497
- package/src/dislop/review-picker.vim +0 -114
- package/src/local-model.mjs +0 -997
- package/src/pattern-engine.mjs +0 -1003
- package/src/pocket-model.mjs +0 -729
- package/src/review-apply.mjs +0 -151
- 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": "
|
|
5
|
-
"description": "Cutting AI slop is real productivity.
|
|
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": "
|
|
31
|
-
"longDescription": "Cutting AI slop is real productivity.
|
|
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
|
|
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.
|
|
6
|
-
"version": "
|
|
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
|
|
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
|
|
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
|
|
12
|
+
1. Run a compact read-only check before rewriting:
|
|
13
13
|
```bash
|
|
14
|
-
npx --yes dislop check <path> --
|
|
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)
|
|
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
|
|
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
|
|
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> --
|
|
14
|
+
npx --yes dislop check <deck.pptx-or-doc.docx> --format agent
|
|
15
15
|
```
|
|
16
|
-
2. Fix
|
|
17
|
-
3.
|
|
18
|
-
4.
|
|
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
|
|
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
|
|
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
|
|
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> --
|
|
14
|
+
npx --yes dislop check <revised-file> --format agent
|
|
15
15
|
```
|
|
16
|
-
2.
|
|
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>
|
|
18
|
+
npx --yes dislop verify --git HEAD <revised-file>
|
|
19
19
|
```
|
|
20
|
-
3. If
|
|
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
|
|
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
|
|
8
|
+
Use when reviewing or cleaning frontend components, landing pages, dashboards, or SVGs.
|
|
9
9
|
|
|
10
10
|
## Workflow
|
|
11
11
|
|
|
12
|
-
1. Run the
|
|
12
|
+
1. Run the multi-modal UI & artifact check:
|
|
13
13
|
```bash
|
|
14
|
-
npx --yes dislop check <ui-dir-or-file> --
|
|
14
|
+
npx --yes dislop check <ui-dir-or-file> --format agent
|
|
15
15
|
```
|
|
16
|
-
2.
|
|
17
|
-
3.
|
|
18
|
-
4.
|
|
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.
|
package/skills/dislop/SKILL.md
CHANGED
|
@@ -1,52 +1,40 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dislop
|
|
3
|
-
version:
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
35
|
-
3. Keep source
|
|
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
|
|
40
|
-
2.
|
|
41
|
-
3.
|
|
42
|
-
4.
|
|
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 &
|
|
33
|
+
## 4. Check & Verify
|
|
46
34
|
|
|
47
|
-
Run a check
|
|
48
|
-
1.
|
|
49
|
-
2.
|
|
50
|
-
3. Otherwise, review your draft against Sections 2–3 and the loaded card
|
|
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 —
|
|
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
|
|
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. **
|
|
9
|
-
2. **Cut staged self-Q&A &
|
|
10
|
-
3. **Break
|
|
11
|
-
4. **End on the last concrete scene (`
|
|
12
|
-
5. **Restrain em-dashes & binary pivots (`excessive-em-dash
|
|
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> --
|
|
4
|
+
检查命令:`dislop check <essay.md> --format agent`(对照个人文风可运行 `dislop voice extract <past1.md>`)。
|
|
5
5
|
|
|
6
6
|
## 常见问题与改法
|
|
7
7
|
|
|
8
|
-
1. **保持长短句自然错落(`
|
|
9
|
-
2.
|
|
10
|
-
3.
|
|
11
|
-
4. **停在最后一个现场画面,别强行升华(`
|
|
12
|
-
5. **纠回中文标点、否定转折腔与生硬译文腔(`
|
|
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
|
|
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
|
|
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-
|
|
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 (`
|
|
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> --
|
|
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-
|
|
11
|
-
4. **控住新建幻灯片密度且不重复数字(`slide-word-wall`、`slide-bullet-overload`、`slide-autofit-shrink`)**:起草单页控制在 120 字和 5–6 条要点以内,不用缩排硬塞,标题写过的数字不要在要点里反复重复;改旧稿时不要为了凑字数删掉原稿事实。
|
|
12
|
-
5. **打破连续同构模板页(`
|
|
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
|
|
4
|
+
CLI check: `dislop check <dir> --pack web-ui --format agent`
|
|
5
5
|
|
|
6
6
|
## Rules & Fixes
|
|
7
7
|
|
|
8
|
-
1. **Zero dead controls (`
|
|
9
|
-
2. **Skip stock AI chrome (`
|
|
10
|
-
3. **Skip secondary fallback templates (`
|
|
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
|
|
4
|
+
检查命令:`dislop check <dir> --pack web-ui --format agent`
|
|
5
5
|
|
|
6
6
|
## 常见问题与改法
|
|
7
7
|
|
|
8
|
-
1. **清零死控件(`
|
|
9
|
-
2. **去掉第一代默认 AI 模板(`
|
|
10
|
-
3. **别退回第二代替代模板(`
|
|
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
|
|
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
|
|
9
|
-
2. **Cut macro preambles & future-gazing (`
|
|
10
|
-
3. **Break low-fact buzzword clusters (`cooccurrence-
|
|
11
|
-
4. **Keep PRs, CLI copy & postmortems factual (`
|
|
12
|
-
5. **Cut absolute claims & unanchored multipliers
|
|
13
|
-
6. **No invented attribution or bold list walls (`
|
|
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> --
|
|
4
|
+
检查命令:`dislop check <path> --format agent`(改稿后运行 `dislop verify --git HEAD <path>` 核验事实)。
|
|
5
5
|
|
|
6
6
|
## 常见问题与改法
|
|
7
7
|
|
|
8
|
-
1.
|
|
9
|
-
2.
|
|
10
|
-
3. **拆散公文黑话与四字排比(`
|
|
11
|
-
4. **改实研发复盘、CLI 文案与改进项(`
|
|
12
|
-
5.
|
|
13
|
-
6. **保留原始出处标签,别堆加粗列表,别缩成残句(`
|
|
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
|
|