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 skills add wsauret/flywheel --skill webview-renderinggit clone --depth 1 https://github.com/wsauret/flywheelWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wsauret/flywheel/webview-rendering)<a href="https://agentmods.dev/skills/wsauret/flywheel/webview-rendering"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/webview-rendering/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wsauret/flywheel/webview-rendering"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/webview-rendering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00019 | $0.01610 |
| Opus 5.5 | $0.00008 | $0.00644 |
| Sonnet 5.5 | $0.00004 | $0.00322 |
| Haiku 4.5 | $0.00002 | $0.00161 |
Grade A, and why
webview-rendering scanned grade A with 0 findings 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 6d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web Client Rendering
Input: the web client surface under change, the runtime publications that update it, and the reader's interactions with it. The desktop browser page, the phone, and the editor all mount the one SolidJS bundle under webview/, so a flicker here is a flicker on every surface.
PI-INTERACTION-062, PI-INTERACTION-098 states the behavior a person observes, ARCH-PROTOCOL-062 the surface ownership of UI state, and ARCH-PROTOCOL-063 the effect contract. These constraints apply to every change:
- Render a node one time, then update it in place. A row, a card, a label, or a paragraph keeps the same DOM node for as long as the thing it shows exists. A change of state changes attributes, classes, and text on that node; it never removes the node and inserts a new one. A remount is a flicker even when the new node looks the same, and the new node loses focus, the text selection, hover and press state, an open disclosure, a scroll anchor, and any live subscription.
- The scroll position belongs to the reader. When content above the reader changes, the row that the reader looks at stays at the same place on the screen.
- Never hide a remount or a jump. Do not add a CSS transition, a fade, or an animation to a row. Do not debounce or throttle publications: the update must be cheap and in place, not rare. Do not delay rendering with
setTimeout,queueMicrotask, or a "loaded" flag that shows content one frame late. - Ordinary reconnection never replaces the client; ARCH-PROTOCOL-030 owns client replacement.
Method
- List each node that a live update reaches and the publication that reaches it: an equal object republished, a token, a state change, a page of older history, a recovery.
- Check the surface against the ten rules. Read
references/rules.mdfor the incorrect and correct example of each rule and the test that guards it.- One element per row, and its tag never changes with state.
- Key lists by stable identity:
Keyfor rows with an id,Indexwhen position is the identity,Foronly for items whose object identity is stable. - Know which
Show,Switch, and inline JSX conditions remount. - Subscribe to a narrow slice, not to a whole object.
- Patch rendered Markdown and HTML in place.
- Reserve layout for content that comes and goes.
- Keep the reader's row in place when older history is prepended.
- On iOS, hold a prepended page until the scroll is still.
- Remember disclosure state by stable identity.
- Connection state never decides whether a surface exists.
- Write one identity test for each UI that updates live, before you fix or add the component. Use the memory host in
webview/src/test-support/render-ownership-host-fixture.ts. It runs the real Solid components throughsolid-js/universal, without a browser, and lets a test compare node identity.- Add a mount function to a fixture beside the surface it mounts. Create the component inside
createRoot, feed its props from a signal, and returndispose, a setter that publishes a new value, and readers for the nodes you check. For the transcript, usewebview/src/app/transcript/render-ownership-fixture.tsand export the function fromwebview/src/app/transcript/render-ownership-loader-fixture.ts. A module surface keeps its mount function in its module home, such asmountWorkflowActivityinwebview/src/modules/workflows/activity-fixture.tsxor the workflow screens inwebview/src/modules/workflows/stability-fixture.tsx. A check that spans several surfaces goes inwebview/src/test-support/, such asstability.test.tsandbudget-render-fixture.tsx. - Mount, keep a reference to each node that must stay, publish an update that the real runtime sends, and assert that the same node is still there.
- Assert the visible change too, so that the test fails when the update did not apply.
- For a scroll owner, drive the viewport that the fixture returns: set
scrollTop, call itsonScroll,dispatchtouch events, and callframe()to run the pending animation frame.webview/src/app/transcript/transcript-window-ownership.test.tsshows each step.
- Add a mount function to a fixture beside the surface it mounts. Create the component inside
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago Changed 8b6dc448d391
- 25d ago Changed 0038500a0db3
- 28d ago First seen · 70 lines · 19 tokens per session scan A 9dffd782f075
webview-rendering is a skill published in the GitHub repository wsauret/flywheel (19 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 1,610 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.
webview-rendering compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| webview-renderingwsauret/flywheel | Skill | 19 | today | Apache-2.0 | A | 19 | Claude Code, Codex |
| frontend-designHmbown/CodeWhale | Skill | 41k | 2d ago | MIT | A | 21 | Claude Code, Codex |
| design-skillOverbrilliant/ob-1 | Skill | 50 | 12d ago | Apache-2.0 | A | 82 | Claude Code, Codex |
| ui-reviewerAbyssCN/oh-my-dag | Skill | 44 | 1mo ago | MIT | A | 24 | Claude Code, Codex |
| accessibility-auditorlfyxhappy/lfcode | Skill | 2 | 2mo ago | MIT | A | 57 | Claude Code, Codex |
| codew-release-qa-sweepHmbown/CodeWhale | Skill | 41k | 2d ago | MIT | A | 31 | Claude Code, Codex |
| gh-find-prsHmbown/CodeWhale | Skill | 41k | 2d ago | MIT | A | 27 | Claude Code, Codex |