[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJFN0A6CFMEBRY29W7PMJ0":3,"skill-same:01M6FJFN0A6CFMEBRY29W7PMJ0":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6FJFN0A6CFMEBRY29W7PMJ0","coding-standards-enforcer",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Ftomkrikorian\u002FvisionOSAgents\u002Fcoding-standards-enforcer\u002FSKILL.md",[],[18,19,20,21],"coding standards","coding","standards","coding standards enforcer","2026-11-10 10:12:30",false,"# Coding Standards Enforcer\n\n## Description and Goals\n\nThis skill enforces repository-wide coding standards for Swift 6.2 concurrency, Swift language rules, and best practices. It ensures all Swift code in the repository follows consistent patterns, uses modern Swift APIs, and adheres to strict concurrency requirements.\n\n### Goals\n\n- Ensure compliance with Swift 6.2 strict concurrency rules\n- Enforce modern Swift language patterns and APIs\n- Prevent common concurrency mistakes and anti-patterns\n- Maintain consistent code style across the repository\n- Support Swift 6 migration and best practices\n\n## What This Skill Should Do\n\nWhen reviewing or implementing Swift code changes, this skill should:\n\n1. **Enforce concurrency rules** - Ensure all code follows Swift 6.2 strict concurrency requirements\n2. **Check language standards** - Verify use of modern Swift APIs and patterns\n3. **Identify violations** - Scan for common mistakes and anti-patterns\n4. **Suggest fixes** - Provide guidance on how to correct violations\n5. **Maintain consistency** - Ensure code follows repository-wide standards\n\nUse this skill whenever you add, modify, or review Swift code in this repo.\n\n## Information About the Skill\n\n### Workflow\n\n1. Identify the files and changes in scope.\n2. Scan for violations of the rules below.\n3. Apply fixes or call out deviations explicitly.\n\n### Swift Concurrency Guidelines\n\n#### Core Mental Model\n\nThink in isolation domains rather than threads:\n\n- `MainActor` is the UI lane and must own UI state.\n- `actor` types protect their own mutable state.\n- `nonisolated` code is shared and cannot touch actor state.\n- `Sendable` types are safe to move across domains.\n\n#### Strict Concurrency\n\nSwift 6.2 strict concurrency does not make arbitrary code `@MainActor` by default. SwiftUI view `body` is `@MainActor`, and unannotated code only gets default actor isolation when the project opts into it with settings like `SWIFT_DEFAULT_ACTOR_ISOLATION`.\n\n#### Async and Parallel Work\n\n```swift\nfunc fetchUser(id: Int) async throws -> User {\n    let (data, _) = try await URLSession.shared.data(from: url)\n    return try JSONDecoder().decode(User.self, from: data)\n}\n\nasync let avatar = fetchImage(\"avatar.jpg\")\nasync let banner = fetchImage(\"banner.jpg\")\nlet profile = Profile(avatar: try await avatar, banner: try await banner)\n```\n\n#### Tasks and Task Groups\n\n```swift\n.task { avatar = await downloadAvatar() }\n\nlet saveTask = Task { try await saveProfile() }\ntry await saveTask.value\n\nlet values = try await withThrowingTaskGroup(\n    of: (String, String).self,\n    returning: [String: String].self\n) { group in\n    group.addTask { (\"avatarURL\", try await fetchAvatarURL()) }\n    group.addTask { (\"bio\", try await fetchBioText()) }\n\n    var collected: [String: String] = [:]\n    for try await (key, value) in group {\n        collected[key] = value\n    }\n    return collected\n}\n```\n\n#### Isolation Domains\n\n```swift\n@MainActor\nfinal class ViewModel {\n    var items: [Item] = []\n}\n\nactor BankAccount {\n    var balance: Double = 0\n    func deposit(_ amount: Double) { balance += amount }\n}\n```\n\n#### Approachable Concurrency Settings (Swift 6.2+)\n\n- `SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor` keeps UI code on the main actor by default.\n- `SWIFT_APPROACHABLE_CONCURRENCY = YES` enables a group of Swift concurrency features intended to ease migration, such as outward actor inference and inferred sendability changes.\n\n```swift\n@concurrent func processLargeFile() async { }\n```\n\n#### Sendable\n\n```swift\nstruct User: Sendable {\n    let id: Int\n    let name: String\n}\n\nfinal class ThreadSafeCache: @unchecked Sendable {\n    private let lock = NSLock()\n    private var storage: [String: Data] = [:]\n}\n```\n\n#### Isolation Inheritance\n\n- `Task { }` inherits the current actor.\n- `Task.detached { }` does not inherit isolation and should be rare.\n\n#### Background Tasks\n\nMove heavy physics\u002Fdata work off the main actor using `@concurrent` functions or dedicated actors.\n\n#### Task Management\n\nCancel long-running tasks on teardown.\n\n#### Common Mistakes to Avoid\n\n- Treating `async` as automatic background work.\n- Creating many actors when `@MainActor` is sufficient.\n- Using `MainActor.run` when the enclosing function can be annotated.\n- Blocking async code with `DispatchSemaphore` or `DispatchGroup.wait()`.\n- Spawning unstructured `Task` instances instead of `async let` or task groups.\n\n#### Quick Reference\n\n- `async` and `await` for suspension points.\n- `Task { }` for unstructured async work that inherits the current actor context.\n- `actor` for isolated mutable state.\n- `Sendable` for cross-actor data transfer.\n\n### Swift Language Standards\n\n#### Observable Classes\n\n`@Observable` does not imply `@MainActor`. Add `@MainActor` when the model owns UI-bound state; otherwise leave the type unannotated or isolate it more narrowly based on the actual concurrency requirements.\n\n#### Observation vs Combine\n\n- Prefer Observation (`@Observable`, `@Bindable`, plain stored properties) in new SwiftUI code when your deployment target supports it.\n- Keep `ObservableObject`, `@StateObject`, and `@ObservedObject` when existing Combine-based architecture or platform constraints still require them.\n\n#### Swift-Native APIs\n\nPrefer Swift-native alternatives to Foundation methods where they exist, such as using `replacing(\"hello\", with: \"world\")` with strings rather than `replacingOccurrences(of: \"hello\", with: \"world\")`.\n\n#### Modern Foundation API\n\nPrefer modern Foundation API, for example `URL.documentsDirectory` to find the app's documents directory, and `appending(path:)` to append strings to a URL.\n\n#### Number Formatting\n\nNever use C-style number formatting such as `Text(String(format: \"%.2f\", abs(myNumber)))`; always use `Text(abs(change), format: .number.precision(.fractionLength(2)))` instead.\n\n#### Static Member Lookup\n\nPrefer static member lookup to struct instances where possible, such as `.circle` rather than `Circle()`, and `.borderedProminent` rather than `BorderedProminentButtonStyle()`.\n\n#### Modern Concurrency\n\nPrefer Swift concurrency over Grand Central Dispatch for new async application code. Keep Dispatch-based interop only where framework APIs or existing infrastructure still require it.\n\n#### Text Filtering\n\nFiltering text based on user-input must be done using `localizedStandardContains()` as opposed to `contains()`.\n\n#### Force Unwraps\n\nAvoid force unwraps and force `try` unless it is unrecoverable.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Ftomkrikorian\u002FvisionOSAgents\u002Fcoding-standards-enforcer",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill coding-standards-enforcer",{"tool":41,"command":42},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill coding-standards-enforcer",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill coding-standards-enforcer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Ftomkrikorian\u002FvisionOSAgents\u002Fcoding-standards-enforcer\u002FSKILL.md",true,[],[50,59,68,77,83,89],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":22},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[56,57,58],"model","model hierarchy","model hierarchy skill",{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":22},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[65,66,67],"MCP","zoom","zoom mcp",{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":22},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[74,75,76,66],"sdk","zoom apps sdk","apps",{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":22},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[79],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":22},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[85],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":22},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[91]]