microsoft/webui/webui-dev
Claude Code and agent skill by microsoft/webui
- vendor
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Build interactive WebUI apps with compiled-template hydration, template syntax, component patterns, and CLI usage.
Install
npx vskill@latest install microsoft/webui/webui-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as microsoft/webui/webui-dev.
WebUI App Development
Use this skill when building or modifying WebUI applications.
Critical rules (memorize these)
- The template is the UI. All structure lives in
.html. Neverdocument.createElement,innerHTML,insertAdjacentHTML, orappendChild. Show/hide with<if>, repeat with<for>. The only exception is mounting a lazily loaded component. - CSS owns all styling and animation. Never
el.style.x =,classList.toggle, oradoptedStyleSheets. Bind?data-active="{{expr}}"and select[data-active]in CSS. Animate withtransition,@keyframes,@starting-style- neverelement.animate()or a JS animation library. - JavaScript is opt-in. A component needs no
.tsfile unless it has an@event, aw-reffor an imperative API, a lifecycle hook, a fetch, or a public method API.WebUIElement,@observable, and@attrare optional - add them only when TypeScript reads/writes the value or it is public API. Otherwise the value belongs in the server state JSON. - Use the web platform.
<dialog>over a div modal,popoverover a JS dropdown,<details>over a JS accordion. Prefer:has(),@container,color-mix(),light-dark(),content-visibility. - Every template binding must exist in the server state JSON. Missing keys render empty, silently.
- HTML, CSS, TypeScript are separate files. No JSX. No CSS-in-JS. No JS in templates.
- Unwrapped components default to Shadow; `--dom light` makes them global Light DOM while authored open wrappers stay Shadow. A sole bare top-level
<template>explicitly selects Light and is unwrapped even under the Shadow fallback. Light CSS uses ordinary selectors in its owning CSS tree. Use one sole top-level<template shadowrootmode="open">when the component needs native<slot>projection, Shadow encapsulation, CSS-heavy frequent restyling, root host events, or Shadow-only selectors such as:host. A<slot>and:hostfail only in an effective Light component. - Components inside `<for>` loops do NOT inherit loop variables. Pass data via attributes.
- Text bindings are path lookups; comparisons belong in conditions.
{{count}}and{{user.name}}resolve a dotted state path - nothing else.{{count > 0}}is looked up as a key literally namedcount > 0and renders empty. Comparisons go in<if condition="count > 0">or?active="{{section == 'guide'}}". Operators:==,!=,<,>,<=,>=,&&,||,!. Forbidden everywhere: ternary (? :), function calls, arithmetic (items.length - 1resolves as a path and silently fails - send a precomputedlastIndex), mixing&&with||, more than 5 logical operators. - `w-ref` requires braces.
w-ref="{inputEl}", neverw-ref="inputEl"- non-braced fails the build withinvalid-w-ref. Use it only for imperative APIs (focus, scroll,showModal), never to read state. - `@attr({ mode: 'boolean' })` for true/false. Present = true, absent = false. Never use string
"false".
Quick reference
Most components need only HTML and CSS:
Add a class only when something interactive happens:
Full reference
The complete guide covering all template syntax, styling and animation rules, anti-patterns, routing, and a pre-flight checklist:
[docs/ai.md](/docs/ai.md)
Read that file before generating any WebUI code.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 21 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/webui-dev/SKILL.md
Popularity
- Repository stars
- 81
- Repository forks
- 21
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/webui/webui-dev)