/dartsnut-agent:dartsnut-assetsfrom dartsnut-agent
Manages game and widget assets via a manifest, slot loader, and constrained apply workflow. Activates when projects use user-bound images or animations with pygame or Pillow.
Ships in dartsnut-agent. 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.
Create an asset pipeline for art-bearing sprites, icons, animations, objects, tiles, characters, or backgrounds. Draw directly in code only for simple geometric shapes and basic UI primitives such as lines, rectangles, circles, solid fills, bars, and indicators; those need no manifest. Do not approximate art-bearing assets with procedural or code-drawn graphics.
Create dartsnut.assets.json at workspace root:
{
"version": 1,
"slots": [{
"id": "player",
"description": "Main player sprite",
"kind": "static",
"size": [16, 16],
"frames": 1,
"placeholder": { "color": [0, 200, 255] },
"binding": null
}]
}
id: unique kebab-case and stable after creation.kind: static, gif, or spritesheet.size: one frame's [width,height].frames: 1 for static; exact frame count otherwise.binding: author as null; desktop binding owns it.Desktop binding writes originals under assets/_sources/ and processed frames plus meta.json under assets/<slot-id>/. Generated project code must not write those paths.
Create one assets_loader.py exposing:
load_slot(slot_id) -> SlotRendererSlotRenderer.draw(target, x, y, frame_index=None)SlotRenderer.frame_countSlotRenderer.frame_duration_ms(i), defaulting to 100 msLoad manifest paths relative to Path(__file__).parent. Before binding, draw the slot's solid placeholder. After binding, load paths declared in binding.frames and optional durations from binding.meta.
pygame.Surface frames and blit them.slot.draw(...); do not duplicate image loading at call sites.Tell users to bind files through the desktop Assets pane, then Apply Assets.
Apply mode may only inspect the manifest/loader and ensure named slot draw sites use slot.draw(...). Do not scaffold, restructure, rename slots, alter layout/gameplay/fonts, or touch unrelated code. If loader and named call sites are already correct, make no changes. If a safe named call site cannot be identified, report that instead of rewriting broadly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
asset-pipeline, sprite-management, game-assets, slot-loader, dartsnut
npx claudepluginhub dartsnut/dartsnut_emulator --plugin dartsnut-agent4 skills in this plugin
/dartsnut-coreCore Dartsnut project contract, workspace workflow, display mapping, shared pydartsnut rules, and emulator verification. Load for every Dartsnut game or widget change./dartsnut-gameDartsnut pygame game loop, dependencies, dart and button APIs, slot colors, and game-specific small-screen layout. Load when creating or changing a game./dartsnut-widgetDartsnut Pillow widget loop, dependencies, widget_params synchronization, font catalog usage, and glanceable widget layout. Load when creating or changing a widget.Other plugins' skills for the same job