Skip to content
Development
Skill

/web-asset-generator

Generate web assets including favicons, app icons (PWA), and social media meta images (Open Graph) for Facebook, Twitter, WhatsApp, and LinkedIn. Use when users need icons, favicons, social sharing images, or Open Graph images from logos or text slogans. Handles image resizing,

From plugin
spellbook
289111 skills7 agents2 commands

Claude Code

$ npx -y skills add majiayu000/spellbook --skill web-asset-generator --agent claude-code

SKILL.md

web-asset-generator.SKILL.md
name: web-asset-generator
description: Generate web assets including favicons, app icons (PWA), and social media meta images (Open Graph) for Facebook, Twitter, WhatsApp, and LinkedIn. Use when users need icons, favicons, social sharing images, or Open Graph images from logos or text slogans. Handles image resizing, text-to-image generation, and provides proper HTML meta tags.

Web Asset Generator

Generate professional web assets from logos or text slogans, including favicons, app icons, and social media meta images.

Quick Start

When a user requests web assets:

1. **Use AskUserQuestion tool to clarify needs** if not specified:

  • What type of assets they need (favicons, app icons, social images, or everything)
  • Whether they have source material (logo image vs text/slogan)
  • For text-based images: color preferences

2. **Check for source material**:

  • If user uploaded an image: use it as the source
  • If user provides text/slogan: generate text-based images

3. **Run the appropriate script(s)**:

  • Favicons/icons: `scripts/generate_favicons.py`
  • Social media images: `scripts/generate_og_images.py`

4. **Provide the generated assets and HTML tags** to the user

Using Interactive Questions

**IMPORTANT**: Always use the AskUserQuestion tool to gather requirements instead of plain text questions. This provides a better user experience with visual selection UI.

Why Use AskUserQuestion?

โœ… **Visual UI**: Users see options as clickable chips/tags instead of typing responses โœ… **Faster**: Click to select instead of typing out answers โœ… **Clearer**: Descriptions explain what each option means โœ… **Fewer errors**: No typos or misunderstandings from free-form text โœ… **Professional**: Consistent with modern Claude Code experience

Example Flow

**User request**: "I need web assets"

**Claude uses AskUserQuestion** (not plain text):

What type of web assets do you need?                    [Asset type]
โ—‹ Favicons only - Browser tab icons (16x16, 32x32, 96x96) and favicon.ico
โ—‹ App icons only - PWA icons for iOS/Android (180x180, 192x192, 512x512)
โ—‹ Social images only - Open Graph images for Facebook, Twitter, WhatsApp, LinkedIn
โ— Everything - Complete package: favicons + app icons + social images

User clicks โ†’ Claude immediately knows what to generate

Question Patterns

Below are the standard question patterns to use in various scenarios. Copy the structure and adapt as needed.

Question Pattern 1: Asset Type Selection

When the user's request is vague (e.g., "create web assets", "I need icons"), use AskUserQuestion:

**Question**: "What type of web assets do you need?" **Header**: "Asset type" **Options**:

  • **"Favicons only"** - Description: "Browser tab icons (16x16, 32x32, 96x96) and favicon.ico"
  • **"App icons only"** - Description: "PWA icons for iOS/Android (180x180, 192x192, 512x512)"
  • **"Social images only"** - Description: "Open Graph images for Facebook, Twitter, WhatsApp, LinkedIn"
  • **"Everything"** - Description: "Complete package: favicons + app icons + social images"

Question Pattern 2: Source Material

When the asset type is determined but source is unclear:

**Question**: "What source material will you provide?" **Header**: "Source" **Options**:

  • **"Logo image"** - Description: "I have or will upload a logo/image file"
  • **"Emoji"** - Description: "Generate favicon from an emoji character"
  • **"Text/slogan"** - Description: "Create images from text only"
  • **"Logo + text"** - Description: "Combine logo with text overlay (for social images)"

Question Pattern 3: Platform Selection (for social images)

When user requests social images but doesn't specify platforms:

**Question**: "Which social media platforms do you need images for?" **Header**: "Platforms" **Multi-select**: true **Options**:

  • **"Facebook/WhatsApp/LinkedIn"** - Description: "Standard 1200x630 Open Graph format"
  • **"Twitter"** - Description: "1200x675 (16:9 ratio) for large image cards"
  • **"All platforms"** - Description: "Generate all variants including square format"

Question Pattern 4: Color Preferences (for text-based images)

When generating text-based social images:

**Question**: "What colors should we use for your social images?" **Header**: "Colors" **Options**:

  • **"I'll provide colors"** - Description: "Let me specify exact hex codes for brand colors"
  • **"Default theme"** - Description: "Use default purple background (#4F46E5) with white text"
  • **"Extract from logo"** - Description: "Auto-detect brand colors from uploaded logo"
  • **"Custom gradient"** - Description: "Let me choose gradient colors"

Question Pattern 5: Icon Type Clarification

When user says "create icons" or "generate icons" (ambiguous):

**Question**: "What kind of icons do you need?" **Header**: "Icon type" **Options**:

  • **"Website favicon"** - Description: "Small browser tab icon"
  • **"App icons (PWA)"** - Description: "Mobile home screen icons"
  • **"Both"** - Description: "Favicon + app icons"

Question Pattern 6: Emoji Selection

When user selects "Emoji" as source material:

**Step 1**: Ask for project description (free text):

  • "What is your website/app about?"
  • Use this to generate emoji suggestions

**Step 2**: Use AskUserQuestion to present the 4 suggested emojis:

**Question**: "Which emoji best represents your project?" **Header**: "Emoji" **Options**: (Dynamically generated based on project description)

  • Example: **"๐Ÿš€ Rocket"** - Description: "Rocket, launch, startup, space"
  • Example: **"โ˜• Coffee"** - Description: "Coffee, cafe, beverage, drink"
  • Example: **"๐Ÿ’ป Laptop"** - Description: "Computer, laptop, code, dev"
  • Example: **"๐ŸŽจ Art"** - Description: "Art, design, creative, paint"

**Implementation**:

# Get suggestions
python scripts/generate_favicons.py --suggest "coffee shop" output/ all

# Then generate with selected emoji
python scripts/generate_favicons.py --emoji "โ˜•" output/ all

**Optional**: Ask about backgro

Read more
@majiayu000
Ships withspellbook

Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.

289111 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
289
Star history of majiayu000/spellbook on GitHub, a chart by star-history.com

Other skills on spellbook.

idea-analogist

idea-analogist

ๆƒณๆณ•็พค่Šๅฎค โ€” ็ฑปๆฏ”่€…่ง’่‰ฒใ€‚่ขซ idea-team ไธป็ผ–ๆŽ’ๅ™จ่ฐƒ็”จ๏ผŒๆˆ–็”จๆˆทๅ•็‹ฌ่ฏด"็ฑปๆฏ”ไธ€ไธ‹"ใ€"ๅˆซ็š„่กŒไธšๆœ‰ๆฒกๆœ‰"ใ€"yes-and ๆ‰ฉๅฑ•"ใ€"X ่ฎฉไฝ ๆƒณๅˆฐไป€ไนˆ"ใ€"่ทจ็•Œๅฏ็คบ"ๆ—ถ่งฆๅ‘ใ€‚**ไธ“้—จๅš่ทจ็•Œ็ฑปๆฏ” + yes-andโ€ฆ

idea-devils-advocate

idea-devils-advocate

ๆƒณๆณ•็พค่Šๅฎค โ€” ๅๆ–น่ง’่‰ฒใ€‚่ขซ idea-team ไธป็ผ–ๆŽ’ๅ™จ่ฐƒ็”จ๏ผŒๆˆ–็”จๆˆทๅ•็‹ฌ่ฏด"ๅๆ–นๆ„่ง"ใ€"ๆŒ‘่ฟ™ไธชๆƒณๆณ•็š„ๅˆบ"ใ€"ไธบไป€ไนˆไผšๅคฑ่ดฅ"ใ€"ๆ‰พๆผๆดž / ๅไพ‹"ใ€"devil'sโ€ฆ

idea-research

idea-research

ๆƒณๆณ•็พค่Šๅฎค โ€” ่ฐƒ็ ”ๅ‘˜่ง’่‰ฒใ€‚่ขซ idea-team ไธป็ผ–ๆŽ’ๅ™จ่ฐƒ็”จ๏ผŒๆˆ–็”จๆˆทๅ•็‹ฌ่ฏด"่ฐƒ็ ”ไธ€ไธ‹ X"ใ€"X ็š„็Žฐ็Šถ/็ซžๅ“/ๆ•ฐๆฎ"ใ€"ๆ‰พ 2026 ๆ•ฐๆฎ"ใ€"ไบ‹ๅฎžๅบ•"ๆ—ถ่งฆๅ‘ใ€‚**็”จ WebSearch ๆ‹‰็œŸๅฎž 2026โ€ฆ

idea-team

idea-team

ๆƒณๆณ•็พค่ŠๅฎคไธปๆŒไบบ โ€” ๆŠŠไธ€ๅฅ่ฏๆƒณๆณ•ไธข็ป™ๅคš่ง’่‰ฒ AI ๅ›ข้˜Ÿ๏ผˆ่ฐƒ็ ”ๅ‘˜/ๅๆ–น/็ฑปๆฏ”่€…๏ผ‰ๅšๆŸฅๆผ่กฅ็ผบใ€‚ๆฏไธช่ง’่‰ฒๆœ‰่‡ชๅทฑ็š„ voice๏ผŒไป–ไปฌไบ’็›ธ @ ๆŽฅ่ฏ๏ผ›ไฝ ้šๆ—ถๆ’่ฏใ€‚**่ฟ™ๆ˜ฏๅˆ›ๆ„ๆ‰ฉๅฑ•ๅทฅๅ…ท๏ผŒไธๆ‰“ๅˆ†ใ€ไธๅฆๅ†ณใ€ไธๅ ต่ทฏ**ใ€‚Use whenโ€ฆ

idea-to-product

idea-to-product

็ซฏๅˆฐ็ซฏไบงๅ“ๆ•™็ปƒ โ€” ๆŠŠไธ€ๅฅ่ฏๆƒณๆณ•่ตฐๅˆฐ PRD + ๅฏ็‚นๅ‡ป HTML ๅŽŸๅž‹ใ€‚ไผš้กถๅ˜ดใ€ๅผบๅˆถ็ ๅŠŸ่ƒฝใ€็”จ Nielsen + Norman ๅšๅ‹ๅฅฝๆ€ง็กฌๆฃ€ใ€‚Use when user ่ฏด"ๆˆ‘ๆœ‰ไธ€ไธชๆƒณๆณ•"ใ€"ๆƒณๅšไธ€ไธชไบงๅ“"ใ€"ๅš MVP"ใ€"ๅ†™โ€ฆ

app-ui-design

app-ui-design

Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuringโ€ฆ

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,โ€ฆ

ecc11d293k
@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 web-asset-generator.

Which coding agents can use web-asset-generator?
web-asset-generator 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.