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/common-components.md

View on GitHub
# 通用增量组件库 —— 代码块 · 图片/GIF · 小标签标题

> **跨所有主题通用**。主题专属组件(引言卡、章节标题、签名等)读各自主题库;本文件提供三类**所有主题都需要**的组件:代码块、图片/GIF、小标签标题。
>
> **配色占位**:下面用红白色系(主色 `#DC2626`、浅底 `#FEF2F2`、浅标 `#FEE2E2`、深字 `#991B1B`)做示例。换其它主题时,把这几个值替换为该主题"设计变量速查表"里的对应色;代码块深色版各主题可共用,浅色版用主题主色做左竖条。
>
> **平台限制**:同主题库——禁 `<style>/<script>/class/id/div/position/float/@media/grid`,只用内联 + `flex`,文字全部 `<span leaf="">` 包裹。

---

## 一、代码块组件(Markdown ``` 围栏 → 这里)

文章里的代码、命令、Prompt 提示词、配置等,**必须用代码块组件**,不要塞进普通段落或引用块。代码块内的英文、半角符号、缩进都要原样保留(代码不适用"中文全角标点"规则)。

### 1a. 深色代码块(默认,技术感强,适配所有主题)

```html
<section style="margin:0 0 20px;border-radius:8px;overflow:hidden;background:#1E293B;box-shadow:0 4px 16px -8px rgba(15,23,42,0.4);">
  <section style="display:flex;align-items:center;padding:9px 14px;background:#0F172A;">
    <span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#FF5F56;margin-right:7px;font-size:0;line-height:0;overflow:hidden;">.</span>
    <span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#FFBD2E;margin-right:7px;font-size:0;line-height:0;overflow:hidden;">.</span>
    <span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#27C93F;font-size:0;line-height:0;overflow:hidden;">.</span>
    <span style="margin-left:12px;font-size:12px;color:#64748B;font-family:Consolas,Monaco,monospace;letter-spacing:1px;"><span leaf="">python</span></span>
  </section>
  <section style="width:100%;max-width:100%;box-sizing:border-box;padding:11px 14px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;">
    <p style="margin:0;font-family:'SF Mono',Consolas,Monaco,monospace;font-size:13px;line-height:1.6;letter-spacing:0;color:#E2E8F0;white-space:nowrap;word-break:normal;overflow-wrap:normal;"><span leaf="">def&nbsp;make_skill(name):</span></p>
    <p style="margin:0;font-family:'SF Mono',Consolas,Monaco,monospace;font-size:13px;line-height:1.6;letter-spacing:0;color:#E2E8F0;white-space:nowrap;word-break:normal;overflow-wrap:normal;"><span leaf="">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;f"已生成&nbsp;{name}"</span></p>
    <p style="margin:0;font-family:'SF Mono',Consolas,Monaco,monospace;font-size:13px;line-height:1.6;letter-spacing:0;color:#E2E8F0;white-space:nowrap;word-break:normal;overflow-wrap:normal;"><span leaf="">print(make_skill("gzh-design"))</span></p>
  </section>
</section>
```

要点(**关键,避免大段空白和手机端 ASCII 图错列**):① 顶栏三色圆点 + 语言名(无语言可删该 span);② **每行代码用一个 `<p style="margin:0;...;white-space:nowrap">`,不要用 `white-space:pre`**——否则 HTML 源码里的缩进和换行会被渲染成额外空白;③ 行内普通空格全部编码为 `&nbsp;`,Tab 展开为 4 个 `&nbsp;`,精确保留代码、甘特图和字符图的列;④ 正文容器必须是 `width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden`,长行仅在代码卡内部左右滑动,不能撑宽整页;⑤ 行距只靠 `line-height:1.6` 控制,padding 用 `11px 14px`,保持紧凑。

### 1b. 浅色代码块(适配浅色温和主题,如玫瑰粉/天蓝/焦糖棕)

```html
<section style="margin:0 0 20px;border-radius:8px;overflow:hidden;background:#F6F8FA;border:1px solid #E5E7EB;border-left:3px solid #DC2626;">
  <section style="padding:7px 14px;border-bottom:1px solid #E5E7EB;">
    <span style="font-size:12px;color:#9CA3AF;font-family:Consolas,Monaco,monospace;letter-spacing:1px;"><span leaf="">bash</span></span>
  </section>
  <section style="width:100%;max-width:100%;box-sizing:border-box;padding:11px 14px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;">
    <p style="margin:0;font-family:'SF Mono',Consolas,Monaco,monospace;font-size:13px;line-height:1.6;letter-spacing:0;color:#24292F;white-space:nowrap;word-break:normal;overflow-wrap:normal;"><span leaf="">npx&nbsp;skills&nbsp;add&nbsp;gzh-design</span></p>
  </section>
</section>
```

(左竖条 `#DC2626` 换成当前主题主色;多行同 1a:每行一个不换行 `<p>`,普通空格编码为 `&nbsp;`,长行在代码卡内部滑动。)

### 1c. 行内代码(正文中的 `code` 短片段)

```html
<span style="background:#F1F5F9;color:#DC2626;padding:1px 6px;border-radius:4px;font-family:'SF Mono',Consolas,Monaco,monospace;font-size:14px;"><span leaf="">SKILL.md</span></span>
```

(文字色 `#DC2626` 换主题主色;底色保持中性浅灰。)

---

## 二、图片 / GIF 组件(Markdown `![](...)` → 这里)

文章里**每一处图片、GIF、截图占位都要保留并转成下面的组件**,不得遗漏;`src` 原样保留用户给的 URL 或相对路径。GIF 动图与普通图片都用 `<img>`(公众号原生支持 GIF 自动播放),区别只在加不加"动图"角标说明。

### 2a. 标准图片(带说明)

```html
<section style="background:#FFF;border-radius:12px;padding:6px;border:1px solid #E5E7EB;box-shadow:0 4px 12px -2px rgba(0,0,0,0.08);margin-bottom:8px;">
  <section style="margin:0;border-radius:8px;overflow:hidden;">
    <span leaf=""><img src="图片URL" style="max-width:100%;height:auto;display:block;margin:0 auto;"></span>
  </section>
</section>
<p style="font-size:12px;color:#9CA3AF;text-align:center;margin:0 0 24px;">
  <span leaf="">— 图片说明文字</span>
</p>
```

无说明文字时删掉下方 `<p>`,并把图片容器 `margin-bottom` 改回 `10px`。

> **图片尺寸自适应**:`<img>` 用 `max-width:100%;height:auto;display:block;margin:0 auto`——按图片自身尺寸显示并居中,大图缩到容器宽、小图保持原尺寸,**不用 `width:100%` 强制铺满**(小图被拉伸会糊)。

### 2b. GIF 动图(同图片,加"GIF 动图"角标)

```html
<section style="background:#FFF;border-radius:12px;padding:6px;border:1px solid #E5E7EB;box-shadow:0 4px 12px -2px rgba(0,0,0,0.08);margin-bottom:8px;">
  <section style="margin:0;border-radius:8px;overflow:hidden;">
    <span leaf=""><img src="动图URL.gif" style="max-width:100%;height:auto;display:block;margin:0 auto;"></span>
  </section>
</section>
<p style="text-align:center;margin:0 0 24px;">
  <span style="display:inline-block;background:#FEE2E2;color:#991B1B;font-size:11px;font-weight:700;padding:1px 8px;border-radius:4px;margin-right:6px;"><span leaf="">GIF 动图</span></span>
  <span style="font-size:12px;color:#9CA3AF;"><span leaf="">动图说明文字</span></span>
</p>
```

(角标底色 `#FEE2E2` → 主题浅底色,字色 `#991B1B` → 主题深字色,取自该主题"设计变量速查表";无色块的极简主题改用细线描边胶囊:边框与字色用主题主色、背景透明。)若原文只写了图片但没给 URL,用 `src="图片URL"` 占位并在交付时提醒用户补图,**不要凭空编造图床链接**。

---

### 2c. 待补素材占位(**居中板块**,用于 GIF / 录屏 / 视频 / 成果图待补处)

文章里 `【插入xxx】`、待录屏、待补 GIF/视频/截图等占位,一律用这个**居中**板块,不要用左对齐的提示块。所有排版风格通用,浅底柔虚线框 + 居中图标与说明,一眼看出"此处待补"。

```html
<section style="margin:0 0 24px;padding:30px 20px;border:1.5px dashed #DAD7D2;border-radius:14px;background:#FAFAF8;text-align:center;">
  <p style="margin:0 0 10px;font-size:26px;line-height:1;"><span leaf="">🎬</span></p>
  <p style="margin:0;font-size:14px;font-weight:700;color:#9CA3AF;letter-spacing:1px;"><span leaf="">待补素材</span></p>
  <p style="margin:8px 0 0;font-size:13px;color:#B8B5B0;line-height:1.7;"><span leaf="">此处插入:创建 skill 的录屏演示</span></p>
</section>
```

- 图标按素材类型换:🎬 视频/录屏、🖼 图片、📊 信息图、📎 附件。
- 这是**唯一允许用虚线框(dashed)的场景**——因为它表达"占位/待补"语义,与正文强调用的小标签不冲突。
- 各主题可把虚线色/底色微调成主题中性色,但保持居中、留白、柔和。

---

## 三、小标签标题组件(突出标题/强调,**替代虚线框**)

> **设计取向**:强调一段内容或起一个小标题时,优先用下面的"小标签 / 左竖条"形式,**不要用四周虚线框(dashed)包一个标题**——虚线框笨重、抢戏。小标签更轻、更现代。
>
> **使用优先级**:先查所选主题库的映射规则——主题库有等价语义组件(自己的金句块/提示块/小标题)就用主题库版本保持气质一致;没有时才用本节组件并按下面规则换色。
>
> **换色规则**(示例为红白色值,按所选主题"设计变量速查表"替换):
> - 3a 左竖条 `#DC2626` → 主题主色;3b 药丸底 `#DC2626` → 主题主色(字保持白)
> - 3c 序号药丸底 `#FEE2E2` → 主题浅底色,序号字 `#991B1B` → 主题深字色
> - 3d/3e 块底 `#FEF2F2` → 主题浅底色,竖条/类型标签 `#DC2626` → 主题主色
> - **无色块的极简主题**(留白禅意/石墨极简等):3a 竖条细化为 `2–3px`,3d/3e 去掉底色、只留左竖条 + 大留白,贴合该主题气质。

### 3a. 左竖条小标题(最推荐,干净)

```html
<p style="margin:28px 0 14px;font-size:16px;font-weight:800;color:#1C1917;line-height:1.5;border-left:4px solid #DC2626;padding-left:12px;">
  <span leaf="">小标题文字</span>
</p>
```

### 3b. 药丸标签小标题(实色底,最醒目)

```html
<p style="margin:28px 0 14px;">
  <span style="display:inline-block;background:#DC2626;color:#FFFFFF;font-size:14px;font-weight:700;padding:5px 16px;border-radius:6px;"><span leaf="">小标题文字</span></span>
</p>
```

### 3c. 序号药丸 + 标题(清单/步骤)

```html
<p style="margin:24px 0 12px;font-size:15px;font-weight:800;color:#1C1917;line-height:1.6;">
  <span style="display:inline-block;background:#FEE2E2;color:#991B1B;border-radius:5px;padding:1px 9px;margin-right:8px;font-weight:900;"><span leaf="">01</span></span>
  <span leaf="">要点标题</span>
</p>
```

### 3d. 金句引用(左竖条版,取代旧的虚线框金句)

```html
<section style="margin:0 0 24px;background:#FEF2F2;border-radius:0 10px 10px 0;border-left:4px solid #DC2626;padding:16px 20px;">
  <p style="font-size:16px;font-weight:800;color:#991B1B;margin:0;line-height:1.8;">
    <span leaf="">「这里是核心观点或关键金句」</span>
  </p>
</section>
```

### 3e. 提示 / 旁注块(左竖条 + 类型小标签,取代旧的虚线提示框)

```html
<section style="margin:0 0 24px;background:#FEF2F2;border-radius:0 8px 8px 0;border-left:4px solid #DC2626;padding:14px 18px;">
  <p style="margin:0 0 6px;">
    <span style="display:inline-block;background:#DC2626;color:#FFFFFF;font-size:11px;font-weight:700;padding:2px 10px;border-radius:4px;letter-spacing:1px;"><span leaf="">提示</span></span>
  </p>
  <p style="font-size:14px;color:#374151;margin:0;line-height:1.8;">
    <span leaf="">提示或旁注的正文内容</span>
  </p>
</section>
```

类型小标签文字可换:`提示` / `注意` / `重点` / `Prompt` / `旁注` 等。整块**没有任何 dashed 边框**,靠左竖条 + 浅底 + 小标签区分层次。

---

## 选用速记

| 文章里出现 | 用哪个组件 |
|---|---|
| ` ``` 代码 / 命令 / Prompt 围栏 ``` ` | 1a 深色(默认)或 1b 浅色代码块 |
| 行内 `` `code` `` | 1c 行内代码 |
| `![](图片)` | 2a 标准图片 |
| `![](xxx.gif)` 或注明动图 | 2b GIF 动图 |
| 想给一段起小标题 / 强调 | 3a 左竖条(首选)/ 3b 药丸 / 3c 序号 |
| `> 金句` | 3d 金句左竖条块 |
| 提示 / 注意 / 旁注 | 3e 提示左竖条块(**不要用虚线框**) |

---

## 四、语义化数据表格组件(Markdown 表格必用)

Markdown 表格必须转换为真实 `<table>`,不能把 `| 字段 |` 和 `| --- |` 当普通段落输出,也不能用卡片假装表格。手机端优先让表头和单元格自然换行:1~4 列占满内容区且不启用横向滚动;5 列及以上才保留有上限的局部横向滚动。四列及以上使用 `12px` 字号和 `5px` 横向内边距。

```html
<section style="width:100%;max-width:100%;box-sizing:border-box;margin:0 0 24px;">
  <table style="width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0;box-sizing:border-box;">
    <thead><tr>
      <th style="box-sizing:border-box;padding:8px 6px;border:1px solid #FEE2E2;background:#FEF2F2;color:#991B1B;font-size:13px;font-weight:800;text-align:left;line-height:1.55;word-break:normal;overflow-wrap:anywhere;white-space:normal;"><span leaf="">{{列标题}}</span></th>
      <th style="box-sizing:border-box;padding:8px 6px;border:1px solid #FEE2E2;background:#FEF2F2;color:#991B1B;font-size:13px;font-weight:800;text-align:left;line-height:1.55;word-break:normal;overflow-wrap:anywhere;white-space:normal;"><span leaf="">{{列标题}}</span></th>
    </tr></thead>
    <tbody><tr>
      <td style="box-sizing:border-box;padding:8px 6px;border:1px solid #FEE2E2;background:#FFFFFF;color:#374151;font-size:13px;line-height:1.55;word-break:normal;overflow-wrap:anywhere;white-space:normal;"><span leaf="">{{内容}}</span></td>
      <td style="box-sizing:border-box;padding:8px 6px;border:1px solid #FEE2E2;background:#FFFFFF;color:#374151;font-size:13px;line-height:1.55;word-break:normal;overflow-wrap:anywhere;white-space:normal;"><span leaf="">{{内容}}</span></td>
    </tr></tbody>
  </table>
</section>
```

按主题替换边框、表头底色、表头文字色和斑马纹底色,不改变 `width/max-width/table-layout/box-sizing/word-break/overflow-wrap/white-space` 这些自适应约束。1~4 列使用 `width:100%;max-width:100%` 且不设置 `min-width`;5 列及以上才增加滚动容器,最小宽度按 `max(420px, 列数 × 92px)` 计算并以 `680px` 为上限。任何列数都不得在 `<th>/<td>` 使用 `word-break:keep-all`。
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