用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill md-poster命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | md-poster |
| description | | Use when this capability is needed. |
「排版不应该比写作更难。」—— 这套系统让你 30 秒出 8 张卡片。
将 Markdown 文本自动转换为精美的小红书图文卡片,具体包括:
收到用户请求后,确认以下信息:
| 信息 | 说明 | 默认值 |
|---|---|---|
| 源文件 | Markdown 正文路径 | 当前目录下的 .md 文件 |
| 文章标题 | 卡片第 1 页显示的大标题 | 从 Markdown H1 提取 |
| 作者名 | 作者区域显示名 | 用户自定义 |
| 日期 | 发布日期 | 今天 |
| 总页数 | 计划分几页 | 根据字数估算(每页 700-800 字) |
| 头像路径 | 作者头像图片路径 | avatar.jpg |
规则:
操作:
(start_line, end_line)PAGES 配置数组生成 xhs_pages.py 脚本,该脚本:
PAGES 配置提取每页内容md_to_html() 函数)CSS 设计系统核心参数:
| 参数 | 值 |
|---|---|
| 卡片宽度 | 1080px |
| 背景色 | #F9F9F6(米白) |
| 正文字体 | Noto Serif SC(思源宋体) |
| 正文字号 | 34px,行高 2.0 |
| H1 标题 | 56-60px,font-weight: 700 |
| H2 标题 | 44px,font-weight: 700 |
| 内边距 | 90px |
| 分割线色 | #E8E6D9 |
Markdown → HTML 支持的元素:
# H1 → <h1>(仅第 1 页)## H2 → <h2><p>**加粗** → <strong>*斜体* → <em>`代码` → <code>- 无序列表 → <ul><li>1. 有序列表 → <ul><li><table>``` 代码块 ``` → <pre><code>运行 scripts/screenshot.py 自动截图:
# 固定高度 1080×1440(3:4 比例)
python scripts/screenshot.py
# 自适应高度(按内容实际高度)
python scripts/screenshot.py --auto-height
截图脚本自动处理:
*_xhs_pages.html 文件output/ 目录以下是 23+ 篇文章生产中积累的血泪教训。
| # | 铁律 | 原因 |
|---|---|---|
| 1 | 使用 headless 模式 | 非 headless 模式会渲染浏览器扩展的蓝色边框 |
| 2 | 首页等 3 秒 | Google Fonts(思源宋体)需要加载时间 |
| 3 | 不要用 python -c 内联命令 | Windows 路径含单引号会被 PowerShell 吞掉 |
| 4 | 页脚放在 .content 内部 | 放在外面会被截图裁切 |
| 5 | 隐藏所有滚动条 | 需要 CSS 三重覆盖(overflow:hidden + -ms-overflow-style:none + ::-webkit-scrollbar) |
| 6 | 不要让 AI 直接输出 HTML | 中文 token 约为英文 2-3 倍,5000 字正文 HTML 会被截断。让 AI 写 Python 生成器脚本 |
| 7 | 超 8 页时增大每页字数 | 不要删内容,增加页面高度 |
| 文件 | 用途 |
|---|---|
templates/xhs_card_template.html | 手动编辑时使用的 HTML 模板 |
scripts/screenshot.py | 通用截图脚本 |
examples/basic/xhs_pages.py | 生成器脚本参考实现 |
docs/design-system.md | CSS 设计系统详细文档 |
docs/troubleshooting.md | 完整踩坑记录 |
本 Skill 由 多少做点 BILL DO A BIT 创建 基于 23+ 篇正式文章的生产经验迭代
Source: BeardJohnJohn/md-poster — distributed by TomeVault.