[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AQ4B9AXF52SB3A0NVW4QT":3,"skill-same:01M69AQ4B9AXF52SB3A0NVW4QT":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M69AQ4B9AXF52SB3A0NVW4QT","webui-dev","交互式 WebUI 应用开发","Build interactive WebUI apps with compiled-template hydration, template syntax, component patterns, and CLI usage.","构建交互式 WebUI 应用，涉及编译模板的 hydration（水合）、模板语法、组件模式和 CLI 使用。","microsoft\u002Fwebui","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69APCAY31B400ERZA9BVA20",102,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwebui-dev\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"webui dev","dev","webui","cli","component","template","syntax","interactive","build","patterns","apps","with","usage","2026-11-10 10:12:30",false,"---\nname: webui-dev\ndescription: Build interactive WebUI apps with compiled-template hydration, template syntax, component patterns, and CLI usage.\n---\n\n# WebUI App Development\n\nUse this skill when building or modifying WebUI applications.\n\n## Critical rules (memorize these)\n\n1. **The template is the UI.** All structure lives in `.html`. Never `document.createElement`, `innerHTML`, `insertAdjacentHTML`, or `appendChild`. Show\u002Fhide with `\u003Cif>`, repeat with `\u003Cfor>`. The only exception is mounting a lazily loaded component.\n2. **CSS owns all styling and animation.** Never `el.style.x =`, `classList.toggle`, or `adoptedStyleSheets`. Bind `?data-active=\"{{expr}}\"` and select `[data-active]` in CSS. Animate with `transition`, `@keyframes`, `@starting-style` - never `element.animate()` or a JS animation library.\n3. **JavaScript is opt-in.** A component needs **no** `.ts` file unless it has an `@event`, a `w-ref` for an imperative API, a lifecycle hook, a fetch, or a public method API. `WebUIElement`, `@observable`, and `@attr` are optional - add them only when TypeScript reads\u002Fwrites the value or it is public API. Otherwise the value belongs in the server state JSON.\n4. **Use the web platform.** `\u003Cdialog>` over a div modal, `popover` over a JS dropdown, `\u003Cdetails>` over a JS accordion. Prefer `:has()`, `@container`, `color-mix()`, `light-dark()`, `content-visibility`.\n5. **Every template binding must exist in the server state JSON.** Missing keys render empty, silently.\n6. **HTML, CSS, TypeScript are separate files.** No JSX. No CSS-in-JS. No JS in templates.\n7. **Unwrapped components default to Shadow; `--dom light` makes them global Light DOM while authored open wrappers stay Shadow.** A sole bare top-level `\u003Ctemplate>` 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 `\u003Ctemplate shadowrootmode=\"open\">` when the component needs native `\u003Cslot>` projection, Shadow encapsulation, CSS-heavy frequent restyling, root host events, or Shadow-only selectors such as `:host`. A `\u003Cslot>` and `:host` fail only in an effective Light component.\n8. **Components inside `\u003Cfor>` loops do NOT inherit loop variables.** Pass data via attributes.\n9. **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 named `count > 0` and renders empty. Comparisons go in `\u003Cif condition=\"count > 0\">` or `?active=\"{{section == 'guide'}}\"`. Operators: `==`, `!=`, `\u003C`, `>`, `\u003C=`, `>=`, `&&`, `||`, `!`. **Forbidden everywhere:** ternary (`? :`), function calls, arithmetic (`items.length - 1` resolves as a path and silently fails - send a precomputed `lastIndex`), mixing `&&` with `||`, more than 5 logical operators.\n10. **`w-ref` requires braces.** `w-ref=\"{inputEl}\"`, never `w-ref=\"inputEl\"` - non-braced fails the build with `invalid-w-ref`. Use it only for imperative APIs (focus, scroll, `showModal`), never to read state.\n11. **`@attr({ mode: 'boolean' })` for true\u002Ffalse.** Present = true, absent = false. Never use string `\"false\"`.\n\n## Quick reference\n\nMost components need only HTML and CSS:\n\n```html\n\u003C!-- user-card.html - no .ts file -->\n\u003Ch2>{{user.name}}\u003C\u002Fh2>\n\u003Cif condition=\"user.isAdmin\">\u003Cspan class=\"badge\">Admin\u003C\u002Fspan>\u003C\u002Fif>\n```\n\nAdd a class only when something interactive happens:\n\n```typescript\nimport { WebUIElement, attr, observable } from '@microsoft\u002Fwebui-framework';\n\nexport class MyComponent extends WebUIElement {\n  @attr label = '';                          \u002F\u002F set by a parent template\n  @attr({ mode: 'boolean' }) disabled = false;\n  @observable count = 0;                     \u002F\u002F mutated by increment()\n  inputEl!: HTMLInputElement;                \u002F\u002F populated by w-ref=\"{inputEl}\"\n\n  increment(): void { this.count += 1; }\n  onKeydown(e: KeyboardEvent): void { if (e.key === 'Enter') this.submit(); }\n}\nMyComponent.define('my-component');\n```\n\n```bash\nwebui build .\u002Fsrc --out .\u002Fdist --plugin=webui\nwebui serve .\u002Fsrc --state .\u002Fdata\u002Fstate.json --plugin=webui --watch\n```\n\n## Full reference\n\nThe complete guide covering all template syntax, styling and animation rules, anti-patterns, routing, and a pre-flight checklist:\n\n**[docs\u002Fai.md](\u002Fdocs\u002Fai.md)**\n\nRead that file before generating any WebUI code.\n","# WebUI App Development\n\nUse this skill when building or modifying WebUI applications.\n\n## Critical rules (memorize these)\n\n1. **The template is the UI.** All structure lives in `.html`. Never `document.createElement`, `innerHTML`, `insertAdjacentHTML`, or `appendChild`. Show\u002Fhide with `\u003Cif>`, repeat with `\u003Cfor>`. The only exception is mounting a lazily loaded component.\n2. **CSS owns all styling and animation.** Never `el.style.x =`, `classList.toggle`, or `adoptedStyleSheets`. Bind `?data-active=\"{{expr}}\"` and select `[data-active]` in CSS. Animate with `transition`, `@keyframes`, `@starting-style` - never `element.animate()` or a JS animation library.\n3. **JavaScript is opt-in.** A component needs **no** `.ts` file unless it has an `@event`, a `w-ref` for an imperative API, a lifecycle hook, a fetch, or a public method API. `WebUIElement`, `@observable`, and `@attr` are optional - add them only when TypeScript reads\u002Fwrites the value or it is public API. Otherwise the value belongs in the server state JSON.\n4. **Use the web platform.** `\u003Cdialog>` over a div modal, `popover` over a JS dropdown, `\u003Cdetails>` over a JS accordion. Prefer `:has()`, `@container`, `color-mix()`, `light-dark()`, `content-visibility`.\n5. **Every template binding must exist in the server state JSON.** Missing keys render empty, silently.\n6. **HTML, CSS, TypeScript are separate files.** No JSX. No CSS-in-JS. No JS in templates.\n7. **Unwrapped components default to Shadow; `--dom light` makes them global Light DOM while authored open wrappers stay Shadow.** A sole bare top-level `\u003Ctemplate>` 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 `\u003Ctemplate shadowrootmode=\"open\">` when the component needs native `\u003Cslot>` projection, Shadow encapsulation, CSS-heavy frequent restyling, root host events, or Shadow-only selectors such as `:host`. A `\u003Cslot>` and `:host` fail only in an effective Light component.\n8. **Components inside `\u003Cfor>` loops do NOT inherit loop variables.** Pass data via attributes.\n9. **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 named `count > 0` and renders empty. Comparisons go in `\u003Cif condition=\"count > 0\">` or `?active=\"{{section == 'guide'}}\"`. Operators: `==`, `!=`, `\u003C`, `>`, `\u003C=`, `>=`, `&&`, `||`, `!`. **Forbidden everywhere:** ternary (`? :`), function calls, arithmetic (`items.length - 1` resolves as a path and silently fails - send a precomputed `lastIndex`), mixing `&&` with `||`, more than 5 logical operators.\n10. **`w-ref` requires braces.** `w-ref=\"{inputEl}\"`, never `w-ref=\"inputEl\"` - non-braced fails the build with `invalid-w-ref`. Use it only for imperative APIs (focus, scroll, `showModal`), never to read state.\n11. **`@attr({ mode: 'boolean' })` for true\u002Ffalse.** Present = true, absent = false. Never use string `\"false\"`.\n\n## Quick reference\n\nMost components need only HTML and CSS:\n\n```html\n\u003C!-- user-card.html - no .ts file -->\n\u003Ch2>{{user.name}}\u003C\u002Fh2>\n\u003Cif condition=\"user.isAdmin\">\u003Cspan class=\"badge\">Admin\u003C\u002Fspan>\u003C\u002Fif>\n```\n\nAdd a class only when something interactive happens:\n\n```typescript\nimport { WebUIElement, attr, observable } from '@microsoft\u002Fwebui-framework';\n\nexport class MyComponent extends WebUIElement {\n  @attr label = '';                          \u002F\u002F set by a parent template\n  @attr({ mode: 'boolean' }) disabled = false;\n  @observable count = 0;                     \u002F\u002F mutated by increment()\n  inputEl!: HTMLInputElement;                \u002F\u002F populated by w-ref=\"{inputEl}\"\n\n  increment(): void { this.count += 1; }\n  onKeydown(e: KeyboardEvent): void { if (e.key === 'Enter') this.submit(); }\n}\nMyComponent.define('my-component');\n```\n\n```bash\nwebui build .\u002Fsrc --out .\u002Fdist --plugin=webui\nwebui serve .\u002Fsrc --state .\u002Fdata\u002Fstate.json --plugin=webui --watch\n```\n\n## Full reference\n\nThe complete guide covering all template syntax, styling and animation rules, anti-patterns, routing, and a pre-flight checklist:\n\n**[docs\u002Fai.md](\u002Fdocs\u002Fai.md)**\n\nRead that file before generating any WebUI code.\n",{"name":5,"description":7},"main","fd2d75282e29638442f161e202bf109d38e3ceb3",".github\u002Fskills\u002Fwebui-dev",25,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui","https:\u002F\u002Fmicrosoft.github.io\u002Fwebui\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 02:46:10",{"source":9,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add microsoft\u002Fwebui --skill webui-dev",{"tool":65,"command":66},"bunx","bunx skills add microsoft\u002Fwebui --skill webui-dev",{"tool":68,"command":69},"pnpm","pnpm dlx skills add microsoft\u002Fwebui --skill webui-dev","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwebui-dev\u002FSKILL.md",true,[],[74,99,123,144,163,183],{"skillNo":75,"name":76,"nameZh":77,"description":78,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":80,"categories":81,"keywords":86,"publishedAt":44},"01M69AQ6PSR5AXD1W7K822EJEJ","webui-reference","WebUI 开发参考文档查阅","Use when writing or reviewing WebUI application or framework code. Load the application's installed reference or the WebUI source checkout's canonical reference.","编写或审查 WebUI 应用或框架代码时使用。加载应用已安装的参考文档，或 WebUI 源代码检出中的权威参考文档。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002Fai\u002FSKILL.md",[82,85],{"categoryNo":83,"categoryName":84,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[87,33,88,89,90,91,92,93,94,95,96,97,98],"webui reference","reference","when","writing","checkout","canonical","use","load","source","code","application","framework",{"skillNo":100,"name":101,"nameZh":102,"description":103,"descriptionZh":104,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":113,"publishedAt":44},"01M69AQ21S81FTXJF5716X3JPB","testing","测试模式与测试策略","Test patterns, fixture structure, and when to use E2E vs unit tests.","测试模式、fixture（测试夹具）结构，以及何时该用 E2E 测试、何时该用单元测试。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting\u002FSKILL.md",[107,110],{"categoryNo":108,"categoryName":109,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[101,93,114,115,116,117,118,119,120,121,122,40,89],"e2e","tests","fixture","unit","unit tests","test","structure","test patterns","when to use",{"skillNo":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":133,"publishedAt":44},"01M69APZVHA8B3AM0S1WJ1T5BC","quality-gate","提交前质量门禁检查","Run before every commit or push: formatting, linting, tests, dependency audits, builds, and docs.","在每次提交或推送前运行：格式化、代码检查（lint）、测试、依赖审计、构建和文档检查。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fquality-gate\u002FSKILL.md",[131,132],{"categoryNo":108,"categoryName":109,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},[134,135,136,115,137,138,139,140,141,142,143],"quality gate","quality","gate","formatting","run","docs","commit","push","linting","dependency",{"skillNo":145,"name":146,"nameZh":147,"description":148,"descriptionZh":149,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":156,"publishedAt":44},"01M69APXXGESWZ75E8B5PKWC8H","pr","Git 提交与 PR 规范","Guidance for branch naming, commit messages, and PR titles.","关于分支命名、提交信息（commit message）和 PR 标题的规范指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpr\u002FSKILL.md",[152,153],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":154,"categoryName":155,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[146,140,157,158,159,160,161,162],"branch","for","messages","naming","guidance","commit messages",{"skillNo":164,"name":165,"nameZh":166,"description":167,"descriptionZh":168,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":169,"categories":170,"keywords":175,"publishedAt":44},"01M69APVKEAZD650TFNCT9WMN1","perf","Rust 与 Node 性能优化规则","Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.","针对 Rust crates、Node 插件（Node addon）、webui-framework 和 webui-delivery 的速度与内存性能规则。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fperf\u002FSKILL.md",[171,172],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":173,"categoryName":174,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSNPHVX9Y1H3B2ZX3V06RF","Rust 开发",[165,176,177,178,179,158,33,180,181,182,98],"Rules","memory","performance","rust","delivery","node","speed",{"skillNo":184,"name":185,"nameZh":186,"description":187,"descriptionZh":188,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":189,"categories":190,"keywords":197,"publishedAt":44},"01M69APS2RQFC34SYZED5K2MHD","docs-sync","用户文档与 DESIGN 同步更新","Keep user-facing docs current and DESIGN aligned with architectural changes.","保持面向用户的文档为最新，并使 DESIGN 与架构变更保持一致。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwebui\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdocs-sync\u002FSKILL.md",[191,194],{"categoryNo":192,"categoryName":193,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[198,199,139,200,201,42,202,203],"docs sync","sync","design","keep","changes","user"]