webview-rendering

webview-rendering is a skill for Claude Code, Codex from wsauret/flywheel. It costs 19 tokens per session (1,610 once invoked), scanned A, original, Apache-2.0.

A set of rules for updating a web interface without flicker or unexpected movement. It covers the browser page, phone app, and editor surfaces that use the same SolidJS interface.

In plain words
What is it for?
Use it when changing rows, cards, labels, paragraphs, scrolling, or other web-client rendering behavior.
Why use it?
It prevents replacing interface elements unnecessarily, which can lose focus, text selection, open panels, subscriptions, and the reader's scroll position.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when changing rows, cards, labels, paragraphs, scrolling, or other web-client rendering behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsauret/flywheel/webview-rendering
Install

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.

Any agent
npx skills add wsauret/flywheel --skill webview-rendering
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for webview-rendering

README.md
[![agentmods](https://agentmods.dev/badge/skills/wsauret/flywheel/webview-rendering/github.svg)](https://agentmods.dev/skills/wsauret/flywheel/webview-rendering)
Your own site
<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.

agentmods 80×15 button for webview-rendering

Your own site · 80×15
<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>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 8b6dc448d391, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

src/orchestration/modules/development/definitions/skills/webview-rendering/SKILL.md · 70 lines

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

  1. 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.
  2. Check the surface against the ten rules. Read references/rules.md for the incorrect and correct example of each rule and the test that guards it.
    1. One element per row, and its tag never changes with state.
    2. Key lists by stable identity: Key for rows with an id, Index when position is the identity, For only for items whose object identity is stable.
    3. Know which Show, Switch, and inline JSX conditions remount.
    4. Subscribe to a narrow slice, not to a whole object.
    5. Patch rendered Markdown and HTML in place.
    6. Reserve layout for content that comes and goes.
    7. Keep the reader's row in place when older history is prepended.
    8. On iOS, hold a prepended page until the scroll is still.
    9. Remember disclosure state by stable identity.
    10. Connection state never decides whether a surface exists.
  3. 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 through solid-js/universal, without a browser, and lets a test compare node identity.
    1. Add a mount function to a fixture beside the surface it mounts. Create the component inside createRoot, feed its props from a signal, and return dispose, a setter that publishes a new value, and readers for the nodes you check. For the transcript, use webview/src/app/transcript/render-ownership-fixture.ts and export the function from webview/src/app/transcript/render-ownership-loader-fixture.ts. A module surface keeps its mount function in its module home, such as mountWorkflowActivity in webview/src/modules/workflows/activity-fixture.tsx or the workflow screens in webview/src/modules/workflows/stability-fixture.tsx. A check that spans several surfaces goes in webview/src/test-support/, such as stability.test.ts and budget-render-fixture.tsx.
    2. 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.
    3. Assert the visible change too, so that the test fails when the update did not apply.
    4. For a scroll owner, drive the viewport that the fixture returns: set scrollTop, call its onScroll, dispatch touch events, and call frame() to run the pending animation frame. webview/src/app/transcript/transcript-window-ownership.test.ts shows each step.

Read the full file on GitHub · 70 lines

Files

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.

Changes

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.

  1. 6d ago Changed 8b6dc448d391
  2. 25d ago Changed 0038500a0db3
  3. 28d ago First seen · 70 lines · 19 tokens per session scan A 9dffd782f075

Subscribe to this mod's changes

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.

Related

webview-rendering compared with skills from other repositories

webview-rendering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
webview-renderingwsauret/flywheelSkill19todayApache-2.0A19Claude Code, Codex
frontend-designHmbown/CodeWhaleSkill41k2d agoMITA21Claude Code, Codex
design-skillOverbrilliant/ob-1Skill5012d agoApache-2.0A82Claude Code, Codex
ui-reviewerAbyssCN/oh-my-dagSkill441mo agoMITA24Claude Code, Codex
accessibility-auditorlfyxhappy/lfcodeSkill22mo agoMITA57Claude Code, Codex
codew-release-qa-sweepHmbown/CodeWhaleSkill41k2d agoMITA31Claude Code, Codex
gh-find-prsHmbown/CodeWhaleSkill41k2d agoMITA27Claude Code, Codex