1实现原理 · 为什么它能做到
双段式纯文本编译器:把用户一句话内容先编译成『紧凑、可成像、高保真』的最终 prompt,再由宿主内置图像生成能力把它渲染成 raster 图——SKILL.md 本身没有任何可执行代码,全部实现靠 prompt 规则编排。
Use **Standard Mode** for all generation. Use the Fine Bitmap Prompt Compiler in this `SKILL.md` to convert the user's content into a compact, imageable, high-fidelity prompt.
编译有纪律:默认只编译『最终会变成可见像素』的部分,且强制按 9 个 First-Principles 字段顺序回答渲染问题(画布/注意力几何/可成像主体/位图构造/字体系统/色彩逻辑/印刷质感/情绪温度/硬性回避),再压成四段式 Standard Prompt Shape 输出。
Default generation should compile only the parts that become visible pixels in the final image prompt.
风格纯度靠双向清单维护:Style Calibration 的 Prefer/Avoid 定义『精细位图印刷海报』,Negative Constraints 与各引擎反复用反游戏像素措辞围栏,把模型从最易滑入的『复古像素游戏美术』拉回。
The style is editorial and print-inspired. Do not prompt it as a game asset, sprite sheet, retro arcade, Minecraft, voxel, chiptune, or 8-bit videogame screen.
多样性与防模板化由概率化设计分发实现:Distribution Defaults 给出 5 条车道(40/20/20/10/10),Variation Engine 提供六轴变体(layout/subject treatment/typography/color/texture/mood),并要求随机性改变『视觉语法』而不只是换主体换颜色。
Randomness must change the visual grammar, not only the subject or color. If recent outputs used the same layout or bitmap method, choose a different one.
出图与质检闭环:Workflow step 5 默认使用宿主内置图像生成(不许停在 prompt-only),并内置 11 条『失败→再生成一次 + 更强措辞』纠错分支(游戏像素感/像素过粗/过平滑/过平板/死白底/标题缺失/被迫大标题/水洗变白纸/主体过小/日记人像幼稚/人像过写实)。
Do not stop after prompt-only unless the user explicitly asks for prompt-only.
输出契约固定:无论生成成功与否都以三段 Markdown 交付(生成图 + 最终 Prompt + 说明含 Mode/Recipe/一句解读),并用 Quality Gate 的 22 条检查单在交付前自检。
If generated images render directly without a file path, show the image normally and still include the final prompt.
2核心能力
4管控建议与判定依据
- SKILL.md: 纯提示词指令与规则文本,无脚本执行与外部影响
5第二遍独立确认
- [ok] frontmatter 直采:name=pixel-style-poster-skill、description 原文(含收尾 'This is not retro game pixel art.') — raw 重读文件头 5 行逐字核对无出入。注意:frontmatter name 与任务入库名 pixel-style-poster 不一致(任务短名),README 用法示例与调用符为 $pixel-style-poster-skill;按约定 Analysis 文件以任务名入库,skill.name 保留真实 frontmatter 名。
- [ok] 『生成匹配的 raster 图像』承诺是否夸大:README Output 列 1. the generated poster image — SKILL.md 明确 'Use the built-in image generation capability by default.',图由宿主内置能力生成而非仓库代码渲染——依赖 Codex 具备图像生成,属前提明确的能力委托而非夸大;宿主缺该能力时按 'prompt-only' 例外降级(同样有明示)。
- [ok] 概率车道与再生成纠错分支的数量/内容 — raw 重读 Distribution Defaults:5 条车道 40/20/20/10/10 与回退句逐字相符;Workflow step 5 逐条点数恰 11 条 'regenerate once' 分支(游戏像素/像素过粗/过平滑/过平板/死白底/标题缺失/被迫大标题/水洗变白纸/主体过小/日记人像幼稚/人像过写实),无夸大。
- [ok] 安全面反查:是否存在漏掉的网络调用/隐藏脚本/混淆内容 — git ls-tree 全量 + 隐藏文件检查无脚本类文件;token 扫描(http/curl/bash/python/api[_-]key/token/secret/.env 等)唯一命中为 README 安装段 https://github.com clone URL;SKILL.md 纯 markdown 无代码块以外的可执行面。结论 green 成立。
- [ok] 示例图与 3:4 画布宣称的一致性 — 3 张示例 PNG(README examples 表格 alt 名 Mint Night Lily / Rococo Velvet Grapes / Deep Teal Butterfly)元数据均 1086×1448=3:4,与 SKILL.md 'vertical 3:4' 硬要求相符。
- [ok] 外部依赖清单为空是否属实(该技能靠什么成像) — 仓库无 CLI/API/网络端点/第三方包引用;成像唯一依赖是宿主内置图像生成('built-in image generation capability'),属宿主能力非仓库声明的外部依赖,故 external_deps=[] 如实,机制已在 how_it_works/security 注明。
6结论
55f77756bc3db579…