Back to Skills

asset-gen

verified

This skill should be used when generating app icons, splash screens, store assets, or marketing materials using the Gemini API. It applies when the user needs to create visual assets for Android or iOS projects, with support for iterative refinement, AI-powered evaluation, style extraction from existing projects, and automatic deployment to project directories.

View on GitHub

Marketplace

nathankrebs-skills

nkrebs13/ClaudeCodeSkills

Plugin

dev-tools

Repository

nkrebs13/ClaudeCodeSkills

skills/asset-gen/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/nkrebs13/ClaudeCodeSkills/blob/main/skills/asset-gen/SKILL.md -a claude-code --skill asset-gen

Installation paths:

Claude
.claude/skills/asset-gen/
Powered by add-skill CLI

Instructions

# Asset Generation Skill

Generate professional app assets (icons, splash screens, store graphics) using the Gemini API with iterative refinement and AI-powered evaluation.

## Prerequisites

- Environment variable `GEMINI_API_KEY` must be set
- Python 3.11+ with dependencies installed

Install dependencies:

```bash
pip install -r ~/.claude/skills/asset-gen/requirements.txt
```

## Quick Start

Run the interactive wizard:

```bash
python ~/.claude/skills/asset-gen/scripts/asset_gen.py
```

With options:

```bash
python ~/.claude/skills/asset-gen/scripts/asset_gen.py --project /path/to/project --iterations 3 --variants 3
```

Custom output directory:

```bash
python ~/.claude/skills/asset-gen/scripts/asset_gen.py --output ~/MyAssets
```

Resume an interrupted session:

```bash
python ~/.claude/skills/asset-gen/scripts/asset_gen.py --resume Cloudy_20260116_220000
```

## Workflow Overview

### 1. Project Discovery

The skill auto-detects project type and existing assets:

- **Android**: Parses `build.gradle`, `AndroidManifest.xml`, checks `res/mipmap-*`
- **iOS**: Parses `Info.plist`, checks `Assets.xcassets/AppIcon.appiconset`
- **KMP**: Detects both platforms via `shared/` and platform-specific modules

### 2. Style Extraction

Builds a style profile from multiple sources:

- **Existing assets**: Analyzes colors, shapes from current icons
- **Theme files**: Extracts colors from `colors.xml`, Compose themes
- **Category inference**: Derives defaults from app category (weather = clean, game = bold)
- **Interactive confirmation**: User reviews and can modify the style profile

### 3. Certainty Calculation

AI determines prompt variation strategy based on style completeness:

| Certainty | Condition | Strategy |
|-----------|-----------|----------|
| High (>0.8) | Existing assets + colors + user confirmed | Consistent prompts |
| Medium (0.5-0.8) | Some style data available | Moderate exploration |
| Low (<0.5) | Cold start, minimal context | Wide exploration |

### 4.

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6529 chars