Skip to content
Development
Skill

/concept-to-image

Turn concepts into static HTML visuals exported as PNG or SVG files via HTML/CSS/SVG. Triggers on: "create an image of", "export as PNG", "save as SVG", "concept to image", "screenshot this HTML". NOT for interactive HTML, use static-web-artifacts-builder.

From plugin
armory
33998 skills2 agents1 command

Claude Code

$ npx -y skills add Mathews-Tom/armory --skill concept-to-image --agent claude-code

SKILL.md

concept-to-image.SKILL.md
name: concept-to-image
description: 'Turn concepts into static HTML visuals exported as PNG or SVG files via HTML/CSS/SVG. Triggers on: "create an image of", "export as PNG", "save as SVG", "concept to image", "screenshot this HTML". NOT for interactive HTML, use static-web-artifacts-builder.'
metadata:
  version: 1.2.1
  category: business
  tags: [image-generation, html-to-png, svg, visual-design]
  difficulty: intermediate

Concept to Image

Creates polished visuals from concepts using HTML/CSS/SVG as a refineable intermediate, then exports to PNG or SVG.

Reference Files

| File | Purpose | | ---------------------------- | ------------------------------------------------------------------------------------ | | `references/design-guide.md` | Design patterns, anti-patterns, color palettes, typography choices, layout examples | | `scripts/render_to_image.py` | Playwright-based export script — takes HTML in, PNG or SVG out | | `assets/template.html` | Base HTML template with `.canvas` container and CSS custom properties pre-configured |

Why HTML as intermediate

HTML is the refineable layer between idea and image. Unlike direct canvas rendering, the user can see the HTML artifact, request changes ("make the title bigger", "swap the colors", "add a third column"), and only export once satisfied. This makes the workflow iterative and controllable.

Workflow

Concept → HTML artifact (view + refine) → PNG or SVG export

1. **Interpret** the user's concept — determine what kind of visual best fits (diagram, infographic, card, chart, etc.) 2. **Design** a self-contained HTML file using inline CSS and inline SVG — zero external dependencies 3. **Present** the HTML as an artifact so the user can preview and request refinements 4. **Iterate** on the HTML based on user feedback (colors, layout, content, sizing) 5. **Export** to PNG and/or SVG when the user is satisfied, using `scripts/render_to_image.py`

Step 1: Interpret the concept

Determine the best visual format:

| User intent | Visual format | Approach | | ------------------------ | ----------------------------- | ---------------------------------- | | Explain a process/flow | Flowchart or pipeline diagram | SVG paths + boxes | | Compare items | Side-by-side or matrix | CSS Grid | | Show hierarchy | Tree or layered diagram | Nested containers + SVG connectors | | Present data | Chart or infographic | SVG shapes + data labels | | Social/marketing graphic | Card or poster | Typography-forward HTML/CSS | | Icon, logo, badge | Compact symbol | Pure SVG | | Educational concept | Annotated diagram | SVG + positioned labels |

Step 2: Design the HTML

Read `references/design-guide.md` for detailed design patterns and anti-patterns.

Core rules:

  • **Single file, self-contained**: All CSS inline in `<style>`, all graphics as inline `<svg>`. No external resources.
  • **Fixed viewport**: Set explicit `width` and `height` on the root container matching the intended export size. This is critical — Playwright screenshots the element at this exact size.
  • **Anti-AI-slop**: Avoid centered-everything layouts, purple gradients, uniform rounded corners, and Inter/system font defaults. See design guide for alternatives.
  • **SVG-first for shapes**: Use inline SVG for icons, connectors, shapes, and any element that should scale cleanly. CSS for layout and typography.
  • **Color with intention**: 3-4 hues max + neutrals. Define as CSS custom properties. Every color encodes meaning.
  • **Start from the template**: Use `assets/template.html` as the base structure.

Sizing guidelines

| Use case | Recommended size | | ---------------------- | ------------------ | | Social media graphic | 1200×630 | | Infographic (portrait) | 800×1200 | | Presentation slide | 1920×1080 | | Square post | 1080×1080 | | Icon/badge | 256×256 or 512×512 | | Wide diagram | 1600×900 |

Set the `.canvas` container to the chosen size. The export script captures this element.

Step 3: Present and iterate

Present the HTML file to the user. They'll see it rendered as an artifact. Common refinement requests:

  • Color/theme changes → update CSS custom properties
  • Layout adjustments → modify grid/flexbox
  • Content changes → edit text/SVG elements
  • Size changes → update `.canvas` dimensions

Each iteration is a quick HTML edit, not a full re-render. This is the key advantage over direct image generation.

Step 4: Export to image

Once the user is satisfied, run the export script:

python3 scripts/render_to_image.py <input.html> <output.png|.svg> [--width 1200] [--height 630] [--scale 2] [--selector ".canvas"]

Parameters

| Param | Default | Description | | ------------- | ---------- | ------------------------------------------------------- | | `input` | (required) | Path to HTML file | | `output` | (required) | Output path. Extension determines format (.png or .svg) | | `--width` | auto | Viewport width (overrides HTML-defined size) | | `--height` | auto | Viewport height (overrides HTML-defined size) | | `--scale` | 2 | Device scale factor for PNG (2 = retina quality) | | `--selector` | `.canvas` | CSS selector for the element to capture | | `--full-page` | false | Capture the full page instead of a specific element |

PNG export

Uses Playwright to launc

Read more
@mathews-tom
Ships witharmory

Curated, production-grade skills, agents, hooks, rules, commands, utilities, and presets for AI coding agents. No magic, no demos — battle-tested workflows built for developers who use AI seriously.

33998 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
339
Star history of Mathews-Tom/armory on GitHub, a chart by star-history.com

Other skills on armory.

doc-condenser

doc-condenser

**DEPRECATED** — Modern Claude models condense and summarize technical documentation natively with comparable quality. The output…

@mathews-tom@mathews-tomInstall Skill
opus-4-7-migration

opus-4-7-migration

DEPRECATED: The Opus 4.7 migration scanner is retired from the active skill catalog. Retained for archival reference only; not…

@mathews-tom@mathews-tomInstall Skill
regex-builder

regex-builder

**DEPRECATED** — Modern Claude models produce accurate, well-explained regex patterns with edge-case test suites natively,…

@mathews-tom@mathews-tomInstall Skill
sequential-thinking

sequential-thinking

**DEPRECATED** — Opus 4.7 uses adaptive thinking (optional at each step) and Sonnet 4.6 handles structured chain-of-thought…

@mathews-tom@mathews-tomInstall Skill
adr-writer

adr-writer

Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked…

@mathews-tom@mathews-tomInstall Skill
agent-builder

agent-builder

Build AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK,…

@mathews-tom@mathews-tomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about concept-to-image.

Which coding agents can use concept-to-image?
concept-to-image installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.