New to Claude Skills? Learn how to install them →

wanshuiyin on GitHub

Pixel Art SVG Generator

Free

Create pixel art SVG illustrations for your projects.

Get this skill

Free · Opens the source repo

What Pixel Art SVG Generator does

The Pixel Art SVG Generator is a specialized tool for developers and designers looking to create pixel art illustrations in SVG format. This skill is particularly useful for enhancing documentation, READMEs, or presentation slides with visually appealing graphics. By providing a structured approach to pixel art design, users can easily generate characters and scenes that fit their branding and messaging needs. The generator operates on a defined pixel grid, ensuring that each character is composed of 7px squares, which allows for a consistent and professional appearance.

The design principles outlined in the skill emphasize simplicity and clarity, encouraging users to limit their color palette to 3-5 colors per character. This not only streamlines the creation process but also ensures that the illustrations remain visually cohesive. Users can design characters with distinct features, such as hair, eyes, and clothing, using a predefined set of colors. The skill provides templates for various character types and scene compositions, making it easy to create engaging visuals that communicate effectively.

This skill is ideal for anyone who needs quick and customizable pixel art, whether it's for a tech-focused README or a playful presentation. The workflow is straightforward, guiding users through understanding their design needs, generating the SVG, and iterating based on feedback. The emphasis on maintaining a tight viewBox and ensuring no personal information is included in the final SVG adds a layer of professionalism to the generated assets. With the capability to preview and iterate on designs, users can achieve the desired outcome efficiently.

Overall, the Pixel Art SVG Generator is a valuable addition for developers and designers seeking a practical solution for creating pixel art illustrations that enhance their projects. It combines ease of use with a structured approach to design, ensuring high-quality results that align with user specifications.

When to use it

Use this skill when you need to create pixel art illustrations for documentation, presentations, or any project requiring visual elements.

When not to use it

This skill may not be suitable if you require complex or highly detailed illustrations beyond the pixel art style it supports.

What you can build with it

Creating README Graphics

Generate pixel art illustrations to serve as hero images for your README files, enhancing visual appeal.

Designing Presentation Slides

Use the generator to create engaging pixel art visuals for slides, making your presentations more attractive.

Crafting Character Scenes

Design scenes with multiple characters and dialogue bubbles for storytelling or instructional content.

How to install Pixel Art SVG Generator

View source

1. Install with the skills CLI

npx skills add wanshuiyin/auto-claude-code-research-in-sleep/pixel-art --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by wanshuiyin

Pixel Art SVG Generator

Create a pixel art SVG illustration: $ARGUMENTS

Design Principles

Pixel Grid

  • Each "pixel" is a <rect> with width/height of 7px
  • Grid spacing: 7px (no gaps between pixels)
  • Characters are typically 8-10 pixels wide, 8-12 pixels tall
  • Use <g transform="translate(x,y)"> to position and reuse character groups

Color Palette

Keep it simple — 3-5 colors per character:

  • Skin: #FFDAB9 (light), #E8967A / #D4956A (blush/shadow)
  • Eyes: #333
  • Hair: #8B5E3C (brown), #2C2C2C (black), #FFD700 (blonde), #C0392B (red)
  • Clothes: use project's brand color (e.g. #4A9EDA for blue, #74AA63 for green)
  • Shoes/pants: #444
  • Accessories: #555 (glasses frames), #FFD700 (crown)

Character Template (7px grid)

Row 0 (hair top):     4 pixels centered
Row 1 (hair):         6 pixels wide
Row 2 (face top):     6 pixels — all skin
Row 3 (eyes):         6 pixels — skin, eye, skin, skin, eye, skin
Row 4 (mouth):        6 pixels — skin, skin, mouth, mouth, skin, skin
Row 5 (body top):     8 pixels — hand, 6 shirt, hand
Row 6 (body):         6 pixels — all shirt
Row 7 (legs):         2+2 pixels — with gap in middle

Scene Composition

Chat Dialogue Layout (like our hero image)

  • Two characters on left/right sides, vertically centered
  • Chat bubbles between them, alternating left/right
  • Bubble tails point toward the speaking character
  • Arrows between bubbles show direction of communication
  • Use orient="auto" markers for arrow heads
  • Bottom: tagline or decoration

Single Character with Label

  • Character centered
  • Label text below
  • Optional: speech bubble above

Group Scene

  • Characters spaced evenly
  • Optional: ground line, background elements
  • Keep viewBox tight — no wasted space

SVG Structure

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 W H" font-family="monospace">
  <defs>
    <!-- Arrow markers if needed -->
  </defs>

  <rect width="W" height="H" fill="#fafbfc" rx="12"/>  <!-- Background -->

  <!-- Characters via <g transform="translate(...)"> -->
  <!-- Dialogue bubbles: <rect> + <polygon> tail + <text> -->
  <!-- Arrows: <line> with marker-end -->
  <!-- Labels: <text> with text-anchor="middle" -->
</svg>

Chat Bubble Recipe

<!-- Blue bubble (left character speaks) -->
<rect x="110" y="29" width="280" height="26" fill="#e8f4fd" stroke="#4a9eda" stroke-width="1.5" rx="8"/>
<!-- Tail pointing left toward character -->
<polygon points="108,41 99,47 108,46" fill="#e8f4fd" stroke="#4a9eda" stroke-width="1.5"/>
<rect x="107" y="40" width="3" height="7" fill="#e8f4fd"/>  <!-- covers stroke at junction -->
<text x="123" y="46" font-size="13px">📄 Message here</text>

<!-- Orange bubble (right character responds) -->
<rect x="490" y="71" width="280" height="26" fill="#fdf2e8" stroke="#da8a4a" stroke-width="1.5" rx="8"/>
<!-- Tail pointing right toward character -->
<polygon points="772,83 781,89 772,88" fill="#fdf2e8" stroke="#da8a4a" stroke-width="1.5"/>
<rect x="770" y="82" width="3" height="7" fill="#fdf2e8"/>
<text x="503" y="88" font-size="13px">🤔 Response here</text>

Arrow Recipe

<defs>
  <marker id="ar" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
    <polygon points="0 0, 8 3, 0 6" fill="#4a9eda"/>
  </marker>
</defs>
<!-- Right arrow (→): x1 < x2 -->
<line x1="392" y1="42" x2="465" y2="42" stroke="#4a9eda" stroke-width="2" marker-end="url(#ar)"/>
<!-- Left arrow (←): x1 > x2 -->
<line x1="488" y1="84" x2="420" y2="84" stroke="#da8a4a" stroke-width="2" marker-end="url(#ar-o)"/>

Workflow

Step 1: Understand the Request

  • What characters/objects to draw?
  • What's the scene? (dialogue, portrait, group, diagram)
  • What colors/brand to match?
  • What size? (compact for badge, wide for README hero)

Step 2: Generate SVG

  • Write to a temp file or project directory
  • Open with a local preview command for visual inspection
  • Keep viewBox tight — measure actual content bounds

Step 3: Iterate with User

  • User provides feedback on screenshot
  • Common fixes: overlap, arrow direction, spacing, sizing
  • Use Edit for small tweaks, Write for major redesigns
  • Typical: 2-4 iterations to get it right

Step 4: Finalize

  • Ensure no personal info in the SVG
  • Clean up: remove unused defs, tighten viewBox
  • Suggest adding to README: ![Alt text](filename.svg)

Capability Rule

If the user expects local preview or interactive visual iteration and the current environment cannot open or preview the generated asset, stop and tell the user what needs to be configured. Do not silently downgrade into a write-only path unless the user explicitly asked for that mode.

Common Pitfalls

  • Arrow direction: orient="auto" follows line direction. Line going right→left = arrowhead points left
  • Bubble overlap: keep 38-44px vertical spacing between rows
  • Text overflow: monospace 13px ≈ 7.8px/char, emoji ≈ 14px. Measure before setting bubble width
  • Character overlap with bubbles: keep character x-zone and bubble x-zone separated by ≥10px
  • viewBox too large: match viewBox to actual content, add ~10px padding
  • Tail stroke artifact: always add a small <rect> at the bubble-tail junction to cover the stroke line

Frequently asked questions about Pixel Art SVG Generator

Similar skills