codeart2d
Skill by 0x0funky
Draws 2D game art from code, with no image model. It is for users who explicitly ask for code-drawn art, or when no image or video route exists.
Install codeart2d
Built from the published package, never by AI.
git clone --depth 1 https://github.com/0x0funky/agent-sprite-forge /tmp/agent-sprite-forge && mkdir -p ~/.claude/skills && cp -r /tmp/agent-sprite-forge/skills/codeart2d ~/.claude/skills/codeart2dRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/0x0funky/agent-sprite-forge /tmp/agent-sprite-forge && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-sprite-forge/skills/codeart2d ~/.gemini/antigravity-cli/skills/codeart2dAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
codeart2d is an agent skill that writes 2D game art as text and renders it with Python scripts. It covers pixel sprites from a PixelSpec JSON file, flat vector props, UI and icons from portable SVG, rigged characters with planted feet, FX, seam-proven autotiles, playable top-down layouts with collision, and stylized parallax and ambient motion. Output is palette-exact and comes with QA and review sheets.
The skill is explicit-only and is a last resort in the route order. It runs when the user asks for code-drawn art or when route_media.py reports no-route (exit 3). It is not meant for painterly, detailed or likeness art, HD-2D plates, or realistic fire, smoke or water. Every result must be disclosed as code-drawn, and the source says it is never presented as image-model output.
Written from the project's SKILL.md and checked against it.
What it can do
- PixelSpec renderingRenders pixel sprites and palette variants from a PixelSpec JSON file with render_pixelspec.py.
- Portable SVG artRenders flat vector props, UI and icons from SVG files with palette classes using svg_render.py.
- Rigged charactersAnimates a rig SVG with planted feet from a rig_anim.v1 file using rig_animate.py.
- FX buildingBuilds slash, spark, impact and dust effects from an fx.v1 spec with fx_build.py, with optional runtime export.
- AutotilesBuilds seam-proven terrain transition tilesets from a material spec with autotile_build.py.
- LayoutsBuilds playable top-down maps with roads, props, exits, collision and reachability using layout_build.py.
- Parallax and ambient motionBuilds stylized parallax backgrounds and ambient loops on static plates.
- Pixel QAChecks pixel frames against a palette and produces review sheets with pixel_qa.py.
What you need
- Python
- numpy and Pillow
- An SVG rasterizer such as resvg-py, resvg-js or Chrome/Edge, for SVG art
- Node.js, for fx_verify.mjs
Try asking
- Draw a 32x32 gem pixel sprite in code with three palette variants
- Make a rigged code walk cycle for a small character with planted feet
- Build a code-drawn grass-to-water autotile set with seam checks
Good to know
- Explicit-only: it is not the default and should not replace image generation for characters, props, maps or FX.
- Not suited to painterly, detailed or likeness art, HD-2D plates, or realistic fire, smoke or water.
- Every result must be disclosed as code-drawn, with no image model.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/codeart2d/SKILL.md, skills/codeart2d/references/runtime/fx-template.mjs, skills/codeart2d/scripts/ambient_bake.py, skills/codeart2d/scripts/forge_schema.py, skills/codeart2d/scripts/fx_build.py, skills/codeart2d/scripts/fx_verify.mjs, skills/codeart2d/scripts/parallax_build.py, skills/codeart2d/scripts/pixel_qa.py, skills/codeart2d/scripts/render_pixelspec.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
agents/openai.yaml364 B -
examples/dirt-path.material.json2 KB -
examples/hero.anim.json2 KB -
examples/hero.rig.svg3 KB
Show all 42 files
-
examples/meadow-layout.json13 KB -
examples/palette.json447 B -
examples/parallax-gen.json1 KB -
examples/plate-effects.json1 KB -
examples/potion-icons.svg3 KB -
examples/slash.fx.json2 KB -
examples/slime.pixelspec.json3 KB -
examples/walker16x24.pixelspec.json5 KB -
examples/water-grass.material.json1 KB -
references/fx-language.md10 KB -
references/fx-runtime-contract.md7 KB -
references/layouts-and-parallax.md20 KB -
references/pixelspec.md11 KB -
references/rasterizers.md5 KB -
references/rig-animation.md18 KB -
references/runtime/fx-template.mjs13 KB -
references/schemas/codeart.schema.json52 KB -
references/schemas/common.schema.json13 KB -
references/schemas/map.schema.json134 KB -
references/schemas/sprite.schema.json81 KB -
references/style-envelope.md5 KB -
references/svg-profile.md8 KB -
references/tiles-and-maps.md15 KB -
scripts/ambient_bake.py33 KB -
scripts/autotile_build.py103 KB
And 12 more files on GitHub.
Alternatives to codeart2d
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
codeart2d: common questions
When should I use codeart2d instead of an image model?
The source says to use it only when the user explicitly asks for code-drawn art, or when route_media.py finds no image or video route. Image generation comes first for characters, props, maps and FX.
What does the no-route exit code mean?
Exit 3 from route_media.py means no API key is configured and no local image or video route exists. The skill then offers code art as an option.
Does the output get labelled?
Yes. The source requires every result to be disclosed as code-drawn, and codeart-meta.json records art_source as code.
How do I install codeart2d?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is codeart2d free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is codeart2d safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to codeart2d?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
