[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G2A6B0CMSCEKM54CMCSQ1A":3,"skill-same:01M6G2A6B0CMSCEKM54CMCSQ1A":54},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M6G2A6B0CMSCEKM54CMCSQ1A","foundation-models-on-device",null,"苹果FoundationModels框架用于设备上的LLM——文本生成、使用@Generable进行引导生成、工具调用，以及在iOS 26+中的快照流。","oabdelmaksoud\u002FAgention","oabdelmaksoud","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50699149?v=4","01M6D5CVVN778ZCDP1WHS816SP","Omar Abdelmaksoud","01M6D8A4TE76V3DCSH3D94VG1V",2,"MIT","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Ffoundation-models-on-device\u002FSKILL.md",[],[19,20,21,22,23,24,25],"models","foundation","device","foundation models on device","生成","文本","工具","2026-11-10 10:12:30",false,"---\nname: foundation-models-on-device\ndescription: 苹果FoundationModels框架用于设备上的LLM——文本生成、使用@Generable进行引导生成、工具调用，以及在iOS 26+中的快照流。\n---\n\n# FoundationModels：设备端 LLM（iOS 26）\n\n使用 FoundationModels 框架将苹果的设备端语言模型集成到应用中的模式。涵盖文本生成、使用 `@Generable` 的结构化输出、自定义工具调用以及快照流式传输——全部在设备端运行，以保护隐私并支持离线使用。\n\n## 何时启用\n\n* 使用 Apple Intelligence 在设备端构建 AI 功能\n* 无需依赖云端即可生成或总结文本\n* 从自然语言输入中提取结构化数据\n* 为特定领域的 AI 操作实现自定义工具调用\n* 流式传输结构化响应以实现实时 UI 更新\n* 需要保护隐私的 AI（数据不离开设备）\n\n## 核心模式 — 可用性检查\n\n在创建会话之前，始终检查模型可用性：\n\n```swift\nstruct GenerativeView: View {\n    private var model = SystemLanguageModel.default\n\n    var body: some View {\n        switch model.availability {\n        case .available:\n            ContentView()\n        case .unavailable(.deviceNotEligible):\n            Text(\"Device not eligible for Apple Intelligence\")\n        case .unavailable(.appleIntelligenceNotEnabled):\n            Text(\"Please enable Apple Intelligence in Settings\")\n        case .unavailable(.modelNotReady):\n            Text(\"Model is downloading or not ready\")\n        case .unavailable(let other):\n            Text(\"Model unavailable: \\(other)\")\n        }\n    }\n}\n```\n\n## 核心模式 — 基础会话\n\n```swift\n\u002F\u002F Single-turn: create a new session each time\nlet session = LanguageModelSession()\nlet response = try await session.respond(to: \"What's a good month to visit Paris?\")\nprint(response.content)\n\n\u002F\u002F Multi-turn: reuse session for conversation context\nlet session = LanguageModelSession(instructions: \"\"\"\n    You are a cooking assistant.\n    Provide recipe suggestions based on ingredients.\n    Keep suggestions brief and practical.\n    \"\"\")\n\nlet first = try await session.respond(to: \"I have chicken and rice\")\nlet followUp = try await session.respond(to: \"What about a vegetarian option?\")\n```\n\n指令的关键点：\n\n* 定义模型的角色（\"你是一位导师\"）\n* 指定要做什么（\"帮助提取日历事件\"）\n* 设置风格偏好（\"尽可能简短地回答\"）\n* 添加安全措施（\"对于危险请求，回复'我无法提供帮助'\"）\n\n## 核心模式 — 使用 @Generable 进行引导式生成\n\n生成结构化的 Swift 类型，而不是原始字符串：\n\n### 1. 定义可生成类型\n\n```swift\n@Generable(description: \"Basic profile information about a cat\")\nstruct CatProfile {\n    var name: String\n\n    @Guide(description: \"The age of the cat\", .range(0...20))\n    var age: Int\n\n    @Guide(description: \"A one sentence profile about the cat's personality\")\n    var profile: String\n}\n```\n\n### 2. 请求结构化输出\n\n```swift\nlet response = try await session.respond(\n    to: \"Generate a cute rescue cat\",\n    generating: CatProfile.self\n)\n\n\u002F\u002F Access structured fields directly\nprint(\"Name: \\(response.content.name)\")\nprint(\"Age: \\(response.content.age)\")\nprint(\"Profile: \\(response.content.profile)\")\n```\n\n### 支持的 @Guide 约束\n\n* `.range(0...20)` — 数值范围\n* `.count(3)` — 数组元素数量\n* `description:` — 生成的语义引导\n\n## 核心模式 — 工具调用\n\n让模型调用自定义代码以执行特定领域的任务：\n\n### 1. 定义工具\n\n```swift\nstruct RecipeSearchTool: Tool {\n    let name = \"recipe_search\"\n    let description = \"Search for recipes matching a given term and return a list of results.\"\n\n    @Generable\n    struct Arguments {\n        var searchTerm: String\n        var numberOfResults: Int\n    }\n\n    func call(arguments: Arguments) async throws -> ToolOutput {\n        let recipes = await searchRecipes(\n            term: arguments.searchTerm,\n            limit: arguments.numberOfResults\n        )\n        return .string(recipes.map { \"- \\($0.name): \\($0.description)\" }.joined(separator: \"\\n\"))\n    }\n}\n```\n\n### 2. 创建带工具的会话\n\n```swift\nlet session = LanguageModelSession(tools: [RecipeSearchTool()])\nlet response = try await session.respond(to: \"Find me some pasta recipes\")\n```\n\n### 3. 处理工具错误\n\n```swift\ndo {\n    let answer = try await session.respond(to: \"Find a recipe for tomato soup.\")\n} catch let error as LanguageModelSession.ToolCallError {\n    print(error.tool.name)\n    if case .databaseIsEmpty = error.underlyingError as? RecipeSearchToolError {\n        \u002F\u002F Handle specific tool error\n    }\n}\n```\n\n## 核心模式 — 快照流式传输\n\n使用 `PartiallyGenerated` 类型为实时 UI 流式传输结构化响应：\n\n```swift\n@Generable\nstruct TripIdeas {\n    @Guide(description: \"Ideas for upcoming trips\")\n    var ideas: [String]\n}\n\nlet stream = session.streamResponse(\n    to: \"What are some exciting trip ideas?\",\n    generating: TripIdeas.self\n)\n\nfor try await partial in stream {\n    \u002F\u002F partial: TripIdeas.PartiallyGenerated (all properties Optional)\n    print(partial)\n}\n```\n\n### SwiftUI 集成\n\n```swift\n@State private var partialResult: TripIdeas.PartiallyGenerated?\n@State private var errorMessage: String?\n\nvar body: some View {\n    List {\n        ForEach(partialResult?.ideas ?? [], id: \\.self) { idea in\n            Text(idea)\n        }\n    }\n    .overlay {\n        if let errorMessage { Text(errorMessage).foregroundStyle(.red) }\n    }\n    .task {\n        do {\n            let stream = session.streamResponse(to: prompt, generating: TripIdeas.self)\n            for try await partial in stream {\n                partialResult = partial\n            }\n        } catch {\n            errorMessage = error.localizedDescription\n        }\n    }\n}\n```\n\n## 关键设计决策\n\n| 决策 | 理由 |\n|----------|-----------|\n| 设备端执行 | 隐私性——数据不离开设备；支持离线工作 |\n| 4,096 个令牌限制 | 设备端模型约束；跨会话分块处理大数据 |\n| 快照流式传输（非增量） | 对结构化输出友好；每个快照都是一个完整的部分状态 |\n| `@Generable` 宏 | 为结构化生成提供编译时安全性；自动生成 `PartiallyGenerated` 类型 |\n| 每个会话单次请求 | `isResponding` 防止并发请求；如有需要，创建多个会话 |\n| `response.content`（而非 `.output`） | 正确的 API——始终通过 `.content` 属性访问结果 |\n\n## 最佳实践\n\n* 在创建会话之前**始终检查 `model.availability`**——处理所有不可用的情况\n* **使用 `instructions`** 来引导模型行为——它们的优先级高于提示词\n* 在发送新请求之前**检查 `isResponding`**——会话一次处理一个请求\n* 通过 `response.content` **访问结果**——而不是 `.output`\n* **将大型输入分块处理**——4,096 个令牌的限制适用于指令、提示词和输出的总和\n* 对于结构化输出**使用 `@Generable`**——比解析原始字符串提供更强的保证\n* **使用 `GenerationOptions(temperature:)`** 来调整创造力（值越高越有创意）\n* **使用 Instruments 进行监控**——使用 Xcode Instruments 来分析请求性能\n\n## 应避免的反模式\n\n* 未先检查 `model.availability` 就创建会话\n* 发送超过 4,096 个令牌上下文窗口的输入\n* 尝试在单个会话上进行并发请求\n* 使用 `.output` 而不是 `.content` 来访问响应数据\n* 当 `@Generable` 结构化输出可行时，却去解析原始字符串响应\n* 在单个提示词中构建复杂的多步逻辑——将其拆分为多个聚焦的提示词\n* 假设模型始终可用——设备的资格和设置各不相同\n\n## 何时使用\n\n* 为注重隐私的应用进行设备端文本生成\n* 从用户输入（表单、自然语言命令）中提取结构化数据\n* 必须离线工作的 AI 辅助功能\n* 逐步显示生成内容的流式 UI\n* 通过工具调用（搜索、计算、查找）执行特定领域的 AI 操作\n","# FoundationModels：设备端 LLM（iOS 26）\n\n使用 FoundationModels 框架将苹果的设备端语言模型集成到应用中的模式。涵盖文本生成、使用 `@Generable` 的结构化输出、自定义工具调用以及快照流式传输——全部在设备端运行，以保护隐私并支持离线使用。\n\n## 何时启用\n\n* 使用 Apple Intelligence 在设备端构建 AI 功能\n* 无需依赖云端即可生成或总结文本\n* 从自然语言输入中提取结构化数据\n* 为特定领域的 AI 操作实现自定义工具调用\n* 流式传输结构化响应以实现实时 UI 更新\n* 需要保护隐私的 AI（数据不离开设备）\n\n## 核心模式 — 可用性检查\n\n在创建会话之前，始终检查模型可用性：\n\n```swift\nstruct GenerativeView: View {\n    private var model = SystemLanguageModel.default\n\n    var body: some View {\n        switch model.availability {\n        case .available:\n            ContentView()\n        case .unavailable(.deviceNotEligible):\n            Text(\"Device not eligible for Apple Intelligence\")\n        case .unavailable(.appleIntelligenceNotEnabled):\n            Text(\"Please enable Apple Intelligence in Settings\")\n        case .unavailable(.modelNotReady):\n            Text(\"Model is downloading or not ready\")\n        case .unavailable(let other):\n            Text(\"Model unavailable: \\(other)\")\n        }\n    }\n}\n```\n\n## 核心模式 — 基础会话\n\n```swift\n\u002F\u002F Single-turn: create a new session each time\nlet session = LanguageModelSession()\nlet response = try await session.respond(to: \"What's a good month to visit Paris?\")\nprint(response.content)\n\n\u002F\u002F Multi-turn: reuse session for conversation context\nlet session = LanguageModelSession(instructions: \"\"\"\n    You are a cooking assistant.\n    Provide recipe suggestions based on ingredients.\n    Keep suggestions brief and practical.\n    \"\"\")\n\nlet first = try await session.respond(to: \"I have chicken and rice\")\nlet followUp = try await session.respond(to: \"What about a vegetarian option?\")\n```\n\n指令的关键点：\n\n* 定义模型的角色（\"你是一位导师\"）\n* 指定要做什么（\"帮助提取日历事件\"）\n* 设置风格偏好（\"尽可能简短地回答\"）\n* 添加安全措施（\"对于危险请求，回复'我无法提供帮助'\"）\n\n## 核心模式 — 使用 @Generable 进行引导式生成\n\n生成结构化的 Swift 类型，而不是原始字符串：\n\n### 1. 定义可生成类型\n\n```swift\n@Generable(description: \"Basic profile information about a cat\")\nstruct CatProfile {\n    var name: String\n\n    @Guide(description: \"The age of the cat\", .range(0...20))\n    var age: Int\n\n    @Guide(description: \"A one sentence profile about the cat's personality\")\n    var profile: String\n}\n```\n\n### 2. 请求结构化输出\n\n```swift\nlet response = try await session.respond(\n    to: \"Generate a cute rescue cat\",\n    generating: CatProfile.self\n)\n\n\u002F\u002F Access structured fields directly\nprint(\"Name: \\(response.content.name)\")\nprint(\"Age: \\(response.content.age)\")\nprint(\"Profile: \\(response.content.profile)\")\n```\n\n### 支持的 @Guide 约束\n\n* `.range(0...20)` — 数值范围\n* `.count(3)` — 数组元素数量\n* `description:` — 生成的语义引导\n\n## 核心模式 — 工具调用\n\n让模型调用自定义代码以执行特定领域的任务：\n\n### 1. 定义工具\n\n```swift\nstruct RecipeSearchTool: Tool {\n    let name = \"recipe_search\"\n    let description = \"Search for recipes matching a given term and return a list of results.\"\n\n    @Generable\n    struct Arguments {\n        var searchTerm: String\n        var numberOfResults: Int\n    }\n\n    func call(arguments: Arguments) async throws -> ToolOutput {\n        let recipes = await searchRecipes(\n            term: arguments.searchTerm,\n            limit: arguments.numberOfResults\n        )\n        return .string(recipes.map { \"- \\($0.name): \\($0.description)\" }.joined(separator: \"\\n\"))\n    }\n}\n```\n\n### 2. 创建带工具的会话\n\n```swift\nlet session = LanguageModelSession(tools: [RecipeSearchTool()])\nlet response = try await session.respond(to: \"Find me some pasta recipes\")\n```\n\n### 3. 处理工具错误\n\n```swift\ndo {\n    let answer = try await session.respond(to: \"Find a recipe for tomato soup.\")\n} catch let error as LanguageModelSession.ToolCallError {\n    print(error.tool.name)\n    if case .databaseIsEmpty = error.underlyingError as? RecipeSearchToolError {\n        \u002F\u002F Handle specific tool error\n    }\n}\n```\n\n## 核心模式 — 快照流式传输\n\n使用 `PartiallyGenerated` 类型为实时 UI 流式传输结构化响应：\n\n```swift\n@Generable\nstruct TripIdeas {\n    @Guide(description: \"Ideas for upcoming trips\")\n    var ideas: [String]\n}\n\nlet stream = session.streamResponse(\n    to: \"What are some exciting trip ideas?\",\n    generating: TripIdeas.self\n)\n\nfor try await partial in stream {\n    \u002F\u002F partial: TripIdeas.PartiallyGenerated (all properties Optional)\n    print(partial)\n}\n```\n\n### SwiftUI 集成\n\n```swift\n@State private var partialResult: TripIdeas.PartiallyGenerated?\n@State private var errorMessage: String?\n\nvar body: some View {\n    List {\n        ForEach(partialResult?.ideas ?? [], id: \\.self) { idea in\n            Text(idea)\n        }\n    }\n    .overlay {\n        if let errorMessage { Text(errorMessage).foregroundStyle(.red) }\n    }\n    .task {\n        do {\n            let stream = session.streamResponse(to: prompt, generating: TripIdeas.self)\n            for try await partial in stream {\n                partialResult = partial\n            }\n        } catch {\n            errorMessage = error.localizedDescription\n        }\n    }\n}\n```\n\n## 关键设计决策\n\n| 决策 | 理由 |\n|----------|-----------|\n| 设备端执行 | 隐私性——数据不离开设备；支持离线工作 |\n| 4,096 个令牌限制 | 设备端模型约束；跨会话分块处理大数据 |\n| 快照流式传输（非增量） | 对结构化输出友好；每个快照都是一个完整的部分状态 |\n| `@Generable` 宏 | 为结构化生成提供编译时安全性；自动生成 `PartiallyGenerated` 类型 |\n| 每个会话单次请求 | `isResponding` 防止并发请求；如有需要，创建多个会话 |\n| `response.content`（而非 `.output`） | 正确的 API——始终通过 `.content` 属性访问结果 |\n\n## 最佳实践\n\n* 在创建会话之前**始终检查 `model.availability`**——处理所有不可用的情况\n* **使用 `instructions`** 来引导模型行为——它们的优先级高于提示词\n* 在发送新请求之前**检查 `isResponding`**——会话一次处理一个请求\n* 通过 `response.content` **访问结果**——而不是 `.output`\n* **将大型输入分块处理**——4,096 个令牌的限制适用于指令、提示词和输出的总和\n* 对于结构化输出**使用 `@Generable`**——比解析原始字符串提供更强的保证\n* **使用 `GenerationOptions(temperature:)`** 来调整创造力（值越高越有创意）\n* **使用 Instruments 进行监控**——使用 Xcode Instruments 来分析请求性能\n\n## 应避免的反模式\n\n* 未先检查 `model.availability` 就创建会话\n* 发送超过 4,096 个令牌上下文窗口的输入\n* 尝试在单个会话上进行并发请求\n* 使用 `.output` 而不是 `.content` 来访问响应数据\n* 当 `@Generable` 结构化输出可行时，却去解析原始字符串响应\n* 在单个提示词中构建复杂的多步逻辑——将其拆分为多个聚焦的提示词\n* 假设模型始终可用——设备的资格和设置各不相同\n\n## 何时使用\n\n* 为注重隐私的应用进行设备端文本生成\n* 从用户输入（表单、自然语言命令）中提取结构化数据\n* 必须离线工作的 AI 辅助功能\n* 逐步显示生成内容的流式 UI\n* 通过工具调用（搜索、计算、查找）执行特定领域的 AI 操作\n",{"name":5,"description":7},"main","a318f48de3c5718e8ea2e9f6fae7790e8a759e85","upstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Ffoundation-models-on-device",0,"https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fo-abdelmaksoud\u002F","Full-Stack Engineer | AI Systems Architect | Building autonomous multi-agent systems","2026-03-08 21:23:03",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add oabdelmaksoud\u002FAgention --skill foundation-models-on-device",{"tool":46,"command":47},"bunx","bunx skills add oabdelmaksoud\u002FAgention --skill foundation-models-on-device",{"tool":49,"command":50},"pnpm","pnpm dlx skills add oabdelmaksoud\u002FAgention --skill foundation-models-on-device","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Ffoundation-models-on-device\u002FSKILL.md",true,[],[55,79,93,126,152,172],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":66,"publishedAt":26},"01M6G2QFCBNBYAJF2KTK85G9A6","visa-doc-translate","Translate visa application documents (images) to English and create a bilingual PDF with original and translation","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fvisa-doc-translate\u002FSKILL.md",[61],{"categoryNo":62,"categoryName":63,"taxonomyType":64,"taxonomyTypeDesc":65},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[67,68,69,70,71,72,73,74,75,76,77,78],"translate","doc","visa doc translate","bilingual","with","english","application","PDF","translation","documents","create","images",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":26},"01M6G2QB09TSK6BY4ME5X20EVQ","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[86,87,88,89,90,91,92],"verification","loop","verification loop","sessions","code","claude code sessions","system",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":110,"publishedAt":26},"01M6G2Q6V2F7G03VAAF27FXPJR","tdd-workflow","Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[99,102,105],{"categoryNo":100,"categoryName":101,"taxonomyType":64,"taxonomyTypeDesc":65},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":103,"categoryName":104,"taxonomyType":64,"taxonomyTypeDesc":65},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[111,112,113,114,115,116,117,118,119,90,120,121,122,123,71,124,125],"workflow","tdd","tdd workflow","use","unit","coverage","refactoring","e2e","integration","development","e2e tests","tests","driven","test","writing",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":26},"01M6G2Q359YJRWAR2PFCEQAXF3","swiftui-patterns","SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS\u002FmacOS UI best practices.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswiftui-patterns\u002FSKILL.md",[],[133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,71],"patterns","swiftui","swiftui patterns","architecture","macos","performance","state management","best practices","state","ui","Optimization","ios","architecture patterns","Composition","performance optimization","view","management","swiftui architecture","navigation",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":159,"publishedAt":26},"01M6G2PY8B2FWZTWPZ84H83Y7C","swift-protocol-di-testing","Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-protocol-di-testing\u002FSKILL.md",[158],{"categoryNo":100,"categoryName":101,"taxonomyType":64,"taxonomyTypeDesc":65},[160,161,162,163,90,164,165,166,167,92,168,169,170,171],"swift protocol di testing","protocol","swift","testing","protocols","file","network","injection","dependency","swift testing","dependency injection","mock",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":26},"01M6G2PSCN2GXV9FFZDRRRWVB6","swift-concurrency-6-2","Swift 6.2 Approachable Concurrency — single-threaded by default, @concurrent for explicit background offloading, isolated conformances for main actor types.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-concurrency-6-2\u002FSKILL.md",[],[179,180,181,162,182,31,183],"concurrency","swift concurrency","swift concurrency 6 2","default","types"]