Skip to content

NocodeMrLi/mr-li-writer-skill

mr-li-writer

Verified

面向中文内容创作的编辑判断、研究、策划、写作与平台原生交付工作流。根据标题、素材、参考资料、核心想法或模糊灵感,先识别读者任务、材料条件和创新必要性,再按需完成语境扫描、可写性判断与方向校准,并区分发布平台与内容目标,进行事实检索、观点设计、平台原生正文写作、标题策划和对应交付。适用于公众号文章、知乎回答、小红书原生笔记、官网/网页、个人博客、行业解读、实用指南和基于素材的扩展研究写作。

FileKindSize
SKILL.mdexecutableskill md62.0 KB
agents/openai.yamlexecutablescript12.9 KB
assets/gzh-design/LICENSEexecutablescript34.2 KB
assets/gzh-design/NOTICE.mdmarkdown568 B
assets/gzh-design/assets/preview-template.htmlexecutablescript3.8 KB
assets/gzh-design/references/common-components.mdexecutablescript14.3 KB
assets/gzh-design/references/eval-cases.mdexecutablescript5.7 KB
assets/gzh-design/references/format-normalize.mdexecutablescript4.4 KB
assets/gzh-design/references/theme-generator.mdexecutablescript25.3 KB
assets/gzh-design/references/theme-graphite-minimal.mdexecutablescript34.1 KB
assets/gzh-design/references/theme-index.mdexecutablescript3.1 KB
assets/gzh-design/references/theme-moyu-green.mdexecutablescript46.1 KB
assets/gzh-design/references/theme-moyu-ticket.mdexecutablescript24.7 KB
assets/gzh-design/references/theme-olive-journal.mdexecutablescript56.2 KB
assets/gzh-design/references/theme-red-white.mdexecutablescript29.9 KB
assets/gzh-design/references/theme-zen-whitespace.mdexecutablescript23.5 KB
assets/mr-li-writer-promo-poster.pngbinary179.4 KB
assets/mr-li-writer-promo-silent.mp4binary1.2 MB
assets/readme-banner.svgother5.3 KB
assets/readme-showcase/moyu-green-content.jpgbinary281.1 KB
assets/readme-showcase/moyu-green-cover.jpgbinary183.8 KB
assets/readme-showcase/moyu-green-list.jpgbinary203.4 KB
assets/readme-showcase/moyu-green-long.jpgbinary431.9 KB
assets/readme-showcase/olive-journal-content.jpgbinary177.7 KB
assets/readme-showcase/olive-journal-cover.jpgbinary214.2 KB
assets/readme-showcase/olive-journal-ending.jpgbinary154.1 KB
assets/readme-showcase/olive-journal-long.jpgbinary352.3 KB
assets/readme-showcase/red-white-cover.jpgbinary183.1 KB
assets/readme-showcase/red-white-long.jpgbinary405.3 KB
assets/readme-showcase/red-white-section.jpgbinary227.4 KB
assets/readme-showcase/red-white-table.jpgbinary219.4 KB
references/commercial-source-terms.txtmarkdown389 B
references/delivery-protocol.mdmarkdown11.7 KB
references/editorial-evaluation-protocol.mdmarkdown3.1 KB
references/editorial-routing-protocol.mdmarkdown6.2 KB
references/genre-structure-protocol.mdmarkdown7.5 KB
references/high-impact-writing-protocol.mdmarkdown6.2 KB
references/humanize-rules.mdexecutablescript11.5 KB
references/ideation-protocol.mdmarkdown6.7 KB
references/lint-checks.mdmarkdown3.9 KB
references/opening-design-protocol.mdmarkdown9.2 KB
references/platform-native-protocol.mdmarkdown19.3 KB
references/research-protocol.mdexecutablescript13.9 KB
references/title-rules.mdexecutablescript9.2 KB
references/writing-rules.mdexecutablescript18.4 KB
scripts/build_gzh_html.pyexecutablescript70.3 KB
scripts/build_html.pyexecutablescript31.8 KB
scripts/component_lint.pyexecutablescript8.1 KB
scripts/extract_seed.pyexecutablescript5.8 KB
scripts/gzh_component_inventory.pyexecutablescript1.8 KB
scripts/lint_article.pyexecutablescript19.5 KB
scripts/scan_sensitive.pyscript2.0 KB
scripts/source_governance.pyscript4.9 KB
scripts/validate_delivery_bundle.pyexecutablescript18.3 KB
scripts/validate_gzh_html.pyexecutablescript14.4 KB
scripts/validate_research_scope.pyexecutablescript10.0 KB
scripts/validate_task_intake.pyscript27.3 KB
scripts/wrap_gzh_preview.pyexecutablescript3.7 KB

assets/gzh-design/references/format-normalize.md

View on GitHub
# 格式归一化 —— 万物先转 Markdown,再进排版流程

排版流程只认 Markdown。任何非 Markdown 输入,先按本文件转成 Markdown 草稿,**经结构确认后**再进 SKILL.md 第 1 步选主题。转换只整理结构,**不得增删改写原文实质内容**。

## 输入类型判定

| 输入 | 判定依据 | 处理 |
|---|---|---|
| Markdown | `.md` 后缀,或文本含 `#`/`##`/`![]()` 等标记 | 直接进流程(剪存元信息按 gotcha 剔除) |
| Word | `.docx` 后缀 | 跑 `scripts/extract_docx.py`(见下) |
| PDF | `.pdf` 后缀 | 用 Read 工具分页读取 + 清噪规则(见下) |
| 纯文本 | `.txt` 或粘贴的无标记大段文字 | 语义推断结构(见下) |
| 网页/富文本 | HTML 标签或明显剪贴板样式残留 | 剥样式、按语义映射成 Markdown |
| `.doc`(老格式) | 后缀 | 无法直接解析——请用户在 Word/WPS 里另存为 .docx 再来 |

## Word(.docx)

```bash
<SKILL_ROOT>/scripts/extract_docx.py 文章.docx -o 文章.md
```

脚本零依赖:标题样式(Heading/标题 1-6)→ `#`–`######`,粗体→`**`,下划线→`<u>`,列表→`- `,内嵌图片解包到输出目录 `images/` 并以相对路径引用。表格会留 `[表格:…]` 占位——转成列表、重新截图,或问用户怎么处理。跑完把生成的 md 读进来走结构确认。

## PDF

用 Read 工具直接分页读取(原生支持 PDF),读完按下列规则清噪再组装 Markdown:

1. **删页眉页脚**:每页重复出现的同一行(书名/章节名/URL)、纯页码行(`12`、`- 12 -`、`Page 12`)。
2. **合并硬断行**:行尾无句末标点(。!?;:)且下一行以小写字母/中文续接 → 拼成一段;行尾是标点 → 保留分段。
3. **识别标题**:字号信息拿不到,用纯文本启发式(见下节)。
4. **图表**:PDF 里的图无法提取,位置留 `【配图:原 PDF 第 N 页图】` 占位(会渲染成居中待补板块)。
5. 双栏 PDF 常见串行错乱——发现语句前后不接,提醒用户该 PDF 可能需要人工整理。

## 纯文本(.txt / 无标记粘贴)—— 语义推断结构

**标题识别启发式**(满足越多越可信):

- 行长 ≤ 20 字,且不以句末标点(。!?)结尾
- 前后都是空行(或位于全文/段落群开头)
- 带序号前缀:`一、` `二、` `1.` `01` `第X章/节/部分` `Part N` `PART N`
- 与后文构成"短行 + 多个长段"的节奏

**分级**:全文最高频的标题模式定为 `##`;其下一级(若有)定为 `###`;文首孤立短行定为 `#` 文章标题。

**全文识别不出任何标题时**:按语义把内容切成 3–6 个主题块,为每块自拟一个 ≤12 字的章节标题(标题要说人话、贴内容,不要"第一部分"这种空壳),并在结构确认时明确告诉用户"这些标题是我起的"。

其余映射:空行分段;`"引号金句"`/破折号署名 → 开头引言候选;`1. 2. 3.` 或 `·`/`-` 起头的行 → 列表。

## 网页 / 富文本

`<h1-h6>`→`#`级别,`<strong>/<b>`→`**`,`<img src>`→`![](src)`(外链 URL 原样保留),`<li>`→`- `,`<blockquote>`→`> `;样式属性、span 嵌套、`&nbsp;` 等垃圾全部剥掉。剪存工具的元信息块(原文链接/剪存时间/工具署名)不属于正文,剔除。

## 结构确认(默认必做,全自动模式除外)

归一化完成后、选主题之前,把推断结果给用户扫一眼:

> 识别出 N 个章节:01 xxx / 02 xxx / …(其中第 3、5 个标题是我起的)。图片 M 张。结构对吗?

结构错了排出来全错——这一步花 10 秒,拦住的是整篇返工。用户确认或修正后再进第 1 步。

## 全自动模式(用户给纯文本 + 要"直接排"时)

用户说「直接排」「自动排」「一键排版」「不用问我」,或明显只想要结果时:

1. 跳过结构确认与选主题提问,**全链自动**:推断结构 → 按题材从 theme-index 自选最贴的主题 → 排版 → 校验。
2. 交付时**补一段决策说明**(不是征求同意,是让用户可审计):识别出的章节结构、自拟了哪些标题、选了什么主题及理由。
3. 用户对任何决策不满意,按点改(换主题重排 / 改章节切分),不用重来。

自动选主题就按 theme-index「选择建议」:无明显题材倾向 → 红白色系。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall