Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/binary16labs/prime-silo/space-widgetsnpx skills add binary16labs/prime-silo --skill space-widgetsgit clone --depth 1 https://github.com/binary16labs/prime-siloWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.02479 |
| Opus 5 | $0.00008 | $0.01239 |
| Sonnet 5 | $0.00003 | $0.00496 |
| Haiku 4.5 | $0.00002 | $0.00248 |
Grade A, and why
Space Widgets scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- For external HTTP reads, use `fetch(url)` or `space.fetchExternal(url)`. Do not hardcode third-party CORS proxy services; the runtime already retries blocked origins through `/api/proxy` This is a copy
100% identical to Space Widgets — 51 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use this skill for widget work in the current open space
storage
- ~/spaces//space.yaml = space meta + live layout
- ~/spaces//widgets/.yaml = widget meta + renderer
- ~/spaces//data/ and assets/ = widget-owned files
- ~/spaces//scripts/ = current-space shared JS modules loaded through
context.import("scripts/...")
transient
Current Space Widgetsin_____transientlistsid|name|col|row|cols|rows|state|render statusCurrent Widgetappears after patchWidget(), renderWidget(), or reloadWidget()Current Widgetis one envelope withrendered↓for stripped live HTML andsource↓for the numbered readback
main helpers
- listWidgets()
- readWidget(id)
- seeWidget(id, full=false)
- patchWidget(id, { name?, cols?, rows?, col?, row?, metadata?, edits? })
- renderWidget({ id, name, cols, rows, metadata?, renderer })
- reloadWidget(id)
- reposition(), removeWidget(...), removeWidgets(...), removeAllWidgets()
- rearrangeWidgets(...), toggleWidgets(...), repairLayout(), rearrange(), reload(options?)
catalog and readback
- Prefer
space.current.*for widget work in the current open space Current Space Widgetsis the live layout summary. Use it before rediscovering ids manually- Use listWidgets() when you need the compact widget catalog. It returns: widgets (id|name|description)↓ example|Example|expanded, 4x3 widget
- That catalog is plain text, not JSON. Do not expect widgets, items, or other object fields from it
- If the user already named the target widget clearly, for example snake, tetris, or minesweeper, do not ask which widget. Read that widget directly by id or display name
- On the next turn, read the visible id row directly, for example
snake-game|Snake|...means usereadWidget("snake-game") - Use that id for readWidget(), seeWidget(), patchWidget(), and reloadWidget(). Name is fallback only
- readWidget() returns the numbered source directly in
_____framework result↓ - when widget YAML carries metadata, readWidget() includes a compact
metadata: ...line beforerenderer↓ - seeWidget() returns the current rendered widget HTML directly in
_____framework result↓ seeWidget(id)strips script/style tags, inline handlers, class lists, ids, and data attrs by default- Use
seeWidget(id, true)only when you explicitly need the full live innerHTML - Current Widget format after a write or reload↓ rendered↓
source↓ id: example name: Example cols: 4 rows: 3 renderer↓ 0 async (parent, currentSpace, context) => { 1 console.log("hello"); 2 }
- Patch numbers come only from numbered renderer lines after renderer↓ inside source↓
- Do not copy displayed line numbers into patch content
- In prepared input, optional example turns may appear before live history, _user = human, _framework = runtime output, and _transient = trailing current-space widget context
staged turns
- listWidgets(), readWidget(), and seeWidget() are discovery calls. If the next step depends on them, end the execution there
- If
Current Space Widgetsor_____frameworkalready showed the widget id you need, skip another discovery call and move to the next step - After readWidget() or seeWidget(), patch on the next turn, not in the same JS block
- After patchWidget(), renderWidget(), or reloadWidget(), use the refreshed Current Widget on the next turn if another edit is needed:
rendered↓for what mounted andsource↓for the next patch - Start every execution block with one short sentence saying the immediate step
- Put that sentence on its own line. Then put _javascript alone on the next line
- Do not execute silently
- Do not send only a staging sentence such as Checking widget source or Loading widget source. If you announce a widget read, list, patch, reload, or render step, the same message must execute it
- After a successful patch or render that satisfies the request, stop and answer normally. Do not keep making more visual tweaks unless the user asked for another iteration or the runtime reported failure
- After a successful patch or render, the next assistant turn should usually be the final user-facing answer. Do not output another promise line such as Updating... or Applying... without execution
- Never answer with raw JS or a code fence after a widget error. Either send a proper execution message or a normal user-facing answer
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 211 lines · 16 tokens per session scan A 5ad6ab9eafb2
Space Widgets is a skill published in the GitHub repository binary16labs/prime-silo (5 stars, last pushed 10d ago), licensed MIT. It adds 16 tokens to every session and 2,479 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to Space Widgets, differing in 51 lines, and is treated as a copy.
Other skills, from other repositories
draw-image
Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible). The image is uploaded to the gofile.io public file sharing service and ONLY the public download page URL is returned. Trigger when user asks to draw, paint, generate, or create an image.
compose:subagent
Use when executing implementation plans with independent tasks in the current session.
compose:worktree
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback.
compose:merge
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup.
compose:new-skill
Use when creating new skills or editing existing skills for the project or personal skill library.
compose:plan
Use when you have a spec or requirements for a multi-step task, before touching code.