deck-xhs-white
Pure white + top rainbow bar + gradient text + macaron soft cards + black-background pill
1How It Works & Mechanism
This skill is not an executable program, but rather "one directory = one template": the frontmatter of SKILL.md is used for selector display, and the body serves as the prompt sent to the model; adding a template means adding a directory, without modifying TypeScript.
routes rescan disk and the client refetches `/api/templates`.
The actual delivered prompt = platform shared design directives (SHARED_DESIGN_DIRECTIVES) + the body of SKILL.md of this skill + user content, assembled into a single prompt by assemblePrompt.
Wrap a per-template instruction body with the shared design directives and
The final output does not touch the file system: shared directives explicitly forbid file tools such as Write/Edit/Bash, requiring the model to stream the entire HTML directly as the response body (stdout is captured and written to disk by the front end).
**禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
The visual signature consists of four hard metrics written in SKILL.md: pure white background + top 10-color rainbow bar, 80-110px display title + purple→blue→green→orange→pink gradient text, macaron soft card set, and white text on black background .focus pill + large block quotes.
- 纯白背景 + 顶部 10 色彩虹 bar
In the example, the rainbow bar is a 5px, 10-segment linear-gradient at the top of the page (#6366f1→#8b5cf6→#a855f7→#ec4899→#f43f5e→#f97316→#eab308→#22c55e→#06b6d4→back to #6366f1), attached to every page.
.tpl-xhs-white-editorial .xw-topline{position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#6366f1,#8b5cf6,#a855f7,#ec4899,#f43f5e,#f97316,#eab308,#22c55e,#06b6d4,#6366f1)}
The "gradient text" of the title is implemented using background-clip:text + transparent fill, with the 5 color stops corresponding one-to-one to the "purple→blue→green→orange→pink" specified in SKILL.md.
.tpl-xhs-white-editorial .xw-grad{background:linear-gradient(90deg,#7b61ff 0%,#4e8cff 25%,#17b26a 48%,#ff9d42 72%,#ff5fa2 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
The "white text on black background .focus pill" is an inline highlight marker: inline-block + 14px border-radius + #111318 background + white text, along with three light-background variants in blue/pink/orange.
.tpl-xhs-white-editorial .xw-focus{display:inline-block;padding:6px 14px;border-radius:14px;background:#111318;color:#fff;font-weight:700}
Dual-purpose positioning: the aspect_hint in SKILL.md specifies "16:9 / 3:4", meaning the same layout can be presented as a landscape PPT or published to Xiaohongshu as portrait graphic slides.
【意图】可同时发小红书图文与横版 PPT 双用的白底杂志风。
The server-side /api/convert only does three things: reads the skill from disk according to templateId, constructs the prompt, spawns the local agent CLI, and streams the output via SSE.
prompt = assemblePrompt({ body: skill.body, content, format });
2Core Capabilities
4Recommended Governance & Evidence
- SKILL.md: Pure prompt directives and rule text, without script execution or external impact
5Second-Pass Verification
- [ok] 「顶部 10 色彩虹 bar」 — .xw-topline 的 linear-gradient 共 10 个色停(首尾同色 #6366f1 收口),逐字数过。
- [ok] 「80-110px display 标题」 — .xw-title 为 84px,分隔页内联 font-size:110px,落在区间内。
- [ok] 「紫→蓝→绿→橙→粉渐变文字」 — .xw-grad 停点顺序 #7b61ff→#4e8cff→#17b26a→#ff9d42→#ff5fa2,与描述顺序一致。
- [ok] 「马卡龙软卡片组 (粉 / 紫 / 蓝 / 绿 / 橙)」 — 样例 2x2 网格用 soft-pink/soft-blue/soft-green/soft-orange 四张;soft-purple 亦有 token(--xw-soft-purple:#f4efff),属版式池内备用色。
- [ok] 「黑底白字 .focus pill + 引用大块」 — .xw-focus 规则与 .xw-quote 引用块均在样例第 1 页出现。
- [discrepancy] aspect_hint 双比例与样例画布 — 样例只用 100vw×100vh 播放式布局实现 16:9,未提供 3:4 竖版实测样例;竖版可用性由「白底 + 居中内容 + 百分比宽度」的写法推断,未在文件中验证。
- [ok] 无脚本、无外部资源 — 除字体 @import 零 URL;无 <script> 与事件处理器。
6Verdict & Scenarios
cdf4726ef28078b6…