[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E6HJSTTGPG421WAQ155JXP":3,"skill-same:01M7E6HJSTTGPG421WAQ155JXP":52},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7E6HJSTTGPG421WAQ155JXP","view-refactor",null,"Refactor macOS SwiftUI views and scenes into stable structure. Use when splitting large views, tightening scene state, or narrowing AppKit escapes.","wxdwu\u002Fnew-api","wxdwu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F80968397?v=4","01M7E6AEMB59N90BKXD77EC83D","Xudong Wu","01M7E6AEMY2BXCDVZ9MJJHFQ4C",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: view-refactor\ndescription: Refactor macOS SwiftUI views and scenes into stable structure. Use when splitting large views, tightening scene state, or narrowing AppKit escapes.\n---\n\n# View Refactor\n\n## Overview\n\nRefactor macOS views toward small, explicit, stable scene and view types. Default\nto native SwiftUI for layout, selection, commands, and settings. Reach for AppKit\nonly at the narrow edges where desktop behavior truly requires it.\n\n## Core Guidelines\n\n### 1) Model scenes explicitly\n\n- Break the app into meaningful scene roots: main window, settings, utility windows, inspectors, or menu bar extras.\n- Do not let one giant root view silently own every desktop surface.\n\n### 2) Keep a predictable file shape\n\n- Follow this ordering unless the file already has a stronger local convention:\n- Environment\n- `private`\u002F`public` `let`\n- `@State` \u002F other stored properties\n- computed `var` (non-view)\n- `init`\n- `body`\n- computed view builders \u002F other view helpers\n- helper \u002F async functions\n\n### 2b) Split files by responsibility\n\n- For non-trivial apps, do not keep the full app, all views, models, stores, networking clients, process clients, and helpers in one Swift file.\n- Accept a single Swift file only for tiny throwaway examples or snippets: roughly under 50 lines, one screen, no persistence, no networking\u002Fprocess client, and no reusable models.\n- Use `App\u002F\u003CAppName>App.swift` for the `@main` app and `AppDelegate` only.\n- Keep `Views\u002FContentView.swift` focused on root layout and composition; move feature UI into files such as `Views\u002FSidebarView.swift`, `Views\u002FDetailView.swift`, and `Views\u002FComposerView.swift`.\n- Move value types and selection enums into `Models\u002F*.swift`, stores into `Stores\u002F*.swift`, app-server\u002Fnetwork\u002Fprocess clients into `Services\u002F*.swift`, and small formatters\u002Fresolvers\u002Fextensions into `Support\u002F*.swift`.\n- Keep files small and named after the primary type they contain.\n\n### 3) Prefer dedicated subview types over many computed `some View` fragments\n\n- Extract meaningful desktop sections like sidebar rows, detail panels, inspectors, or toolbar content into focused subviews.\n- Keep computed `some View` helpers small and rare.\n- Pass explicit data, bindings, and actions into subviews instead of handing down the whole scene model.\n\n### 4) Keep selection and layout stable\n\n- Prefer one stable split or window layout with local conditionals inside it.\n- Avoid top-level branch swapping between radically different roots when selection changes.\n- Let the layout be constant; let state drive the content inside it.\n\n### 5) Extract commands, toolbars, and actions out of `body`\n\n- Do not bury non-trivial button logic inline.\n- Do not mix command routing, menu state, and layout in the same block if they can be named clearly.\n- Keep `body` readable as UI, not as a desktop view controller.\n\n### 6) Use scene and app storage intentionally\n\n- Use `@SceneStorage` for per-window ephemeral state when it truly helps restore the scene.\n- Use `@AppStorage` for durable preferences, not transient UI toggles that only matter in one window.\n- Keep scene-owned state close to the scene root.\n\n### 7) Keep AppKit escape hatches narrow\n\n- If a representable or `NSWindow` bridge exists, isolate it behind a small wrapper or helper.\n- Do not let AppKit references spread through unrelated SwiftUI views.\n- If the bridge starts owning the feature, re-evaluate the architecture.\n\n### 8) Observation usage\n\n- For `@Observable` reference types on modern macOS targets, store them as `@State` in the owning view.\n- Pass observables explicitly to children.\n- On older deployment targets, fall back to `@StateObject` and `@ObservedObject` where needed.\n\n## Workflow\n\n1. Identify the current scene boundary and whether the file is trying to do too much.\n2. Reorder the file into a predictable top-to-bottom structure.\n3. Extract desktop-specific sections into dedicated subview types.\n4. Stabilize the root layout around selection, scenes, and commands rather than top-level branching.\n5. Move action logic, command routing, and toolbar behavior into named helpers or separate types.\n6. Tighten any AppKit bridge so the imperative edge is small and explicit.\n7. Keep behavior intact unless the request explicitly asks for structural and behavioral changes together.\n\n## Refactor Checklist\n\n- Split oversized view files before adding more UI.\n- Move pure models, identifiers, and selection enums out of view files.\n- Move `Process`, `URLSession`, app-server, and platform client code out of SwiftUI views into `Services\u002F`.\n- Keep `AppDelegate` and the `@main` app entrypoint minimal.\n- Build after each major split so compile errors stay local.\n\n## Common Smells\n\n- A root view that mixes window scaffolding, settings, toolbar code, command handling, and detail layout.\n- A single app file that mixes app entrypoint, root layout, feature views, models, stores, service clients, and support extensions.\n- iOS-style push navigation forced into a Mac sidebar-detail problem.\n- Several booleans for mutually exclusive inspectors, sheets, or utility windows.\n- AppKit objects passed through many SwiftUI layers without a clear ownership reason.\n- Large computed view fragments standing in for real subviews.\n\n## Notes\n\n- A good macOS refactor should make scene structure, selection flow, and command ownership obvious.\n- When the problem is fundamentally a missing desktop pattern, use `swiftui-patterns`.\n- When the problem is fundamentally a boundary with AppKit, use `appkit-interop`.\n","# View Refactor\n\n## Overview\n\nRefactor macOS views toward small, explicit, stable scene and view types. Default\nto native SwiftUI for layout, selection, commands, and settings. Reach for AppKit\nonly at the narrow edges where desktop behavior truly requires it.\n\n## Core Guidelines\n\n### 1) Model scenes explicitly\n\n- Break the app into meaningful scene roots: main window, settings, utility windows, inspectors, or menu bar extras.\n- Do not let one giant root view silently own every desktop surface.\n\n### 2) Keep a predictable file shape\n\n- Follow this ordering unless the file already has a stronger local convention:\n- Environment\n- `private`\u002F`public` `let`\n- `@State` \u002F other stored properties\n- computed `var` (non-view)\n- `init`\n- `body`\n- computed view builders \u002F other view helpers\n- helper \u002F async functions\n\n### 2b) Split files by responsibility\n\n- For non-trivial apps, do not keep the full app, all views, models, stores, networking clients, process clients, and helpers in one Swift file.\n- Accept a single Swift file only for tiny throwaway examples or snippets: roughly under 50 lines, one screen, no persistence, no networking\u002Fprocess client, and no reusable models.\n- Use `App\u002F\u003CAppName>App.swift` for the `@main` app and `AppDelegate` only.\n- Keep `Views\u002FContentView.swift` focused on root layout and composition; move feature UI into files such as `Views\u002FSidebarView.swift`, `Views\u002FDetailView.swift`, and `Views\u002FComposerView.swift`.\n- Move value types and selection enums into `Models\u002F*.swift`, stores into `Stores\u002F*.swift`, app-server\u002Fnetwork\u002Fprocess clients into `Services\u002F*.swift`, and small formatters\u002Fresolvers\u002Fextensions into `Support\u002F*.swift`.\n- Keep files small and named after the primary type they contain.\n\n### 3) Prefer dedicated subview types over many computed `some View` fragments\n\n- Extract meaningful desktop sections like sidebar rows, detail panels, inspectors, or toolbar content into focused subviews.\n- Keep computed `some View` helpers small and rare.\n- Pass explicit data, bindings, and actions into subviews instead of handing down the whole scene model.\n\n### 4) Keep selection and layout stable\n\n- Prefer one stable split or window layout with local conditionals inside it.\n- Avoid top-level branch swapping between radically different roots when selection changes.\n- Let the layout be constant; let state drive the content inside it.\n\n### 5) Extract commands, toolbars, and actions out of `body`\n\n- Do not bury non-trivial button logic inline.\n- Do not mix command routing, menu state, and layout in the same block if they can be named clearly.\n- Keep `body` readable as UI, not as a desktop view controller.\n\n### 6) Use scene and app storage intentionally\n\n- Use `@SceneStorage` for per-window ephemeral state when it truly helps restore the scene.\n- Use `@AppStorage` for durable preferences, not transient UI toggles that only matter in one window.\n- Keep scene-owned state close to the scene root.\n\n### 7) Keep AppKit escape hatches narrow\n\n- If a representable or `NSWindow` bridge exists, isolate it behind a small wrapper or helper.\n- Do not let AppKit references spread through unrelated SwiftUI views.\n- If the bridge starts owning the feature, re-evaluate the architecture.\n\n### 8) Observation usage\n\n- For `@Observable` reference types on modern macOS targets, store them as `@State` in the owning view.\n- Pass observables explicitly to children.\n- On older deployment targets, fall back to `@StateObject` and `@ObservedObject` where needed.\n\n## Workflow\n\n1. Identify the current scene boundary and whether the file is trying to do too much.\n2. Reorder the file into a predictable top-to-bottom structure.\n3. Extract desktop-specific sections into dedicated subview types.\n4. Stabilize the root layout around selection, scenes, and commands rather than top-level branching.\n5. Move action logic, command routing, and toolbar behavior into named helpers or separate types.\n6. Tighten any AppKit bridge so the imperative edge is small and explicit.\n7. Keep behavior intact unless the request explicitly asks for structural and behavioral changes together.\n\n## Refactor Checklist\n\n- Split oversized view files before adding more UI.\n- Move pure models, identifiers, and selection enums out of view files.\n- Move `Process`, `URLSession`, app-server, and platform client code out of SwiftUI views into `Services\u002F`.\n- Keep `AppDelegate` and the `@main` app entrypoint minimal.\n- Build after each major split so compile errors stay local.\n\n## Common Smells\n\n- A root view that mixes window scaffolding, settings, toolbar code, command handling, and detail layout.\n- A single app file that mixes app entrypoint, root layout, feature views, models, stores, service clients, and support extensions.\n- iOS-style push navigation forced into a Mac sidebar-detail problem.\n- Several booleans for mutually exclusive inspectors, sheets, or utility windows.\n- AppKit objects passed through many SwiftUI layers without a clear ownership reason.\n- Large computed view fragments standing in for real subviews.\n\n## Notes\n\n- A good macOS refactor should make scene structure, selection flow, and command ownership obvious.\n- When the problem is fundamentally a missing desktop pattern, use `swiftui-patterns`.\n- When the problem is fundamentally a boundary with AppKit, use `appkit-interop`.\n",{"name":5,"description":7},"main","dde9a06ab10bce3fe52058c783826590231f7df3","plugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api","https:\u002F\u002Fgithub.com\u002Fwxdwu","24120128@bjtu.edu.cn","I am Xudong Wu，a student in beijing jiaotong University, \"I am eager to learn on GitHub and contribute my part to this community.","2026-10-05 17:26:50",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add wxdwu\u002Fnew-api --skill view-refactor",{"tool":38,"command":39},"bunx","bunx skills add wxdwu\u002Fnew-api --skill view-refactor",{"tool":41,"command":42},"pnpm","pnpm dlx skills add wxdwu\u002Fnew-api --skill view-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",328,"https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor\u002Fagents\u002Fopenai.yaml",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7E8SVA2N0JA09RW1XJYXCWX","Zotero","Use Zotero Desktop from Codex to enable\u002Fprobe the local API, search a local Zotero library, list items\u002Fcollections\u002Ftags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX\u002FRIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzotero\u002Fskills\u002Fzotero\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7E8ST1FJAD5PWTW2FN1NSK0","zoom-apps-sdk","Use when using Apps SDK.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7E8SRW074NNNCZRCZA5T3Z1","setup-zoom-websockets","Use when building Zoom WebSockets.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7E8SPCFMD3YVPRX2MW8X3RA","setup-zoom-webhooks","Use when building Zoom webhooks.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fwebhooks\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7E8SMCH4RPCX8YSBNGWQCMP","zoom-virtual-agent-web","Zoom Virtual Agent SDK for web embeds. Use for campaign or entry ID chat launch, event-driven controls, user context updates, and CSP-safe deployment.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fvirtual-agent\u002Fweb\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7E8SJCAY323E36Z8SAP8H4M","zoom-virtual-agent-ios","Zoom Virtual Agent iOS integration via WKWebView. Use for Swift\u002FObjective-C script injection, message handlers, support_handoff relay, and URL routing policies.","https:\u002F\u002Fgithub.com\u002Fwxdwu\u002Fnew-api\u002Fblob\u002Fmain\u002Fplugins\u002F.tmp\u002Fplugins\u002Fplugins\u002Fzoom\u002Fskills\u002Fvirtual-agent\u002Fios\u002FSKILL.md",[],[]]