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/water-grass.material.json
View on GitHub{
"schema": "codeart2d.material_spec.v1",
"tile_size": 16,
"variants": 4,
"seed": 7,
"materials": {
"water": {
"ramp": ["#1d3d73", "#2c62ab", "#4b98dc", "#a5dcf5"],
"walkable": false,
"texture": {
"base": 0,
"marks": [{"rows": ["222"], "weight": 3}, {"rows": ["22"], "weight": 2}, {"rows": ["3"], "weight": 1}],
"marks_per_tile": [2, 3]
},
"edge": {"colors": [3, 2], "against": ["grass", "dirt"]},
"shadow": {"colors": ["#43291a", "#6a4a2c", 1], "from": ["grass", "dirt"]}
},
"grass": {
"ramp": ["#23502f", "#377a3b", "#5aa344", "#8cc657"],
"texture": {
"base": 2,
"marks": [{"rows": ["1.1", ".1."], "weight": 3}, {"rows": ["3", "1"], "weight": 3}, {"rows": ["3"], "weight": 2}],
"marks_per_tile": [3, 5]
},
"edge": {"colors": [0], "against": ["water"]}
},
"dirt": {
"ramp": ["#6a4a2c", "#9c733f", "#c79d62", "#e3c690"],
"texture": {
"base": 2,
"marks": [{"rows": ["3", "1"], "weight": 3}, {"rows": ["33", "10"], "weight": 1}, {"rows": ["1"], "weight": 2}],
"marks_per_tile": [3, 5]
},
"edge": {"colors": ["#3d2618"], "against": ["grass"]},
"shadow": {"colors": [0, 1], "from": ["grass"]}
}
},
"sets": [
{"kind": "wang_corner", "materials": ["water", "grass"]},
{"kind": "blob47", "materials": ["grass", "dirt"]}
]
}
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: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | 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: 197k | Updated | Claude CodeCodex | Verified | Install |