prompt-to-design

prompt-to-design is a skill for Claude Code from hassancs91/claude-image-generation. It costs 208 tokens per session (3,591 once invoked), scanned C, original, MIT.

A code-based image generator that creates polished PNG graphics from a text description and aspect ratio. It draws gradients, glow, grain, geometric shapes, and typography rather than using a photo-generation model.

In plain words
What is it for?
Use it for posters, covers, wallpapers, gradient backgrounds, geometric compositions, patterns, and abstract product-style graphics. It is not intended for photorealistic images or detailed recognizable illustrations.
Why use it?
It produces crisp designed graphics with controlled text and layout, while avoiding the artifacts common in generated lettering.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for posters, covers, wallpapers, gradient backgrounds, geometric compositions, patterns, and abstract product-style graphics. It is not intended for photorealistic images or detailed recognizable illustrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hassancs91/claude-image-generation/level-1-image-generator
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 hassancs91/claude-image-generation --skill level-1-image-generator
Clone the repo
git clone --depth 1 https://github.com/hassancs91/claude-image-generation

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 prompt-to-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/hassancs91/claude-image-generation/level-1-image-generator/github.svg)](https://agentmods.dev/skills/hassancs91/claude-image-generation/level-1-image-generator)
Your own site
<a href="https://agentmods.dev/skills/hassancs91/claude-image-generation/level-1-image-generator"><img src="https://agentmods.dev/badge/skills/hassancs91/claude-image-generation/level-1-image-generator/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 prompt-to-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/hassancs91/claude-image-generation/level-1-image-generator"><img src="https://agentmods.dev/badge/skills/hassancs91/claude-image-generation/level-1-image-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,591 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00208 $0.03591
Opus 5 $0.00104 $0.01795
Sonnet 5 $0.00042 $0.00718
Haiku 4.5 $0.00021 $0.00359

Measured 11d ago against content hash 06979440437b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

prompt-to-design scanned grade C with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (lib/fonts.py, lib/render.py, reference/geometric_bauhaus.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

never refuse, never return a blob that ignores the prompt.
.claude/skills/level-1-image-generator/SKILL.md · 251 lines

How it starts

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

prompt-to-design

Turn a free-form prompt + an aspect ratio into a finished PNG, built entirely from code. The house style is the level of the four pieces in reference/: posters, typographic covers, mesh/gradient atmospheres, geometric compositions, soft product abstractions. Frictionless like an image generator, but bounded to designed graphics.

What it is (and is not)

Everything is drawn with math and type — no image model. That means:

  • Great at: posters & album art, quote / story / reel / carousel covers, wallpapers, gradient & mesh backgrounds, neon / synthwave, Bauhaus / Swiss geometric art, minimalist logos-as-shapes, patterns, soft "product" orbs, anything typographic. Crisp text, perfect alignment, editable, no AI artifacts.
  • Cannot do: photorealism, a specific real person's face, detailed representational illustration (a recognizable animal, a fantasy castle), brand logos, or copyrighted characters.

Accept any prompt and always output a designed PNG. Silently route the prompt to the rendering approach that fits (see Style routing). Only if a prompt truly demands a photo (e.g. "photorealistic portrait of my friend") say so in one sentence and deliver the strongest stylized/typographic interpretation anyway — never refuse, never return a blob that ignores the prompt.

Inputs

  1. Prompt — free text. Extract: subject/scene, mood, any color cues, and any literal words to render (quotes, titles, handles), plus implied style.
  2. Aspect ratio — a preset or WxH. If unspecified, default 1:1.

The pipeline (follow in order)

  1. Read the prompt. Identify subject, mood, palette hints, literal text, ratio.
  2. Route to a style (one of: typographic, geometric, gradient-atmospheric, soft-minimal, poster-scene) — see below. When ambiguous, pick the one that best serves the words + mood.
  3. Choose a palette (3–6 colors, deliberate). See Palette.
  4. Plan the composition in your head first: the ONE focal element, the hierarchy, where the negative space lives. Balance mass with space.
  5. Assign fonts by role (display / grotesque / geometric / serif / serif_book / mono / pixel / techno). See Typography.
  6. Write a Python script that imports the engine and composes the piece (pattern below). Prefer the library primitives; drop to numpy only for custom effects.
  7. Render to a PNG in the outputs directory.
  8. VERIFY (mandatory gate — see Verify). Fix issues, re-render.
  9. Present the PNG. (Do not show the user the internal design reasoning or any .md notes — PNG only.)

Read the full file on GitHub · 251 lines

Files

What ships with it

53 files 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. 11d ago First seen · 251 lines · 208 tokens per session scan C 06979440437b

Subscribe to this mod's changes

prompt-to-design is a skill published in the GitHub repository hassancs91/claude-image-generation (91 stars, last pushed 23d ago), licensed MIT. It adds 208 tokens to every session and 3,591 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

app-mockup

Create deterministic browser, tablet, laptop, and phone mockups from real screenshots via the local TypeScript renderer in this plugin. Use for marketing visuals, store screenshots, and framed UI previews without ML image generation.

tercumantanumut/selene · 47 tokens

recraft

How to drive Limner's Recraft pipeline, choosing style vs. substyle, generating vector (SVG) art from scratch, and transforming a source image. Load when generating with the Recraft pipeline.

vinsonconsulting/limner · 44 tokens

gc-minimal-zine-poster-v0-3

Generate or analyze poetic paper-texture minimal zine posters with large negative space, a small editorial collage or focal element, experimental typography, and one clear color accent. Use when the user gives a theme, sentence, article, mood, object, photo, content brief, reference images, or an image folder and…

stvlynn/dsh.fish · 100 tokens

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens