/dartsnut-agent:dartsnut-corefrom dartsnut-agent
Loads Dartsnut project conventions: workspace structure, widget conf.json rules, framebuffer/display constraints, and verification steps. Activated for any Dartsnut game or widget change.
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.
main.py and pyproject.toml. New widgets additionally need conf.json.pyproject.toml has non-empty [project].name and [project].version, plus direct pydartsnut in [project].dependencies.[project].name is project identity and [project].version is publish version. New games omit conf.json. For compatibility, an existing conf.json with "type": "game" is accepted as a legacy game manifest; any other present conf.json must contain both size and fields or the widget is broken.pydartsnut.Dartsnut() instance per process.pydartsnut; do not import bluezero, dbus-python, RPi.GPIO, or evdev.pyproject.toml using [project], requires-python = ">=3.11", dependencies = [...], and [tool.uv] package = false.conf.jsonconf.json is required only for widgets. Its only required top-level sections are fields and size.
size: [width, height] integers, never a "128x128" string.fields: [] when unused.[128,160], [128,128], [128,64], [64,32] based on the requested experience.Widget fields use id, name, type, default, with optional desc and required. Supported types:
text: string; optional integer max.number / slider: number; optional min, max, positive step.toggle: boolean.dropdown: scalar default present in non-empty {display,value} options.checkbox: array of values from non-empty options.color: #RRGGBB.location: {name, lat, lng, timezone}.image: {image, cropbox, image_width?, image_height?}; optional extension accept.Field ids must be unique. Keep conf.json.fields and every dartsnut.widget_params consumer synchronized when adding, renaming, removing, or changing a field.
Image objects matching widget conf.json.size.engine.update_frame_buffer(
np.transpose(pygame.surfarray.array3d(screen), (1, 0, 2))
)
array3d() returns (W, H, 3); transpose is mandatory.
The logical framebuffer may map to a 128x128 main panel plus a 64x32 bottom panel for 128x160. Keep important content within its intended panel, clip deliberately, and use native-size readable text.
After material changes:
check_python for changed Python files.reload_emulator.observe_emulator and inspect panel mapping/nonblank bounds; use PNG output when visual layout matters.get_emulator_logs and fix Traceback, SyntaxError, or ModuleNotFoundError.Finish only when the requested behavior runs, the frame is readable and nonblank, mapping matches the configured widget size or game framebuffer, and logs are clean.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-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.npx claudepluginhub dartsnut/dartsnut_emulator --plugin dartsnut-agent