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.

Install it, pinned
mdr add yzfly/skills/mp-layout@v1.0.0

Pins 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

The exact contents, by fingerprint
mdr add yzfly/skills/mp-layout@sha256:358684d25784aa87

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7vsvpo56r7vr4545.svg)](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.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-10 1a964d9 5,566 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from yzfly/skills

anti-ai-copy SKILL.md skill
yzfly/skills · skills/anti-ai-copy/SKILL.md · 软件界面文案(UI copy / microcopy / UX writing)写作与去 AI 味。当用户要写、改、审界面文案时使用:按钮、页面标题、表单标签、占位符、空状态、Toast /…
v1.0.0 · audit A · 12 stars
brand-narrative SKILL.md skill
yzfly/skills · skills/brand-narrative/SKILL.md · 品牌叙事策略。当用户要做品牌叙事 / 品牌故事 / 品牌定位 / 品牌策略、问「我们的品牌到底围绕什么」「该讲产品还是讲文化」、想判断某个新品 / 联名 / 内容「符不符合品牌」、或为 0–1…
v1.0.0 · audit A · 12 stars
breathing-brand SKILL.md skill
yzfly/skills · skills/breathing-brand/SKILL.md · 出海 / 国际化品牌的极简呼吸感视觉全案。当用户说要做品牌 VI、品牌视觉、logo 与周边、独立站视觉、社区 / 组织 / 产品的品牌形象,或抱怨自己的品牌「看起来廉价」「太满太乱」「不够国际化 /…
v1.0.0 · audit A · 12 stars
cto SKILL.md skill
yzfly/skills · skills/cto/SKILL.md · Startup / AI-startup CTO who is also a top-tier individual contributor. Two modes: (1) greenfield — turn fuzzy business…
git:20260504.146b163 · audit A · 12 stars
golang-benchmark SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-benchmark/SKILL.md · Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks…
v1.1.3 · audit A · 12 stars
golang-cli SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-cli/SKILL.md · Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command…
v1.1.3 · audit A · 12 stars
golang-code-style SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-code-style/SKILL.md · Golang code style, formatting and conventions. Use when writing Go code, reviewing style, configuring linters, writing…
v1.1.2 · audit A · 12 stars
golang-concurrency SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-concurrency/SKILL.md · Golang concurrency patterns. Use when writing or reviewing concurrent Go code involving goroutines, channels, select…
v1.1.3 · audit A · 12 stars
golang-context SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-context/SKILL.md · Idiomatic context.Context usage in Golang — creation, propagation, cancellation, timeouts, deadlines, context values…
v1.1.1 · audit A · 12 stars
golang-continuous-integration SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-continuous-integration/SKILL.md · Provides CI/CD pipeline configuration using GitHub Actions for Golang projects. Covers testing, linting, SAST, security…
v1.2.0 · audit A · 12 stars
golang-data-structures SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-data-structures/SKILL.md · Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash…
v1.1.1 · audit A · 12 stars
golang-database SKILL.md skill
yzfly/skills · skills/cto/references/payload/backend/golang/golang-database/SKILL.md · Comprehensive guide for Go database access. Covers parameterized queries, struct scanning, NULLable column handling…
v1.1.2 · audit A · 12 stars

Every file in yzfly/skills

Browse by kind, by grade B, or by owner.