Design & Motion · KellyGong0301/frontend-post
frontend-post
Converts plain text, notes, or technical articles into 12 sets of typography-driven multi-card slide posts for Xiaohongshu (RED) and social media. Adheres to Swiss typography and Chinese typesetting rules with 2x high-resolution PNG export.
L2 Local · Restricted workspaceV1 Commit-PinnedDual-pass Audit
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.
1How It Works & Mechanism
12 distinct typography themes following Swiss International and editorial styles.
SKILL.md
- **Mode A — 新内容**:用户给主题或大纲 → Phase 1 - **Mode B — 文案改造**:用户已有一段长文案,要求拆成卡片 → Phase 1(跳过主题询问) - **Mode C — 微调现有 HTML**:直接读文件改样式(始终保持像素固定 + 卡片不溢出)
Curated visual templates.
Automated text chunking optimized for 3:4 mobile screen reading rhythm.
SKILL.md
.card { width: 1080px; height: 1440px; /* 3:4 默认。1:1 写 1080px。 */ position: relative; overflow: hidden; /* 内容溢出 = 你拆页 */ box-sizing: border-box; }
Mobile-first readability.
Strict Chinese typesetting rules (kinsoku shori, punctuation hanging, optical alignment).
SKILL.md
| 封面 cover | 1 主标题(≤14 字)+ 1 副标题(≤20 字)+ 可选标签 1–2 个 | | 干货列表 tip-list | 1 标题 + 3–5 条要点(每条 ≤16 字) | | 知识卡 knowledge | 1 标题 + 1 段说明(≤80 字) |…**规则**:超过上限 → 拆成多张。**绝对不要把字塞到 overflow: hidden 救命。**
Professional typography standards.
Headless browser rendering pipeline generating sharp 2x Retina PNG assets.
SKILL.md
.card { font-family: "Noto Serif SC", "ZCOOL XiaoWei", "LXGW WenKai", serif; /* 中文换行 */ word-break: break-all; /* 标点压缩 */ text-spacing-trim: trim-start; /* 字间距,标题加 0.05em,正文不加 */ }
High-DPI export quality.
提供 12 套中文视觉风格预设与直选或感受引导的双轨发现机制
SKILL.md
| Preset | 感觉 | 适合 | |---|---|---| | 奶油拿铁 Cream Latte | 温柔治愈 | 早餐/咖啡/读书笔记 | | 莫兰迪 Morandi | 高级灰调 | 穿搭/家居/方法论 | | 多巴胺 Dopamine | 鲜亮活泼 | 情绪 / 周末 / 学习打卡 |
这里在做什么:在 Phase 2 让用户按场景直接选预设,或按情绪生成临时样张供对比挑选
生成单个自包含 HTML 预览文件并配置缩放与主题 CSS 变量
SKILL.md
output/ ├── index.html # 单文件预览(所有卡片纵向排列,scale 缩放) ├── render.py # (可选)批量 PNG 导出 └── images/ # (可选)用户提供的素材
这里在做什么:将所有卡片整合成单页 HTML,通过 transform scale 适配屏幕预览,并在 :root 中暴露颜色与字体变量供快速微调
提供 Node 与 Python 两种无头浏览器截图渲染脚本导出 2x 高清 PNG
SKILL.md
**方式 A:Node + puppeteer-core(推荐,复用系统 Chrome,零下载)** `scripts/render.js` 已打包在 skill 里。前置:用户系统装了 Node 和 Google Chrome(macOS 默认路径 `/Applications/Google Chrome.app/...`)。…**方式 B:Python + Playwright(跨平台稳定,但要下载 Chromium 约 200MB)** `scripts/render.py` 也已打包。前置:Python 3.10–3.13(3.14 上 playwright 可能装不上)。
这里在做什么:由本地环境自动化拉起 Chromium 访问 HTML,移除 scale 样式后逐个截取 .card 元素生成 2160×2880 高清图
2Core Capabilities
0112 Swiss/editorial mobile slide card themes
02Intelligent text pacing and card chunking
03Professional Chinese typography and typesetting compliance
04Automated 2x Retina PNG card rendering
05自包含 HTML 预览与实时主题变量微调
06Node 与 Python 双轨自动化高分辨率截图导出
07小红书平台合规与敏感词脱敏自检
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| Google Fonts CJK | |
| Playwright / Puppeteer |
4Recommended Governance & Evidence
Suggested Controls for Safe Operation
For Agent Runtime
Can be auto-loaded
For Administrators
Register source and version
Audit Notes: Local template rendering pipeline with standard headless browser export; L2 local I/O classification.
5Second-Pass Verification
- [ok] 双渲染脚本的实现与依赖 — 核实 scripts/render.js 与 scripts/render.py 分别依赖 puppeteer-core 与 playwright,且截图逻辑均指向 .card 类名并保存至本地目录。
- [ok] 12 套风格预设在 STYLE_PRESETS.md 中的规范定义 — references/STYLE_PRESETS.md 完整包含了奶油拿铁、莫兰迪、多巴胺、校园手账等 12 套风格的配色变量、字体配对与装饰 CSS。
- [ok] 小红书爆款标题钩子公式 — references/HOOK_PATTERNS.md 详细列出数字型、反差型、提问型、自爆型、警告型等 9 套模式及字数限制。
- [ok] 固定像素与防溢出硬约束 — SKILL.md 明确声明 .card 锁死 1080×1440 或 1080×1080,且必须设置 overflow: hidden,超量强制拆页。
- [ok] 外部网络与安全边界核验 — 除了产物 HTML 引用 Google Fonts 在浏览器端拉取开源字体外,自身代码无任何主动外联 API、凭证读取或提权操作。
6Verdict & Scenarios
Best for: Ideal for tech bloggers, independent creators, and knowledge marketers publishing technical insights and summaries on Xiaohongshu and X.
Not for: Not suitable for generating illustrated comic graphics or complex hand-drawn cartoons.
💬 Online Trial Chat Sandbox
Preview this skill in an interactive chat playground. Generic LLM evaluation trial.
💬 Open Chat Trial (Preview)Under construction · Generic sandbox trial
Install Agent-Ready
① Accelerated Distribution dl.bestaiskill.com
Option A · Direct Zip Download⚡ Download frontend-post (Zip)
Edge-accelerated mirror via dl.bestaiskill.com
Option B · Copy Guide for AgentAgents automatically download and verify mirrors from this JSON guide.
② Upstream GitHub
GitHub Repo ↗
Pinned to commit 0c19e9a4d4.