[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79F8YTTMPQJJMGP1SWKSCE5":3,"skill-same:01M79F8YTTMPQJJMGP1SWKSCE5":51},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M79F8YTTMPQJJMGP1SWKSCE5","gpui",null,"GPUI components: styling, actions\u002Fshortcuts, async, contexts, entities, events, focus, global state, testing, stories\u002Fdocs, PR descriptions.","BumpyClock\u002Fagent-templates","BumpyClock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1883824?v=4","01M79EW0FDP9MFXH1FKH800S7T","Aditya Sharma","01M79EW0G27TTKZWTFQ8W5HVB4",2,"MIT","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fgpui-router\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gpui\ndescription: \"GPUI components: styling, actions\u002Fshortcuts, async, contexts, entities, events, focus, global state, testing, stories\u002Fdocs, PR descriptions.\"\n---\n\n# GPUI Unified Skill\n\n## Summary\n\n- Build GPUI components following existing `crates\u002Fui` patterns + style guide. Keep APIs consistent, builder-style.\n- Stateless vs stateful: deliberate choice. Use `Entity\u003CT>` for stateful patterns, notify on updates.\n- Styling: `StyleRefinement`, `Styled`, fluent builders, theme tokens.\n- Actions\u002Ffocus: wire explicitly with `key_context`, `actions!`, `FocusHandle`.\n- Stories\u002Fdocs: mirror `crates\u002Fstory` and `docs` patterns.\n- Tests: `TestAppContext` for non-visual logic, `VisualTestContext` for window\u002Frendering.\n\n## Component Build Steps\n\n1. **Decide type**: stateless element for pure presentation; stateful element + `Entity\u003CState>` when UI state persists.\n2. **Struct layout**: `id: ElementId`, `base: Div`, `style: StyleRefinement`. Field order: identity → config → content\u002Fchildren → callbacks. Callbacks as `Option\u003CRc\u003Cdyn Fn(...)>>`.\n3. **Builder API**: return `Self` from setters (`label`, `on_click`, `disabled`). Keep naming consistent with existing components.\n4. **Traits**: `InteractiveElement`, `StatefulInteractiveElement` (when stateful), `Styled`, `RenderOnce`. Add `Sizable`\u002F`Selectable`\u002F`Disableable` when appropriate.\n5. **Render**: `cx.theme()` for colors\u002Ftokens. Compose with fluent builders (`flex`, `gap`, `items_center`, `rounded`). `RenderOnce` focused, no side effects.\n6. **State\u002Fasync**: `WeakEntity` in closures to avoid retain cycles. `cx.spawn` foreground, `cx.background_spawn` heavy work. Sequence entity updates, don't nest.\n7. **Actions\u002Ffocus\u002Fevents**: `actions!` or `#[derive(Action)]`. `cx.bind_keys()`, `key_context()` on root. `FocusHandle` + `track_focus()`. `cx.emit`\u002F`cx.subscribe`\u002F`cx.observe`.\n8. **Stories\u002Fdocs\u002Ftests**: stories follow `crates\u002Fstory\u002Fsrc\u002Fstories` with `section!`. Docs follow `docs\u002F*.md`. Tests: `TestAppContext` logic, `VisualTestContext` window\u002Frendering.\n\n## Task Routing\n\n- New components\u002Frefactors → `references\u002Fstyle-guide.md` + `references\u002Fnew-component.md` (+ `references\u002Flayout-and-style.md` as needed)\n- Component stories → `references\u002Fgenerate-component-story.md`\n- Component docs → `references\u002Fgenerate-component-documentation.md`\n- Actions\u002Fkey bindings → `references\u002Factions.md`\n- Async\u002Fbackground work → `references\u002Fasync.md`\n- Context\u002Fwindow\u002Fentity → `references\u002Fcontext.md`\n- Entity state → `references\u002Fentity.md`\n- Events\u002Fsubscriptions\u002Fobservers → `references\u002Fevent.md`\n- Focus\u002Fkeyboard nav → `references\u002Ffocus-handle.md`\n- Global state → `references\u002Fglobal.md`\n- Tests → `references\u002Ftest.md`, `references\u002Ftest-reference.md`, `references\u002Ftest-examples.md`, `references\u002Fcomponent-test-rules.md`\n- PR descriptions → `references\u002Fgithub-pull-request-description.md`\n\n## Reference Index\n\n- `references\u002Factions.md` — actions, key bindings, key contexts\n- `references\u002Fasync.md` — async tasks, background work, task lifetimes\n- `references\u002Fcontext.md` — App\u002FWindow\u002FContext\u002FAsyncApp usage\n- `references\u002Fentity.md` — entity state, weak refs, update patterns\n- `references\u002Fevent.md` — events, subscriptions, observers\n- `references\u002Ffocus-handle.md` — focus handles, keyboard navigation\n- `references\u002Fglobal.md` — global state and shared services\n- `references\u002Flayout-and-style.md` — layout, styling, theming\n- `references\u002Fstyle-guide.md` — component structure and API conventions\n- `references\u002Fnew-component.md` — component creation checklist\n- `references\u002Fgenerate-component-story.md` — story patterns\n- `references\u002Fgenerate-component-documentation.md` — documentation patterns\n- `references\u002Ftest.md` — GPUI test framework overview\n- `references\u002Ftest-reference.md` — detailed test patterns\n- `references\u002Ftest-examples.md` — testing best practices and commands\n- `references\u002Fcomponent-test-rules.md` — component-specific test rules\n- `references\u002Fgithub-pull-request-description.md` — PR description format\n","# GPUI Unified Skill\n\n## Summary\n\n- Build GPUI components following existing `crates\u002Fui` patterns + style guide. Keep APIs consistent, builder-style.\n- Stateless vs stateful: deliberate choice. Use `Entity\u003CT>` for stateful patterns, notify on updates.\n- Styling: `StyleRefinement`, `Styled`, fluent builders, theme tokens.\n- Actions\u002Ffocus: wire explicitly with `key_context`, `actions!`, `FocusHandle`.\n- Stories\u002Fdocs: mirror `crates\u002Fstory` and `docs` patterns.\n- Tests: `TestAppContext` for non-visual logic, `VisualTestContext` for window\u002Frendering.\n\n## Component Build Steps\n\n1. **Decide type**: stateless element for pure presentation; stateful element + `Entity\u003CState>` when UI state persists.\n2. **Struct layout**: `id: ElementId`, `base: Div`, `style: StyleRefinement`. Field order: identity → config → content\u002Fchildren → callbacks. Callbacks as `Option\u003CRc\u003Cdyn Fn(...)>>`.\n3. **Builder API**: return `Self` from setters (`label`, `on_click`, `disabled`). Keep naming consistent with existing components.\n4. **Traits**: `InteractiveElement`, `StatefulInteractiveElement` (when stateful), `Styled`, `RenderOnce`. Add `Sizable`\u002F`Selectable`\u002F`Disableable` when appropriate.\n5. **Render**: `cx.theme()` for colors\u002Ftokens. Compose with fluent builders (`flex`, `gap`, `items_center`, `rounded`). `RenderOnce` focused, no side effects.\n6. **State\u002Fasync**: `WeakEntity` in closures to avoid retain cycles. `cx.spawn` foreground, `cx.background_spawn` heavy work. Sequence entity updates, don't nest.\n7. **Actions\u002Ffocus\u002Fevents**: `actions!` or `#[derive(Action)]`. `cx.bind_keys()`, `key_context()` on root. `FocusHandle` + `track_focus()`. `cx.emit`\u002F`cx.subscribe`\u002F`cx.observe`.\n8. **Stories\u002Fdocs\u002Ftests**: stories follow `crates\u002Fstory\u002Fsrc\u002Fstories` with `section!`. Docs follow `docs\u002F*.md`. Tests: `TestAppContext` logic, `VisualTestContext` window\u002Frendering.\n\n## Task Routing\n\n- New components\u002Frefactors → `references\u002Fstyle-guide.md` + `references\u002Fnew-component.md` (+ `references\u002Flayout-and-style.md` as needed)\n- Component stories → `references\u002Fgenerate-component-story.md`\n- Component docs → `references\u002Fgenerate-component-documentation.md`\n- Actions\u002Fkey bindings → `references\u002Factions.md`\n- Async\u002Fbackground work → `references\u002Fasync.md`\n- Context\u002Fwindow\u002Fentity → `references\u002Fcontext.md`\n- Entity state → `references\u002Fentity.md`\n- Events\u002Fsubscriptions\u002Fobservers → `references\u002Fevent.md`\n- Focus\u002Fkeyboard nav → `references\u002Ffocus-handle.md`\n- Global state → `references\u002Fglobal.md`\n- Tests → `references\u002Ftest.md`, `references\u002Ftest-reference.md`, `references\u002Ftest-examples.md`, `references\u002Fcomponent-test-rules.md`\n- PR descriptions → `references\u002Fgithub-pull-request-description.md`\n\n## Reference Index\n\n- `references\u002Factions.md` — actions, key bindings, key contexts\n- `references\u002Fasync.md` — async tasks, background work, task lifetimes\n- `references\u002Fcontext.md` — App\u002FWindow\u002FContext\u002FAsyncApp usage\n- `references\u002Fentity.md` — entity state, weak refs, update patterns\n- `references\u002Fevent.md` — events, subscriptions, observers\n- `references\u002Ffocus-handle.md` — focus handles, keyboard navigation\n- `references\u002Fglobal.md` — global state and shared services\n- `references\u002Flayout-and-style.md` — layout, styling, theming\n- `references\u002Fstyle-guide.md` — component structure and API conventions\n- `references\u002Fnew-component.md` — component creation checklist\n- `references\u002Fgenerate-component-story.md` — story patterns\n- `references\u002Fgenerate-component-documentation.md` — documentation patterns\n- `references\u002Ftest.md` — GPUI test framework overview\n- `references\u002Ftest-reference.md` — detailed test patterns\n- `references\u002Ftest-examples.md` — testing best practices and commands\n- `references\u002Fcomponent-test-rules.md` — component-specific test rules\n- `references\u002Fgithub-pull-request-description.md` — PR description format\n",{"name":5,"description":7},"main","e24b64bdac040ad169ed16b14853eff1b20cd726","skills_archive\u002Fmerged-into-parent\u002Fgpui-router",0,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates","https:\u002F\u002Fgithub.com\u002FBumpyClock","2026-11-14 03:12:06",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add BumpyClock\u002Fagent-templates --skill gpui",{"tool":37,"command":38},"bunx","bunx skills add BumpyClock\u002Fagent-templates --skill gpui",{"tool":40,"command":41},"pnpm","pnpm dlx skills add BumpyClock\u002Fagent-templates --skill gpui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fgpui-router\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",161,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fgpui-router\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79FEE6E257MWVEBY43X0NVN","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79FEB8GTJC6ZHDK67T40R20","workflow-from-chats","Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fworkflow-from-chats\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79FE7TMNGVZZ0M8NV4N0X6N","winui3-csharp-app","WinUI 3 \u002F Windows App SDK desktop apps in C#\u002FXAML. MVVM, bindings, navigation, Mica\u002FAcrylic, windowing, packaging, performance.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwinui3-csharp-app\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79FE31HY46BHN67CQGB7MVJ","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79FE0N7MGWDG8SCD60FWTV5","what-did-i-get-done","Summarize authored commits over a user-specified time period into a concise status update.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhat-did-i-get-done\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79FDYBJG9QNCQC0MMVBDT80","weekly-review","Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fweekly-review\u002FSKILL.md",[],[]]