[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4EY370C9C8QQT005PB6Y7":3,"skill-same:01M6C4EY370C9C8QQT005PB6Y7":125},{"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":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6C4EY370C9C8QQT005PB6Y7","local-ai-models","iOS 端侧 AI 模型开发","WHEN building iOS features on on-device models with Foundation Models or MLX Swift: local LLM inference, chat, Vision Language Models (VLMs), text embeddings, image generation, tool calling, multi-turn conversations, custom models, or structured generation; NOT for cloud-hosted model APIs, Core ML or coremltools model conversion, or Vision framework classifiers; returns framework selection, compatibility gates, session and streaming patterns, and device-proof verification plans.","用于通过 Foundation Models 或 MLX Swift 在设备端模型上构建 iOS 功能：本地 LLM 推理、聊天、视觉语言模型（VLMs）、文本嵌入、图像生成、工具调用、多轮对话、自定义模型或结构化生成；不适用于云端托管模型 API、Core ML 或 coremltools 模型转换、Vision 框架分类器；返回框架选择、兼容性门槛、会话与流式模式，以及设备实测验证计划。","mintuz\u002Fskills","mintuz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F447031?v=4","01M6BVWJYSVR4XQC9AQCEMWQRG","Adam Bulmer","01M6C4DCXKNYZB281YB3PZDJJG",35,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CA037B4PDBN5RD34KV8RPR","Apple 平台应用开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"local ai models","Image Generation","vision","mlx","session","llm inference","returns","model","text","tool","image","Structured Generation","ios","cloud","embeddings","streaming","framework","verification","core","ml","2026-11-10 10:12:30",false,"---\nname: local-ai-models\ndescription: >-\n  WHEN building iOS features on on-device models with Foundation Models or MLX Swift:\n  local LLM inference, chat, Vision Language Models (VLMs), text embeddings, image\n  generation, tool calling, multi-turn conversations, custom models, or structured\n  generation; NOT for cloud-hosted model APIs, Core ML or coremltools model\n  conversion, or Vision framework classifiers; returns framework selection,\n  compatibility gates, session and streaming patterns, and device-proof\n  verification plans.\n---\n\n# iOS On-Device AI Models\n\nOn-device AI in iOS apps with Apple's Foundation Models framework and MLX Swift.\n\n## Core Principles\n\n1. **Compatibility Gate** - Foundation Models requires iOS 26, iPadOS 26, or macOS 26 or later, on an Apple Intelligence-capable device with Apple Intelligence enabled. Before you select a framework, compare this floor with the deployment target and with every device the feature must support. A runtime check reports one device's state; it cannot make the feature available below the OS or device floor. At runtime, check `SystemLanguageModel.default.availability` before you create a session, and show a fallback UI for each unavailable state: `.modelNotReady` (for example, a download in progress), `.appleIntelligenceNotEnabled` (disabled in Settings), and `.deviceNotEligible` (hardware cannot run the model).\n2. **Single-Flight Streaming** - Give one isolation boundary ownership of each conversation's session, transcript, and generation task. While `isResponding` is true, reject or queue the new send; never call the session, so `GenerationError.concurrentRequests` never occurs in normal use. Stop and teardown cancel the owned task and await it before a new send starts. Check `Task.checkCancellation()` while consuming the stream. Commit a transcript turn only when the response completes (`principle-separate-before-serializing-shared-state`).\n3. **Session Persistence** - Reuse `LanguageModelSession` across completed turns; keep partial streaming text separate from committed history.\n4. **Memory Awareness** - Use quantised models and monitor memory. iOS limits one app to a fraction of the device's total RAM, so reject any model whose weight files approach or exceed the total RAM of the lowest-memory required device: it cannot load. Pick the smallest model that meets quality on that device and measure peak memory there. Give one `@Observable` owner the load state, the loaded model, and generation. For a multi-gigabyte download: ask for consent, default to Wi-Fi, make it resumable, and keep the feature in an explicit \"not downloaded\" state until the files are complete.\n5. **Async Everything** - Load models asynchronously; never block the main thread.\n6. **Device Proof** - Before calling the design viable, exercise support boundaries and generation lifecycle in focused tests, then verify a Release build on the oldest or lowest-memory required physical device, including offline operation when the product promises on-device behaviour (`principle-prove-it-works`).\n7. **Locale Support** - Before you create a session, call `supportsLocale(_:)` for each user locale. Treat an unsupported locale as an unavailable state; never work around it with a prompt instruction such as \"answer in \u003Clanguage>\". For a supported locale, put the locale in the session instructions, not in each prompt. Test each locale branch on a physical device set to that locale.\n8. **Typed Tools and Outputs** - For structured output, define a `@Generable` type and call `respond(to:generating:)`; never parse free text with regular expressions. For an app action the model needs, implement the Foundation Models `Tool` protocol with `@Generable` arguments and pass the tool when you create the session. The session invokes the tool; the view never calls the service on the model's behalf. A tool error surfaces from the session call as `LanguageModelSession.ToolCallError`: catch it and show the user a normal failure state, never a crash or an empty result.\n\n## Quick Reference\n\n### Framework Comparison\n\n| Topic                              | Guide                                                       |\n| ---------------------------------- | ----------------------------------------------------------- |\n| Framework comparison and selection | [framework-selection.md](references\u002Fframework-selection.md) |\n\n### Foundation Models (Apple's Framework)\n\n| Topic                           | Guide                                                                               |\n| ------------------------------- | ----------------------------------------------------------------------------------- |\n| Setup and configuration         | [foundation-models\u002Fsetup.md](references\u002Ffoundation-models\u002Fsetup.md)                 |\n| Chat patterns and conversations | [foundation-models\u002Fchat-patterns.md](references\u002Ffoundation-models\u002Fchat-patterns.md) |\n\n### MLX Swift (Advanced Features)\n\n| Topic                                    | Guide                                                                       |\n| ---------------------------------------- | --------------------------------------------------------------------------- |\n| Setup and configuration                  | [mlx-swift\u002Fsetup.md](references\u002Fmlx-swift\u002Fsetup.md)                         |\n| Chat patterns with custom models         | [mlx-swift\u002Fchat-patterns.md](references\u002Fmlx-swift\u002Fchat-patterns.md)         |\n| Vision Language Models (VLMs)            | [mlx-swift\u002Fvision-patterns.md](references\u002Fmlx-swift\u002Fvision-patterns.md)     |\n| Tool calling, embeddings, structured gen | [mlx-swift\u002Fadvanced-patterns.md](references\u002Fmlx-swift\u002Fadvanced-patterns.md) |\n| Model quantization with MLX-LM           | [mlx-swift\u002Fquantization.md](references\u002Fmlx-swift\u002Fquantization.md)           |\n\n### Shared (Both Frameworks)\n\n| Topic                           | Guide                                                           |\n| ------------------------------- | --------------------------------------------------------------- |\n| Best practices and optimization | [shared\u002Fbest-practices.md](references\u002Fshared\u002Fbest-practices.md) |\n| Error handling and recovery     | [shared\u002Ferror-handling.md](references\u002Fshared\u002Ferror-handling.md) |\n| Testing strategies              | [shared\u002Ftesting.md](references\u002Fshared\u002Ftesting.md)               |\n\n## Quick Decision Trees\n\n### Which framework should I use?\n\n```\nIs Foundation Models available on every OS version and device the feature\nmust support (iOS 26 or later, Apple Intelligence-capable hardware)?\n├── No → Can a suitable MLX model meet the same device floor?\n│   ├── Yes → MLX Swift (prove memory, latency, and output on that floor)\n│   └── No → The requirements are infeasible; change the support contract\n└── Yes → Do you need VLMs, image generation, or custom models?\n    ├── Yes → MLX Swift (references\u002Fmlx-swift\u002F)\n    └── No → Foundation Models (references\u002Ffoundation-models\u002F)\n```\n\n### Where should I start?\n\n```\nNew to on-device AI?\n└── Start with Foundation Models:\n    1. Read framework-selection.md\n    2. Follow foundation-models\u002Fsetup.md\n    3. Implement foundation-models\u002Fchat-patterns.md\n\nNeed advanced features?\n└── Use MLX Swift:\n    1. Read framework-selection.md\n    2. Follow mlx-swift\u002Fsetup.md\n    3. Choose pattern:\n       - Chat: mlx-swift\u002Fchat-patterns.md\n       - Vision: mlx-swift\u002Fvision-patterns.md\n       - Advanced: mlx-swift\u002Fadvanced-patterns.md\n```\n\n### Where should my model loading code live?\n\n```\nIs this model shared across features?\n├── Yes → Create @Observable service in app\u002Fservices\u002F\n└── No → Is it feature-specific?\n    ├── Yes → Create @Observable class in feature\u002F\n    └── No → Load inline with @State (simple cases only)\n```\n\n### How should I handle conversations?\n\n```\nFoundation Models:\n└── Reuse LanguageModelSession for context\n    (references\u002Ffoundation-models\u002Fchat-patterns.md #multi-turn)\n\nMLX Swift:\n└── Implement custom context management\n    (references\u002Fmlx-swift\u002Fchat-patterns.md)\n```\n\n### What generation parameters should I use?\n\n```\nWhat's the use case?\n\nFactual answers (summaries, facts)\n└── temperature: 0.1-0.3\n\nBalanced (chat, Q&A)\n└── temperature: 0.6-0.8\n\nCreative (storytelling, ideas)\n└── temperature: 0.9-1.2\n\nSee references\u002Fshared\u002Fbest-practices.md for details\n```\n\n## Resources\n\n- [MLX Swift Examples](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx-swift-examples)\n- [Foundation Models Docs](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Ffoundationmodels)\n- [Hugging Face Model Hub](https:\u002F\u002Fhuggingface.co\u002Fmodels)\n- [MLX-LM Quantization](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx-examples\u002Ftree\u002Fmain\u002Fllms)\n- [MLX Community Models](https:\u002F\u002Fhuggingface.co\u002Fmlx-community)\n","# iOS On-Device AI Models\n\nOn-device AI in iOS apps with Apple's Foundation Models framework and MLX Swift.\n\n## Core Principles\n\n1. **Compatibility Gate** - Foundation Models requires iOS 26, iPadOS 26, or macOS 26 or later, on an Apple Intelligence-capable device with Apple Intelligence enabled. Before you select a framework, compare this floor with the deployment target and with every device the feature must support. A runtime check reports one device's state; it cannot make the feature available below the OS or device floor. At runtime, check `SystemLanguageModel.default.availability` before you create a session, and show a fallback UI for each unavailable state: `.modelNotReady` (for example, a download in progress), `.appleIntelligenceNotEnabled` (disabled in Settings), and `.deviceNotEligible` (hardware cannot run the model).\n2. **Single-Flight Streaming** - Give one isolation boundary ownership of each conversation's session, transcript, and generation task. While `isResponding` is true, reject or queue the new send; never call the session, so `GenerationError.concurrentRequests` never occurs in normal use. Stop and teardown cancel the owned task and await it before a new send starts. Check `Task.checkCancellation()` while consuming the stream. Commit a transcript turn only when the response completes (`principle-separate-before-serializing-shared-state`).\n3. **Session Persistence** - Reuse `LanguageModelSession` across completed turns; keep partial streaming text separate from committed history.\n4. **Memory Awareness** - Use quantised models and monitor memory. iOS limits one app to a fraction of the device's total RAM, so reject any model whose weight files approach or exceed the total RAM of the lowest-memory required device: it cannot load. Pick the smallest model that meets quality on that device and measure peak memory there. Give one `@Observable` owner the load state, the loaded model, and generation. For a multi-gigabyte download: ask for consent, default to Wi-Fi, make it resumable, and keep the feature in an explicit \"not downloaded\" state until the files are complete.\n5. **Async Everything** - Load models asynchronously; never block the main thread.\n6. **Device Proof** - Before calling the design viable, exercise support boundaries and generation lifecycle in focused tests, then verify a Release build on the oldest or lowest-memory required physical device, including offline operation when the product promises on-device behaviour (`principle-prove-it-works`).\n7. **Locale Support** - Before you create a session, call `supportsLocale(_:)` for each user locale. Treat an unsupported locale as an unavailable state; never work around it with a prompt instruction such as \"answer in \u003Clanguage>\". For a supported locale, put the locale in the session instructions, not in each prompt. Test each locale branch on a physical device set to that locale.\n8. **Typed Tools and Outputs** - For structured output, define a `@Generable` type and call `respond(to:generating:)`; never parse free text with regular expressions. For an app action the model needs, implement the Foundation Models `Tool` protocol with `@Generable` arguments and pass the tool when you create the session. The session invokes the tool; the view never calls the service on the model's behalf. A tool error surfaces from the session call as `LanguageModelSession.ToolCallError`: catch it and show the user a normal failure state, never a crash or an empty result.\n\n## Quick Reference\n\n### Framework Comparison\n\n| Topic                              | Guide                                                       |\n| ---------------------------------- | ----------------------------------------------------------- |\n| Framework comparison and selection | [framework-selection.md](references\u002Fframework-selection.md) |\n\n### Foundation Models (Apple's Framework)\n\n| Topic                           | Guide                                                                               |\n| ------------------------------- | ----------------------------------------------------------------------------------- |\n| Setup and configuration         | [foundation-models\u002Fsetup.md](references\u002Ffoundation-models\u002Fsetup.md)                 |\n| Chat patterns and conversations | [foundation-models\u002Fchat-patterns.md](references\u002Ffoundation-models\u002Fchat-patterns.md) |\n\n### MLX Swift (Advanced Features)\n\n| Topic                                    | Guide                                                                       |\n| ---------------------------------------- | --------------------------------------------------------------------------- |\n| Setup and configuration                  | [mlx-swift\u002Fsetup.md](references\u002Fmlx-swift\u002Fsetup.md)                         |\n| Chat patterns with custom models         | [mlx-swift\u002Fchat-patterns.md](references\u002Fmlx-swift\u002Fchat-patterns.md)         |\n| Vision Language Models (VLMs)            | [mlx-swift\u002Fvision-patterns.md](references\u002Fmlx-swift\u002Fvision-patterns.md)     |\n| Tool calling, embeddings, structured gen | [mlx-swift\u002Fadvanced-patterns.md](references\u002Fmlx-swift\u002Fadvanced-patterns.md) |\n| Model quantization with MLX-LM           | [mlx-swift\u002Fquantization.md](references\u002Fmlx-swift\u002Fquantization.md)           |\n\n### Shared (Both Frameworks)\n\n| Topic                           | Guide                                                           |\n| ------------------------------- | --------------------------------------------------------------- |\n| Best practices and optimization | [shared\u002Fbest-practices.md](references\u002Fshared\u002Fbest-practices.md) |\n| Error handling and recovery     | [shared\u002Ferror-handling.md](references\u002Fshared\u002Ferror-handling.md) |\n| Testing strategies              | [shared\u002Ftesting.md](references\u002Fshared\u002Ftesting.md)               |\n\n## Quick Decision Trees\n\n### Which framework should I use?\n\n```\nIs Foundation Models available on every OS version and device the feature\nmust support (iOS 26 or later, Apple Intelligence-capable hardware)?\n├── No → Can a suitable MLX model meet the same device floor?\n│   ├── Yes → MLX Swift (prove memory, latency, and output on that floor)\n│   └── No → The requirements are infeasible; change the support contract\n└── Yes → Do you need VLMs, image generation, or custom models?\n    ├── Yes → MLX Swift (references\u002Fmlx-swift\u002F)\n    └── No → Foundation Models (references\u002Ffoundation-models\u002F)\n```\n\n### Where should I start?\n\n```\nNew to on-device AI?\n└── Start with Foundation Models:\n    1. Read framework-selection.md\n    2. Follow foundation-models\u002Fsetup.md\n    3. Implement foundation-models\u002Fchat-patterns.md\n\nNeed advanced features?\n└── Use MLX Swift:\n    1. Read framework-selection.md\n    2. Follow mlx-swift\u002Fsetup.md\n    3. Choose pattern:\n       - Chat: mlx-swift\u002Fchat-patterns.md\n       - Vision: mlx-swift\u002Fvision-patterns.md\n       - Advanced: mlx-swift\u002Fadvanced-patterns.md\n```\n\n### Where should my model loading code live?\n\n```\nIs this model shared across features?\n├── Yes → Create @Observable service in app\u002Fservices\u002F\n└── No → Is it feature-specific?\n    ├── Yes → Create @Observable class in feature\u002F\n    └── No → Load inline with @State (simple cases only)\n```\n\n### How should I handle conversations?\n\n```\nFoundation Models:\n└── Reuse LanguageModelSession for context\n    (references\u002Ffoundation-models\u002Fchat-patterns.md #multi-turn)\n\nMLX Swift:\n└── Implement custom context management\n    (references\u002Fmlx-swift\u002Fchat-patterns.md)\n```\n\n### What generation parameters should I use?\n\n```\nWhat's the use case?\n\nFactual answers (summaries, facts)\n└── temperature: 0.1-0.3\n\nBalanced (chat, Q&A)\n└── temperature: 0.6-0.8\n\nCreative (storytelling, ideas)\n└── temperature: 0.9-1.2\n\nSee references\u002Fshared\u002Fbest-practices.md for details\n```\n\n## Resources\n\n- [MLX Swift Examples](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx-swift-examples)\n- [Foundation Models Docs](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Ffoundationmodels)\n- [Hugging Face Model Hub](https:\u002F\u002Fhuggingface.co\u002Fmodels)\n- [MLX-LM Quantization](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx-examples\u002Ftree\u002Fmain\u002Fllms)\n- [MLX Community Models](https:\u002F\u002Fhuggingface.co\u002Fmlx-community)\n",{"name":5,"description":7},"main","4e0a12b5048eac78a3ace4feee657873cdd530ef","src\u002Fapp\u002Fskills\u002Flocal-ai-models",7,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmintuz","http:\u002F\u002Fwww.mintuz.com","Working at @monzo, Previously worked at Moonpig, @booking and @bbc","2026-11-13 19:21:11",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add mintuz\u002Fskills --skill local-ai-models",{"tool":71,"command":72},"bunx","bunx skills add mintuz\u002Fskills --skill local-ai-models",{"tool":74,"command":75},"pnpm","pnpm dlx skills add mintuz\u002Fskills --skill local-ai-models","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002FSKILL.md",true,[79,85,89,93,97,101,105,109,113,117,121],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Ffoundation-models\u002Fchat-patterns.md","REFERENCE","参考文档",14407,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Ffoundation-models\u002Fchat-patterns.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Ffoundation-models\u002Fsetup.md",9072,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Ffoundation-models\u002Fsetup.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fframework-selection.md",4522,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fframework-selection.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fmlx-swift\u002Fadvanced-patterns.md",9646,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fmlx-swift\u002Fadvanced-patterns.md",{"path":98,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fmlx-swift\u002Fchat-patterns.md",4793,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fmlx-swift\u002Fchat-patterns.md",{"path":102,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fmlx-swift\u002Fquantization.md",5256,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fmlx-swift\u002Fquantization.md",{"path":106,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fmlx-swift\u002Fsetup.md",3022,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fmlx-swift\u002Fsetup.md",{"path":110,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fmlx-swift\u002Fvision-patterns.md",11877,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fmlx-swift\u002Fvision-patterns.md",{"path":114,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fshared\u002Fbest-practices.md",8650,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fshared\u002Fbest-practices.md",{"path":118,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fshared\u002Ferror-handling.md",9750,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fshared\u002Ferror-handling.md",{"path":122,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fshared\u002Ftesting.md",10345,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Flocal-ai-models\u002Freferences\u002Fshared\u002Ftesting.md",[126,134,156,179,195,219],{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":133},"01M7B66DH3EX8C4A3JBAPB1NCY","lens-review","USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens \u002Fcode-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Flens-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":148,"publishedAt":51},"01M6C4PDGB6ZZWBS35N3DF7PZZ","xstate","XState 状态机建模","WHEN React state changes in response to an external answer — async submit, in-flight or loading flags, retries, cancellation, polling, optimistic updates, stale responses — or to an interaction with an interruptible middle, such as a drag or a gesture; or WHEN building, reviewing, testing, or visualising XState 5 actors and @xstate\u002Freact integrations; NOT for a value one event sets completely, such as a text draft, a focus flag, or a plain open and closed toggle; models typed lifecycles and renders legal Mermaid stateDiagram-v2 charts.","当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程（如拖拽或手势）交互而变化时使用；或在构建、审查、测试或可视化 XState 5 actors 和 @xstate\u002Freact 集成时使用；不适用于单个事件即可完全设定的值，如文本草稿、焦点标志或简单的开关切换；建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fxstate\u002FSKILL.md",[142,145],{"categoryNo":143,"categoryName":144,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":146,"categoryName":147,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[136,39,149,150,151,152,153,154,155],"state","integrations","Charts","mermaid","testing","open","react",{"skillNo":157,"name":158,"nameZh":159,"description":160,"descriptionZh":161,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":170,"publishedAt":51},"01M6C4PB6VVC2X19B63B7YNH0T","web-design","网页界面设计优化","WHEN refining UI layout, typography, color, or polish; NOT code implementation; provides concise principles for intentional, legible design.","在优化 UI 布局、排版、色彩或细节打磨时使用；不涉及代码实现；提供简洁的原则，以实现有意图、易读的设计。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fweb-design\u002FSKILL.md",[164,167],{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":168,"categoryName":169,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1VGZ0ZM4TQHMPD75R2KWQ","用户体验设计",[171,172,173,174,175,176,177,178],"web","design","web design","polish","code implementation","ui","typography","code",{"skillNo":180,"name":181,"nameZh":182,"description":183,"descriptionZh":184,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":189,"publishedAt":51},"01M6C4P8D92GJDA49V7X1CZXEV","tailwind","Tailwind CSS 样式开发","USE WHEN writing, fixing or reviewing styling in a project that uses Tailwind CSS, even a one-class change or a request that does not name Tailwind: colours, focus rings, spacing, class names chosen by a prop, map or CVA variants, theme tokens and dark mode in the Tailwind stylesheet or tailwind.config, setup or upgrades (if unsure whether the project uses Tailwind, check package.json or the main stylesheet first); NOT WHEN writing plain CSS or Sass in a project without Tailwind; produces class names Tailwind can find, syntax for the installed major version, visible focus indicators, and no unrequested dependency or invented brand value.","在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用，即便只是改一个类名，或请求中未提及 Tailwind：颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级（如不确定项目是否使用 Tailwind，先检查 package.json 或主样式表）；不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass；产出的类名能被 Tailwind 识别，语法适配已安装的主版本，具有可见的焦点指示器，且不引入未要求的依赖或杜撰的品牌值。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Ftailwind\u002FSKILL.md",[187,188],{"categoryNo":143,"categoryName":144,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":146,"categoryName":147,"taxonomyType":28,"taxonomyTypeDesc":29},[190,191,192,193,172,194],"Tailwind","libraries","component","css","design systems",{"skillNo":196,"name":197,"nameZh":198,"description":199,"descriptionZh":200,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":201,"categories":202,"keywords":207,"publishedAt":51},"01M6C4P5VWQ69Q32DA0634GDJY","refactoring","代码重构规划","WHEN you need a plan to refactor, restructure, or clean up working code and the test result is known, either green or a recorded failing set; NOT for new feature delivery or any behavior change; reversible-baseline safety with prioritized improvements.","当你需要制定计划来重构、重组或清理正常工作的代码，且测试结果已知（全绿或已记录的失败集合）时使用；不适用于新功能交付或任何行为变更；以可逆的基线安全性和按优先级排序的改进为核心。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Frefactoring\u002FSKILL.md",[203,204],{"categoryNo":143,"categoryName":144,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":205,"categoryName":206,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",[197,208,209,210,211,212,178,213,214,215,216,217,218],"refactor","baseline","Safety","SET","up","feature delivery","test","new feature","plan","change","behavior",{"skillNo":220,"name":155,"nameZh":17,"description":221,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":222,"categories":223,"keywords":224,"publishedAt":51},"01M6C4P345APEFEX00J8T7QMXQ","USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Freact\u002FSKILL.md",[],[155,225,193,190,226,153,227,178,228,229,230,231,149,214,232,233],"state management","performance","hooks","components","architecture","api","react components","styling","management"]