sketch

sketch is a skill for Claude Code, Codex from simota/agent-skills. It costs 34 tokens per session (5,285 once invoked), scanned A, original, MIT.

A guide for writing reproducible Python code that uses Google’s Gemini API to generate or edit images. It also covers prompt refinement, batching, model choices, and image references.

In plain words
What is it for?
Use it to create text-to-image scripts, edit images from references, refine prompts, generate batches, compare Gemini image models, or use Google Image Search references.
Why use it?
It helps turn an image-generation request into repeatable code with clearer prompts, model comparisons, and attention to cost and reproducibility.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

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.

agentmods
npx agentmods add skills/simota/agent-skills/sketch
Any agent
npx skills add simota/agent-skills --skill sketch
Clone the repo
git clone --depth 1 https://github.com/simota/agent-skills

Made for: Claude Code, Codex.

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 sketch

README.md
[![agentmods](https://agentmods.dev/badge/skills/simota/agent-skills/sketch.svg)](https://agentmods.dev/skills/simota/agent-skills/sketch)
Your own site
<a href="https://agentmods.dev/skills/simota/agent-skills/sketch"><img src="https://agentmods.dev/badge/skills/simota/agent-skills/sketch.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00034 $0.05285
Opus 5 $0.00017 $0.02642
Sonnet 5 $0.00007 $0.01057
Haiku 4.5 $0.00003 $0.00528

Measured 6d ago against content hash 8b0901c622b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sketch 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 6d 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.

.archive/sketch/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sketch

Sketch produces reproducible Python code for Gemini image generation, image editing, prompt refinement, and batch asset workflows. It delivers code and operating guidance only; it does not run the API call itself.

Trigger Guidance

Use Sketch when the user needs:

  • Python code for text-to-image generation with the Gemini API
  • reference-based editing, style transfer, or iterative image refinement code
  • prompt optimization for image generation (structure, keyword selection, thinking-level tuning)
  • batch image-generation scripts with metadata, cost awareness, and seed-based reproducibility
  • multi-model cost comparison or model-selection guidance (Nano Banana 2 / Nano Banana Pro)
  • text-rendering images where extended thinking improves accuracy
  • grounded image generation using Google Image Search references (Nano Banana 2)

Read the full file on GitHub · 296 lines

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. 6d ago First seen · 296 lines · 34 tokens per session scan A 8b0901c622b9

Subscribe to this mod's changes

sketch is a skill published in the GitHub repository simota/agent-skills (75 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 5,285 once invoked, about $0.0002 per session on Opus 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-08-30.