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.
- 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 +360 -252
- package/README.zh-CN.md +390 -240
- 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 +173 -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 +290 -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/references/essay.md +1 -1
- package/skills/dislop/references/essay.zh-CN.md +1 -1
- package/skills/dislop/references/office.md +1 -1
- package/skills/dislop/references/office.zh-CN.md +1 -1
- package/skills/dislop/references/web-ui.md +1 -1
- package/skills/dislop/references/web-ui.zh-CN.md +1 -1
- package/skills/dislop/references/work-docs.md +1 -1
- package/skills/dislop/references/work-docs.zh-CN.md +1 -1
- package/src/cli-main.mjs +210 -0
- package/src/commands/check-fix.mjs +169 -0
- package/src/commands/doctor.mjs +110 -0
- package/src/commands/init.mjs +49 -0
- package/src/commands/login.mjs +82 -0
- package/src/commands/model.mjs +130 -0
- package/src/commands/packs.mjs +44 -0
- package/src/commands/verify.mjs +133 -0
- package/src/commands/voice.mjs +84 -0
- package/src/kernel/config.mjs +232 -0
- package/src/kernel/document-model.mjs +1412 -0
- package/src/kernel/fact-gate.mjs +615 -0
- package/src/kernel/file-discovery.mjs +139 -0
- package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +532 -893
- package/src/kernel/pack-loader.mjs +715 -0
- package/src/kernel/patcher.mjs +341 -0
- package/src/kernel/pipeline.mjs +267 -0
- package/src/kernel/prompt-assembler.mjs +307 -0
- package/src/kernel/voice-profile.mjs +177 -0
- package/src/mcp/stdio-server.mjs +372 -0
- package/src/runners/auto-fix.mjs +59 -0
- package/src/runners/interactive-tty.mjs +461 -0
- package/src/runners/reporters.mjs +256 -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 +136 -0
- package/src/runtime/providers/gemini.mjs +91 -0
- package/src/runtime/providers/local-model.mjs +139 -0
- package/src/runtime/providers/openai-compat.mjs +130 -0
- package/src/runtime/router.mjs +315 -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": "0.
|
|
5
|
-
"description": "Cutting AI slop is real productivity.
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "dislop-ai",
|
|
8
8
|
"url": "https://dislop.com"
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"anti-slop",
|
|
15
15
|
"de-slop",
|
|
16
16
|
"ai-slop",
|
|
17
|
-
"humanizer",
|
|
18
17
|
"writing",
|
|
19
18
|
"linter",
|
|
20
19
|
"proofreading",
|
|
@@ -27,15 +26,15 @@
|
|
|
27
26
|
"com.openai": {
|
|
28
27
|
"interface": {
|
|
29
28
|
"displayName": "dislop",
|
|
30
|
-
"shortDescription": "
|
|
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": "0.
|
|
5
|
+
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter in docs, web UI & slides.",
|
|
6
|
+
"version": "1.0.1",
|
|
7
7
|
"websiteUrl": "https://dislop.com",
|
|
8
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: 0.
|
|
4
|
-
description: "Use when drafting or revising text a person will read: README, docs, PR descriptions, release notes, RFCs, postmortems, CLI help/errors, emails, essays, web pages and UI copy (HTML/CSS/JSX), or Word and PowerPoint files. Removes AI-sounding phrasing, chatbot leftovers, placeholders, and template layouts without changing facts.
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "Use when drafting or revising text or deliverables a person will read: README, docs, PR descriptions, release notes, RFCs, postmortems, CLI help/errors, emails, essays, web pages and UI copy (HTML/CSS/JSX/SVG), or Word and PowerPoint files. Removes AI-sounding phrasing, chatbot leftovers, placeholders, and template layouts without changing facts."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# dislop
|
|
8
8
|
|
|
9
|
-
Pick the single card
|
|
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,7 +1,7 @@
|
|
|
1
1
|
# Essays, Columns & Narrative Non-Fiction
|
|
2
2
|
|
|
3
3
|
Scope: Long-form essays, newsletters, columns, op-eds, and reported sketches.
|
|
4
|
-
CLI
|
|
4
|
+
CLI check: `dislop check <essay.md> --format agent` (optional personal voice baseline: `dislop voice extract <past1.md> <past2.md>`).
|
|
5
5
|
|
|
6
6
|
## Rules & Fixes
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Word(`.docx`)与演示文稿(`.pptx`)
|
|
2
2
|
|
|
3
3
|
适用范围:Word 交付方案与报告(`.docx`)、汇报幻灯片(`.pptx`)、单页大纲及 Office XML 或文档接口编辑。
|
|
4
|
-
检查命令:`dislop check <file.docx-or-pptx> --
|
|
4
|
+
检查命令:`dislop check <file.docx-or-pptx> --format agent`(自动挂载 `slide-deck`、`artifact-qa` 与 `prose`)。
|
|
5
5
|
|
|
6
6
|
## 常见问题与改法
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Web UI, Components & Interface Copy
|
|
2
2
|
|
|
3
3
|
Scope: Web pages, CSS, HTML, JSX/TSX components, dashboards, and browser interface copy.
|
|
4
|
-
CLI
|
|
4
|
+
CLI check: `dislop check <dir> --pack web-ui --format agent`
|
|
5
5
|
|
|
6
6
|
## Rules & Fixes
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|