[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EN9ZEDJZMEAJH3RP50NV5S":3,"skill-same:01M6EN9ZEDJZMEAJH3RP50NV5S":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6EN9ZEDJZMEAJH3RP50NV5S","add-widget",null,"Step-by-step house pattern for adding an interactive widget to a module (the React component built from the design kit `@miragon\u002Fpulse-ui` and widget-shell's view runtime, the `show_*` widget tool, the app-only `*_data` feed, the view map keyed by the show tool's name, and a widget test under `TestViewHost`). Use whenever adding or changing widgets, `show_*` tools, `*_data` feeds, in-widget data fetching, or when debugging a widget that renders empty, unstyled, or hangs on \"Loading…\".","Miragon\u002Fpulse","Miragon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58698887?v=4","01M6EN8W7TCK4BRJB1S2GEW8C3","01M6EN8WC4V4QYAV5C8FMYZ4R9",8,"MIT","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002Ftemplates\u002Fcomposed-server\u002F.claude\u002Fskills\u002Fadd-widget\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"widget","add","add widget","when","map","kit","design","runtime","loading","for","view","Bash","debugging","use","only","module","tool","show","feeds","app","2026-11-10 10:12:30",false,"---\nname: add-widget\ndescription: Step-by-step house pattern for adding an interactive widget to a module (the React component built from the design kit `@miragon\u002Fpulse-ui` and widget-shell's view runtime, the `show_*` widget tool, the app-only `*_data` feed, the view map keyed by the show tool's name, and a widget test under `TestViewHost`). Use whenever adding or changing widgets, `show_*` tools, `*_data` feeds, in-widget data fetching, or when debugging a widget that renders empty, unstyled, or hangs on \"Loading…\".\nallowed-tools: Read, Edit, Write, Glob, Grep, Bash\n---\n\n# add-widget: an interactive widget in your module\n\n**Reference implementation: the notes widget.** `modules\u002Fmcp-notes\u002Fsrc\u002Fwidgets\u002Fnotes-list.tsx`\n(component), `widgets\u002Fviews.tsx` (the view map), `widgets\u002Fnotes-list.test.tsx`\n(the widget test), `widget-tools.ts` (show tool and data feed), `tool-names.ts`\n(rename safety). Richer patterns (paged lists,\nKPI grids, BPMN viewers) live in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-engine-connector\u002Fsrc\u002Fwidgets\u002F`.\nThe names below are documented in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002FREADME.md` (export table) and\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-ui\u002FREADME.md`, typed in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002Fdist\u002Fui\u002Findex.d.ts`\n(widget-shell's `.\u002Fwidgets`) and\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-ui\u002Fdist\u002Findex.d.ts`. The package\ndirectories are gitignored symlinks: search one of them, not the repo root.\n\n## Step 0: pick the render path\n\n| You need…                                | Path                                                         |\n| ---------------------------------------- | ------------------------------------------------------------ |\n| JSON data for the model                  | Plain registrar tool in `src\u002Ftools.ts`; no widget, stop here |\n| A widget rendered for the user + summary | `\u003Cmodule>_show_\u003Cthing>` widget tool in `src\u002Fwidget-tools.ts` |\n| App-only JSON for in-widget refresh\u002Fnav  | `\u003Cmodule>_\u003Cthing>_data` feed in `src\u002Fwidget-tools.ts`        |\n| A view that must stay outside the bundle | \"A finished HTML view\" below, instead of Steps 1 and 2       |\n\nA widget almost always means **both** widget-path tools: the `show_*` tool\nrenders it, the `*_data` feed is what it re-reads (a retry, an invalidation\nafter a write) and fetches when it is mounted without data. The `_show_`\u002F`_data`\n**naming is load-bearing**: `server\u002Ftest\u002Fwidget-contract.e2e.test.ts` asserts\nthe widget `_meta` contract by name across all composed modules.\n\n## Step 1: the component\n\nWidgets live in `src\u002Fwidgets\u002F` and receive their payload as a `data` prop.\nCompose them from the design kit `@miragon\u002Fpulse-ui` and the view runtime\n`@miragon\u002Fpulse-widget-shell\u002Fwidgets`, never re-inline their primitives. The\nkit holds everything that touches no host (primitives, components, tone\nmaps, `cn`, the formatters, `Icon`, the table cells); the view runtime holds\nwhat reads the host or calls a tool. Neither re-exports the other's names:\n\n- `WidgetShell` (container) from the view runtime; `WidgetHeader`\n  (title\u002Fsub\u002Fbadge, no icon tile, `as` for the heading level) and `Section`\n  from the kit\n- Tables: the view runtime's `ListTable` (the frame: a named,\n  keyboard-reachable scroll region so a wide table never widens the view;\n  `hideBelow` on a column a narrow view can do without; `sticky` on the last\n  column, the row actions; `sort` on the column the rows are ordered by;\n  `groups` to head adjacent columns) with hand-composed `\u003Ctr>` + the kit's\n  `Td` rows; `IdCell` (view runtime) for an id column (Geist Mono, shortened,\n  a copy button); the kit's `TableEmptyState` instead of an empty frame\n  (`variant=\"done\"` for \"nothing left to do\"); KPI strips: the kit's\n  `KpiGrid`\n- No data yet (a widget mounted without the show tool's data): the view\n  runtime's `QueryFallback` + `TableSkeleton`. A missing `isError` branch\n  means an eternal skeleton. Its `onRetry` is required, and the error speaks\n  for itself: `describeError` turns an engine or transport failure into what\n  happened and what you can do, the raw text under \"Details\"; `errorTitle`\n  heads only a failure it cannot classify\n- Writes: confirm with the toast (`useActionFeedback().succeeded\u002Ffailed`,\n  naming the object), ask first with `ConfirmDialog` (verb + object on both\n  buttons), both from the view runtime\n- Formatting, from the kit: `formatTimestamp`\u002F`formatDate`\u002F`formatTime` for\n  dates, `formatNumber`\u002F`formatPercent`\u002F`formatPercentPoints`\u002F`formatPeriod`\u002F\n  `formatDuration`\u002F`truncate` for the rest, all in the view's locale; no\n  local helpers, no `Intl.DateTimeFormat`\u002F`toLocaleDateString`\u002F`toFixed` in\n  widget code\n- Status: a tone (`danger`\u002F`warning`\u002F`success`\u002F`info`\u002F`neutral`) via the\n  kit's `StatusBadge`\u002F`CountPill`\u002F`KpiCell.tone` or its `TONE_*` maps, next\n  to readable words; colours come from the role variables (override them in\n  `server\u002Fsrc\u002Fui\u002Fbrand.css`, light and dark, to brand), never palette\n  classes or raw colours in widgets\n- Icons: Lucide through the kit's `Icon` (add `lucide-react` to the module's\n  dependencies at the exact version `server\u002Fpackage.json` pins), never Unicode\n  glyphs or emoji\n- Long paged lists: the view runtime's `usePagedListView` + `ListTable` inside\n  `PagedRows` + the kit's `PagedListFooter` (the feed must accept\n  `firstResult`\u002F`maxResults` and return an honest total). A new search keeps\n  the previous rows on screen (`paged.stale`): read counts and filters from\n  the payload shown, not from the request\n\nData rule (see `NotesListWidget`): read through the view runtime's\n`useViewData(data, key, FEED, args, ready)` against the **`*_data` feed, never\nthe `show_*` tool** (the host would render its result as a second view instead\nof returning JSON). The show tool's data SEEDS the feed's cache entry, so a\nrender never double-fetches, while a retry or a write's invalidation of `key`\nre-reads the feed; mounted without data, the widget fetches it. Build `args`\nfrom the data on screen (the notes view carries its `query`), so a re-read\nasks for what the view shows. Import the tool name from `src\u002Ftool-names.ts`.\n\nWidgets reach the host only through the view runtime: `useViewHost()` (`callTool`,\n`sendFollowUp`, `openExternal`), `HostModelContext` and the query hooks\n(`useViewData`, `useToolQuery`, `useToolMutation`, `useQueryClient`). Never\nimport `@modelcontextprotocol\u002Fext-apps` in a widget: only widget-shell's host\nadapter under the bundle root (`mountViews`) talks to the host, and the seam is\nwhat lets a test render the widget without a host (Step 4).\n\n## Step 2: the three links\n\nEvery view appears in three places. **Miss one and it is silently absent**\n(no build error):\n\n1. The show tool returns its view's data: `buildViewResult(data, summary)` in\n   `src\u002Fwidget-tools.ts` (Step 3). Its NAME is the view's name.\n2. `src\u002Fwidgets\u002Fviews.tsx`, the module's view map (re-exported by\n   `src\u002Fwidgets\u002Findex.ts`): `[MY_SHOW_TOOL]: MyView`, keyed by the show tool's\n   name, where `MyView({ data })` renders the widget inside\n   `\u003CHostModelContext content={describeMy(data)}>`. The description is the\n   model's context line (\"what is the user looking at\"); always provide it.\n3. `server\u002Fsrc\u002Fui\u002Fview-registry.ts`: your module's view map must be spread\n   into `viewRegistry`. `server\u002Ftest\u002Fview-registry.test.ts` boots the real\n   composition and fails naming a view-bound tool without a view, so a missing\n   spread and a key that differs from the show tool's name both fail there.\n\nNext to the chain, `src\u002Ftool-names.ts` holds a constant for every\n`show_*`\u002F`*_data` tool referenced from widget code, so a rename trips TS at\nevery call site.\n\nTailwind coverage comes for free for workspace modules: the\n`modules\u002F*\u002Fsrc` glob in `server\u002Fsrc\u002Fui\u002Fglobals.css` scans them all. Only a\nmodule installed from npm needs its own `@source` entry there (missing means\nsilently unstyled).\n\n## Step 3: the widget tools (`src\u002Fwidget-tools.ts`)\n\nThis file is the documented exception that calls the official SDK's\n`server.registerTool(name, config, handler)` directly (`server` is the\n`ModuleServer` your plugin's `register(server)` gets; ext-apps'\n`registerAppTool` works on it too, with the same\n`...showToolBinding(name, title)` spread into its config, which then adds\nnothing). Model both tools on `modules\u002Fmcp-notes\u002Fsrc\u002Fwidget-tools.ts`:\n\n- **`show_*` tool**: annotate it `{ readOnlyHint: true, idempotentHint: true }`\n  (why: the last bullet). Spread\n  `...showToolBinding(name, title)` (from\n  `@miragon\u002Fpulse-widget-shell\u002Fserver`) into its config. It binds the view\n  named after the tool (`_meta.ui.resourceUri`, a resource the boot serves),\n  the passthrough `outputSchema`, and the Apps-SDK `_meta` half. **Never\n  hand-write `_meta` keys.** Return\n  `buildViewResult(data, summary)`: the `structuredContent` IS the view's\n  data (no title: the widget's heading names the view), and `summary` is the\n  model-facing channel (1–2 sentences, key figures, pointer to the plain tool\n  for raw data).\n- **`*_data` feed**: spread `...appOnly` (`_meta.ui.visibility: [\"app\"]` +\n  `openai\u002FwidgetAccessible`, **no** view binding) and return\n  `buildDataFeedResult(data)`, so the in-widget `callTool()` gets JSON back\n  instead of the host rendering a new widget.\n- Wrap every handler in `withToolErrors` (all from\n  `@miragon\u002Fpulse-widget-shell\u002Fserver`).\n- Share the input shape between the pair (one `const \u003Cthing>InputShape`), so\n  the widget can re-issue the show tool's arguments against the feed, and\n  declare it as `inputSchema: strictToolInput(\u003Cthing>InputShape)`, never a bare\n  `z.object`, which silently drops an unknown key instead of refusing it.\n- Register both inside your plugin's `register(server)` (through\n  `registerWidgetTools` in the notes module): the boot applies the server-wide\n  view CSP to every bundle view and refuses a tool name another plugin\n  already registered.\n- A widget-path tool never writes, and the `show_*` tool states\n  `readOnlyHint: true`. On a host that strips `structuredContent`\n  (claude.ai) the view re-runs its show tool once by itself, without asking,\n  so a write there would run twice; and the registrar's toolset filter never\n  sees a widget-path tool. A write is a registrar tool (the `create-module`\n  skill, Step 5), which the filter drops outside its toolset.\n  `server\u002Ftest\u002Fview-registry.test.ts` fails on a view-bound tool that is not\n  a read.\n\n## Step 4: verify\n\n```bash\npnpm build && pnpm typecheck && pnpm test\n```\n\n- `pnpm typecheck` is the **only** automated check that type-checks widget\n  `.tsx` code. Never skip it.\n- `pnpm test` runs the view-registry guard (every view-bound tool is a read,\n  a bundle view's tool has a view under its name, and every view has a tool) plus the\n  wire-contract e2e (naming, `_meta`, app-only visibility). If one fails its\n  message names the missing link: fix the link, not the guard. The one test\n  that names the example, `server\u002Ftest\u002Fexample-notes.test.ts`, goes with the\n  example module (the `create-module` skill, \"Remove the example module\").\n- Write a widget test next to the widget, as\n  `modules\u002Fmcp-notes\u002Fsrc\u002Fwidgets\u002Fnotes-list.test.tsx` does: `\u002F\u002F @vitest-environment\nhappy-dom`, then render the view or widget under `TestViewHost` from\n  `@miragon\u002Fpulse-widget-shell\u002Fwidgets` with fake `tools`, and assert what it\n  shows, what it asked the host (`onHostAction`: tool calls, follow-ups,\n  links) and what it told the model (`onModelContext`). No server, no host,\n  no view runtime. Numbers and dates render in the test host's `locale`\n  (English without one) and its `host.timeZone`, as the view root renders\n  them in the host's, so the test reads the same on every machine.\n\nThen a render check of the real bundle (the widget test renders the component,\nnot the built bundle in a host). `pnpm dev` starts the official MCP Inspector\nnext to the server; open the URL it prints, then render `\u003Cmodule>_show_\u003Cthing>`\nin its Apps tab. A styled widget proves the bundle, the registry links, and\nthe Tailwind scan in one shot; also exercise the widget's feed (a retry, or a\nwrite that invalidates it) so the `*_data` path runs too. The inspector has no\nchat, so a hand-off does nothing there; a real host behind a tunnel shows it\n(the `setup-server` skill, Step 6). Headless, with `pnpm dev` running, the\ninspector's CLI checks the wire from `server\u002F`:\n\n```bash\npnpm exec mcp-inspector --cli --server-url http:\u002F\u002F127.0.0.1:8400\u002Fmcp --transport http \\\n  --method tools\u002Fcall --tool-name \u003Cmodule>_show_\u003Cthing> --app-info      # the view: resourceUri, csp\npnpm exec mcp-inspector --cli --server-url http:\u002F\u002F127.0.0.1:8400\u002Fmcp --transport http \\\n  --method tools\u002Fcall --tool-name \u003Cmodule>_show_\u003Cthing> --format json   # its structuredContent\n```\n\nA widget edit rebuilds the bundle and restarts the server by itself; reopen\nthe view to see it. A module's tools are built once, when `pnpm dev` starts:\nrestart `pnpm dev` at the repo root after changing them.\n\n## A finished HTML view\n\nA widget in the bundle is the default: it shares the kit and the host contexts,\nand every other module's view looks like it. A module may instead bring one\nfinished HTML document as a resource of its own, when the view comes from\nanother toolchain or the module ships on npm without widget sources. Nothing of\nit enters the Vite build, the view map or `view-registry.ts`. It costs you:\n\n- **No shared bundle code.** The document carries its own React and styles, or\n  none, and every render pays for them.\n- **No host contexts from widget-shell**: no `useViewHost`, query hooks,\n  `LocaleGate` or theme. The document runs the MCP Apps handshake itself (ext-apps'\n  `App`, https:\u002F\u002Fapps.extensions.modelcontextprotocol.io\u002Fapi\u002F), reads theme and\n  locale from the host context and calls its feeds through the host. A feed's\n  `buildDataFeedResult` answers one text block of JSON, no `structuredContent`,\n  so the document parses `content[0].text` itself. It also has\n  no recovery for a host that strips `structuredContent`: on such a host it gets\n  no data unless it fetches it from a feed itself.\n- **The CSP is yours.** The boot adds nothing: not the server's origin, not the\n  fonts. The document loads its own, and `_meta.ui.csp` admits every origin it\n  needs. The same goes for what a bundle view's resource tells Apps SDK hosts,\n  `openai\u002FwidgetDescription` and `openai\u002Fui`: state them in your resource's\n  `_meta` if a host should read them.\n- **Its size is yours.** The bundle has a budget, a document none: a read sends\n  it whole and holds about four times its size in the server's memory (256 MB\n  grew the process by 1 GB).\n\n```ts\nimport { readFileSync } from \"node:fs\"\nimport {\n  registerAppResource,\n  registerAppTool,\n  RESOURCE_MIME_TYPE,\n} from \"@modelcontextprotocol\u002Fext-apps\u002Fserver\"\nimport {\n  buildViewResult,\n  showToolBinding,\n  strictToolInput,\n  type AppResourceCsp,\n  type ModuleServer,\n} from \"@miragon\u002Fpulse-widget-shell\u002Fserver\"\n\nconst BOARD_URI = \"ui:\u002F\u002Fboard\u002Fboard.html\" \u002F\u002F your own: ui:\u002F\u002Fviews\u002F is the boot's\nconst CSP: AppResourceCsp = { connectDomains: [\"https:\u002F\u002Fapi.example.com\"] }\nconst BOARD_HTML = readFileSync(new URL(\".\u002Fboard.html\", import.meta.url), \"utf8\")\n\nexport function register(server: ModuleServer): void {\n  registerAppTool(\n    server,\n    \"board_show_board\",\n    {\n      title: \"Board\",\n      annotations: { readOnlyHint: true },\n      inputSchema: strictToolInput({}),\n      ...showToolBinding(\"board_show_board\", \"Board\", { resourceUri: BOARD_URI, csp: CSP }),\n    },\n    () => buildViewResult({ cards: [] }, \"No cards.\"),\n  )\n  registerAppResource(server, \"Board\", BOARD_URI, {}, () => ({\n    contents: [\n      {\n        uri: BOARD_URI,\n        mimeType: RESOURCE_MIME_TYPE,\n        text: BOARD_HTML,\n        _meta: { ui: { csp: CSP } },\n      },\n    ],\n  }))\n}\n```\n\n`tsc` copies no HTML and the example reads `board.html` on import, so without the\nfile next to the compiled code the server does not start, even with the module\noff: build with `\"build\": \"tsc && cp src\u002Fboard.html dist\u002F\"`. To publish the module,\nits `package.json` says `\"files\": [\"dist\"]` and drops the `\"private\": true` of the\ncopied notes module.\n\n`server.registerTool` and `server.registerResource` work just the same; the two\next-apps helpers add only the flat `ui\u002FresourceUri` and the MIME type. A module\nthat imports them declares ext-apps as a ranged peer (`CLAUDE.md`, rule 5), and a\nserver that installs it from npm pins it in `dependencies` of\n`server\u002Fpackage.json`: `\"@modelcontextprotocol\u002Fext-apps\"` at the version\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002Fpackage.json` lists.\n`server\u002Ftest\u002Fpins.test.ts` holds a pin you set and misses one you did not. The\n`_show_` and `_data` naming holds as ever:\n`server\u002Ftest\u002Fwidget-contract.e2e.test.ts` also asks every view tool for both\n`_meta` halves, so spread `showToolBinding` here too, with `registerAppTool` as\nwell.\n\nThe boot checks the rest. A URI or resource name two registrations share fails\nnaming both modules, so does a URI under `ui:\u002F\u002Fviews\u002F`, which it serves from the\nbundle, or a template that could reach it (spell out its scheme, and a `ui:`\ntemplate's host), and so does a tool whose URI no module registers, is no `ui:\u002F\u002F`\nURI or is a template's text. A read or prompt callback that returns no `contents`\nor `messages` array, or throws no `Error`, gets an error naming the module. A\nthrown error's message reaches the client, as a tool's does, so keep secrets out\nof it; its stack goes to the log, the rest of it nowhere, and a `ProtocolError`\ngoes out as thrown. A template's `list` callback that fails or takes over 5 s\ncosts only its own entries in `resources\u002Flist`. A module's test reads\nthe document with `recordingModuleServer().resource(uri).read()`. Render it in the\ninspector's Apps tab as any other view, and check it on `--app-info` (Step 4).\n\n## Troubleshooting\n\n| Symptom                                                 | Cause                                                                                                                                                                         |\n| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Boot fails: \"binds …, which this server does not serve\" | the tool's `_meta` names a URI no module registers: bind `ui:\u002F\u002Fviews\u002F\u003Ctool>.html` with `showToolBinding(name, title)`, or register that resource (a finished HTML view)       |\n| Boot fails: \"binds …, which no host would render\"       | the tool's `_meta` names a URI that is no `ui:\u002F\u002F` URI or a template's text: bind one document, and keep a resource of another scheme for data                                 |\n| \"Can't show this view\"                                  | the module's view map is not spread in `server\u002Fsrc\u002Fui\u002Fview-registry.ts`, or its key differs from the show tool's name (the guard test names the tool)                         |\n| Widget renders unstyled                                 | widget sources outside the Tailwind scan set: workspace modules are globbed (`modules\u002F*\u002Fsrc`); an npm-installed module needs its own `@source` in `server\u002Fsrc\u002Fui\u002Fglobals.css` |\n| Hangs on \"Loading…\" forever                             | `resolve.dedupe` in `server\u002Fvite.config.ts` trimmed or no longer spreading `VIEW_BUNDLE_DEDUPE` (duplicate React contexts), or a missing `isError` branch in the fallback     |\n| A refresh renders a second view                         | the widget calls the `show_*` tool instead of the `*_data` feed                                                                                                               |\n| e2e test fails on `_meta`\u002Fvisibility                    | tool name breaks the `_show_`\u002F`_data` convention, or a hand-written `_meta.ui` key: use the helpers                                                                           |\n| The show tool is not in the tool list                   | its module is not named in `MCP_ACTIVE_MODULES` in `.env` (a module the list does not name stays off; the boot log's `Toolsets:` line shows what runs)                        |\n| Boot fails on a duplicate tool name                     | two plugins register the same name; the error names both modules, rename one (keep the `\u003Cmodule>_` prefix)                                                                    |\n| Old UI or tool text after an edit                       | the view still shows the old bundle: reopen it; a tool's text or handler is built once, when `pnpm dev` starts: restart it at the repo root (it rebuilds the modules)         |\n","# add-widget: an interactive widget in your module\n\n**Reference implementation: the notes widget.** `modules\u002Fmcp-notes\u002Fsrc\u002Fwidgets\u002Fnotes-list.tsx`\n(component), `widgets\u002Fviews.tsx` (the view map), `widgets\u002Fnotes-list.test.tsx`\n(the widget test), `widget-tools.ts` (show tool and data feed), `tool-names.ts`\n(rename safety). Richer patterns (paged lists,\nKPI grids, BPMN viewers) live in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-engine-connector\u002Fsrc\u002Fwidgets\u002F`.\nThe names below are documented in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002FREADME.md` (export table) and\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-ui\u002FREADME.md`, typed in\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002Fdist\u002Fui\u002Findex.d.ts`\n(widget-shell's `.\u002Fwidgets`) and\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-ui\u002Fdist\u002Findex.d.ts`. The package\ndirectories are gitignored symlinks: search one of them, not the repo root.\n\n## Step 0: pick the render path\n\n| You need…                                | Path                                                         |\n| ---------------------------------------- | ------------------------------------------------------------ |\n| JSON data for the model                  | Plain registrar tool in `src\u002Ftools.ts`; no widget, stop here |\n| A widget rendered for the user + summary | `\u003Cmodule>_show_\u003Cthing>` widget tool in `src\u002Fwidget-tools.ts` |\n| App-only JSON for in-widget refresh\u002Fnav  | `\u003Cmodule>_\u003Cthing>_data` feed in `src\u002Fwidget-tools.ts`        |\n| A view that must stay outside the bundle | \"A finished HTML view\" below, instead of Steps 1 and 2       |\n\nA widget almost always means **both** widget-path tools: the `show_*` tool\nrenders it, the `*_data` feed is what it re-reads (a retry, an invalidation\nafter a write) and fetches when it is mounted without data. The `_show_`\u002F`_data`\n**naming is load-bearing**: `server\u002Ftest\u002Fwidget-contract.e2e.test.ts` asserts\nthe widget `_meta` contract by name across all composed modules.\n\n## Step 1: the component\n\nWidgets live in `src\u002Fwidgets\u002F` and receive their payload as a `data` prop.\nCompose them from the design kit `@miragon\u002Fpulse-ui` and the view runtime\n`@miragon\u002Fpulse-widget-shell\u002Fwidgets`, never re-inline their primitives. The\nkit holds everything that touches no host (primitives, components, tone\nmaps, `cn`, the formatters, `Icon`, the table cells); the view runtime holds\nwhat reads the host or calls a tool. Neither re-exports the other's names:\n\n- `WidgetShell` (container) from the view runtime; `WidgetHeader`\n  (title\u002Fsub\u002Fbadge, no icon tile, `as` for the heading level) and `Section`\n  from the kit\n- Tables: the view runtime's `ListTable` (the frame: a named,\n  keyboard-reachable scroll region so a wide table never widens the view;\n  `hideBelow` on a column a narrow view can do without; `sticky` on the last\n  column, the row actions; `sort` on the column the rows are ordered by;\n  `groups` to head adjacent columns) with hand-composed `\u003Ctr>` + the kit's\n  `Td` rows; `IdCell` (view runtime) for an id column (Geist Mono, shortened,\n  a copy button); the kit's `TableEmptyState` instead of an empty frame\n  (`variant=\"done\"` for \"nothing left to do\"); KPI strips: the kit's\n  `KpiGrid`\n- No data yet (a widget mounted without the show tool's data): the view\n  runtime's `QueryFallback` + `TableSkeleton`. A missing `isError` branch\n  means an eternal skeleton. Its `onRetry` is required, and the error speaks\n  for itself: `describeError` turns an engine or transport failure into what\n  happened and what you can do, the raw text under \"Details\"; `errorTitle`\n  heads only a failure it cannot classify\n- Writes: confirm with the toast (`useActionFeedback().succeeded\u002Ffailed`,\n  naming the object), ask first with `ConfirmDialog` (verb + object on both\n  buttons), both from the view runtime\n- Formatting, from the kit: `formatTimestamp`\u002F`formatDate`\u002F`formatTime` for\n  dates, `formatNumber`\u002F`formatPercent`\u002F`formatPercentPoints`\u002F`formatPeriod`\u002F\n  `formatDuration`\u002F`truncate` for the rest, all in the view's locale; no\n  local helpers, no `Intl.DateTimeFormat`\u002F`toLocaleDateString`\u002F`toFixed` in\n  widget code\n- Status: a tone (`danger`\u002F`warning`\u002F`success`\u002F`info`\u002F`neutral`) via the\n  kit's `StatusBadge`\u002F`CountPill`\u002F`KpiCell.tone` or its `TONE_*` maps, next\n  to readable words; colours come from the role variables (override them in\n  `server\u002Fsrc\u002Fui\u002Fbrand.css`, light and dark, to brand), never palette\n  classes or raw colours in widgets\n- Icons: Lucide through the kit's `Icon` (add `lucide-react` to the module's\n  dependencies at the exact version `server\u002Fpackage.json` pins), never Unicode\n  glyphs or emoji\n- Long paged lists: the view runtime's `usePagedListView` + `ListTable` inside\n  `PagedRows` + the kit's `PagedListFooter` (the feed must accept\n  `firstResult`\u002F`maxResults` and return an honest total). A new search keeps\n  the previous rows on screen (`paged.stale`): read counts and filters from\n  the payload shown, not from the request\n\nData rule (see `NotesListWidget`): read through the view runtime's\n`useViewData(data, key, FEED, args, ready)` against the **`*_data` feed, never\nthe `show_*` tool** (the host would render its result as a second view instead\nof returning JSON). The show tool's data SEEDS the feed's cache entry, so a\nrender never double-fetches, while a retry or a write's invalidation of `key`\nre-reads the feed; mounted without data, the widget fetches it. Build `args`\nfrom the data on screen (the notes view carries its `query`), so a re-read\nasks for what the view shows. Import the tool name from `src\u002Ftool-names.ts`.\n\nWidgets reach the host only through the view runtime: `useViewHost()` (`callTool`,\n`sendFollowUp`, `openExternal`), `HostModelContext` and the query hooks\n(`useViewData`, `useToolQuery`, `useToolMutation`, `useQueryClient`). Never\nimport `@modelcontextprotocol\u002Fext-apps` in a widget: only widget-shell's host\nadapter under the bundle root (`mountViews`) talks to the host, and the seam is\nwhat lets a test render the widget without a host (Step 4).\n\n## Step 2: the three links\n\nEvery view appears in three places. **Miss one and it is silently absent**\n(no build error):\n\n1. The show tool returns its view's data: `buildViewResult(data, summary)` in\n   `src\u002Fwidget-tools.ts` (Step 3). Its NAME is the view's name.\n2. `src\u002Fwidgets\u002Fviews.tsx`, the module's view map (re-exported by\n   `src\u002Fwidgets\u002Findex.ts`): `[MY_SHOW_TOOL]: MyView`, keyed by the show tool's\n   name, where `MyView({ data })` renders the widget inside\n   `\u003CHostModelContext content={describeMy(data)}>`. The description is the\n   model's context line (\"what is the user looking at\"); always provide it.\n3. `server\u002Fsrc\u002Fui\u002Fview-registry.ts`: your module's view map must be spread\n   into `viewRegistry`. `server\u002Ftest\u002Fview-registry.test.ts` boots the real\n   composition and fails naming a view-bound tool without a view, so a missing\n   spread and a key that differs from the show tool's name both fail there.\n\nNext to the chain, `src\u002Ftool-names.ts` holds a constant for every\n`show_*`\u002F`*_data` tool referenced from widget code, so a rename trips TS at\nevery call site.\n\nTailwind coverage comes for free for workspace modules: the\n`modules\u002F*\u002Fsrc` glob in `server\u002Fsrc\u002Fui\u002Fglobals.css` scans them all. Only a\nmodule installed from npm needs its own `@source` entry there (missing means\nsilently unstyled).\n\n## Step 3: the widget tools (`src\u002Fwidget-tools.ts`)\n\nThis file is the documented exception that calls the official SDK's\n`server.registerTool(name, config, handler)` directly (`server` is the\n`ModuleServer` your plugin's `register(server)` gets; ext-apps'\n`registerAppTool` works on it too, with the same\n`...showToolBinding(name, title)` spread into its config, which then adds\nnothing). Model both tools on `modules\u002Fmcp-notes\u002Fsrc\u002Fwidget-tools.ts`:\n\n- **`show_*` tool**: annotate it `{ readOnlyHint: true, idempotentHint: true }`\n  (why: the last bullet). Spread\n  `...showToolBinding(name, title)` (from\n  `@miragon\u002Fpulse-widget-shell\u002Fserver`) into its config. It binds the view\n  named after the tool (`_meta.ui.resourceUri`, a resource the boot serves),\n  the passthrough `outputSchema`, and the Apps-SDK `_meta` half. **Never\n  hand-write `_meta` keys.** Return\n  `buildViewResult(data, summary)`: the `structuredContent` IS the view's\n  data (no title: the widget's heading names the view), and `summary` is the\n  model-facing channel (1–2 sentences, key figures, pointer to the plain tool\n  for raw data).\n- **`*_data` feed**: spread `...appOnly` (`_meta.ui.visibility: [\"app\"]` +\n  `openai\u002FwidgetAccessible`, **no** view binding) and return\n  `buildDataFeedResult(data)`, so the in-widget `callTool()` gets JSON back\n  instead of the host rendering a new widget.\n- Wrap every handler in `withToolErrors` (all from\n  `@miragon\u002Fpulse-widget-shell\u002Fserver`).\n- Share the input shape between the pair (one `const \u003Cthing>InputShape`), so\n  the widget can re-issue the show tool's arguments against the feed, and\n  declare it as `inputSchema: strictToolInput(\u003Cthing>InputShape)`, never a bare\n  `z.object`, which silently drops an unknown key instead of refusing it.\n- Register both inside your plugin's `register(server)` (through\n  `registerWidgetTools` in the notes module): the boot applies the server-wide\n  view CSP to every bundle view and refuses a tool name another plugin\n  already registered.\n- A widget-path tool never writes, and the `show_*` tool states\n  `readOnlyHint: true`. On a host that strips `structuredContent`\n  (claude.ai) the view re-runs its show tool once by itself, without asking,\n  so a write there would run twice; and the registrar's toolset filter never\n  sees a widget-path tool. A write is a registrar tool (the `create-module`\n  skill, Step 5), which the filter drops outside its toolset.\n  `server\u002Ftest\u002Fview-registry.test.ts` fails on a view-bound tool that is not\n  a read.\n\n## Step 4: verify\n\n```bash\npnpm build && pnpm typecheck && pnpm test\n```\n\n- `pnpm typecheck` is the **only** automated check that type-checks widget\n  `.tsx` code. Never skip it.\n- `pnpm test` runs the view-registry guard (every view-bound tool is a read,\n  a bundle view's tool has a view under its name, and every view has a tool) plus the\n  wire-contract e2e (naming, `_meta`, app-only visibility). If one fails its\n  message names the missing link: fix the link, not the guard. The one test\n  that names the example, `server\u002Ftest\u002Fexample-notes.test.ts`, goes with the\n  example module (the `create-module` skill, \"Remove the example module\").\n- Write a widget test next to the widget, as\n  `modules\u002Fmcp-notes\u002Fsrc\u002Fwidgets\u002Fnotes-list.test.tsx` does: `\u002F\u002F @vitest-environment\nhappy-dom`, then render the view or widget under `TestViewHost` from\n  `@miragon\u002Fpulse-widget-shell\u002Fwidgets` with fake `tools`, and assert what it\n  shows, what it asked the host (`onHostAction`: tool calls, follow-ups,\n  links) and what it told the model (`onModelContext`). No server, no host,\n  no view runtime. Numbers and dates render in the test host's `locale`\n  (English without one) and its `host.timeZone`, as the view root renders\n  them in the host's, so the test reads the same on every machine.\n\nThen a render check of the real bundle (the widget test renders the component,\nnot the built bundle in a host). `pnpm dev` starts the official MCP Inspector\nnext to the server; open the URL it prints, then render `\u003Cmodule>_show_\u003Cthing>`\nin its Apps tab. A styled widget proves the bundle, the registry links, and\nthe Tailwind scan in one shot; also exercise the widget's feed (a retry, or a\nwrite that invalidates it) so the `*_data` path runs too. The inspector has no\nchat, so a hand-off does nothing there; a real host behind a tunnel shows it\n(the `setup-server` skill, Step 6). Headless, with `pnpm dev` running, the\ninspector's CLI checks the wire from `server\u002F`:\n\n```bash\npnpm exec mcp-inspector --cli --server-url http:\u002F\u002F127.0.0.1:8400\u002Fmcp --transport http \\\n  --method tools\u002Fcall --tool-name \u003Cmodule>_show_\u003Cthing> --app-info      # the view: resourceUri, csp\npnpm exec mcp-inspector --cli --server-url http:\u002F\u002F127.0.0.1:8400\u002Fmcp --transport http \\\n  --method tools\u002Fcall --tool-name \u003Cmodule>_show_\u003Cthing> --format json   # its structuredContent\n```\n\nA widget edit rebuilds the bundle and restarts the server by itself; reopen\nthe view to see it. A module's tools are built once, when `pnpm dev` starts:\nrestart `pnpm dev` at the repo root after changing them.\n\n## A finished HTML view\n\nA widget in the bundle is the default: it shares the kit and the host contexts,\nand every other module's view looks like it. A module may instead bring one\nfinished HTML document as a resource of its own, when the view comes from\nanother toolchain or the module ships on npm without widget sources. Nothing of\nit enters the Vite build, the view map or `view-registry.ts`. It costs you:\n\n- **No shared bundle code.** The document carries its own React and styles, or\n  none, and every render pays for them.\n- **No host contexts from widget-shell**: no `useViewHost`, query hooks,\n  `LocaleGate` or theme. The document runs the MCP Apps handshake itself (ext-apps'\n  `App`, https:\u002F\u002Fapps.extensions.modelcontextprotocol.io\u002Fapi\u002F), reads theme and\n  locale from the host context and calls its feeds through the host. A feed's\n  `buildDataFeedResult` answers one text block of JSON, no `structuredContent`,\n  so the document parses `content[0].text` itself. It also has\n  no recovery for a host that strips `structuredContent`: on such a host it gets\n  no data unless it fetches it from a feed itself.\n- **The CSP is yours.** The boot adds nothing: not the server's origin, not the\n  fonts. The document loads its own, and `_meta.ui.csp` admits every origin it\n  needs. The same goes for what a bundle view's resource tells Apps SDK hosts,\n  `openai\u002FwidgetDescription` and `openai\u002Fui`: state them in your resource's\n  `_meta` if a host should read them.\n- **Its size is yours.** The bundle has a budget, a document none: a read sends\n  it whole and holds about four times its size in the server's memory (256 MB\n  grew the process by 1 GB).\n\n```ts\nimport { readFileSync } from \"node:fs\"\nimport {\n  registerAppResource,\n  registerAppTool,\n  RESOURCE_MIME_TYPE,\n} from \"@modelcontextprotocol\u002Fext-apps\u002Fserver\"\nimport {\n  buildViewResult,\n  showToolBinding,\n  strictToolInput,\n  type AppResourceCsp,\n  type ModuleServer,\n} from \"@miragon\u002Fpulse-widget-shell\u002Fserver\"\n\nconst BOARD_URI = \"ui:\u002F\u002Fboard\u002Fboard.html\" \u002F\u002F your own: ui:\u002F\u002Fviews\u002F is the boot's\nconst CSP: AppResourceCsp = { connectDomains: [\"https:\u002F\u002Fapi.example.com\"] }\nconst BOARD_HTML = readFileSync(new URL(\".\u002Fboard.html\", import.meta.url), \"utf8\")\n\nexport function register(server: ModuleServer): void {\n  registerAppTool(\n    server,\n    \"board_show_board\",\n    {\n      title: \"Board\",\n      annotations: { readOnlyHint: true },\n      inputSchema: strictToolInput({}),\n      ...showToolBinding(\"board_show_board\", \"Board\", { resourceUri: BOARD_URI, csp: CSP }),\n    },\n    () => buildViewResult({ cards: [] }, \"No cards.\"),\n  )\n  registerAppResource(server, \"Board\", BOARD_URI, {}, () => ({\n    contents: [\n      {\n        uri: BOARD_URI,\n        mimeType: RESOURCE_MIME_TYPE,\n        text: BOARD_HTML,\n        _meta: { ui: { csp: CSP } },\n      },\n    ],\n  }))\n}\n```\n\n`tsc` copies no HTML and the example reads `board.html` on import, so without the\nfile next to the compiled code the server does not start, even with the module\noff: build with `\"build\": \"tsc && cp src\u002Fboard.html dist\u002F\"`. To publish the module,\nits `package.json` says `\"files\": [\"dist\"]` and drops the `\"private\": true` of the\ncopied notes module.\n\n`server.registerTool` and `server.registerResource` work just the same; the two\next-apps helpers add only the flat `ui\u002FresourceUri` and the MIME type. A module\nthat imports them declares ext-apps as a ranged peer (`CLAUDE.md`, rule 5), and a\nserver that installs it from npm pins it in `dependencies` of\n`server\u002Fpackage.json`: `\"@modelcontextprotocol\u002Fext-apps\"` at the version\n`server\u002Fnode_modules\u002F@miragon\u002Fpulse-widget-shell\u002Fpackage.json` lists.\n`server\u002Ftest\u002Fpins.test.ts` holds a pin you set and misses one you did not. The\n`_show_` and `_data` naming holds as ever:\n`server\u002Ftest\u002Fwidget-contract.e2e.test.ts` also asks every view tool for both\n`_meta` halves, so spread `showToolBinding` here too, with `registerAppTool` as\nwell.\n\nThe boot checks the rest. A URI or resource name two registrations share fails\nnaming both modules, so does a URI under `ui:\u002F\u002Fviews\u002F`, which it serves from the\nbundle, or a template that could reach it (spell out its scheme, and a `ui:`\ntemplate's host), and so does a tool whose URI no module registers, is no `ui:\u002F\u002F`\nURI or is a template's text. A read or prompt callback that returns no `contents`\nor `messages` array, or throws no `Error`, gets an error naming the module. A\nthrown error's message reaches the client, as a tool's does, so keep secrets out\nof it; its stack goes to the log, the rest of it nowhere, and a `ProtocolError`\ngoes out as thrown. A template's `list` callback that fails or takes over 5 s\ncosts only its own entries in `resources\u002Flist`. A module's test reads\nthe document with `recordingModuleServer().resource(uri).read()`. Render it in the\ninspector's Apps tab as any other view, and check it on `--app-info` (Step 4).\n\n## Troubleshooting\n\n| Symptom                                                 | Cause                                                                                                                                                                         |\n| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Boot fails: \"binds …, which this server does not serve\" | the tool's `_meta` names a URI no module registers: bind `ui:\u002F\u002Fviews\u002F\u003Ctool>.html` with `showToolBinding(name, title)`, or register that resource (a finished HTML view)       |\n| Boot fails: \"binds …, which no host would render\"       | the tool's `_meta` names a URI that is no `ui:\u002F\u002F` URI or a template's text: bind one document, and keep a resource of another scheme for data                                 |\n| \"Can't show this view\"                                  | the module's view map is not spread in `server\u002Fsrc\u002Fui\u002Fview-registry.ts`, or its key differs from the show tool's name (the guard test names the tool)                         |\n| Widget renders unstyled                                 | widget sources outside the Tailwind scan set: workspace modules are globbed (`modules\u002F*\u002Fsrc`); an npm-installed module needs its own `@source` in `server\u002Fsrc\u002Fui\u002Fglobals.css` |\n| Hangs on \"Loading…\" forever                             | `resolve.dedupe` in `server\u002Fvite.config.ts` trimmed or no longer spreading `VIEW_BUNDLE_DEDUPE` (duplicate React contexts), or a missing `isError` branch in the fallback     |\n| A refresh renders a second view                         | the widget calls the `show_*` tool instead of the `*_data` feed                                                                                                               |\n| e2e test fails on `_meta`\u002Fvisibility                    | tool name breaks the `_show_`\u002F`_data` convention, or a hand-written `_meta.ui` key: use the helpers                                                                           |\n| The show tool is not in the tool list                   | its module is not named in `MCP_ACTIVE_MODULES` in `.env` (a module the list does not name stays off; the boot log's `Toolsets:` line shows what runs)                        |\n| Boot fails on a duplicate tool name                     | two plugins register the same name; the error names both modules, rename one (keep the `\u003Cmodule>_` prefix)                                                                    |\n| Old UI or tool text after an edit                       | the view still shows the old bundle: reopen it; a tool's text or handler is built once, when `pnpm dev` starts: restart it at the repo root (it rebuilds the modules)         |\n",{"name":5,"description":7,"allowed-tools":43},"Read, Edit, Write, Glob, Grep, Bash","main","ff711bb6e1eb952767e56e3bdd4d7c249ced5b68","templates\u002Fcomposed-server\u002F.claude\u002Fskills\u002Fadd-widget",0,"https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse","https:\u002F\u002Fmiragon.github.io\u002Fpulse\u002F","https:\u002F\u002Fgithub.com\u002FMiragon","https:\u002F\u002Fwww.miragon.io","We enable organizations to become truly digital.","2026-11-14 23:44:07",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add Miragon\u002Fpulse --skill add-widget",{"tool":60,"command":61},"bunx","bunx skills add Miragon\u002Fpulse --skill add-widget",{"tool":63,"command":64},"pnpm","pnpm dlx skills add Miragon\u002Fpulse --skill add-widget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002Ftemplates\u002Fcomposed-server\u002F.claude\u002Fskills\u002Fadd-widget\u002FSKILL.md",true,[],[69,94,102,129,154,176],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":38},"01M6ENA6VEQJXWWXWE52B9JPZK","setup-server","Set up, configure, run, brand, and deploy this composed MCP server. Use whenever connecting a Camunda 7 \u002F CIB seven engine, selecting modules or toolsets (`MCP_ACTIVE_MODULES`), renaming the `@acme` scope, building the Docker image, running behind an MCP gateway, or troubleshooting boot warnings or inspector issues.","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002Ftemplates\u002Fcomposed-server\u002F.claude\u002Fskills\u002Fsetup-server\u002FSKILL.md",[],[76,77,78,79,80,81,82,83,84,85,86,87,88,31,89,90,91,29,92,93],"setup server","server","setup","modules","SET","gateway","prometheus","brand","scope","docker","up","issues","MCP","boot","configure","image","mcp server","running",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6ENA321FCXRTT8X06D0K4A0","create-module","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002Ftemplates\u002Fcomposed-server\u002F.claude\u002Fskills\u002Fcreate-module\u002FSKILL.md",[],[100,33,101],"create module","create",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":38},"01M6EN9PRZFNEA99X41BWPYVAB","pulse-cli","Inspect and operate Camunda 7, Operaton and CIB seven process engines through their REST API with the Pulse CLI (deployments, process instances, user tasks, external tasks, incidents, jobs, history, variables, decisions), and drive process instances with its workflow commands (inspect, wait, advance, retry, deploy, status). Use it whenever a task needs to read or change the state of such an engine.","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002Fapps\u002Fcli\u002Fskills\u002Fpulse-cli\u002FSKILL.md",[],[109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128],"pulse cli","pulse","cli","instances","history","advance","deployments","workflow","tasks","api","operate","retry","inspect","incidents","Variables","change","read","commands","status","wait",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":38},"01M6EN9J8S9R51AP99F0YBBQM7","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", or \"switch to --preset\".","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[131,37,136,137,138,139,140,141,142,143,30,144,145,146,147,101,148,149,150,151,152,27,21,153],"projects","component docs","switch","project","init","triggers","codes","false","file","components","examples","preset","component","json","project context","styling","usage","with",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":38},"01M6EN9ETKR0TQJRVBVEHW17VM","mcp-apps-builder","Where to look before changing MCP server code in this repo (tools, resources, prompts, widgets, auth). Points to the house skills, the CLAUDE.md invariants, widget-shell's view runtime and the official MCP SDK's typings and docs; it teaches no framework API itself.","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-apps-builder\u002FSKILL.md",[],[161,88,162,163,164,77,165,166,167,168,169,31,92,170,28,25,171,172,18,118,173,174,175],"builder","apps","mcp apps builder","mcp apps","resources","widgets","auth","repo","look","code","shell","invariants","official","mcp sdk","sdk",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":38},"01M6EN9BKN04C3NG1Q6CXBR92T","create-ticket","Create or update a GitHub issue for Pulse using the `gh` CLI. Use when the user asks to \"file a bug\", \"create a feature request\", \"open a GitHub issue\", or \"update an existing one\". Supports feature, bug, and refactor issue types with structured templates; shows a draft for confirmation before creating or editing; looks up existing issues by number or URL for updates.","https:\u002F\u002Fgithub.com\u002FMiragon\u002Fpulse\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcreate-ticket\u002FSKILL.md",[],[183,101,184,185,186,187,86,87,188,189,31,190,29,144,191,27,192,193,194,195,21],"ticket","create ticket","types","feature","editing","open","gh","confirmation","draft","Existing","updates","number","URL"]