spec-image

spec-image is a skill for Claude Code from renky1025/agent-skills. It costs 286 tokens per session (2,728 once invoked), scanned A, original, MIT.

A structured image-generation and image-editing workflow that turns a visual request into a specification for the scene, subject, details, and constraints.

In plain words
What is it for?
Use it to create images, edit existing images, combine references, make transparent assets, design interfaces, and produce consistent image series.
Why use it?
Separating image settings from the written description makes requirements such as aspect ratio, transparency, edits, and reference images explicit.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to create images, edit existing images, combine references, make transparent assets, design interfaces, and produce consistent image series.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/renky1025/agent-skills/spec-image
Install

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.

Any agent
npx skills add renky1025/agent-skills --skill spec-image
Clone the repo
git clone --depth 1 https://github.com/renky1025/agent-skills

Made for: Claude Code.

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

agentmods badge for spec-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/renky1025/agent-skills/spec-image/github.svg)](https://agentmods.dev/skills/renky1025/agent-skills/spec-image)
Your own site
<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.

agentmods 80×15 button for spec-image

Your own site · 80×15
<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>
Per session 286 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash dd00810eaf92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

spec-image/SKILL.md · 144 lines

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

六步,不可跳步。

  1. 任务分类(决定走哪条流水线)

    任务类型 判定条件 走法
    GEN 文生图 只有文字需求 加载 references/workflows.md 匹配最接近的场景模板
    EDIT 局部编辑 提供 --edit 原图 + 修改指令 套用"改动与约束分离"契约(见 Step 4)
    MULTI-REF 多图合成 提供 >=2 张 --ref 为每张图编号并指定角色分工(见 Step 4)
    EXTRACT 透明抠图 提供 --edit + 要求透明底 参数 transparent + 反棋盘格/反阴影负向约束
    SERIES 一致性系列 需要多张图保持主体一致 两阶段法:先生成角色卡,再逐场景延续
  2. 参数决策(参数管物理,Prompt 管语义):把需求映射到当前环境可用的图像生成/编辑工具的 实际参数。若工具不支持某参数,则将等价指令折进 Prompt(如横竖版写明 wide horizontal composition)。决策规则见 ## Decision Rules。

  3. 构建 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"兜底, 生僻词逐字母拼写。

  4. 编辑与多图契约

    EDIT 模式核心公式(受保护属性必须逐条列出):

    仅修改 [X]。
    严格保持:[人物身份特征 / 五官 / 姿态 / 光照 / 机位 / 背景 / 画面质量] 不变。
    

Read the full file on GitHub · 144 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · +48 lines · +113 tokens per session dd00810eaf92
  2. 1mo ago First seen · 96 lines · 173 tokens per session scan A 52b4ad21ec3a

Subscribe to this mod's changes

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.

Related

spec-image compared with skills from other repositories

spec-image next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-imagerenky1025/agent-skillsSkill1128d agoMITA286Claude Code
ui-ux-pro-maxDuanZGit/D-HubSkill0yesterdayMITA114Claude Code
create-xilehui-brand-posterCatmint103/xilehui-brand-agentSkill323d agononeA169Codex
xilehui-header-footer-templateCatmint103/xilehui-brand-agentSkill323d agononeA95Codex
SwiftUIonmyway133/claude-code-pluginsSkill510mo agoMITA16Claude Code
Frontend Designonmyway133/claude-code-pluginsSkill510mo agoMITA19Claude Code
design-taste-frontendDuanZGit/D-HubSkill0yesterdayMITA61Claude Code