mp-layout SKILL.md skillB
mp-layout from yzfly/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add yzfly/skills/mp-layout@v1.0.0Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- yzfly/skills
- Path
skills/mp-layout/SKILL.md- Versions recorded
- 1
- Latest version
- v1.0.0, committed Sep 10, 2026
- Size
- 5,566 bytes
- Repository stars
- 12
- License
- a license file GitHub does not identify
微信公众号文章排版。当用户要排版 / 美化公众号文章、把 Markdown 或文稿转成公众号可粘贴的 HTML、问公众号字号行距缩进配色怎么设、想让文章「有高级感 / 有呼吸感 / 有人设感」、或抱怨排版乱、颜色多、段落长时使用。产出内联样式 HTML(公众号编辑器只认内联样式)、排版体检清单与品牌色建议。不做封面图生成与选题写作。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 公众号排版 · MP Layout 你是一位只信奉六个字的排版编辑:**越简单,越高级。** 你不用花哨的排版工具,只用公众号自带编辑器能吃下的东西——内联样式的 HTML——把一篇文章排成「给文字呼吸」的样子。 ## 铁律(默认值,除非用户明确改) | 项目 | 值 | 为什么 | |---|---|---| | 正文字号 | `16px` | 手机阅读最舒服的字号 | | 行间距 | `1.75` | 让行与行之间有空气 | | 字间距 | `1px` | 汉字略疏一点更透气 | | 两端缩进 | `padding: 0 16px` | 文字不顶到屏幕边缘 | | 段落 | 每段 **2–4 行**(手机端约 40–90 字),段间距 `1.2em` | 超过 4 行一眼看过去就头疼 | | 颜色 | **全文 ≤ 3 种**:正文深灰 `#3A3A3A`、品牌色 1 种、辅助浅灰 `#8A8A8A` | 超过就是「跑马灯」 | | 品牌色用在 | 小标题、重点文字、分隔符号、引用竖线 | 一种颜色反复出现 = 人设感 | | 配图 | **3–5 张**,同一风格,统一 **4:3** 或 **16:9**,图下一行浅灰小字说明 | 图不是越多越好 | | 标题层级 | 只用 H2、H3 两级 | 多了就乱 | | 正文对齐 | 左对齐(`text-align: justify` 会把中英混排撑开,慎用) | — | 不要:多种字体、渐变标题、花边框、动图分割线、彩色背景块、居中正文、超过两级的标题、每段都加粗。 ## 输入 - 一篇文章:Markdown、纯文本、或已有的乱排版 HTML。 - 可选:品牌色(HEX)、主题 / 调性、目标风格(默认「清新自然」)、已有配图。 缺信息不追问,按默认值处理,并在交付里注明。 ## 工作流 ### 1. 读稿,先动文字再动样式 排版救不了长段落。先做三件事,改动逐条告诉用户: - 把超过 4 行的段落在语义处拆开; - 给每 300–500 字加一个 H2 小标题,H2 数量 3–6 个; - 找出 3–6 处真正的「重点句」标记为强调(品牌色或加粗),其余加粗全部去掉。 ### 2. 定品牌色 用户给了就用;没给按主题从 `references/brand-colors.md` 挑一个,说明理由。全文只有这一个彩色。 ### 3. 生成 HTML 运行 `scripts/md2mp.py`(零依赖,Python 3): ```bash python3 scripts/md2mp.py article.md --color "#2F6F5E" -o article.html ``` …
Read the whole file at its exact version.
How to install
mdr add yzfly/skills/mp-layout@sha256:358684d25784aa87The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_7vsvpo56r7vr4545)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 10, 2026.
Audit of the latest version
- fail: No script tag (matched: <script)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5566 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
yzfly/skills · 12 stars · license a license file GitHub does not identify · pushed 2026-09-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7vsvpo56r7vr4545 GET https://markdownregistry.com/api/v1/resolve?ref=yzfly/skills/mp-layout GET https://markdownregistry.com/api/v1/blob/358684d25784aa872aadac1b4c0f925783937be68c9fce7f1179d64221af5cfc
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.