Skip to content

0x0funky/agent-sprite-forge / skills/codeart2d

codeart2d

Verified

Explicit-only last resort. Draws game art from code, with no image model - pixel sprites from a PixelSpec, flat vector props, UI and icons from portable SVG, rigged characters with planted feet, FX with a JS runtime, seam-proven autotiles, playable top-down layouts with collision, stylized parallax and ambient plate motion - palette-exact, with QA and review sheets. Use only when the user explicitly asks for code-drawn art, or when generate2dmedia route_media.py finds no image or video route (no-route, exit 3). Never the default - image generation (generate2dsprite, generate2dmap, video2dsprite) comes first for characters, props, maps and FX. Not for painterly, detailed or likeness art, HD-2D plates or realistic fire, smoke or water. Always disclose the result as code-drawn.

FileKindSize
SKILL.mdskill md9.7 KB
agents/openai.yamlconfig364 B
examples/dirt-path.material.jsonconfig2.0 KB
examples/hero.anim.jsonconfig2.2 KB
examples/hero.rig.svgother3.2 KB
examples/meadow-layout.jsonconfig12.9 KB
examples/palette.jsonconfig447 B
examples/parallax-gen.jsonconfig1.4 KB
examples/plate-effects.jsonconfig1.1 KB
examples/potion-icons.svgother3.2 KB
examples/slash.fx.jsonconfig2.0 KB
examples/slime.pixelspec.jsonconfig3.3 KB
examples/walker16x24.pixelspec.jsonconfig5.1 KB
examples/water-grass.material.jsonconfig1.4 KB
references/fx-language.mdmarkdown9.5 KB
references/fx-runtime-contract.mdmarkdown7.3 KB
references/layouts-and-parallax.mdmarkdown20.4 KB
references/pixelspec.mdmarkdown10.8 KB
references/rasterizers.mdmarkdown4.9 KB
references/rig-animation.mdmarkdown18.1 KB
references/runtime/fx-template.mjsscript13.0 KB
references/schemas/codeart.schema.jsonconfig52.3 KB
references/schemas/common.schema.jsonconfig12.9 KB
references/schemas/map.schema.jsonconfig134.0 KB
references/schemas/sprite.schema.jsonconfig80.7 KB
references/style-envelope.mdmarkdown5.1 KB
references/svg-profile.mdmarkdown8.4 KB
references/tiles-and-maps.mdmarkdown15.4 KB
scripts/ambient_bake.pyscript32.5 KB
scripts/autotile_build.pyscript102.7 KB
scripts/codeart_core.pyscript118.8 KB
scripts/forge_core.pyscript86.4 KB
scripts/forge_nav.pyscript95.5 KB
scripts/forge_schema.pyscript26.1 KB
scripts/fx_build.pyscript49.3 KB
scripts/fx_verify.mjsscript29.7 KB
scripts/layout_build.pyscript106.6 KB
scripts/parallax_build.pyscript46.8 KB
scripts/pixel_qa.pyscript21.7 KB
scripts/render_pixelspec.pyscript43.0 KB
scripts/rig_animate.pyscript118.1 KB
scripts/svg_render.pyscript26.3 KB

examples/hero.rig.svg

View on GitHub
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"
     data-codeart="rig.v1" data-anchor="32 59" data-facing="right" data-outline="#1a1c2c">
  <!-- Code-drawn hero rig (codeart2d, no image model). 64x64 canvas, ground line y=59,
       about 48 px visible height. Bones are <g data-pivot>; slots carry data-z (draw order).
       Legs are thigh -> shin -> foot so two-bone IK can plant a flat foot on the ground. -->
  <style>
    .c-out{stroke:#1a1c2c;stroke-width:1}
    .c-skin{fill:#f0b98c} .c-skin-sh{fill:#c8845e}
    .c-hair{fill:#6b3d2e}
    .c-tunic{fill:#3b5dc9} .c-tunic-sh{fill:#29366f} .c-belt{fill:#73464c}
    .c-pants{fill:#4a5a85} .c-pants-sh{fill:#333c57}
    .c-boot{fill:#5a3a2a} .c-boot-sh{fill:#3d2618}
    .c-ink{fill:#1a1c2c}
  </style>
  <g id="root" data-pivot="32 59">
    <g id="hips" data-pivot="32 38">
      <!-- back leg (far side): darker shades, drawn behind the torso -->
      <g id="thigh_b" data-pivot="31 38" data-z="10">
        <rect class="c-pants-sh c-out" x="28.25" y="36.5" width="5.5" height="12" rx="2.5"/>
        <g id="shin_b" data-pivot="31 47.5">
          <rect class="c-pants-sh c-out" x="28.75" y="46.75" width="4.5" height="11.25" rx="2"/>
          <g id="foot_b" data-pivot="31 57" data-z="11">
            <rect class="c-boot-sh c-out" x="28.5" y="55.5" width="8" height="3.5" rx="1.25"/>
          </g>
        </g>
      </g>
      <g id="torso" data-pivot="32 38">
        <!-- back arm: behind everything -->
        <g id="arm_b" data-pivot="31.5 29.5" data-z="5">
          <rect class="c-tunic-sh c-out" x="29.5" y="28.5" width="4" height="7" rx="2"/>
          <g id="fore_b" data-pivot="31.5 35">
            <rect class="c-skin-sh c-out" x="29.5" y="34" width="4" height="6" rx="2"/>
          </g>
        </g>
        <rect data-z="30" class="c-tunic c-out" x="28" y="27" width="10" height="12.5" rx="3"/>
        <rect data-z="31" class="c-belt" x="28.5" y="36" width="9" height="2"/>
        <g id="head" data-pivot="33 27" data-z="40">
          <circle class="c-skin c-out" cx="34" cy="20" r="7.5"/>
          <path data-z="41" class="c-hair c-out"
                d="M26.5 21.5 C26 13.2 32 11 37.6 11.9 C41 12.6 42.4 15.2 41.5 17.5 L37.8 16.6 L36 15 L34.3 17.1 L30.3 17.7 L29.9 23.2 Z"/>
          <rect data-z="42" class="c-ink" x="37" y="19" width="2" height="3"/>
        </g>
        <!-- front arm: in front of the torso and the front leg -->
        <g id="arm_f" data-pivot="34 29.5" data-z="60">
          <rect class="c-tunic c-out" x="32" y="28.5" width="4" height="7" rx="2"/>
          <g id="fore_f" data-pivot="34 35">
            <rect class="c-skin c-out" x="32" y="34" width="4" height="6" rx="2"/>
          </g>
        </g>
      </g>
      <!-- front leg (near side) -->
      <g id="thigh_f" data-pivot="33 38" data-z="50">
        <rect class="c-pants c-out" x="30.25" y="36.5" width="5.5" height="12" rx="2.5"/>
        <g id="shin_f" data-pivot="33 47.5">
          <rect class="c-pants c-out" x="30.75" y="46.75" width="4.5" height="11.25" rx="2"/>
          <g id="foot_f" data-pivot="33 57" data-z="51">
            <rect class="c-boot c-out" x="30.5" y="55.5" width="8" height="3.5" rx="1.25"/>
          </g>
        </g>
      </g>
    </g>
  </g>
</svg>
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall