/xenodot:godot-art-stylefrom xenodot
Provides a pattern for a shared const module in Godot that defines named swatches and style scalars, used by procedural generators to maintain visual coherence.
Ships in xenodot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Procedural generators tend to each hard-code their own colours — tools/gen_textures.gd inlines
per-spec PackedColorArray palettes and tools/gen_models.gd declares its own
const SOME_MATERIAL = Color(...). They cohere only because the numbers were hand-copied to
match; edit one and the other silently drifts, and there is nothing for the import skills or an
art-director to point at.
The fix is one shared, named source of truth: a tools/art_style.gd const module (named
swatches + a few style scalars) that both generators preload() and read by name. Then a
texture's "metal" and a model's "metal" are byte-identical by construction, adding a spec means
picking a named swatch (not eyeballing RGB), and the whole game's look has a single dial. This is
the backing config for the art-director flow: the art-director's direction maps onto these named
swatches/scalars, and the generator builder re-runs the unchanged generators.
Method vs facts. This skill is the pattern and the conventional path. The actual swatches and scalar values are the GAME's — each game authors its own
ArtStylefor its genre (a sci-fi shooter's cool metals + emissive accents, a cozy sim's warm woods, …). The framework never ships a palette.
godot-procedural-texture — tools/gen_textures.gd is one of the two consumers; it reads swatches instead of inline palettes.godot-procedural-model — tools/gen_models.gd is the other consumer; it reads swatches instead of local const colours.godot-code-rules — tools/art_style.gd is strict typed GDScript: file header, typed consts, no Variant.res://tools/art_style.gd, class_name ArtStyle, a pure const
container (no instance state). Both generators preload("res://tools/art_style.gd") and
reference ArtStyle.<SWATCH>. This module IS the game's style home — everything about the look
lives here, nowhere else. (Builder decision docs in design/ are a separate thing — not style.)const … : Color. Style scalars are typed consts. Names are descriptive
material+value (e.g. METAL_MID, ACCENT_EMISSIVE), never hex.Color(...) literal for a material that has (or
should have) a named swatch — add the swatch to ArtStyle first, then reference it. Genuinely
one-off accent colours may stay local but should be rare.godot-assets) creates/edits tools/art_style.gd and the generators.
This skill documents the pattern.Author ArtStyle for THIS game. Two ways in:
Create tools/art_style.gd (illustrative shape — fill swatches for YOUR game):
# tools/art_style.gd — single source of truth for the game's palette + style language.
# Both procedural generators preload this; never re-type a swatch's Color elsewhere.
class_name ArtStyle
extends RefCounted
# --- Swatches (named material+value, not hex) — author for YOUR game ---
const METAL_DARK: Color = Color(0.20, 0.22, 0.26)
const METAL_MID: Color = Color(0.40, 0.43, 0.48)
const METAL_LIGHT: Color = Color(0.62, 0.66, 0.72)
const ACCENT_EMISSIVE: Color = Color(0.20, 0.80, 0.90)
# … add the swatches your materials need.
# --- Style scalars (the look's dials) ---
const VALUE_MIN: float = 0.16 # darkest a shade should go (keep silhouette readable)
const VALUE_MAX: float = 0.90 # brightest (avoid blown highlights in the SubViewport)
const SATURATION_CEILING: float = 0.55 # limited-palette feel; no neon
const RAMP_SHADES: int = 3 # shades per material ramp (pixel-art banding)
const TEXEL_DENSITY: int = 32 # px per metre for tileable surface textures
Refactor tools/gen_models.gd: delete its local colour consts, preload("res://tools/art_style.gd"), and replace each Color(...) with the matching ArtStyle.<SWATCH>.
Refactor tools/gen_textures.gd: replace inline per-spec PackedColorArray palette literals with arrays built from ArtStyle swatches; drive shade count off ArtStyle.RAMP_SHADES and tiling off ArtStyle.TEXEL_DENSITY where applicable.
Regenerate both: re-run the generators headless, then $GODOT --headless --path . --import.
Gate: tools/validate.sh, then godot-verify — the regenerated placeholders must render identically to before this refactor (same colours, now sourced from one place).
Adding a new material later: add the swatch(es) to
ArtStyleFIRST, then reference the name in the generator spec. Never re-type aColor(...)a second generator will also need.
SATURATION_CEILING. Silhouette and readability through the SubViewport downscale come first.RAMP_SHADES discrete shades (dark → mid → light), not a smooth gradient — that is the pixel-art read.[VALUE_MIN, VALUE_MAX]; nothing pure-black (kills silhouette) or pure-white (blows out under Filmic tonemap).TEXEL_DENSITY px/m so walls/floors share a pixel scale.tools/art_style.gd exists, is class_name ArtStyle, strict-typed, and validate.sh passes.preload it; neither contains an inline Color(...) for a material that has a named swatch.ArtStyle and regenerating changes that material in BOTH a texture and a model (single source of truth proven).Color(...) appears only in art_style.gd).| Symptom | Fix |
|---|---|
| Texture and model versions of a material don't match | A generator still has an inline Color(...) — replace with the ArtStyle.<SWATCH> |
class_name ArtStyle collides | Name is project-unique; rename only if a real clash exists, update both preload references |
| Placeholders changed appearance after the refactor | A swatch was mistyped vs the seed — diff against the values you seeded from |
| Want to restyle the whole game | Edit ArtStyle swatches/scalars once + regenerate; do NOT touch the generators' logic |
| New material needs a colour | Add the named swatch to ArtStyle first, then reference it — never inline it in the generator |
Framework skill — the game owns its swatches + scalars in tools/art_style.gd; this skill is the pattern, not the palette.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arthur0n/xenodot-forge --plugin xenodot50 skills in this plugin
/agent-reportThe agent→orchestrator handoff protocol. A backgrounded worker's relayed result string truncates on long, tool-heavy turns, so the handoff is an artifact, not a string — the worker Writes its full report to a file, and the orchestrator reads that file directly. Load this whenever a task asks you to hand off a structured report to another agent. Any agent doing background work that must be handed off uses it — not only builders. Defines the report contract the writer follows./autonomous-main-goalThe hive's Autonomous Mode self-drive loop. When a standing Main Goal is active, evaluate it, break it into ordered slices, then on each `[Autonomous check/cavemanUltra-compressed communication mode — always active for this agent. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Drop only when interviewing the user via mcp__ui__form (labels/descriptions must be clear prose).
/godot-3d-pixelationSubViewport-based low-resolution crisp rendering of a 3D scene in Godot 4.x — the foundation of the "3D pixel art" style. Use for pixelated/retro/PSX/low-res 3D, setting SubViewport render resolution, "crisp pixels", restructuring a scene tree so 3D renders below window resolution, or when a downscaled viewport looks blurry./godot-animation-librariesImport and play skeletal animations on a sourced 3D character in Godot 4.6 — the separate-glTF workflow (one model file + anim-only files), merging anim clips into an AnimationLibrary loaded onto your own AnimationPlayer, and retargeting a foreign animation (e.g. Mixamo) onto your skeleton via SkeletonProfileHumanoid. Use when an animated rigged .glb arrives in assets/models/, when a character must stop being a static capsule and play a looping idle/walk, when animations come in their own glTF separate from the model, when a sourced animation targets a different skeleton than your character, or when an imported AnimationPlayer's clips won't play / play on the wrong bones. NOT for static-prop import (that is godot-mesh-import + its style delta), NOT for shader-time foliage sway (godot-foliage), NOT for 2D sprite-frame animation./godot-arena-spatial-designOPT-IN spatial-design principles for a combat/arena encounter space in Godot — nine measurable properties (loop topology, interior cover, partitioned sightlines, cover mix, bounded verticality, landmarks, spawn-to-engagement pacing, scale/density, choke-vs-open) that turn a flat blockout into a real firefight space. Use ONLY when the level being built is a combat/arena encounter (enemy waves, gunfights) — apply ALONGSIDE whichever build method is chosen (`godot-greybox` static default, `godot-runtime-arena` runtime, or `godot-gridmap-level` tile-fill). NOT the build mechanism itself, NOT a general level-design bar for non-combat spaces (that's `level-design-principles`).Other plugins' skills for the same job