/xenon-widgets:build-widgetfrom xenon-widgets
Builds, debugs, and improves widgets for the Xenon dashboard using the xenon-widgets SDK. Guides through creation, testing, and sharing of sandboxed widget tiles.
Ships in xenon-widgets. 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.
Xenon is a dashboard for any spare screen. A widget is a small web page (manifest.json, HTML, CSS, JS) that runs in
a sandbox on a tile and gets live data from Xenon by postMessage. The xenon-widgets tools install it on the
person's own dashboard, so you can see it run and fix it.
xenon_status. If Xenon is not running, or community widgets are off, say what to do and stop.sdk_reference with no section for the contents, then the sections the widget needs (the manifest, the bridge
protocol, the streams it reads, sizing). Read them: do not guess field names.new_widget into a new folder named like the id (a-z, 0-9, dashes), then edit those files.check_widget, fix what it reports, then install_widget.widget_issues, then widget_screenshot. Look at the picture, and at fit in the issues: what the tile cuts off,
by class name and pixels. Fix, install again, look again, until it works and reads well at a glance.share_widget gives a code anyone can paste
into Xenon; the Store takes it from xenon-app.com/submit.<script> blocks and onclick= never run. Scripts are files, events use addEventListener.fetch message to
hosts listed in the manifest. Size requests from init.limits (fetch, store and secret caps, Xenon 5.0+),
never by probing or by a Xenon version.hello first, then wait for init before reading data.badge, mini,
topbarButton or island part plus "tile": false, for a readout that would be an empty box on a tile (a battery
badge). Both: that part plus "background": true. check_widget says which in livesIn; read sdk_reference
section "manifest".container-type: size on the root and cqmin units, no fixed pixel layout."pump": true (round and square) or a list (["round"]). It is then offered as a
pump face, and placement says { where: 'pump', shape }. A round 480 x 480 is the common one: one big readout,
everything inside the circle, no taps. placement.look brings the user's choice for that pump line (colors: four
#rrggbb, the first leading; warn: the #rrggbb for a hot reading; background: the screen's #rrggbb;
size: normal or big; units: c or f, only when picked for that line): draw with it. Read sdk_reference
sections "manifest" and "placement"."pumpStyle": true as well it can be a pump screen's whole style (beside Xenon and Gauge): it then draws every
readings, game, music and clock line, and placement.line ({ face, moment, readings }) says which, each line a new
frame. It may move the ring of lights with { type: 'pumpRing', effect, level, colors } (any of the ring's effects
but the two that read the sound; heat with level warms it as a reading rises), said when what it shows
changes. placement.look.live, when there, is the line's colours following it, from calm to hot. Read
sdk_reference sections "pumpRing" and "placement". new_widget with pumpStyle: true writes a starter that does all this."pumpAlerts": "dots" (the title as a lit sign) or "plain":
Xenon then draws no card over it, posts { type: 'pumpAlert', kind, band, seconds } (kind is notify, call,
timer, discord or hot, null when it is over; never the words) and writes the words itself in the bottom
band. Keep what you draw above it. Kept only for a widget with no actions, hosts, userHosts, hooks, ai, storage,
storageGroup, secrets or clipboard; check_widget says when it was dropped. Read sdk_reference section "pumpAlert".bit stream (pulled: send { type: 'refresh', stream: 'bit' }
about once a second while on screen) and copy bit-kit.js into the package, loaded before your script: XenonBit.mount(el).set(data, { light }) draws it from each bit update, egg included, plays
the moves it makes on the dashboard and shows what it has to tell on its antenna and its computer's screen (signal: done, ask, soon, bell, disk; only the
kind; { signs: false } to draw your own) and what it is busy with (doing: code while Claude Code or Codex work,
gamer while a game runs, tell at its computer with a sign, listen/think/talk while the person talks with Bit, idle). The bit action category adds { type: 'bitReact', move }. Never draw Bit by
hand. Read sdk_reference section "bit". new_widget with bit: true writes a starter with the kit.homeEvents stream: rings, what the cameras picked out, doors and windows
opened, newest first, never a picture. Read sdk_reference section "homeEvents".textContent, never innerHTML.theme and follow its colours, and declare a color-scheme: up to Xenon 4.11.13 a page with none turns the tile white.theme.look === 'liquid' (Liquid Glass, the default) cards inside the tile have no outline,
and a frame like the tile's uses palette.panelBorder, never a guessed alpha. See sdk_reference sections "theme" and "skin".visibility message says hidden.try/catch and console.error
the message: those arrive in full in widget_issues.approved: false means the person has not allowed its permissions yet. Ask them to press Allow on the tile.blocked lists what the sandbox refused, by kind and host.widget_issues.You never approve permissions and can only change the person's own widgets, not ones from the Store.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcimastro98/xenon --plugin xenon-widgets2 skills in this plugin
Other plugins' skills for the same job