Skip to content
Back to skills

Tighten Doc

ASecurity

润色文档 / 精简文档 / 改下文档 / AI 味太重 / 废话太多 / polish / make shorter / remove AI tone;**该画时序图还是状态机 / 这里要不要配图 / 图画完了总觉得不对劲说不上哪不对 / 缺图例 / 连线没标签 / 全是表格要不要补图 / 图里字看不清** → finalize wording after substance is settled: clarify, shorten, restructure lightly, preserve decisions, and keep comments safe. Proactively draft a no-owner deliverable doc(「写一份分享/给同事的文档」). 图与表的**表示形式**(图种由主张形态推出、记法硬约束、版式契约、对比度、可跑的检查器)归本技能,**系统边界与架构决策本身仍归架构技能**。Skip while a sibling owns the substance(定稿仍回本技能): spec/PRD/标准 → product-rd-wor...

  • 6 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 2, 2026
ai-agentsgoshellnodegitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add ccoalm/ccl-skills --skill tighten-doc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tighten Doc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tighten Doc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ccoalm-tighten-doc/badge)](https://www.skillsdirectory.com/skills/ccoalm-tighten-doc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tighten-doc
description: "润色文档 / 精简文档 / 改下文档 / AI 味太重 / 废话太多 / polish / make shorter / remove AI tone;**该画时序图还是状态机 / 这里要不要配图 / 图画完了总觉得不对劲说不上哪不对 / 缺图例 / 连线没标签 / 全是表格要不要补图 / 图里字看不清** → finalize wording after substance is settled: clarify, shorten, restructure lightly, preserve decisions, and keep comments safe. Proactively draft a no-owner deliverable doc(「写一份分享/给同事的文档」). 图与表的**表示形式**(图种由主张形态推出、记法硬约束、版式契约、对比度、可跑的检查器)归本技能,**系统边界与架构决策本身仍归架构技能**。Skip while a sibling owns the substance(定稿仍回本技能): spec/PRD/标准 → product-rd-workflow; 技术方案/架构文档 → architecture 技能; 发布文档 → release-doc-writer; 测试用例文档 → test-artifact-management."
---

# tighten-doc — 文档写作与优化

Use this as the default document finalization and editing skill; new-substance authoring routes to the owner skill first. A deliverable doc is written for its reader (product / business / exec / teammate), not for the author. Default form = one-page operational/task manual: few short headings, enumerations as tables/bullets (one point per line), short sentences, no bracket piles, no template scaffolding.

## When to use

Use any time you rewrite, tighten, polish, or finalize a doc someone else must read, after owner and scope are clear: strategy, plan, spec, task card, runbook, release note, or collaborative doc.

Three modes:

- Draft: after the owner skill has settled the substance, turn rough intent, notes, meeting output, or task context into a readable first version. Route to an owner when substance is unsettled and the type matches an installed owner skill: spec/standards/guideline -> `product-rd-workflow`, test cases -> `test-artifact-management`, architecture -> architecture skill, code/correctness -> stack/review skill. For new standards/spec authoring, `product-rd-workflow` is the single entry; the hand-back marker is product-rd `owner-ready` with authority statement, doc-family layer, and enumeration evidence — after that, finish wording here. If that marker is absent for a standards/spec artifact, polish only locally and mark `pre-owner blocked` (share/publish gate below). Standalone non-spec artifacts without family references skip it. If no owner skill is installed or reachable, draft from the charter plus user/session-supplied substance — never invent substantive decisions; they stay owner/user-provided. 多轮文档先锁 charter:`references/doc-charter-first.md`
- Rewrite: restructure an existing doc so decisions, owners, gates, and next actions are easier to scan.
- Tighten: remove filler, duplication, AI tone, meta narration, and over-long sentences without deleting decisions.

**先判文档类型,再定形态**:读者是在**用一件已存在的东西**(tutorial / how-to / reference / explanation 四模式),还是要**据此决定或执行一件尚未做完的事**(方案·架构 / 调研 / 现状梳理 / 评审 / 计划)。两轴的判据、每类的首稿必答节、正文与证据分册、图形态,以及「只标记拆分候选、不自行拆分」的收尾边界,见 `references/deliverable-doc-genre-skeletons.md`。一页纸操作手册默认形态对应 how-to / reference,别硬套到其他类型上。

For spec/standard/guideline artifacts, the `pre-owner blocked` marker rule applies to all three modes — do not share/publish until the owner marker exists; local wording polish must preserve the blocked label.

Before sharing, syncing, committing, or publishing a concrete deliverable artifact, run Tighten mode by default. Do not ask the user whether to optimize unless the edit would change a substantive decision, remove required detail, or risk collaborative-comment loss. A request to write a template, SOP, report, checklist, Feishu/Lark doc, task card, or launch material already includes the optimization pass after the owner skill has settled the substance.

After multi-round edits that added, restructured, or changed reader-facing prose or meaning, always run the Tighten mode before sharing or publishing; rounds of only exempt trivial edits (typo/link/format) may record that exemption instead. **就地编辑线上文档没有「发布前」这一刻**,触发点顺延到最后一次写操作之后。查法见 `references/closeout-reread.md`。

**技术 / 参考文档:form 优化 ≠ 内容已核。** 当本轮**新增 / 改写 / 发布**了可对源码核验的承载性技术断言(API 签名、env 行为 / 优先级、字段 / label 名、默认值——这类文档常自述真值源),**且一手源用户已给、在当前工作区可得、或用户明确授权查证**时,form 清理之外要把这些断言对一手源码(SDK / specs / fixtures / 可跑命令)核一遍。核出不符:**仅 source-literal 的 typo / 名称 / 默认值笔误**可直接照证据改;**会改动 substantive contract / decision 的**只标 discrepancy / pending 交 owner(stack / review skill),tighten-doc 不接管纠错。源不可得、超出本轮范围、或只是轻量润色:只做 form 并声明「形式已优化、内容未核」,不得裸称「文档已优化 / 准确」(别把每次 tighten 滚成一次代码审计)。

## DELETE (废话 — cut these)

1. 元语自证 / doc-about-itself: "这是X不是Y文档", "本文档/本卡…", "读者是…", "别写空话". **最高频的 agent 自插入形态**:给自己新写的段落加的向导式 opener/closer —— "本节只做X", "本页/这里不维护Y", "这张表只是…", "执行时不要只按本页…", 以及自述用途的引用开场("用于配套《X》…放引用链接")。读着像帮读者,其实是 元语自证 + 废话;删掉让内容自己站住。发布任何**你自己写的**段落前,先扫它的开场/收尾句是否是这一类——这正是"我把信息写对了"之后还残留、要读者来挑的废话。(承载真实决策/边界/受众约束/例外/后果的开场不算,删的是只描述"本节存在/本节是什么"的句子。)
2. 翻旧账 / blame: "没人跟全空", "证据:…当初也写过".
3. 修辞尾巴 / 口号 used as a closer: "…= 没解决", "做得再全也…", "上线≠X" as a rallying shout.
4. 无动作语气词: "周会点名" (doesn't say who / when / what) — replace with the real mechanism.
5. 无谓条件前缀 / 连接: "…时", "节奏跑不动时", "总之", "换句话说", "值得一提的是".
6. 重复: a heading restating the table's column names; a clause duplicated in another section. **Index docs especially**: define each term/role exactly once — later sections reference, never re-explain. When a line is challenged, first check if its content already appears in another section; keep only the delta. Aggregation / cross-cut / "references" sections are the prime filler suspect (they compress per-card content into slash-soup that also duplicates the cards) — collapse to a plain short gate list or delete. 斜杠堆、子集并列、跨节正反复述、图文双写、表行粒度按 `references/writing-judgments.md`(`## 隐蔽重复与表格行粒度`)判留删。
7. 病句 / bulk-replace artifacts: e.g. "一键回退排障手册" (missing separator).
8. 自造版本号或前缀: never invent "v7 战略文档" — verify the real title first; a `_v1` filename ≠ the doc title.
9. 编辑性括号副标题: "(按对的赌注不折中)", "(诚实校准)", "(怎么算通过)", "(含…前置底座)".
10. 画蛇添足的解释尾: "中途不换手", "(DoD)" tacked onto an already-clear line.
11. 假目标: a 目标/DoD cell that is a bare verb with no object or threshold ("V1 修完 + V2 决议", "止血/打通/完善", "韧性补齐"). Not filler-to-delete but filler-to-fix → rewrite as a falsifiable DoD traced to the owning card (never invent a threshold); if the real DoD lives in that card, replace with the pointer "见〔X 域卡〕". If the cell references an undefined term (e.g. "V2"), trace it to its definition point and either inline-gloss it once so the cell is self-explanatory, or point to the card — a reader having to ask "X 是啥" means the cell failed.
12. 会话视角泄漏:句子立足于写作会话而非文档;**必须先读 `references/session-vantage-leakage.md`,逐项走完 8 类:死会话 / PR-stack / 变更史与无锚点 / 评审编排 / 辩护 / 推导账 / hedge / 工作语言**;HEAD-reader 可解?存事实、删过程;勿删稳定版本、issue、抑制理由、反事实钉、实测。

## KEEP (实质 — NOT filler; deleting them drops a decision)

owner · 硬规则 · 完成标准/DoD · 里程碑 · 数值阈值 · the real build-vs-buy decision · severity/consequence rationale ("=资损法律风险 / =假安全 / =刑责风险 / 损失大" — that IS the judgment, keep it). **Word it as severity, never as "死".** The consequence label is KEEP, but the word "死" (资损法律死/刑责死/信任死/组织死) is rejected — reword to 风险高 / 损失大 / 刑责风险 / 信任崩 / 组织级风险. ("死" only stays in its non-consequence senses: 死线=deadline, 死约束=hard constraint, 死信=dead-letter, 钉死/封死=lock, 生死=critical-emphasis.) Compression ≠ deleting decisions: before compressing, extract the decided-points checklist (目标 / owner / 硬规则 / 后果论据 / build-vs-buy / DoD / 里程碑 / 最小交付) and verify each survives the rewrite.

## FORM

- Named hyperlinks, never bare URLs: `[真实文档名](url)`. Verify the real title before naming a reference; don't fabricate version prefixes.
- Collaborative docs that support rich structure (Feishu/Lark Docx/wiki, Confluence-like pages) should use the platform's rich-text structure when creating or materially rewriting a document: headings, tables, bullets, and named hyperlinks should be real document nodes, not plain Markdown pasted as body text. Use Markdown only when the target surface is Markdown-native or the user explicitly asks for it.
- In Feishu/Lark standards families, document references must be named hyperlinks, not quoted plain titles such as `《测试规范》`. If a sibling doc is referenced more than once, verify the title once and reuse the same named link across the family.
- **断言写到证据等级为止。** 交付结论严格区分「来源明确陈述 / 有证据支持的推论 / 作者判断」三态。改写任何断言的口气、措辞或主张状态前,以及调整代码块、枚举、表格列、内部引用、标题与文档族结构前,必须读 `references/writing-judgments.md`(`## 交付形态与结构细则`)。
- **外部基线 / 标准值入文档 = 独立标注 + 命名来源 + 内部门(若有)仍权威。** **评自己的稿是这条的另一半**:**评自己产出的文档的可实测呈现属性(加粗密度、句长、结构层级)时,或为可发现性词汇(包 / 仓库的 `description`、`keywords`、tags / topics、搜索面标题词、产品定位名词)选词时**,先按事先冻结的抽样框取同体裁公开样本建实测基准,再下判断 / 选词——**这两类只是已知实例:其他属性只要问的是「相对同类如何」且有同体裁公开样本,同样适用,不得因没被点名就放过;但内部验收门、硬限额与对错 / 安全的直接核验照门判、不记「未对标」;**门里若含「同类怎么做」的前提,它仍欠本条****;**引用外部基线或评自己的稿,都先读 `references/self-benchmark-baseline.md` 并照它执行**——外部基线与内部门的边界、抽样框冻结与纳排、不得挑样、中英分开、阈值核源、词频读法、frontmatter 归属都在那。
- No inline `|` / pipe-delimited lists (RACI / 分工) — break into bullets or a table.
- Short sentences, one point per line, enumerations as tables.
- **表达形式匹配内容**:**图种由主张形态定**(有事件触发→状态机 / 消息序→时序 / 随完成流转→流程);**画了必须有标题与图例、连线单向且标签具体**;**量级对比别全压进表**;选型与密度见 `references/writing-judgments.md`,图的记法与检查器见 `references/figure-and-table-craft.md`。
- Terms unified and glossed once in a 白话 section (e.g. 红灯 = 卡住/NO-GO 到点必升级; 排障手册 = 排障 SOP). Also catch **intra-doc term drift**: the same concept written two different ways in one doc → align to that doc's prevailing term. Drift includes **unit drift in a sequenced ladder** (a milestone list mixing 第N周 and N天 — align the lone odd unit to the ladder's prevailing one). Drift 还包括**语域漂移**:改写时新句用词不得高出原文水位、抬高读者门槛(查法同上引用)。 陌生或自造缩写仅在明显缩短且反复使用时引入;正式名称按下条保留。
- Process self-justification stays in chat, never in the file.

## RESTRAINT

- If one sentence says it, don't pile modifiers.
- Delete only when nothing is lost (compression ≠ deleting decisions).
- Generic process docs should carry rules, gates, owners, and acceptance logic; project evidence should live in launch notes, evaluation reports, appendices, or linked child docs. Do not make a general SOP unreadable by embedding code paths, source evidence tables, or full implementation proof unless the doc is explicitly an audit/report.
- **Compression ≠ compressing past comprehension.** Over-tightening collapses a rule into a bare noun-pile with no verb/object (a list of nouns where each item names a thing but not what to DO with it), so the reader can't act. That noun-pile is the over-compression signal — readability > terseness. Fix by restoring verb+object (who does what to which, by when), not by compressing more. After a 干练/简化 pass, re-read each item as a stranger: if you can't tell the action from the phrase, it went too far.
- Prefer the plainer word: "负责到完成" not "负责到完成定义"; drop jargon the audience won't parse.

## 执行卡精简范式 (domain/execution cards only)

- 生成、修改或审阅执行卡/域卡前,必须先读[执行卡精简范式](references/execution-card-patterns.md),按其中的骨架与前提被拒重推流程执行。
- **Applicability guard — this 范式 is ONLY for 执行/域卡.** Do NOT apply it to: a **spec** (the detail IS the deliverable), an **ops runbook/playbook** (steps are the value), a **strategy doc** (WHAT/WHY/WHEN, different purpose), or an **index doc** (rule there is define-once + cross-section dedup, not altitude-strip). Blanket-applying the strip to those destroys them — stop and ask scope instead of auto-processing a different doc kind.

## 句子层(吸收 Strunk 与 Google Tech Writing,仅取中文交付文档适用项)

- 歧义代词消歧:它 / 它们 / 其 必须先有名词、后有代词,指代名词离得远或中间插入另一名词就直接重复名词;指示词 这 / 那 / 该 / 此 要么换成名词,要么后接名词(「这会拖慢构建」→「这次全量扫描会拖慢构建」)。
- 结论前置(BLUF / 倒金字塔):供扫读的 bullet、段落默认以**结论 / 动作 / 主题信息**开头,例子和非结论性背景后置;首句须准确预告本段内容,叙事或推导可按阅读目的组织。**改变结论、适用范围、红线 / NO-GO / 阈值 / 例外 / 责任边界的条件必须与结论同句同屏**,不得后置或塞括号弱化。只重排 bullet/段落内部,不得删除或降级 KEEP 项,执行卡仍按固定骨架排序。
- 改写句子层(主动语态、肯定式、具体化、删冗词、从句、强调位、分词歧义)时,必须加载 `references/writing-judgments.md`(`## 句子层精简细则`)。

## 中文自然表达(吸收 humanizer-cn 的交付文档子集)

- 清除 AI 腔、广告腔、宏大意义词、动词堆砌、模糊归因或套路结尾时,必须加载 `references/writing-judgments.md`(`## 中文自然表达细则`),保留用户认可的紧凑表达且不引入创作向技巧。

## COMMENT-SAFE EDITING (hard rule)

Never destroy collaborative comments. Before editing a collaborative doc, fetch its real title and count comments.

- 0 team comments on a doc you own: full overwrite can be safe after title/body checks.
- >0 team comments: do not overwrite the whole doc. Use a platform-safe targeted edit, or return a read-only audit for the user to apply.
- **A restructure that deletes, renames, merges, or reorders a section must re-resolve every internal reference that points into the changed area.** The reference-label residual-scan verifies a pointer's *wording* (the old title/label is gone), but a Rewrite that removes or renames a target leaves an `[title](#anchor)`, a "见〔X 域卡〕", a "see the Y section", or a numbered-section cross-reference **dangling** even when its text is untouched — and a moved KEEP/decided-point a pointer no longer reaches is a silent drop. After a structural edit, list the document's internal cross-references/anchors and confirm each still resolves to a present target (repoint or remove otherwise) — the prose-navigation counterpart of the comment-anchor integrity rules below.

  - **Inbound references must be re-resolved too — that half is what link checkers miss.** The re-resolve above is intra-document, but a deleted/renamed section is just as often named from *other* artifacts, including **non-Markdown files a doc linter never opens** (install/build scripts, CI configs, Makefile help, code comments); a prose pointer (`见 README 的「X」段`) is invisible to a link checker anyway, since those resolve the *file* and commonly discard the `#fragment`. So on any heading you delete or rename, run `git grep -F --untracked -- "$old_heading"` repo-wide, then repeat for its **anchor slug** (`install-and-update`) — `[x](README.md#install-and-update)` carries the slug, not the heading text, and the link checker strips the fragment, so the literal search alone misses every anchored link. `-F --` keeps a `-`-leading heading from parsing as an option; `--untracked` keeps a new unstaged file from reading as clean. Read the exit code: `0` = repoint the hits, `1` = clean, `≥2` = the scan failed and proves nothing. Neither pass sees a paraphrase — that needs a read. Failure shape: a README section is dropped, and a sibling doc plus a shell script keep telling readers to go read it — each pointer's own wording is untouched, so every residual-scan and link gate stays green until a human reads both files.
- If changing a quoted/commented string, preserve anchors deliberately or delete/re-add only your own comment at the new text.
- After any comment-affecting edit, re-list comments and verify anchors/count; do not infer safety from substring search alone.
- For Feishu/Lark command mechanics, load `references/comment-safe-feishu.md` before editing.

## WORKFLOW

- **每次调用都必须先读两份细则,不按场景挑**:动笔前读 `references/writing-judgments.md`(DELETE / FORM / 句子层 / 中文自然表达的细则与词表);报完成、发布、同步、commit 或 push 前读 `references/closeout-reread.md`(7 项 closeout checklist 与全量清扫);正文各条只指向其中小节。
- **Global boilerplate-strip + retitle = per-card guarded, never a blanket `replace` fallback.** When deleting a globally-duplicated line and retitling its section across N docs: (1) check the line isn't that doc's *substance* — a line that is boilerplate in most docs may be the entire point of one doc; stripping there destroys content. (2) the new header must name **all** sub-blocks still in the section, not just the first — a blanket `replace` fallback will mis-title a doc whose section held more than the stripped part. Per-doc compute the remaining content and title to it; exclude any doc the user flagged as do-not-touch.

0. 读者批注:判根因类、全文修同类(`references/annotation-driven-revision.md`)。
1. Extract the decided-points checklist from the current text.
2. Apply the DELETE list; keep everything in KEEP.
3. Rewrite to FORM; confirm every decided point still present.
4. Dirty-scan = 0 (no internal codes / agent names / meta / Day-Week tokens, no bare-URL refs, no AI腔/广告腔/假深度, no `|`). A keyword grep is a **fixed-token prefilter, not sufficient** — the 元语自证 / 修辞尾 / 废话-prefix / 跨节重复 classes aren't fixed tokens, so dirty-scan-0 needs the grep **plus** a human read against the DELETE/FORM rubric. "脏扫 0" claimed from grep alone is the false-clean failure.
5. Push back, respecting the COMMENT-SAFE rule.

- **收尾前必过 closeout 闸与全量清扫规则**:宣布「已优化 / 脏扫 0」,发布、同步、commit、push,或对已定稿交付物做后续修订、重生成同步、读者版/工作版拆分前,必须先读 `references/closeout-reread.md`(7 项 closeout checklist、全卡/全族清扫、standalone-paste 解析、新稿与重生成清扫、终版零损核对、读者版与工作版分离)。
- **交付面:改完 ≠ 交出去(投放 / 退役 / 导出保真)。** 上两条管的是文内不丢与正副本权威;交付物还有一组**文外的面**——远端副本、附件、导出件,以及历史上生成过的多代同名产物。逐面判定,未判定不得报「已更新 / 已同步」:**①投放与定位都要回读远端、不认本地动作**——上传 / 推送命令返回成功不等于那一份已经变;核到本轮的可识别标志才算已投放,放进多级容器的另核落点。发布面有可用的机器校验器时,回读后跑一遍、失败即返工——校验绿只是人读性的代理,交付物是写给人看的,人读 sweep 照跑。**推不上去是 blocked 不是「不投放」**,有 blocked 面或待安全处置面即不得报已同步。**②当前版给稳定入口,旧版退役只用可逆做法,本条不授权删除**;**被要求删除**的面单标 `待安全处置` 转出给安全 / 法务 / 内容 owner,与投放类 blocked 分开列,其结案前不得报已同步。**③交互源导成静态图前全部展开再导**,导出后对照交互源清点承载性实体。四态定义、定位判据、投放失败形态与绕过路径、退役的两种可逆做法、转出规则与静态导出的 oracle 见 `references/delivery-face-closeout.md`。

When the user probes sentence-by-sentence ("这是废话么 / 什么意思 / 能精简么"), answer per this rubric, give the tightened version, and apply it — don't ask permission unless the comment-safe red line is triggered.

## Reference Loading

- For Feishu/Lark comment preservation, range update mechanics, overwrite pitfalls, and cross-doc rename safety, read `references/comment-safe-feishu.md`.
- 「外部基线」条一触发就必读 `references/self-benchmark-baseline.md`。
- 交付面收尾(投放回读、三态定义与绕过路径、旧版退役与「被要求删除」的转出、静态导出全展开)展开在 `references/delivery-face-closeout.md`;closeout 第 7 项与「交付面」条都指向它。

## CROSS-MODEL / CODEX CO-REVIEW CAVEAT

Cross-model agreement is a recommendation, not a decision: take only rubric hits, reject every 口语化→书面 rewrite and any re-expansion of a deliberately terse line, present its output verbatim, state what you took/rejected and why — `references/cross-model-co-review.md`.

Files in this skill

  • SKILL.md48.8 KB
  • agents/openai.yaml234 B
  • references/annotation-driven-revision.md1.2 KB
  • references/comment-safe-feishu.md9.7 KB
  • references/cross-model-co-review.md715 B
  • references/deliverable-doc-genre-skeletons.md19.9 KB
  • references/delivery-face-closeout.md19.2 KB
  • references/doc-charter-first.md4.1 KB
  • references/figure-and-table-craft.md27 KB
  • references/self-benchmark-baseline.md3.3 KB
  • references/session-vantage-leakage.md7.9 KB
  • scripts/AGENTS.md4.1 KB
  • scripts/doc-lint-repo.py8.7 KB
  • scripts/doc-lint.py12.4 KB
  • scripts/figure-lint.py55.5 KB
  • scripts/mutation_probe.sh4.4 KB
  • scripts/test_doc_lint_repo.py18.5 KB
  • scripts/test_figure_and_doc_lint.sh20 KB
  • scripts/tests/doc/control.md118 B
  • scripts/tests/doc/empty-header.md52 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.