Skip to content
SkillScript-led2,342 tokens in use

codeart2d

A last-resort game art skill that draws sprites, props, icons, rigs, FX and autotiles from code and specs, with QA sheets and a clear code-drawn disclosure.

5,887 stars on the repository MIT License0x0funky/agent-sprite-forge · skills/codeart2d
claude plugin marketplace add 0x0funky/agent-sprite-forge --sparse .claude-plugin skills && claude plugin install agent-sprite-forge@agent-sprite-forge
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing codeart2d costs

185tokens idle
2,342tokens in use
43,962tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: references/runtime/fx-template.mjs, scripts/ambient_bake.py, scripts/autotile_build.py, scripts/codeart_core.py, scripts/forge_core.py, scripts/forge_nav.py, scripts/forge_schema.py, scripts/fx_build.py, scripts/fx_verify.mjs, scripts/layout_build.py, scripts/parallax_build.py, scripts/pixel_qa.py, scripts/render_pixelspec.py, scripts/rig_animate.py, scripts/svg_render.py.

Touches

shelldetectednetworkdetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure19/25
  • Examples3/15
  • Output15/15
  • Size9/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Fair
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scripts/ambient_bake.py, line 40
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    scripts/codeart_core.py, line 886
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    scripts/codeart_core.py, line 966
  • Hidden characters−20

    characters that render as nothing or reorder the text

    scripts/forge_core.py, line 478

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity96
  • Maintenance84
  • Community44
  • Maturity28
  • Momentum40

CodeArt2D has the agent write game art as text: PixelSpec JSON for pixel sprites, portable SVG for flat vector props, UI and icons, rig files for characters with planted feet, FX specs, seam-checked autotiles, playable top-down layouts and stylized parallax. Python scripts render, check and package the result.

It is explicit-only. Image generation comes first for characters, props, maps and FX, and this skill steps in when you ask for code-drawn art or when no image or video route is available. Every result is disclosed as code-drawn.

What You Get

  • Pixel sprites with palette variants rendered from a PixelSpec file
  • Flat vector characters, props, UI and icons from portable SVG with palette classes
  • Rigged characters that walk, idle and attack with planted feet, plus FX such as slashes, sparks and impact rings
  • A codeart-meta.json that records the art source as code, and preview and review images to inspect

Common Use Cases

  • Draw a small pixel gem or coin sprite with several palette variants
  • Make flat vector icons and UI pieces for a game prototype
  • Produce seam-proven autotiles or a playable layout when no image model is available
  • Create pose and layout guides that help an image model

What Makes It Unique

It is built around clarity about its limits: a style envelope document says what code art does well, the skill refuses painterly or likeness art and licensed characters, and every output is labelled code-drawn. Tools publish only complete results, and strict QC publishes nothing on failure.

Under The Hood

The agent runs Python scripts from the skill folder through the shell: a media route check, an SVG render doctor, a PixelSpec renderer, an SVG renderer, a rig animator, an FX builder and a quality checker, with node used to verify FX runtimes. It needs numpy and Pillow, and for SVG one rasterizer such as resvg-py, which you install with pip. It reads your spec files and writes new output folders inside your project, refusing to overwrite an existing one. Drawing needs no image model, though the automated scan found network code in one of the scripts and invisible characters in another, so read the scripts before running them on a sensitive machine.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers