microsoft/webui-docs-sync
Keep user-facing docs and DESIGN specification aligned with behavior and API changes.
npx skills add https://github.com/microsoft/webui --skill docs-sync
Use this skill whenever a change touches user-visible behavior, APIs, or contracts.
| What changed | Update |
|-------------|--------|
| CLI flags or commands | docs/guide/cli/index.md + docs/ai/SKILL.md (Build and run section) |
| Template syntax or directives | docs/guide/concepts/directives/ + docs/ai/SKILL.md |
| Component authoring model | docs/guide/concepts/interactivity.md + docs/ai/SKILL.md |
| Hydration markers or mechanism | docs/guide/concepts/hydration.md + DESIGN.md (WebUI Framework Plugin) |
| Routing behavior | docs/guide/concepts/routing.md + docs/ai/SKILL.md |
| State management or path resolution | docs/guide/concepts/state-management/index.md |
| Handler API (Rust, Node, FFI) | docs/guide/concepts/handlers/ + docs/guide/integrations.md |
| Protocol fields or fragment types | DESIGN.md (Protocol Specification) |
| Plugin system (parser or handler) | docs/guide/concepts/plugins/index.md + DESIGN.md |
| Performance characteristics | docs/guide/concepts/performance.md |
| Public API (Rust crate, npm package) | DESIGN.md + relevant handler/integration docs |
| Error variants or error messages | DESIGN.md |
| @microsoft/webui-framework decorators or API | docs/guide/concepts/interactivity.md + docs/ai/SKILL.md + packages/webui-framework/README.md |
| @microsoft/webui-router behavior | docs/guide/concepts/routing.md + packages/webui-router/README.md |
DESIGN.md is the living technical specification. Update it in the same commit when modifying:
If DESIGN.md and the code disagree, that is a bug - fix both.
Update docs/ in the same commit when the change is user-visible:
Keep protocol internals out of general user docs. The docs/ai/SKILL.md file is the single-page AI reference and should be kept in sync with all other docs.
docs/ai/SKILL.md is authoring-first by design. Keep deep reference material (full CLI flag tables, error-code lists, per-language integration snippets) in its canonical page and link to it from docs/ai/SKILL.md rather than duplicating it there.
cd docs && pnpm build
This catches broken links, VitePress syntax errors (unescaped {{ outside code blocks), and missing pages. Run it when docs are changed.
- ). Use hyphens ( - ).{{ outside fenced code blocks with <code v-pre>{{expr}}</code>.crates/webui-cli/src/commands/).crates/webui-handler/src/plugin/webui.rs).Take microsoft/webui-docs-sync from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.