[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CGEDZ3S7WQYSKVTJM15CBX":3,"skill-same:01M7CGEDZ3S7WQYSKVTJM15CBX":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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CGEDZ3S7WQYSKVTJM15CBX","view-refactor",null,"Refactor macOS SwiftUI views and scenes into stable structure. Use when splitting large views, tightening scene state, or narrowing AppKit escapes.","rossboyd\u002Fquickque","rossboyd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3195729?v=4","01M7CG99NTNRFV0TWTZX9JY9CQ","rbyd","01M7CG99PH4WEP5P45VTBNPDB0",0,"MIT","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\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","907b1d897cc6743f7f133f8ea2021e1331b0b020",".codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque","https:\u002F\u002Fgithub.com\u002Frossboyd","www.bigideasgroup.co.uk","2026-09-22 02:03:50",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add rossboyd\u002Fquickque --skill view-refactor",{"tool":37,"command":38},"bunx","bunx skills add rossboyd\u002Fquickque --skill view-refactor",{"tool":40,"command":41},"pnpm","pnpm dlx skills add rossboyd\u002Fquickque --skill view-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",328,"https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Fbuild-macos-apps\u002Fskills\u002Fview-refactor\u002Fagents\u002Fopenai.yaml",[52,61,69,76,83,91],{"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":56,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CJSS21K09H3ZQZMPFR4ZAG","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CJSM1F4E7RBXCS3C18EFBY","skill-creator","Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CJSGF2PJM504Q6TZCNT27C","review-agent","Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Freview-agent\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CJSBQTPFEQYZF4VWS7QZ3N","plugin-creator","Create and scaffold plugin directories for Codex with a required `.codex-plugin\u002Fplugin.json`, optional plugin folders\u002Ffiles, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fplugin-creator\u002FSKILL.md",[],[],{"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":56,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CJS5BHJZKA16353PVZGC50","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7CJRY1FC048P3RF4YQZ6J8B","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FSKILL.md",[],[]]