generate2dmap

generate2dmap is a skill for Claude Code, Codex from 0x0funky/agent-sprite-forge. It costs 211 tokens per session (2,959 once invoked), scanned A, original, MIT.

A workflow for creating production-ready 2D game maps, including their artwork, objects, collision areas, and target game engine.

In plain words
What is it for?
Use it to create RPG maps, arenas, rooms, levels, or side-scrolling stages for engines such as Phaser, Godot, Unity, Tiled, or LDtk.
Why use it?
It helps turn a map idea into the smallest playable structure that fits the game’s camera, interaction, and editing needs.

Skill for Claude CodeCodex

Written for Claude Code and Codex: ${CLAUDE_SKILL_DIR} variable, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Part of the agent-sprite-forge plugin — 5 skills shipped together

Good fit Use it to create RPG maps, arenas, rooms, levels, or side-scrolling stages for engines such as Phaser, Godot, Unity, Tiled, or LDtk.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0x0funky/agent-sprite-forge/generate2dmap
About the project

Agent Sprite Forge is a Codex-oriented workflow for producing reusable 2D game assets such as sprite sheets, map layers, transparent PNG frames, and animated GIFs. It supports game developers working with Godot, Unity, or other 2D workflows by combining image generation with local processing, asset validation, and engine-ready exports, and its catalogue skills provide the workflow.

0x0funky/agent-sprite-forge · 4,572 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0x0funky/agent-sprite-forge --skill generate2dmap
Clone the repo
git clone --depth 1 https://github.com/0x0funky/agent-sprite-forge

Made for: Claude Code, Codex.

Or install agent-sprite-forge, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate2dmap

README.md
[![agentmods](https://agentmods.dev/badge/skills/0x0funky/agent-sprite-forge/generate2dmap/github.svg)](https://agentmods.dev/skills/0x0funky/agent-sprite-forge/generate2dmap)
Your own site
<a href="https://agentmods.dev/skills/0x0funky/agent-sprite-forge/generate2dmap"><img src="https://agentmods.dev/badge/skills/0x0funky/agent-sprite-forge/generate2dmap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate2dmap

Your own site · 80×15
<a href="https://agentmods.dev/skills/0x0funky/agent-sprite-forge/generate2dmap"><img src="https://agentmods.dev/badge/skills/0x0funky/agent-sprite-forge/generate2dmap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 211 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00211 $0.02959
Opus 5.5 $0.00084 $0.01184
Sonnet 5.5 $0.00042 $0.00592
Haiku 4.5 $0.00021 $0.00296

Measured 19d ago against content hash b1d0b1842a2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate2dmap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

The scan reads SKILL.md. This mod also ships 26 executable files (references/runtime/map-runtime.mjs, scripts/build_motion_mask.py, scripts/build_scene_preview.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/generate2dmap/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate 2D Map

Build the smallest scene bundle the request needs, in the game's art, camera, renderer and data conventions. A background picture needs no game system; a playable map needs explicit geometry and data beyond a painting.

Use when

  • A playable map, level, room set, tilemap, terrain or prop kit, with collision and exits.
  • A parallax background, a battle, title or story backdrop, or an HD-2D plate with lights and motion.
  • Map data must be validated, previewed or exported to Tiled, Godot or LDtk.

Do not use when

Capability check (once per session)

Run python "<skill-dir>/../generate2dmedia/scripts/forge_doctor.py" --host-tools <tools> --save <output>/doctor.json, where <tools> lists the media tools in your own tool list (image_gen, image_edit, image_to_video) or none. Its ROUTES block shows which API keys are configured (yes or no), the local readiness and the resolved order. If encoding.stdout fails, set PYTHONUTF8=1.

Art source

Image generation is the default for map art: terrain and tile sheets, prop kits, HD-2D plates, painted backgrounds and parallax layers. Map data (layout, collision, exits, spawns) is data you write and validate, not art. Record each asset's art_source (api, host_image, existing, or code only on request) and name the route in your reply. A route the user names explicitly wins.

  1. API, when a key is configured: OpenAI (OPENAI_API_KEY), Google Gemini (GEMINI_API_KEY), xAI (XAI_API_KEY), BytePlus Seedream (ARK_API_KEY) or fal.ai (FAL_KEY), in the environment or the user config file (route-media.md). The configured key is the owner's consent, so there is no per-call question.
  2. Local: your own image tool (Codex image_gen, Grok's native tool) when you have one, otherwise the user's signed-in Codex CLI, then Grok CLI.
  3. codeart2d (autotiles, layouts, stylized parallax, ambient loops) only when the user explicitly asks for code-drawn art, or when route_media.py prints no-route (exit 3). Then say "code-drawn, no image model".

Read the full file on GitHub · 95 lines

Files

What ships with it

40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -365 lines · +103 tokens per session b1d0b1842a2d
  2. 1mo ago First seen · 460 lines · 108 tokens per session scan A a691fd9ec000

Subscribe to this mod's changes

generate2dmap is a skill published in the GitHub repository 0x0funky/agent-sprite-forge (4,572 stars, last pushed 20d ago), licensed MIT. It adds 211 tokens to every session and 2,959 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

img2blockbench

Reconstruct a Minecraft-style creature, character, prop, or vehicle concept as a native Blockbench model using an optional provider-selected 3D mesh, agent vision, and deterministic compilation. Use when Codex should turn PNG, JPEG, or WebP artwork, optionally accompanied by a textured GLB or GLTF from any image-to-3D…

orca-gamedev/img2blockbench · 106 tokens

pyxel

Build, debug, and verify games made with Pyxel, the retro game engine for Python. Use whenever a task creates, changes, tests, or reviews a Pyxel game, or asks for a retro Python game that should use Pyxel. Do not use for other engines or general Python work.

kitao/pyxel-skill · 63 tokens

Pixel Art Exporter

Export sprites to PNG, GIF, or spritesheet formats with JSON metadata for game engines. Use when the user wants to "export", "save", "output", "render", "generate", "create file", mentions file formats like "PNG", "GIF", "animated GIF", "spritesheet", "sprite sheet", "texture atlas", "tile sheet", or game engine…

willibrandon/pixel-plugin · 190 tokens

Pixel Art Professional

Apply advanced pixel art techniques including dithering, palette optimization, shading, antialiasing, and color theory. Use when the user mentions "dithering", "dither", "Bayer", "Floyd-Steinberg", "palette", "colors", "reduce colors", "optimize palette", "color limit", "shading", "shadows", "highlights", "lighting"…

willibrandon/pixel-plugin · 220 tokens

Pixel Art Creator

Create new pixel art sprites from scratch with canvas creation, layer management, and basic drawing primitives. Use when the user wants to create a sprite, draw pixel art, make a new canvas, start a new image, begin a new project, or mentions pixel dimensions like "64x64", "32x32 sprite", "128 by 128", "16 pixel…

willibrandon/pixel-plugin · 180 tokens

Pixel Art Animator

Create and manage sprite animations with multiple frames, animation tags, frame durations, and linked cels. Use when the user wants to animate a sprite, add animation, create movement, make it move, mentions "animation", "animated", "frames", "keyframes", "frame rate", "FPS", "timing", "duration", "walk cycle", "run…

willibrandon/pixel-plugin · 175 tokens