Web Asset Generator

Generate web assets including icons, favicons, social media images, and placeholder graphics.

Category: Design & Creative

About this skill

A design utility skill for generating common web assets. Create favicons in multiple sizes, social media preview images, placeholder graphics, app icons, and other visual assets needed for web development projects.

Source and installation instructions

Documentation

Web Asset Generator - Claude Code Skill

๐ŸŽจ A Claude Code Skill for generating favicons, app icons, and social media images

Talk to Claude naturally to create production-ready web assets from logos, text, or emojis!

Claude Code Python 3.6+ License: MIT Mentioned in Awesome Claude Code

What is This?

This is a Claude Code Skill - a modular capability that extends Claude's functionality. When installed, Claude can automatically generate web assets through natural conversation.

Example conversation:

You: "Create a favicon for my coffee shop website"

Claude:

  • Suggests relevant emojis (โ˜• Coffee, ๐Ÿช Store)
  • Generates all icon sizes (16ร—16 through 512ร—512)
  • Validates files and checks accessibility
  • Detects your framework (Next.js, Astro, etc.)
  • Offers to add HTML tags to your code
  • Provides testing validator links

No manual work needed - just ask Claude!

๐ŸŽฌ Demo

See the skill in action:

https://github.com/user-attachments/assets/99b37698-98ec-42fe-87aa-f96b86edc00b

Your browser doesn't support video playback. Download the demo video.

Watch Claude automatically generate favicons, validate them, and integrate them into your project!

๐Ÿš€ Quick Start

1. Prerequisites

2. Install the Plugin

Recommended: Via Plugin Marketplace

The easiest way to install:

/plugins marketplace add alonw0/web-asset-generator
and then
/plugin install web-asset-generator@web-asset-generator-marketplace

Then install dependencies:

pip install Pillow

# Optional: For emoji support
pip install pilmoji 'emoji<2.0.0'

Alternative: Manual Installation

Click to expand manual installation steps

Clone this repository:

git clone https://github.com/alonw0/web-asset-generator.git
cd web-asset-generator

Copy the skill folder to Claude's skills directory:

# macOS/Linux
cp -r skills/web-asset-generator ~/.claude/skills/

# Windows
xcopy /E /I skills\web-asset-generator %USERPROFILE%\.claude\skills\web-asset-generator

Install dependencies:

pip install Pillow
pip install pilmoji 'emoji<2.0.0'  # Optional

3. Restart Claude Code

After installation, restart Claude Code to load the plugin.

4. Use It!

Open Claude Code and try:

Claude will automatically invoke this skill and guide you through the process!

โœจ Features

๐Ÿ“ธ Examples

Rocket emoji favicon
Emoji Favicon
Generated from ๐Ÿš€ with custom background
Text-based social image
Social Media Image
Text with dynamic font sizing

๐Ÿ“ Repository Structure

web-asset-generator/                    # Repository root
โ”œโ”€โ”€ README.md                           # This file
โ”œโ”€โ”€ CONTRIBUTING.md                     # How to contribute
โ”œโ”€โ”€ LICENSE                             # MIT License
โ”œโ”€โ”€ CHANGELOG.md                        # Version history
โ”œโ”€โ”€ .claude-plugin/                     # Plugin metadata
โ”‚   โ””โ”€โ”€ plugin.json                     # Plugin manifest
โ”œโ”€โ”€ marketplace.json                    # Marketplace distribution
โ”œโ”€โ”€ docs/                               # Documentation & examples
โ””โ”€โ”€ skills/                             # Skills directory
    โ””โ”€โ”€ web-asset-generator/           # โญ THE SKILL (copy this folder)
        โ”œโ”€โ”€ SKILL.md                    # Skill definition (Claude reads this)
        โ”œโ”€โ”€ CLAUDE.md                   # Development guidance
        โ”œโ”€โ”€ scripts/
        โ”‚   โ”œโ”€โ”€ generate_favicons.py    # Favicon generator
        โ”‚   โ”œโ”€โ”€ generate_og_images.py   # Social image generator
        โ”‚   โ”œโ”€โ”€ emoji_utils.py          # Emoji utilities
        โ”‚   โ”œโ”€โ”€ check_dependencies.py   # Dependency checker
        โ”‚   โ””โ”€โ”€ lib/
        โ”‚       โ””โ”€โ”€ validators.py       # Validation system
        โ””โ”€โ”€ references/
            โ””โ”€โ”€ specifications.md       # Platform specs

To install: Copy the skills/web-asset-generator/ folder to ~/.claude/skills/

๐Ÿ’ฌ Usage Examples

Once installed, use natural language:

Favicon Generation

"Create a favicon for my tech startup"
"Generate app icons from my logo.png"
"Make a favicon using a rocket emoji"
"I need PWA icons for my website"

Social Media Images

"Create Open Graph images for my blog"
"Generate Twitter card with my tagline"
"Make social sharing images from my logo"
"Create Facebook preview with custom colors"

Emoji Features

"Suggest emojis for my coffee shop"
"Show me good emojis for a fitness app"
"Create favicon from emoji representing growth"

With Validation

"Generate favicons and validate them"
"Create social images and check accessibility"
"Make Open Graph images and verify file sizes"

๐Ÿ› ๏ธ Advanced: Direct Script Usage

You can also use the scripts directly without Claude:

cd ~/.claude/skills/web-asset-generator

# Generate from emoji
python scripts/generate_favicons.py --emoji "๐Ÿš€" output/ all

# Generate social images
python scripts/generate_og_images.py output/ --text "Welcome"

# Check dependencies
python scripts/check_dependencies.py

See skills/web-asset-generator/CLAUDE.md for complete script documentation.

๐Ÿ”ง Troubleshooting

Skill Not Working

  1. Verify installation:

    ls ~/.claude/skills/web-asset-generator/SKILL.md
    
  2. Check dependencies:

    cd ~/.claude/skills/web-asset-generator
    python scripts/check_dependencies.py
    
  3. Restart Claude Code

  4. Your request should include keywords like "favicon", "icon", "social image", or "Open Graph"

Emoji Not Working

Pilmoji requires emoji<2.0.0:

pip install 'emoji<2.0.0'

Claude Doesn't Invoke the Skill

๐Ÿ“š Documentation

๐Ÿค Contributing

Contributions welcome! See CONTRIBUTING.md for:

Priority areas:

๐Ÿ“ License

MIT License - see LICENSE

๐Ÿ™ Acknowledgments

๐Ÿ—บ๏ธ Roadmap

๐Ÿ“ž Support


Built for Claude Code โ€ข Made with โค๏ธ by the community

โญ Star this repo โ€ข Share with Claude Code users!