0x0funky/agent-sprite-forge / skills/codeart2d
codeart2d
VerifiedExplicit-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.
examples/slime.pixelspec.json
View on GitHub{
"schema": "codeart2d.pixelspec.v1",
"name": "slime",
"canvas": [32, 32],
"anchor_px": [16, 31],
"palette": {
"k": "#1a1c2c",
"d": "#257179",
"g": "#38b764",
"l": "#a7f070",
"H": "#f4f4f4"
},
"variants": {
"green": {},
"blue": {"d": "#29366f", "g": "#3b5dc9", "l": "#41a6f6", "H": "#f4f4f4"},
"red": {"d": "#5d275d", "g": "#b13e53", "l": "#ef7d57", "H": "#ffcd75"}
},
"poses": {
"rest": [
".............llllll.............",
"...........Hlllllllll...........",
"..........lllllllllggg..........",
".........lllllllllggggg.........",
"........lllllllllggggggg........",
"........llllllllgggggggg........",
".......llllllllgggggggggd.......",
".......lllllllgggggggggdd.......",
".......lllllggggggggggddd.......",
"......lllllgggggggggdddddd......",
"......llllgggggggggddddddd......",
"......lllgggggggggdddddddd......",
".......dddddddddddddddddd......."
],
"squash": [
"............llllllll............",
"..........lllllllllllg..........",
".........llllllllllgggg.........",
".......lllllllllllggggggg.......",
".......lllllllllggggggggg.......",
"......lllllllllggggggggggd......",
".....llllllllggggggggggdddd.....",
".....llllllgggggggggggddddd.....",
".....lllllggggggggggddddddd.....",
".....lllgggggggggggdddddddd.....",
"......dddddddddddddddddddd......"
],
"stretch": [
"..............llll..............",
"............llllllll............",
"...........Hlllllllgg...........",
"..........Hlllllllgggg..........",
"..........llllllllgggg..........",
".........llllllllgggggg.........",
".........lllllllggggggg.........",
".........llllllgggggggg.........",
"........llllllggggggggdd........",
"........lllllggggggggddd........",
"........llllggggggggdddd........",
"........llllgggggggddddd........",
"........lllgggggggdddddd........",
"........llggggggggdddddd........",
".........dddddddddddddd........."
]
},
"outline": {"mode": "solid", "color": "k"},
"layers": [
{"name": "body", "z": 0, "origin": [0, 0], "rows": [".............llllll.............", "...........Hlllllllll...........", "..........lllllllllggg..........", ".........lllllllllggggg.........", "........lllllllllggggggg........", "........llllllllgggggggg........", ".......llllllllgggggggggd.......", ".......lllllllgggggggggdd.......", ".......lllllggggggggggddd.......", "......lllllgggggggggdddddd......", "......llllgggggggggddddddd......", "......lllgggggggggdddddddd......", ".......dddddddddddddddddd......."]},
{"name": "eyes", "z": 1, "origin": [16, 0], "rows": ["k.k"]}
],
"frames": [
{"name": "rest", "layers": {"body": {"rows": "rest", "dy": 17}, "eyes": {"dx": -1, "dy": 22}}},
{"name": "squash", "layers": {"body": {"rows": "squash", "dy": 19}, "eyes": {"dx": -1, "dy": 23}}},
{"name": "rest-2", "layers": {"body": {"rows": "rest", "dy": 17}, "eyes": {"dx": -1, "dy": 22}}},
{"name": "stretch", "layers": {"body": {"rows": "stretch", "dy": 15}, "eyes": {"dx": -1, "dy": 20}}}
],
"clips": {
"idle": {"frames": ["rest", "squash", "rest-2", "stretch"], "duration_ms": [180, 120, 140, 160], "loop": true}
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |