Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add renky1025/agent-skills --skill spec-imagegit clone --depth 1 https://github.com/renky1025/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/renky1025/agent-skills/spec-image)<a href="https://agentmods.dev/skills/renky1025/agent-skills/spec-image"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/spec-image/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/renky1025/agent-skills/spec-image"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/spec-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00286 | $0.02728 |
| Opus 5.5 | $0.00114 | $0.01091 |
| Sonnet 5.5 | $0.00057 | $0.00546 |
| Haiku 4.5 | $0.00029 | $0.00273 |
Grade A, and why
spec-image scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
spec-image: 工程化出图
Purpose
把出图需求解析成一份可复现的工程规格,而不是靠抽卡运气。核心思想:**出图不是抽卡, 是写工程规格书。**能用参数控制的属性绝不堆进 Prompt;Prompt 只聚焦视觉语义;编辑任务必须 明确"改什么"与"绝对不改什么"。产出为规格化的结构化 Prompt(可直接投给当前环境的出图工具)。
用法:
/spec-image <需求描述> [--ratio=1:1|3:2|2:3|16:9] [--quality=auto|low|medium|high]
[--transparent] [--edit=<原图路径>] [--ref=<图1,图2,...>] [--count=N]
When to Use
- 用户要出图,且要求可控、可复现、参数与语义分离(而非纯艺术感抽卡)。
- 需要画面内精确文字排版、透明底素材、UI 原型、信息图表等"有规格"的产出。
- 提供原图要求局部编辑 / 多图合成 / 保持角色或多图一致性。
- 触发词:工程化出图、规格化出图、透明底、抠图、UI 原型、信息图、精准文字排版、 角色一致性、多图合成、换装、草图转写实、spec image、transparent logo、UI mockup。
When NOT to Use
- 只想追求写实摄影质感、光影、胶卷风格 -> 交给
image-design。 - 咨询风封面 / 方法论图 / 矩阵图 -> 交给
mckinsey-cover。 - 内容型信息卡片(多模块、主题配色)-> 交给
infocard。 - 纯文字整理(不出图)-> 不需要本技能。
Workflow
六步,不可跳步。
-
任务分类(决定走哪条流水线)
任务类型 判定条件 走法 GEN 文生图 只有文字需求 加载 references/workflows.md匹配最接近的场景模板EDIT 局部编辑 提供 --edit原图 + 修改指令套用"改动与约束分离"契约(见 Step 4) MULTI-REF 多图合成 提供 >=2 张 --ref为每张图编号并指定角色分工(见 Step 4) EXTRACT 透明抠图 提供 --edit+ 要求透明底参数 transparent + 反棋盘格/反阴影负向约束 SERIES 一致性系列 需要多张图保持主体一致 两阶段法:先生成角色卡,再逐场景延续 -
参数决策(参数管物理,Prompt 管语义):把需求映射到当前环境可用的图像生成/编辑工具的 实际参数。若工具不支持某参数,则将等价指令折进 Prompt(如横竖版写明
wide horizontal composition)。决策规则见## Decision Rules。 -
构建 Spec 结构化 Prompt:复杂需求必须四段式,简单需求至少含主体 + 约束:
[Scene] 场景与环境:地点、时间、光线(具体的:午后 45 度柔和侧光,而非"好的光照") [Subject] 主体定义:外观特征 + 三个关键维度(身体构图 / 视线朝向 / 与环境的真实交互) [Details] 可见细节:材质(风化皮革、拉丝不锈钢)、色彩体系、拍摄介质(35mm 胶片、50mm 镜头) [Constraints] 正向约束 + 负向约束(No extra text, no watermarks, no ...)具体化三原则:1) 具体可见的细节取代情绪空话——写"可见毛孔皱纹、胶片颗粒、轻微暗角", 不写"超真实、大师级";2) 人物必锁三维度——全身构图是否含双脚、视线看哪里、双手在做什么, 缺一会出现肢体僵硬/假人感;3) 文字渲染铁律——所有要出现在画面里的文字用双引号包裹 + 显式频次(
"Render the tagline exactly once")+ 字体特征与位置 +"No extra text"兜底, 生僻词逐字母拼写。 -
编辑与多图契约
EDIT 模式核心公式(受保护属性必须逐条列出):
仅修改 [X]。 严格保持:[人物身份特征 / 五官 / 姿态 / 光照 / 机位 / 背景 / 画面质量] 不变。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +48 lines · +113 tokens per session dd00810eaf92
- 1mo ago First seen · 96 lines · 173 tokens per session scan A 52b4ad21ec3a
spec-image is a skill published in the GitHub repository renky1025/agent-skills (11 stars, last pushed 28d ago), licensed MIT. It adds 286 tokens to every session and 2,728 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.
spec-image compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| spec-imagerenky1025/agent-skills | Skill | 11 | 28d ago | MIT | A | 286 | Claude Code |
| ui-ux-pro-maxDuanZGit/D-Hub | Skill | 0 | yesterday | MIT | A | 114 | Claude Code |
| create-xilehui-brand-posterCatmint103/xilehui-brand-agent | Skill | 3 | 23d ago | none | A | 169 | Codex |
| xilehui-header-footer-templateCatmint103/xilehui-brand-agent | Skill | 3 | 23d ago | none | A | 95 | Codex |
| SwiftUIonmyway133/claude-code-plugins | Skill | 5 | 10mo ago | MIT | A | 16 | Claude Code |
| Frontend Designonmyway133/claude-code-plugins | Skill | 5 | 10mo ago | MIT | A | 19 | Claude Code |
| design-taste-frontendDuanZGit/D-Hub | Skill | 0 | yesterday | MIT | A | 61 | Claude Code |