[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BSGT4GY8G8RMJZKCQ2WD3":3,"skill-same:01M69BSGT4GY8G8RMJZKCQ2WD3":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M69BSGT4GY8G8RMJZKCQ2WD3","react-webview-architecture",null,"Architecture patterns for React-based webviews in the vscode-documentdb extension. Use when creating new webview components, modifying existing views (CollectionView, DocumentView), working with state management (Context API), integrating Fluent UI components, handling Monaco Editor or SlickGrid, solving stale closure bugs with refs, or debugging webview rendering issues. Does NOT cover tRPC messaging (see webview-trpc-messaging skill) or accessibility\u002FARIA (see accessibility-aria-expert skill).","microsoft\u002Fvscode-documentdb","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BRX0BQJ0QGRNCNZAAAXBV",33,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Freact-webview-architecture\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"react","architecture","react webview architecture","ui","new","when","closure","cover","trpc","rendering","patterns","aria","expert","api","architecture patterns","editor","messaging","issues","state management","debugging","vscode","fluent","components","accessibility","2026-11-10 10:12:30",false,"---\nname: react-webview-architecture\ndescription: Architecture patterns for React-based webviews in the vscode-documentdb extension. Use when creating new webview components, modifying existing views (CollectionView, DocumentView), working with state management (Context API), integrating Fluent UI components, handling Monaco Editor or SlickGrid, solving stale closure bugs with refs, or debugging webview rendering issues. Does NOT cover tRPC messaging (see webview-trpc-messaging skill) or accessibility\u002FARIA (see accessibility-aria-expert skill).\n---\n\n# React Webview Architecture\n\nPatterns and conventions for React webviews in vscode-documentdb.\n\n**Related skills** (do not duplicate):\n\n- **webview-trpc-messaging** — tRPC routers, procedures, telemetry, AbortSignal, subscriptions, WebviewController\n- **accessibility-aria-expert** — ARIA labels, Announcer, focus management, screen reader patterns\n\n**Full reference**: See [references\u002FREACT_ARCHITECTURE_GUIDELINES.md](.\u002Freferences\u002FREACT_ARCHITECTURE_GUIDELINES.md)\n\n## When to Use\n\n- Creating or modifying a webview (DocumentView, CollectionView)\n- Adding new components inside `src\u002Fwebviews\u002F`\n- Working with CollectionView context or state management\n- Integrating Monaco Editor or SlickGrid\n- Debugging stale closure issues in event handlers\n\n## Rendering Pipeline\n\nEvery webview boots through `src\u002Fwebviews\u002Findex.tsx`:\n\n```tsx\nroot.render(\n  \u003CVSCodeFluentProvider>\n    \u003CWithWebviewContext vscodeApi={vscodeApi}>\n      \u003CComponent \u002F>\n    \u003C\u002FWithWebviewContext>\n  \u003C\u002FVSCodeFluentProvider>,\n);\n```\n\n- **`VSCodeFluentProvider`** — adapts Fluent UI theming to VS Code's active color theme. Lives in `@microsoft\u002Fvscode-ext-webview-fluentui`, not in `src\u002F`; importing it also injects that package's Fluent overrides.\n- **`WithWebviewContext`** — provides `vscodeApi` (postMessage) via React Context\n- **`WebviewRegistry`** — maps webview names → React components (in `_integration\u002FWebviewRegistry`)\n\nConfiguration from the extension host is read via `useConfiguration\u003CT>()`.\n\n## File Organization\n\n```\nviewName\u002F\n├── ViewName.tsx            # Main component\n├── viewName.scss           # Styles\n├── viewNameContext.ts      # Context + state types (if complex)\n├── viewNameController.ts   # WebviewController subclass (extension-side)\n├── viewNameRouter.ts       # tRPC router (extension-side, see webview-trpc-messaging skill)\n├── constants.ts\n├── components\u002F             # Sub-components\n├── hooks\u002F                  # Custom React hooks\n├── types\u002F                  # TypeScript types\n└── utils\u002F                  # Helpers\n```\n\n## Component Hierarchy\n\n**DocumentView** (simpler, good reference pattern):\n\n```\nDocumentView\n├── ProgressBar (conditional: isLoading)\n├── ToolbarDocuments\n└── MonacoEditor\n```\n\n**CollectionView** (complex, multi-tab):\n\n```\nCollectionView\n├── ProgressBar (conditional)\n├── ToolbarMainView\n├── QueryEditor\n│   └── MonacoAutoHeight (multiple: filter, project, sort)\n├── TabList (Results | Query Insights [PREVIEW])\n├── Results Tab:\n│   ├── ToolbarViewNavigation + ToolbarDocumentManipulation + ViewSwitcher\n│   ├── DataViewPanelTable \u002F DataViewPanelTree \u002F DataViewPanelJSON\n│   └── ToolbarTableNavigation (Table View only)\n└── Query Insights Tab:\n    └── QueryInsightsMain (3-stage progressive loading)\n```\n\n## State Management\n\n### Simple views (DocumentView): local `useState` + props\n\n### Complex views (CollectionView): React Context with `[state, setState]` tuple\n\n```tsx\nexport const CollectionViewContext = createContext\u003C\n    [CollectionViewContextType, React.Dispatch\u003CReact.SetStateAction\u003CCollectionViewContextType>>]\n>([DefaultCollectionViewContext, () => {}]);\n\n\u002F\u002F Provider in parent\nconst [currentContext, setCurrentContext] = useState(DefaultCollectionViewContext);\n\u003CCollectionViewContext.Provider value={[currentContext, setCurrentContext]}>\n\n\u002F\u002F Consumer in child\nconst [currentContext, setCurrentContext] = useContext(CollectionViewContext);\n```\n\n**Always use functional updates** when state depends on previous value:\n\n```tsx\nsetCurrentContext((prev) => ({\n  ...prev,\n  isLoading: true,\n  activeQuery: { ...prev.activeQuery, pageNumber: 1 },\n}));\n```\n\n## Stale Closure Pattern (CRITICAL)\n\nThird-party components (SlickGrid) bind event handlers at initialization — they don't update when state changes. **Always use refs** to access current data in those handlers:\n\n```tsx\nconst dataRef = useRef(data);\nuseEffect(() => {\n  dataRef.current = data;\n}, [data]);\n\nconst onCellDblClick = useCallback((event) => {\n  const item = dataRef.current[event.detail.args.row]; \u002F\u002F ✅ always current\n  \u002F\u002F NOT: data[event.detail.args.row]; ❌ stale closure\n}, []); \u002F\u002F stable deps only\n```\n\n**Why**: SlickGrid binds handlers once at init time. Without refs, handlers see the data from initialization, not the latest state. This caused multiple hard-to-debug issues.\n\n## Monaco Editor\n\n### Required patterns:\n\n1. **Manual layout** — Monaco doesn't auto-resize:\n\n```tsx\nuseEffect(() => {\n  const handler = debounce(() => editorRef.current?.layout(), 200);\n  window.addEventListener('resize', handler);\n  handleResize(); \u002F\u002F initial layout\n  return () => window.removeEventListener('resize', handler);\n}, []);\n```\n\n2. **Dispose on unmount**:\n\n```tsx\nreturn () => {\n  editorRef.current?.dispose();\n};\n```\n\n3. **MonacoAutoHeight** — self-sizing editor for query fields:\n\n```tsx\n\u003CMonacoAutoHeight\n  adaptiveHeight={{ enabled: true, maxLines: 10, minLines: 1, lineHeight: 19 }}\n  onExecuteRequest={() => onExecuteRequest()}\n  onMount={(editor, monaco) => handleEditorDidMount(editor, monaco)}\n\u002F>\n```\n\n4. **JSON Schema delay** — Monaco's JSON worker may not be ready immediately after mount. An AbortController-guarded delay is used (see QueryEditor for the pattern).\n\n## Fluent UI Integration\n\nUse `@fluentui\u002Freact-components` (v9), themed via `VSCodeFluentProvider`:\n\n| Component                  | Usage                     |\n| -------------------------- | ------------------------- |\n| `ProgressBar`              | Loading states            |\n| `Button`, `ToggleButton`   | Toolbar actions           |\n| `Tab`, `TabList`           | View switching            |\n| `Dropdown`, `Option`       | Selection (ViewSwitcher)  |\n| `Badge`                    | Status\u002Fpreview indicators |\n| `MessageBar`               | Info\u002Fwarning messages     |\n| `Skeleton`, `SkeletonItem` | Loading placeholders      |\n\nAnimations: `Collapse` from `@fluentui\u002Freact-motion-components-preview`\n\n## Styling\n\n- Each component gets its own `.scss` file, imported directly\n- Shared styles in `sharedStyles.scss`, applied via `@extend`\n- **Consistent spacing unit: `10px`** with flexbox `row-gap`\u002F`column-gap`\n- **No inline styles** — move to SCSS files\n- Avoid negative margins — fix layout with proper flexbox\n\n```scss\n.documentView {\n  display: flex;\n  flex-direction: column;\n  height: 100vh;\n  row-gap: 10px;\n}\n```\n\n## Custom Hooks\n\n| Hook                                  | Purpose                                                                                      |\n| ------------------------------------- | -------------------------------------------------------------------------------------------- |\n| `useSelectiveContextMenuPrevention()` | Prevents browser context menu everywhere except Monaco editors. Call once in top-level view. |\n| `useHideScrollbarsDuringResize()`     | Returns a function that temporarily hides scrollbars during layout transitions (500ms).      |\n\n## Conditional Rendering Patterns\n\n**Object-based switch:**\n\n```tsx\n{{\n    'Table View': \u003CDataViewPanelTable {...props} \u002F>,\n    'Tree View': \u003CDataViewPanelTree {...props} \u002F>,\n    'JSON View': \u003CDataViewPanelJSON {...props} \u002F>,\n}[currentContext.currentView]}\n```\n\n## Loading State\n\n```tsx\nconst [isLoading, setIsLoading] = useState(false);\nsetIsLoading(true);\ntry {\n  await op();\n} finally {\n  setIsLoading(false);\n}\n\n\u002F\u002F In render:\n{\n  isLoading && \u003CProgressBar thickness=\"large\" shape=\"square\" className=\"progressBar\" \u002F>;\n}\n```\n\n## Common Pitfalls\n\n1. **Forgetting refs with third-party components** → stale data in event handlers\n2. **Not cleaning up** event listeners, Monaco instances, AbortControllers in `useEffect` return\n3. **Not calling `editor.layout()`** after resize → blank Monaco panels\n4. **Using `any`** → use proper types or `unknown` with type guards\n5. **Missing `l10n.t()`** on user-facing strings\n6. **Inline styles** instead of SCSS files\n7. **Negative margins** to fix spacing — restructure layout with flexbox gap instead\n","# React Webview Architecture\n\nPatterns and conventions for React webviews in vscode-documentdb.\n\n**Related skills** (do not duplicate):\n\n- **webview-trpc-messaging** — tRPC routers, procedures, telemetry, AbortSignal, subscriptions, WebviewController\n- **accessibility-aria-expert** — ARIA labels, Announcer, focus management, screen reader patterns\n\n**Full reference**: See [references\u002FREACT_ARCHITECTURE_GUIDELINES.md](.\u002Freferences\u002FREACT_ARCHITECTURE_GUIDELINES.md)\n\n## When to Use\n\n- Creating or modifying a webview (DocumentView, CollectionView)\n- Adding new components inside `src\u002Fwebviews\u002F`\n- Working with CollectionView context or state management\n- Integrating Monaco Editor or SlickGrid\n- Debugging stale closure issues in event handlers\n\n## Rendering Pipeline\n\nEvery webview boots through `src\u002Fwebviews\u002Findex.tsx`:\n\n```tsx\nroot.render(\n  \u003CVSCodeFluentProvider>\n    \u003CWithWebviewContext vscodeApi={vscodeApi}>\n      \u003CComponent \u002F>\n    \u003C\u002FWithWebviewContext>\n  \u003C\u002FVSCodeFluentProvider>,\n);\n```\n\n- **`VSCodeFluentProvider`** — adapts Fluent UI theming to VS Code's active color theme. Lives in `@microsoft\u002Fvscode-ext-webview-fluentui`, not in `src\u002F`; importing it also injects that package's Fluent overrides.\n- **`WithWebviewContext`** — provides `vscodeApi` (postMessage) via React Context\n- **`WebviewRegistry`** — maps webview names → React components (in `_integration\u002FWebviewRegistry`)\n\nConfiguration from the extension host is read via `useConfiguration\u003CT>()`.\n\n## File Organization\n\n```\nviewName\u002F\n├── ViewName.tsx            # Main component\n├── viewName.scss           # Styles\n├── viewNameContext.ts      # Context + state types (if complex)\n├── viewNameController.ts   # WebviewController subclass (extension-side)\n├── viewNameRouter.ts       # tRPC router (extension-side, see webview-trpc-messaging skill)\n├── constants.ts\n├── components\u002F             # Sub-components\n├── hooks\u002F                  # Custom React hooks\n├── types\u002F                  # TypeScript types\n└── utils\u002F                  # Helpers\n```\n\n## Component Hierarchy\n\n**DocumentView** (simpler, good reference pattern):\n\n```\nDocumentView\n├── ProgressBar (conditional: isLoading)\n├── ToolbarDocuments\n└── MonacoEditor\n```\n\n**CollectionView** (complex, multi-tab):\n\n```\nCollectionView\n├── ProgressBar (conditional)\n├── ToolbarMainView\n├── QueryEditor\n│   └── MonacoAutoHeight (multiple: filter, project, sort)\n├── TabList (Results | Query Insights [PREVIEW])\n├── Results Tab:\n│   ├── ToolbarViewNavigation + ToolbarDocumentManipulation + ViewSwitcher\n│   ├── DataViewPanelTable \u002F DataViewPanelTree \u002F DataViewPanelJSON\n│   └── ToolbarTableNavigation (Table View only)\n└── Query Insights Tab:\n    └── QueryInsightsMain (3-stage progressive loading)\n```\n\n## State Management\n\n### Simple views (DocumentView): local `useState` + props\n\n### Complex views (CollectionView): React Context with `[state, setState]` tuple\n\n```tsx\nexport const CollectionViewContext = createContext\u003C\n    [CollectionViewContextType, React.Dispatch\u003CReact.SetStateAction\u003CCollectionViewContextType>>]\n>([DefaultCollectionViewContext, () => {}]);\n\n\u002F\u002F Provider in parent\nconst [currentContext, setCurrentContext] = useState(DefaultCollectionViewContext);\n\u003CCollectionViewContext.Provider value={[currentContext, setCurrentContext]}>\n\n\u002F\u002F Consumer in child\nconst [currentContext, setCurrentContext] = useContext(CollectionViewContext);\n```\n\n**Always use functional updates** when state depends on previous value:\n\n```tsx\nsetCurrentContext((prev) => ({\n  ...prev,\n  isLoading: true,\n  activeQuery: { ...prev.activeQuery, pageNumber: 1 },\n}));\n```\n\n## Stale Closure Pattern (CRITICAL)\n\nThird-party components (SlickGrid) bind event handlers at initialization — they don't update when state changes. **Always use refs** to access current data in those handlers:\n\n```tsx\nconst dataRef = useRef(data);\nuseEffect(() => {\n  dataRef.current = data;\n}, [data]);\n\nconst onCellDblClick = useCallback((event) => {\n  const item = dataRef.current[event.detail.args.row]; \u002F\u002F ✅ always current\n  \u002F\u002F NOT: data[event.detail.args.row]; ❌ stale closure\n}, []); \u002F\u002F stable deps only\n```\n\n**Why**: SlickGrid binds handlers once at init time. Without refs, handlers see the data from initialization, not the latest state. This caused multiple hard-to-debug issues.\n\n## Monaco Editor\n\n### Required patterns:\n\n1. **Manual layout** — Monaco doesn't auto-resize:\n\n```tsx\nuseEffect(() => {\n  const handler = debounce(() => editorRef.current?.layout(), 200);\n  window.addEventListener('resize', handler);\n  handleResize(); \u002F\u002F initial layout\n  return () => window.removeEventListener('resize', handler);\n}, []);\n```\n\n2. **Dispose on unmount**:\n\n```tsx\nreturn () => {\n  editorRef.current?.dispose();\n};\n```\n\n3. **MonacoAutoHeight** — self-sizing editor for query fields:\n\n```tsx\n\u003CMonacoAutoHeight\n  adaptiveHeight={{ enabled: true, maxLines: 10, minLines: 1, lineHeight: 19 }}\n  onExecuteRequest={() => onExecuteRequest()}\n  onMount={(editor, monaco) => handleEditorDidMount(editor, monaco)}\n\u002F>\n```\n\n4. **JSON Schema delay** — Monaco's JSON worker may not be ready immediately after mount. An AbortController-guarded delay is used (see QueryEditor for the pattern).\n\n## Fluent UI Integration\n\nUse `@fluentui\u002Freact-components` (v9), themed via `VSCodeFluentProvider`:\n\n| Component                  | Usage                     |\n| -------------------------- | ------------------------- |\n| `ProgressBar`              | Loading states            |\n| `Button`, `ToggleButton`   | Toolbar actions           |\n| `Tab`, `TabList`           | View switching            |\n| `Dropdown`, `Option`       | Selection (ViewSwitcher)  |\n| `Badge`                    | Status\u002Fpreview indicators |\n| `MessageBar`               | Info\u002Fwarning messages     |\n| `Skeleton`, `SkeletonItem` | Loading placeholders      |\n\nAnimations: `Collapse` from `@fluentui\u002Freact-motion-components-preview`\n\n## Styling\n\n- Each component gets its own `.scss` file, imported directly\n- Shared styles in `sharedStyles.scss`, applied via `@extend`\n- **Consistent spacing unit: `10px`** with flexbox `row-gap`\u002F`column-gap`\n- **No inline styles** — move to SCSS files\n- Avoid negative margins — fix layout with proper flexbox\n\n```scss\n.documentView {\n  display: flex;\n  flex-direction: column;\n  height: 100vh;\n  row-gap: 10px;\n}\n```\n\n## Custom Hooks\n\n| Hook                                  | Purpose                                                                                      |\n| ------------------------------------- | -------------------------------------------------------------------------------------------- |\n| `useSelectiveContextMenuPrevention()` | Prevents browser context menu everywhere except Monaco editors. Call once in top-level view. |\n| `useHideScrollbarsDuringResize()`     | Returns a function that temporarily hides scrollbars during layout transitions (500ms).      |\n\n## Conditional Rendering Patterns\n\n**Object-based switch:**\n\n```tsx\n{{\n    'Table View': \u003CDataViewPanelTable {...props} \u002F>,\n    'Tree View': \u003CDataViewPanelTree {...props} \u002F>,\n    'JSON View': \u003CDataViewPanelJSON {...props} \u002F>,\n}[currentContext.currentView]}\n```\n\n## Loading State\n\n```tsx\nconst [isLoading, setIsLoading] = useState(false);\nsetIsLoading(true);\ntry {\n  await op();\n} finally {\n  setIsLoading(false);\n}\n\n\u002F\u002F In render:\n{\n  isLoading && \u003CProgressBar thickness=\"large\" shape=\"square\" className=\"progressBar\" \u002F>;\n}\n```\n\n## Common Pitfalls\n\n1. **Forgetting refs with third-party components** → stale data in event handlers\n2. **Not cleaning up** event listeners, Monaco instances, AbortControllers in `useEffect` return\n3. **Not calling `editor.layout()`** after resize → blank Monaco panels\n4. **Using `any`** → use proper types or `unknown` with type guards\n5. **Missing `l10n.t()`** on user-facing strings\n6. **Inline styles** instead of SCSS files\n7. **Negative margins** to fix spacing — restructure layout with flexbox gap instead\n",{"name":5,"description":7},"main","e15fa6c12e64ad9483e1211805956043ce91720d",".github\u002Fskills\u002Freact-webview-architecture",22,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 05:21:32",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add microsoft\u002Fvscode-documentdb --skill react-webview-architecture",{"tool":68,"command":69},"bunx","bunx skills add microsoft\u002Fvscode-documentdb --skill react-webview-architecture",{"tool":71,"command":72},"pnpm","pnpm dlx skills add microsoft\u002Fvscode-documentdb --skill react-webview-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Freact-webview-architecture\u002FSKILL.md",true,[76],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002FREACT_ARCHITECTURE_GUIDELINES.md","REFERENCE","参考文档",27806,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Freact-webview-architecture\u002Freferences\u002FREACT_ARCHITECTURE_GUIDELINES.md",[83,119,139,171,196,215],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":97,"publishedAt":48},"01M69BSZH60F9JW3N87ZBSKTW8","writing-release-notes","Generates release notes and changelog entries for the DocumentDB extension for Visual Studio Code, and announces releases on GitHub Discussions. Use when preparing version releases, creating patch update notes, writing changelog entries, documenting new features and fixes, or posting a release or patch release announcement to Discussions. Handles both major\u002Fminor versions (new file) and patch updates (append to existing file).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwriting-release-notes\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[98,99,100,101,102,103,104,105,106,107,28,29,108,109,110,111,112,113,114,115,116,117,118],"notes","release","release notes","writing","writing release notes","github","update","visual studio code","visual studio","code","updates","studio","patch","changelog","announcement","release announcement","releases","features","append","posting","fixes",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":48},"01M69BSXPVQWSQVYNT6QK38VN1","webview-trpc-messaging","Implements tRPC-based communication between VS Code extension host and React webviews. Use when creating new webview procedures (queries, mutations, subscriptions), adding a new webview router, wiring up a webview controller, using the tRPC client from React components, applying telemetry middleware (telemetryMiddlewareBody), or supporting AbortSignal-based cancellation in webview operations.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwebview-trpc-messaging\u002FSKILL.md",[],[126,40,32,127,107,46,24,128,129,130,28,131,132,29,133,134,135,136,137,138],"webview trpc messaging","telemetry","react components","middleware","up","host","use","wiring","router","queries","controller","mutations","communication",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":151,"publishedAt":48},"01M69BSV4V52VBDF3RZ3E6Y61T","ux-pr-review","Prepare and run an agent-assisted UX \u002F workflow review of a pull request. Use when the operator says \"I'm about to work on a UX PR review, please prepare\", \"prepare a UX review for PR","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fux-pr-review\u002FSKILL.md",[145,148],{"categoryNo":146,"categoryName":147,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":149,"categoryName":150,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000032","设计师",[152,153,154,155,156,157,158,159,160,161,162,163,164,132,29,165,166,167,168,169,170],"ux pr review","pr","pr review","review","ux","pull request","prepare","workflow","run","pull","ux review","for","work on","workflow review","work","please","request","about","operator",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":48},"01M69BSRV752CSC1NBMFWDCKB5","tree-cluster-architecture","Patterns for cluster nodes and tree data providers in vscode-documentdb. Use when adding or changing a cluster tree item, discovery provider, Connections\u002FAzure\u002FDiscovery tree hierarchy, tree\u002Flist mode, cluster identity, treeId\u002FclusterId lookup, Collection View import\u002Fexport resolution, reveal behavior, credentials, shell actions, or copy connection string support.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftree-cluster-architecture\u002FSKILL.md",[],[178,25,179,180,181,182,44,183,184,185,29,186,187,188,189,190,191,192,34,193,194,195],"tree cluster architecture","tree","cluster","azure","support","identity","actions","mode","collection","hierarchy","credentials","reveal","export","data","list","Providers","STRING","import",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":48},"01M69BSPMFSH3FAR4R5TGDB468","telemetry-instrumentation","Instrumentation patterns for telemetry in the vscode-documentdb extension. Use when adding telemetry to a feature, enriching existing telemetry with properties or measurements, linking related events with correlation IDs, instrumenting commands or tree views, suppressing noisy events, or deciding what data points to capture. Also use when asked to \"add telemetry\" or \"improve telemetry\" for any feature.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftelemetry-instrumentation\u002FSKILL.md",[],[203,127,204,44,205,206,29,207,208,191,34,209,210,179,211,163,132,212,213,214],"telemetry instrumentation","instrumentation","ids","improve","linking","commands","add","events","feature","Existing","with","properties",{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":219,"categories":220,"keywords":222,"publishedAt":48},"01M69BSMRAT64W6F3F15FVQ9QK","skill-creator","Guide for creating effective GitHub Copilot skills (.github\u002Fskills\u002F) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-documentdb\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fskill-creator\u002FSKILL.md",[221],{"categoryNo":146,"categoryName":147,"taxonomyType":21,"taxonomyTypeDesc":22},[223,224,225,103,226,44,227,163,228,28,132,212,29,229,230,231,169,232,233,234],"skill creator","creator","github copilot","best practices","copilot","project","structure","github copilot skills","copilot skills","format","repository","new skill"]