[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79VJZJKXJHD05DZYM4AXMC7":3,"skill-same:01M79VJZJKXJHD05DZYM4AXMC7":78},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M79VJZJKXJHD05DZYM4AXMC7","swift-expert",null,"Builds iOS\u002FmacOS\u002FwatchOS\u002FtvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async\u002Fawait concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS\u002FmacOS applications with Swift 5.9+, SwiftUI, or async\u002Fawait concurrency. Invoke for protocol-oriented programming, SwiftUI state management, actors, server-side Swift, UIKit integration, Combine, or Vapor.","Vishwajeetsrk\u002FJARVIS-AI-OS","Vishwajeetsrk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83073825?v=4","01M79V4YAYQ35CPZPBS1RQ6VEX","VishwaJeet","01M79V4YBP8A6PPPZ91229KVHN",11,"MIT","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: swift-expert\ndescription: Builds iOS\u002FmacOS\u002FwatchOS\u002FtvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async\u002Fawait concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS\u002FmacOS applications with Swift 5.9+, SwiftUI, or async\u002Fawait concurrency. Invoke for protocol-oriented programming, SwiftUI state management, actors, server-side Swift, UIKit integration, Combine, or Vapor.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: language\n  triggers: Swift, SwiftUI, iOS development, macOS development, async\u002Fawait Swift, Combine, UIKit, Vapor\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: \n---\n\n# Swift Expert\n\n## Core Workflow\n\n1. **Architecture Analysis** - Identify platform targets, dependencies, design patterns\n2. **Design Protocols** - Create protocol-first APIs with associated types\n3. **Implement** - Write type-safe code with async\u002Fawait and value semantics\n4. **Optimize** - Profile with Instruments, ensure thread safety\n5. **Test** - Write comprehensive tests with XCTest and async patterns\n\n> **Validation checkpoints:** After step 3, run `swift build` to verify compilation. After step 4, run `swift build -warnings-as-errors` to surface actor isolation and Sendable warnings. After step 5, run `swift test` and confirm all async tests pass.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| SwiftUI | `references\u002Fswiftui-patterns.md` | Building views, state management, modifiers |\n| Concurrency | `references\u002Fasync-concurrency.md` | async\u002Fawait, actors, structured concurrency |\n| Protocols | `references\u002Fprotocol-oriented.md` | Protocol design, generics, type erasure |\n| Memory | `references\u002Fmemory-performance.md` | ARC, weak\u002Funowned, performance optimization |\n| Testing | `references\u002Ftesting-patterns.md` | XCTest, async tests, mocking strategies |\n\n## Code Patterns\n\n### async\u002Fawait — Correct vs. Incorrect\n\n```swift\n\u002F\u002F ✅ DO: async\u002Fawait with structured error handling\nfunc fetchUser(id: String) async throws -> User {\n    let url = URL(string: \"https:\u002F\u002Fapi.example.com\u002Fusers\u002F\\(id)\")!\n    let (data, _) = try await URLSession.shared.data(from: url)\n    return try JSONDecoder().decode(User.self, from: data)\n}\n\n\u002F\u002F ❌ DON'T: mixing completion handlers with async context\nfunc fetchUser(id: String) async throws -> User {\n    return try await withCheckedThrowingContinuation { continuation in\n        \u002F\u002F Avoid wrapping existing async APIs this way when a native async version exists\n        legacyFetch(id: id) { result in\n            continuation.resume(with: result)\n        }\n    }\n}\n```\n\n### SwiftUI State Management\n\n```swift\n\u002F\u002F ✅ DO: use @Observable (Swift 5.9+) for view models\n@Observable\nfinal class CounterViewModel {\n    var count = 0\n    func increment() { count += 1 }\n}\n\nstruct CounterView: View {\n    @State private var vm = CounterViewModel()\n\n    var body: some View {\n        VStack {\n            Text(\"\\(vm.count)\")\n            Button(\"Increment\", action: vm.increment)\n        }\n    }\n}\n\n\u002F\u002F ❌ DON'T: reach for ObservableObject\u002FPublished when @Observable suffices\nclass LegacyViewModel: ObservableObject {\n    @Published var count = 0  \u002F\u002F Unnecessary boilerplate in Swift 5.9+\n}\n```\n\n### Protocol-Oriented Architecture\n\n```swift\n\u002F\u002F ✅ DO: define capability protocols with associated types\nprotocol Repository\u003CEntity> {\n    associatedtype Entity: Identifiable\n    func fetch(id: Entity.ID) async throws -> Entity\n    func save(_ entity: Entity) async throws\n}\n\nstruct UserRepository: Repository {\n    typealias Entity = User\n    func fetch(id: UUID) async throws -> User { \u002F* … *\u002F }\n    func save(_ user: User) async throws { \u002F* … *\u002F }\n}\n\n\u002F\u002F ❌ DON'T: use classes as base types when a protocol fits\nclass BaseRepository {  \u002F\u002F Avoid class inheritance for shared behavior\n    func fetch(id: UUID) async throws -> Any { fatalError(\"Override required\") }\n}\n```\n\n### Actor for Thread Safety\n\n```swift\n\u002F\u002F ✅ DO: isolate mutable shared state in an actor\nactor ImageCache {\n    private var cache: [URL: UIImage] = [:]\n\n    func image(for url: URL) -> UIImage? { cache[url] }\n    func store(_ image: UIImage, for url: URL) { cache[url] = image }\n}\n\n\u002F\u002F ❌ DON'T: use a class with manual locking\nclass UnsafeImageCache {\n    private var cache: [URL: UIImage] = [:]\n    private let lock = NSLock()  \u002F\u002F Error-prone; prefer actor isolation\n    func image(for url: URL) -> UIImage? {\n        lock.lock(); defer { lock.unlock() }\n        return cache[url]\n    }\n}\n```\n\n## Constraints\n\n### MUST DO\n- Use type hints and inference appropriately\n- Follow Swift API Design Guidelines\n- Use `async\u002Fawait` for asynchronous operations (see pattern above)\n- Ensure `Sendable` compliance for concurrency\n- Use value types (`struct`\u002F`enum`) by default\n- Document APIs with markup comments (`\u002F\u002F\u002F …`)\n- Use property wrappers for cross-cutting concerns\n- Profile with Instruments before optimizing\n\n### MUST NOT DO\n- Use force unwrapping (`!`) without justification\n- Create retain cycles in closures\n- Mix synchronous and asynchronous code improperly\n- Ignore actor isolation warnings\n- Use implicitly unwrapped optionals unnecessarily\n- Skip error handling\n- Use Objective-C patterns when Swift alternatives exist\n- Hardcode platform-specific values\n\n## Output Templates\n\nWhen implementing Swift features, provide:\n1. Protocol definitions and type aliases\n2. Model types (structs\u002Fclasses with value semantics)\n3. View implementations (SwiftUI) or view controllers\n4. Tests demonstrating usage\n5. Brief explanation of architectural decisions\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fswift-expert\u002F)\n","# Swift Expert\n\n## Core Workflow\n\n1. **Architecture Analysis** - Identify platform targets, dependencies, design patterns\n2. **Design Protocols** - Create protocol-first APIs with associated types\n3. **Implement** - Write type-safe code with async\u002Fawait and value semantics\n4. **Optimize** - Profile with Instruments, ensure thread safety\n5. **Test** - Write comprehensive tests with XCTest and async patterns\n\n> **Validation checkpoints:** After step 3, run `swift build` to verify compilation. After step 4, run `swift build -warnings-as-errors` to surface actor isolation and Sendable warnings. After step 5, run `swift test` and confirm all async tests pass.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| SwiftUI | `references\u002Fswiftui-patterns.md` | Building views, state management, modifiers |\n| Concurrency | `references\u002Fasync-concurrency.md` | async\u002Fawait, actors, structured concurrency |\n| Protocols | `references\u002Fprotocol-oriented.md` | Protocol design, generics, type erasure |\n| Memory | `references\u002Fmemory-performance.md` | ARC, weak\u002Funowned, performance optimization |\n| Testing | `references\u002Ftesting-patterns.md` | XCTest, async tests, mocking strategies |\n\n## Code Patterns\n\n### async\u002Fawait — Correct vs. Incorrect\n\n```swift\n\u002F\u002F ✅ DO: async\u002Fawait with structured error handling\nfunc fetchUser(id: String) async throws -> User {\n    let url = URL(string: \"https:\u002F\u002Fapi.example.com\u002Fusers\u002F\\(id)\")!\n    let (data, _) = try await URLSession.shared.data(from: url)\n    return try JSONDecoder().decode(User.self, from: data)\n}\n\n\u002F\u002F ❌ DON'T: mixing completion handlers with async context\nfunc fetchUser(id: String) async throws -> User {\n    return try await withCheckedThrowingContinuation { continuation in\n        \u002F\u002F Avoid wrapping existing async APIs this way when a native async version exists\n        legacyFetch(id: id) { result in\n            continuation.resume(with: result)\n        }\n    }\n}\n```\n\n### SwiftUI State Management\n\n```swift\n\u002F\u002F ✅ DO: use @Observable (Swift 5.9+) for view models\n@Observable\nfinal class CounterViewModel {\n    var count = 0\n    func increment() { count += 1 }\n}\n\nstruct CounterView: View {\n    @State private var vm = CounterViewModel()\n\n    var body: some View {\n        VStack {\n            Text(\"\\(vm.count)\")\n            Button(\"Increment\", action: vm.increment)\n        }\n    }\n}\n\n\u002F\u002F ❌ DON'T: reach for ObservableObject\u002FPublished when @Observable suffices\nclass LegacyViewModel: ObservableObject {\n    @Published var count = 0  \u002F\u002F Unnecessary boilerplate in Swift 5.9+\n}\n```\n\n### Protocol-Oriented Architecture\n\n```swift\n\u002F\u002F ✅ DO: define capability protocols with associated types\nprotocol Repository\u003CEntity> {\n    associatedtype Entity: Identifiable\n    func fetch(id: Entity.ID) async throws -> Entity\n    func save(_ entity: Entity) async throws\n}\n\nstruct UserRepository: Repository {\n    typealias Entity = User\n    func fetch(id: UUID) async throws -> User { \u002F* … *\u002F }\n    func save(_ user: User) async throws { \u002F* … *\u002F }\n}\n\n\u002F\u002F ❌ DON'T: use classes as base types when a protocol fits\nclass BaseRepository {  \u002F\u002F Avoid class inheritance for shared behavior\n    func fetch(id: UUID) async throws -> Any { fatalError(\"Override required\") }\n}\n```\n\n### Actor for Thread Safety\n\n```swift\n\u002F\u002F ✅ DO: isolate mutable shared state in an actor\nactor ImageCache {\n    private var cache: [URL: UIImage] = [:]\n\n    func image(for url: URL) -> UIImage? { cache[url] }\n    func store(_ image: UIImage, for url: URL) { cache[url] = image }\n}\n\n\u002F\u002F ❌ DON'T: use a class with manual locking\nclass UnsafeImageCache {\n    private var cache: [URL: UIImage] = [:]\n    private let lock = NSLock()  \u002F\u002F Error-prone; prefer actor isolation\n    func image(for url: URL) -> UIImage? {\n        lock.lock(); defer { lock.unlock() }\n        return cache[url]\n    }\n}\n```\n\n## Constraints\n\n### MUST DO\n- Use type hints and inference appropriately\n- Follow Swift API Design Guidelines\n- Use `async\u002Fawait` for asynchronous operations (see pattern above)\n- Ensure `Sendable` compliance for concurrency\n- Use value types (`struct`\u002F`enum`) by default\n- Document APIs with markup comments (`\u002F\u002F\u002F …`)\n- Use property wrappers for cross-cutting concerns\n- Profile with Instruments before optimizing\n\n### MUST NOT DO\n- Use force unwrapping (`!`) without justification\n- Create retain cycles in closures\n- Mix synchronous and asynchronous code improperly\n- Ignore actor isolation warnings\n- Use implicitly unwrapped optionals unnecessarily\n- Skip error handling\n- Use Objective-C patterns when Swift alternatives exist\n- Hardcode platform-specific values\n\n## Output Templates\n\nWhen implementing Swift features, provide:\n1. Protocol definitions and type aliases\n2. Model types (structs\u002Fclasses with value semantics)\n3. View implementations (SwiftUI) or view controllers\n4. Tests demonstrating usage\n5. Brief explanation of architectural decisions\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fswift-expert\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"role":25,"scope":26,"author":27,"domain":28,"version":29,"triggers":30,"output-format":31,"related-skills":6},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","language","1.1.0","Swift, SwiftUI, iOS development, macOS development, async\u002Fawait Swift, Combine, UIKit, Vapor","code","main","87476a719bbe41680362bb9bfacf884c53784783",".agents\u002Fskills\u002Fswift-expert",3,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS","https:\u002F\u002Fjarvisaios.vercel.app","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk","https:\u002F\u002Flearnifyaitool.vercel.app\u002F","🎉 Welcome to my profile! I'm a BCA student with a passion for technology and innovation. As a frontend developer.","2026-09-01 14:20:58",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Vishwajeetsrk\u002FJARVIS-AI-OS --skill swift-expert",{"tool":48,"command":49},"bunx","bunx skills add Vishwajeetsrk\u002FJARVIS-AI-OS --skill swift-expert",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Vishwajeetsrk\u002FJARVIS-AI-OS --skill swift-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002FSKILL.md",true,[56,62,66,70,74],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fasync-concurrency.md","REFERENCE","参考文档",8467,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002Freferences\u002Fasync-concurrency.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fmemory-performance.md",8256,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002Freferences\u002Fmemory-performance.md",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fprotocol-oriented.md",7360,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002Freferences\u002Fprotocol-oriented.md",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fswiftui-patterns.md",6806,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002Freferences\u002Fswiftui-patterns.md",{"path":75,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Ftesting-patterns.md",9056,"https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fswift-expert\u002Freferences\u002Ftesting-patterns.md",[79,85,94,102,108,116],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79VY332PY7B4KCWMN3FM430","workspace-agent","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace-agent\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79VXZK9MKMYDV57N8VJDPYW","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79VXR975D5MQTW5VMFTKWGG","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M79VXMF2JMWE9GETMJFRM4B9","ui-ux-expert","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-expert\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M79VXGG2RRFF3EH79CDYVE0K","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M79VXCR3A6QMYT131RFKNTWT","test-agent","https:\u002F\u002Fgithub.com\u002FVishwajeetsrk\u002FJARVIS-AI-OS\u002Fblob\u002Fmain\u002Fskills\u002Ftest-agent\u002FSKILL.md",[],[]]