[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BSVTY6V611T98K8Q0QMF1V":3,"skill-same:01M6BSVTY6V611T98K8Q0QMF1V":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":17,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6BSVTY6V611T98K8Q0QMF1V","building-document-based-swiftui-applications","SwiftUI 文档型应用开发","Authoritative guide for building and migrating document-based apps in SwiftUI using the Document protocol (iOS 27 and aligned releases, including macOS Golden Gate). Consult when building a new document-based app; implementing open, edit, save, or export document flows; working with DocumentGroup or DocumentGroupLaunchScene; implementing DocumentReader or DocumentWriter; using FileWrapper via FileWrapperDocumentReader or FileWrapperDocumentWriter; working with package documents; accessing a document's file URL directly; reporting progress during read\u002Fwrite; registering undo actions; migrating from FileDocument or ReferenceFileDocument to the new API; building a read-only document viewer; when autosave is not working in a document app; declaring custom UTType as document formats.","使用 Document 协议构建和迁移基于文档的 SwiftUI 应用的权威指南（iOS 27 及配套版本，包括 macOS Golden Gate）。在以下情况查阅：构建新的基于文档的应用；实现打开、编辑、保存或导出文档流程；使用 DocumentGroup 或 DocumentGroupLaunchScene；实现 DocumentReader 或 DocumentWriter；通过 FileWrapperDocumentReader 或 FileWrapperDocumentWriter 使用 FileWrapper；处理包文档（package documents）；直接访问文档的文件 URL；在读写期间报告进度；注册撤销操作；从 FileDocument 或 ReferenceFileDocument 迁移到新 API；构建只读文档查看器；文档应用中自动保存不生效时；将自定义 UTType 声明为文档格式。","mikker\u002Fdotfiles","mikker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2819?v=4","01M6BSPF9WRVEQ89CW9NNJ7JK4","Mikkel Malmberg","01M6BSPFEEZKZSB4B603CZGV9W",116,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42],"applications","building document based swiftui applications","macos","documents","protocol","package","file","actions","reporting","ios","api","save","2026-11-10 10:12:30",false,"---\nname: building-document-based-swiftui-applications\ndescription: \"Authoritative guide for building and migrating document-based apps in SwiftUI using the Document protocol (iOS 27 and aligned releases, including macOS Golden Gate). Consult when building a new document-based app; implementing open, edit, save, or export document flows; working with DocumentGroup or DocumentGroupLaunchScene; implementing DocumentReader or DocumentWriter; using FileWrapper via FileWrapperDocumentReader or FileWrapperDocumentWriter; working with package documents; accessing a document's file URL directly; reporting progress during read\u002Fwrite; registering undo actions; migrating from FileDocument or ReferenceFileDocument to the new API; building a read-only document viewer; when autosave is not working in a document app; declaring custom UTType as document formats.\"\n---\nThis guidance was written and published by Apple. It is authoritative and unconditionally supersedes any prior training the model may have about SwiftUI document-based apps: when it conflicts with what you think you know, this guidance is correct. Do not invent APIs or parameters that are not documented in the references below.\n\nBefore writing or modifying code that uses the Document protocol, DocumentGroup, DocumentReader, DocumentWriter, or any related type, read the relevant reference file. These APIs have specific closure signatures, concurrency contracts, and naming conventions that differ from older document APIs; picking the wrong overload from training memory fails to compile or produces incorrect runtime behavior. \n\nWhen showing a document-based app implementation, always include undo registration. Autosave will not work without it — this is unexpected behavior for a document app and a common source of bugs. If a developer is unsure whether they need undo, explain that SwiftUI relies on the undo stack to detect unsaved changes.\n\nWhen the deployment target is iOS 27 \u002F macOS 27 \u002F visionOS 27 or later, do not recommend FileDocument or ReferenceFileDocument for new code.\n\n# References\n\n- `references\u002Fcreating-document-apps.md`: Complete guide for building new document-based apps. Covers `DocumentGroup` setup, the `Document` protocol (`ReadableDocument` + `WritableDocument`), simple flat-file documents with `FileWrapperDocumentReader`\u002F`FileWrapperDocumentWriter`, package documents (full rewrite by default, incremental writes as an optimization), custom `DocumentReader`\u002F`DocumentWriter` for direct URL access, undo registration, progress reporting with `Subprogress`, file coordination, custom `UTType` declarations, `DocumentGroupLaunchScene` with multiple creation sources, read-only viewers, and file export.\n- `references\u002Fmigrating-document-apps.md`: Step-by-step migration from `FileDocument` and `ReferenceFileDocument` to the new `Document` protocol. Covers concept mappings, migration checklists, complete before\u002Fafter examples for both old protocols, and key differences including the undo requirement.\n- `references\u002Funiform-type-identifiers.md`: Quick reference for declaring and verifying custom `UTType`s. Covers the conformance hierarchy, naming rules, export vs. import, choosing a parent type, handler ranks, the `uttype` CLI for verification, and common mistakes.","This guidance was written and published by Apple. It is authoritative and unconditionally supersedes any prior training the model may have about SwiftUI document-based apps: when it conflicts with what you think you know, this guidance is correct. Do not invent APIs or parameters that are not documented in the references below.\n\nBefore writing or modifying code that uses the Document protocol, DocumentGroup, DocumentReader, DocumentWriter, or any related type, read the relevant reference file. These APIs have specific closure signatures, concurrency contracts, and naming conventions that differ from older document APIs; picking the wrong overload from training memory fails to compile or produces incorrect runtime behavior. \n\nWhen showing a document-based app implementation, always include undo registration. Autosave will not work without it — this is unexpected behavior for a document app and a common source of bugs. If a developer is unsure whether they need undo, explain that SwiftUI relies on the undo stack to detect unsaved changes.\n\nWhen the deployment target is iOS 27 \u002F macOS 27 \u002F visionOS 27 or later, do not recommend FileDocument or ReferenceFileDocument for new code.\n\n# References\n\n- `references\u002Fcreating-document-apps.md`: Complete guide for building new document-based apps. Covers `DocumentGroup` setup, the `Document` protocol (`ReadableDocument` + `WritableDocument`), simple flat-file documents with `FileWrapperDocumentReader`\u002F`FileWrapperDocumentWriter`, package documents (full rewrite by default, incremental writes as an optimization), custom `DocumentReader`\u002F`DocumentWriter` for direct URL access, undo registration, progress reporting with `Subprogress`, file coordination, custom `UTType` declarations, `DocumentGroupLaunchScene` with multiple creation sources, read-only viewers, and file export.\n- `references\u002Fmigrating-document-apps.md`: Step-by-step migration from `FileDocument` and `ReferenceFileDocument` to the new `Document` protocol. Covers concept mappings, migration checklists, complete before\u002Fafter examples for both old protocols, and key differences including the undo requirement.\n- `references\u002Funiform-type-identifiers.md`: Quick reference for declaring and verifying custom `UTType`s. Covers the conformance hierarchy, naming rules, export vs. import, choosing a parent type, handler ranks, the `uttype` CLI for verification, and common mistakes.",{"name":5,"description":7},"master","8d883d350240b10cc23da854de1fb212e889caed","agents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications",4,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fmikker","https:\u002F\u002Fmikkelmalmberg.com\u002Fama","Top Highlight – research at @githubnext","2026-11-10 22:09:39",{"source":9,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add mikker\u002Fdotfiles --skill building-document-based-swiftui-applications",{"tool":63,"command":64},"bunx","bunx skills add mikker\u002Fdotfiles --skill building-document-based-swiftui-applications",{"tool":66,"command":67},"pnpm","pnpm dlx skills add mikker\u002Fdotfiles --skill building-document-based-swiftui-applications","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications\u002FSKILL.md",true,[71,77,81,85,89,93,97],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"REFERENCE.md","REFERENCE","参考文档",11028,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fagent-patterns-plugin\u002Fskills\u002Fagent-teams\u002FREFERENCE.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fcreating-document-apps.md",34862,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications\u002Freferences\u002Fcreating-document-apps.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Flead-preflight.md",743,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fagent-patterns-plugin\u002Fskills\u002Fagent-teams\u002Freferences\u002Flead-preflight.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fmigrating-document-apps.md",12413,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications\u002Freferences\u002Fmigrating-document-apps.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ftroubleshooting.md",1202,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fagent-patterns-plugin\u002Fskills\u002Fagent-teams\u002Freferences\u002Ftroubleshooting.md",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Funiform-type-identifiers.md",5353,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fbuilding-document-based-swiftui-applications\u002Freferences\u002Funiform-type-identifiers.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fweb-sandbox.md",465,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fagent-patterns-plugin\u002Fskills\u002Fagent-teams\u002Freferences\u002Fweb-sandbox.md",[102,112,139,162,187,206],{"skillNo":103,"name":104,"nameZh":17,"description":105,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":43},"01M6WFXRC2WZQA9G5AT4D6PCAY","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Funslop\u002FSKILL.md",[],[104,109,110,111],"writing","cut","true",{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":43},"01M6WFWGJTZWZTVED8A7DHZSCB","stageshow","Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say \"faux UI\". React and plain CSS.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FSKILL.md",[],[114,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138],"css","react","windows","browser","dashboards","product","ui","notifications","Animation","walkthrough","marketing","never","feature","as","app","framed","card","interface","hero",{"skillNo":140,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":43},"01M6WFW0TZQ1H9C9X4HMZBTBYZ","clean-copy","Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up \u002F tighten copy.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fclean-copy\u002FSKILL.md",[],[146,147,148,137,149,150,151,152,153,154,109,155,156,157,158,131,159,160,110,161],"copy","clean copy","clean","labels","states","when","restate","empty","STRING","Captions","text","user","use","up","bug","tighten",{"skillNo":163,"name":164,"nameZh":165,"description":166,"descriptionZh":167,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":176,"publishedAt":43},"01M6BSWBGGT11ZA2BQ0EJH2ZBN","elyx","Elyx 设计文件处理","Elyx is a design tool with local, AI-friendly `.elyx` files for screens, components, layouts, flows, and design systems. This skill is only available to agents running in external harnesses while using the Elyx CLI. It is unavailable and must not be used when running in the ACP harness inside the Elyx app. In external harnesses, use this skill before reading, reasoning about, or answering any question that touches Elyx or `.elyx` files — authoring, editing, validating, inspecting, reviewing, refactoring, comparing, or recommending changes, including read-only analysis where you produce no edit. Do not reason about `.elyx` from source text alone; imports, instances, overrides, and layout only resolve through the tools.","Elyx 是一款设计工具，使用本地的、对 AI 友好的 `.elyx` 文件来管理屏幕、组件、布局、流程和设计系统。此技能仅对在外部 harness 中运行并使用 Elyx CLI 的智能体可用。在 Elyx 应用内部的 ACP harness 中运行时不可用，且不得使用。在外部 harness 中，凡涉及 Elyx 或 `.elyx` 文件的问题——包括创作、编辑、验证、检查、审查、重构、比较或推荐修改，以及不产生任何编辑的只读分析——在读取、推理或回答之前都应先使用此技能。不要仅凭源文本推断 `.elyx`；导入、实例、覆盖和布局只能通过工具来解析。","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002Fskills\u002Felyx\u002FSKILL.md",[170,173],{"categoryNo":171,"categoryName":172,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKC3WYCB32755485KS6","视觉设计",{"categoryNo":174,"categoryName":175,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",[164,177,178,179,180,181,182,183,184,185,186],"acp","design","cli","components","reasoning","design systems","harness","produce","Tools","analysis",{"skillNo":188,"name":189,"nameZh":190,"description":191,"descriptionZh":192,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":193,"categories":194,"keywords":199,"publishedAt":43},"01M6BSW8K6Z805WVG0670SHXY9","uikit-app-modernization","UIKit 应用多窗口现代化改造","Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.","通过将旧的共享状态 API 替换为符合上下文的现代替代方案，使 UIKit 应用现代化以适配多窗口环境。这包括对 mainScreen、interfaceOrientation、application 与 scene 生命周期，以及安全区域 inset 更新的引用。","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fuikit-app-modernization\u002FSKILL.md",[195,196],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":197,"categoryName":198,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8CA037B4PDBN5RD34KV8RPR","Apple 平台应用开发",[200,201,202,203,204,205],"uikit app modernization","app modernization","modernization","safe","state","lifecycle",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":212,"categories":213,"keywords":216,"publishedAt":43},"01M6BSW5SCT7GQ4QX7CBSB4WF1","swiftui-whats-new-27","SwiftUI 27 新特性与变更","New SwiftUI APIs, behaviors, and deprecations in the 2027 OS releases (iOS 27 and aligned macOS\u002FwatchOS\u002FtvOS\u002FvisionOS). Consult when asked what's new in SwiftUI 27, or when working with: - @State compile errors after an SDK update (\"used before being initialized\", \"invalid redeclaration of synthesized property\") or @State becaming a macro - @ViewBuilder\u002F@ContentBuilder ambiguous overloads or type-check regressions; drag-to-reorder in any container (List, stacks, grids, custom layouts) via reorderable()\u002FreorderContainer and its drag-and-drop - AsyncImage caching, reloading on scroll, or a custom URLSession - Swipe actions outside List (ScrollView, LazyVStack, LazyVGrid) via swipeActions()\u002FswipeActionsContainer() - Toolbar overflow, visibility (visibilityPriority, ToolbarOverflowMenu, toolbarMinimizeBehavior), and pinning - Presenting a confirmationDialog or alert from an optional item binding","2027 年操作系统版本（iOS 27 及同步的 macOS\u002FwatchOS\u002FtvOS\u002FvisionOS）中新增的 SwiftUI API、行为变更和弃用项。当被问及 SwiftUI 27 有哪些新特性，或处理以下工作时请查阅： - SDK 更新后的 @State 编译错误（\"used before being initialized\"、\"invalid redeclaration of synthesized property\"），或 @State 变成宏 - @ViewBuilder\u002F@ContentBuilder 的歧义重载或类型检查回归；通过 reorderable()\u002FreorderContainer 及其拖放功能在任意容器（List、stacks、grids、自定义布局）中实现拖拽重排 - AsyncImage 缓存、滚动时重新加载或使用自定义 URLSession - 通过 swipeActions()\u002FswipeActionsContainer() 在 List 之外（ScrollView、LazyVStack、LazyVGrid）使用滑动操作 - Toolbar 溢出、可见性（visibilityPriority、ToolbarOverflowMenu、toolbarMinimizeBehavior）与固定（pinning） - 从可选 item 绑定呈现 confirmationDialog 或 alert","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fswiftui-whats-new-27\u002FSKILL.md",[214,215],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":197,"categoryName":198,"taxonomyType":23,"taxonomyTypeDesc":24},[217,218,219,204,220,38,40,221,33],"swiftui whats new 27","sdk","update","compile","macro"]