/dartsnut-agent:dartsnut-gamefrom dartsnut-agent
Provides game loop structure, input APIs, color conventions, and layout guidance for building or modifying a Dartsnut pygame game. Load when creating or changing the game.
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.
Use pygame for rendering and local events, and pydartsnut.Dartsnut for machine input/output.
Default dependencies: numpy==2.4.2, pillow==12.1.1, pydartsnut==1.2.1, pygame-ce==2.5.7.
Loop order:
pygame events and machine input.pygame.display.flip().Use while running and engine.running and handle pygame.QUIT.
engine.get_dart_hits() returns consumed (dart_index, x, y) hits.engine.get_active_darts() is only for presence/timing when required.engine.get_button_events() returns an edge-detected dict with btn_a, btn_b, btn_up, btn_down, btn_left, btn_right.button_events.get("btn_a"); do not iterate (button, pressed) tuples.get_darts() or get_buttons().A, B, UP, DOWN, LEFT, RIGHT.When color identifies dart slots, map dart_index % 4: blue (0,60,255), red (255,0,0), green (0,255,0), yellow (255,216,0). Keep full dart_index when identity among all twelve darts matters.
antialias=False for device text.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/dartsnut-assetsDartsnut asset manifest, stable slot loader contract, placeholders, binding layout, and constrained asset-apply workflow. Load when a game or widget uses user-bound images or animation./dartsnut-coreCore Dartsnut project contract, workspace workflow, display mapping, shared pydartsnut rules, and emulator verification. Load for every Dartsnut game or widget change./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
npx claudepluginhub dartsnut/dartsnut_emulator --plugin dartsnut-agent