Asset creator

From Rune-kit/rune · View interactive version

Asset creator is an AI agent skill from the GitHub repository Rune-kit/rune. Creates code-based visual assets — SVG icons, OG image HTML templates, social banners, and icon sets. Use when generating visuals as code (vector/HTML), NOT raster images — for raster generation see @rune-pro/media. Outputs files with usage instructions.

How to use this skill

Skill file

asset-creator

Purpose

Creates code-based visual assets (SVG, CSS, HTML) for projects and marketing. Handles logos, OG images, social cards, and icon sets. Outputs actual files with light/dark variants and usage instructions. This skill creates CODE-based assets — not raster images.

Called By (inbound)

Calls (outbound)

None — pure L3 utility.

Executable Instructions

Step 1: Receive Brief

Accept input from calling skill:

Step 2: Design

Before writing code, determine design parameters:

  1. Check if the project has .rune/conventions.md — use Read to load color palette and typography
  2. If no conventions file, apply defaults based on style:
  1. Select typography:
  1. Apply standard dimensions by asset type if not specified:

Step 3: Create

Use Write to generate the asset files:

For SVG icons and logos:

For OG images and social cards:

For icon sets:

For HTML banners:

Step 4: Variants

If style contains "dark" or the asset type is OG/banner, also create a light mode variant:

For icon sets, create both a filled and outline variant if applicable.

Step 5: Report

Output the following:

## Assets Created

### Generated Files
- [asset_type]: [file_path] ([dimensions])
- [asset_type] (dark): [file_path]
- [asset_type] (light): [file_path]

### Usage Instructions
- OG image: Add <meta property="og:image" content="[url]/[filename]"> to <head>
- SVG icon: <img src="assets/[name].svg" alt="[description]">
- Icon sprite: <svg><use href="assets/icons/sprite.svg#icon-[name]"></use></svg>
- Banner: Open [file] in browser, screenshot at [width]x[height]

### Design Tokens Used
- Background: [color]
- Text: [color]
- Accent: [color]
- Font: [font-family]

Note

This skill creates CODE-based assets (SVG/CSS/HTML). It does not generate raster images (PNG/JPG) directly — those require screenshotting the generated HTML files using browser-pilot.

Output Format

Structured report with generated file paths, usage instructions (HTML snippets), and design tokens used. See Step 5 Report above for full template.

Constraints

  1. MUST confirm output format and dimensions before generating
  2. MUST NOT generate copyrighted or trademarked content
  3. MUST save to project assets directory — not random locations

Sharp Edges

Known failure modes for this skill. Check these before declaring done.

| Failure Mode | Severity | Mitigation |

|---|---|---|

| Generating copyrighted or trademarked content (logos, characters) | CRITICAL | Constraint 2: only generate original assets — no brand marks, characters, or protected symbols |

| Saving to random location instead of assets/ | MEDIUM | Constraint 3: output_dir defaults to assets/ — always save there |

| Missing light/dark variants for OG/banner assets | MEDIUM | Step 4: dark mode variant required for any OG/banner asset |

| Generating raster images (PNG/JPG) directly | MEDIUM | This skill creates SVG/HTML CODE only — raster requires browser-pilot screenshot of generated HTML |

| Drawing system/architecture/flow/sequence/state/ER/swimlane diagrams | MEDIUM | These are editorial diagrams, not icons/OG assets — route to diagram |

Done When

Cost Profile

~500-1500 tokens input, ~500-1000 tokens output. Sonnet for creative quality.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.