En

agent-sprite-forge-claude-skill

Claude Code Local 2D Sprite & Map Generation Skill Pack

开发流程 制作游戏素材生成配图素材 claude ★ 6 Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: agent-sprite-forge-claude-skill.
It is used for: Claude Code Local 2D Sprite & Map Generation Skill Pack
Full Skill content: https://321skill.com/skills/agent-sprite-forge-claude-skill/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the efficiency bottleneck of frequently creating 2D assets in game development. In practice, developers often need to generate pixel-art character sprites and scene maps, but manual drawing is time-consuming and difficult to integrate seamlessly with AI-powered coding workflows. This skill pack combines Claude Code's local skills capability with an image generation gateway, enabling rapid production of usable assets using only natural language descriptions.

Usage is simple: navigate to the adapted directory, install the Python dependencies, and launch Claude Code. You can then invoke the /generate2dsprite or /generate2dmap skills via natural language commands, such as describing the character type, number of animation frames, or map style. The system automatically calls the codex-gateway-imagegen skill to generate the raw image, then uses Python scripts for post-processing—including background removal, frame splitting, alignment, transparent sprite sheet composition, and GIF creation—ultimately outputting resource files ready for use in games.

It is ideal for indie developers and small teams needing rapid iteration on game assets, as well as agent developers looking to integrate AI-assisted asset generation into their coding workflows. Teams already using Claude Code for game logic development but lacking efficient asset generation methods can significantly reduce outsourcing costs for art and shorten prototype validation cycles.

It is recommended to use this tool consistently within Claude Code sessions and ensure the codex-gateway-imagegen skill is installed. Note that it primarily relies on external image generation services and cannot be used offline; the style and quality of generated assets are limited by the underlying image model's capabilities, and complex scenes may require multiple adjustments to the description.

Key Features

Unlike the original Codex skill pack, this version is specifically adapted for Claude Code's local skills structure. It consistently uses `codex-gateway-imagegen` for image generation instead of built-in drawing tools and provides a complete Python post-processing pipeline (frame splitting, transparent sprite sheets, GIF composition), supporting both sprite and map asset types.

Limitations

Requires the `codex-gateway-imagegen` skill to generate images, and image generation speed is affected by network and gateway latency. The Python scripts only support specific input formats and cannot handle non-standard image dimensions or complex layers.

FAQ

Why does the generated image have a magenta background?

The magenta background in the intermediate raw image is used to facilitate automatic background removal by the subsequent Python scripts. The final output will be a PNG sequence or GIF with a transparent background.

What should I do if Claude Code doesn't recognize the /generate2dsprite command?

Ensure you launched Claude Code from the adapted directory (`agent-sprite-forge-claude-plugin`). If it's already open, exit and rerun the `claude` command to reload the skills.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-sprite-forge-claude-skill/raw/index.md to read the original Skill definition (Markdown format) for agent-sprite-forge-claude-skill, and install it according to the instructions.