[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D2XE2CMAATDFDW43KM91JT":3,"skill-same:01M7D2XE2CMAATDFDW43KM91JT":55},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7D2XE2CMAATDFDW43KM91JT","swift-concurrency-pro",null,"Reviews Swift code for concurrency correctness, modern API usage, and common async\u002Fawait pitfalls. Use when reading, writing, or reviewing Swift concurrency code.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Ftwostraws-swift-concurrency-agent-skill\u002Fswift-concurrency-pro\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: swift-concurrency-pro\ndescription: Reviews Swift code for concurrency correctness, modern API usage, and common async\u002Fawait pitfalls. Use when reading, writing, or reviewing Swift concurrency code.\nlicense: MIT\nmetadata:\n  author: Paul Hudson\n  version: \"1.0\"\n---\n\nReview Swift concurrency code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.\n\nReview process:\n\n1. Scan for known-dangerous patterns using `references\u002Fhotspots.md` to prioritize what to inspect.\n1. Check for recent Swift 6.2 concurrency behavior using `references\u002Fnew-features.md`.\n1. Validate actor usage for reentrancy and isolation correctness using `references\u002Factors.md`.\n1. Ensure structured concurrency is preferred over unstructured where appropriate using `references\u002Fstructured.md`.\n1. Check unstructured task usage for correctness using `references\u002Funstructured.md`.\n1. Verify cancellation is handled correctly using `references\u002Fcancellation.md`.\n1. Validate async stream and continuation usage using `references\u002Fasync-streams.md`.\n1. Check bridging code between sync and async worlds using `references\u002Fbridging.md`.\n1. Review any legacy concurrency migrations using `references\u002Finterop.md`.\n1. Cross-check against common failure modes using `references\u002Fbug-patterns.md`.\n1. If the project has strict-concurrency errors, map diagnostics to fixes using `references\u002Fdiagnostics.md`.\n1. If reviewing tests, check async test patterns using `references\u002Ftesting.md`.\n\nIf doing a partial review, load only the relevant reference files.\n\n\n## Core Instructions\n\n- Target Swift 6.2 or later with strict concurrency checking.\n- If code spans multiple targets or packages, compare their concurrency build settings before assuming behavior should match.\n- Prefer structured concurrency (task groups) over unstructured (`Task {}`).\n- Prefer Swift concurrency over Grand Central Dispatch for new code. GCD is still acceptable in low-level code, framework interop, or performance-critical synchronous work where queues and locks are the right tool – don't flag these as errors.\n- If an API offers both `async`\u002F`await` and closure-based variants, always prefer `async`\u002F`await`.\n- Do not introduce third-party concurrency frameworks without asking first.\n- Do not suggest `@unchecked Sendable` to fix compiler errors. It silences the diagnostic without fixing the underlying race. Prefer actors, value types, or `sending` parameters instead. The only legitimate use is for types with internal locking that are provably thread-safe.\n\n\n## Output Format\n\nOrganize findings by file. For each issue:\n\n1. State the file and relevant line(s).\n2. Name the rule being violated.\n3. Show a brief before\u002Fafter code fix.\n\nSkip files with no issues. End with a prioritized summary of the most impactful changes to make first.\n\nExample output:\n\n### DataLoader.swift\n\n**Line 18: Actor reentrancy – state may have changed across the `await`.**\n\n```swift\n\u002F\u002F Before\nactor Cache {\n    var items: [String: Data] = [:]\n\n    func fetch(_ key: String) async throws -> Data {\n        if items[key] == nil {\n            items[key] = try await download(key)\n        }\n        return items[key]!\n    }\n}\n\n\u002F\u002F After\nactor Cache {\n    var items: [String: Data] = [:]\n\n    func fetch(_ key: String) async throws -> Data {\n        if let existing = items[key] { return existing }\n        let data = try await download(key)\n        items[key] = data\n        return data\n    }\n}\n```\n\n**Line 34: Use `withTaskGroup` instead of creating tasks in a loop.**\n\n```swift\n\u002F\u002F Before\nfor url in urls {\n    Task { try await fetch(url) }\n}\n\n\u002F\u002F After\ntry await withThrowingTaskGroup(of: Data.self) { group in\n    for url in urls {\n        group.addTask { try await fetch(url) }\n    }\n\n    for try await result in group {\n        process(result)\n    }\n}\n```\n\n### Summary\n\n1. **Correctness (high):** Actor reentrancy bug on line 18 may cause duplicate downloads and a force-unwrap crash.\n2. **Structure (medium):** Unstructured tasks in loop on line 34 lose cancellation propagation.\n\nEnd of example.\n\n\n## References\n\n- `references\u002Fhotspots.md` - Grep targets for code review: known-dangerous patterns and what to check for each.\n- `references\u002Fnew-features.md` - Swift 6.2 changes that alter review advice: default actor isolation, isolated conformances, caller-actor async behavior, `@concurrent`, `Task.immediate`, task naming, and priority escalation.\n- `references\u002Factors.md` - Actor reentrancy, shared-state annotations, global actor inference, and isolation patterns.\n- `references\u002Fstructured.md` - Task groups over loops, discarding task groups, concurrency limits.\n- `references\u002Funstructured.md` - Task vs Task.detached, when Task {} is a code smell.\n- `references\u002Fcancellation.md` - Cancellation propagation, cooperative checking, broken cancellation patterns.\n- `references\u002Fasync-streams.md` - AsyncStream factory, continuation lifecycle, back-pressure.\n- `references\u002Fbridging.md` - Checked continuations, wrapping legacy APIs, `@unchecked Sendable`.\n- `references\u002Finterop.md` - Migrating from GCD, `Mutex`\u002Flocks, completion handlers, delegates, and Combine.\n- `references\u002Fbug-patterns.md` - Common concurrency failure modes and their fixes.\n- `references\u002Fdiagnostics.md` - Strict-concurrency compiler errors, protocol conformance fixes, and likely remedies.\n- `references\u002Ftesting.md` - Async test strategy with Swift Testing, race detection, avoiding timing-based tests.\n","Review Swift concurrency code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.\n\nReview process:\n\n1. Scan for known-dangerous patterns using `references\u002Fhotspots.md` to prioritize what to inspect.\n1. Check for recent Swift 6.2 concurrency behavior using `references\u002Fnew-features.md`.\n1. Validate actor usage for reentrancy and isolation correctness using `references\u002Factors.md`.\n1. Ensure structured concurrency is preferred over unstructured where appropriate using `references\u002Fstructured.md`.\n1. Check unstructured task usage for correctness using `references\u002Funstructured.md`.\n1. Verify cancellation is handled correctly using `references\u002Fcancellation.md`.\n1. Validate async stream and continuation usage using `references\u002Fasync-streams.md`.\n1. Check bridging code between sync and async worlds using `references\u002Fbridging.md`.\n1. Review any legacy concurrency migrations using `references\u002Finterop.md`.\n1. Cross-check against common failure modes using `references\u002Fbug-patterns.md`.\n1. If the project has strict-concurrency errors, map diagnostics to fixes using `references\u002Fdiagnostics.md`.\n1. If reviewing tests, check async test patterns using `references\u002Ftesting.md`.\n\nIf doing a partial review, load only the relevant reference files.\n\n\n## Core Instructions\n\n- Target Swift 6.2 or later with strict concurrency checking.\n- If code spans multiple targets or packages, compare their concurrency build settings before assuming behavior should match.\n- Prefer structured concurrency (task groups) over unstructured (`Task {}`).\n- Prefer Swift concurrency over Grand Central Dispatch for new code. GCD is still acceptable in low-level code, framework interop, or performance-critical synchronous work where queues and locks are the right tool – don't flag these as errors.\n- If an API offers both `async`\u002F`await` and closure-based variants, always prefer `async`\u002F`await`.\n- Do not introduce third-party concurrency frameworks without asking first.\n- Do not suggest `@unchecked Sendable` to fix compiler errors. It silences the diagnostic without fixing the underlying race. Prefer actors, value types, or `sending` parameters instead. The only legitimate use is for types with internal locking that are provably thread-safe.\n\n\n## Output Format\n\nOrganize findings by file. For each issue:\n\n1. State the file and relevant line(s).\n2. Name the rule being violated.\n3. Show a brief before\u002Fafter code fix.\n\nSkip files with no issues. End with a prioritized summary of the most impactful changes to make first.\n\nExample output:\n\n### DataLoader.swift\n\n**Line 18: Actor reentrancy – state may have changed across the `await`.**\n\n```swift\n\u002F\u002F Before\nactor Cache {\n    var items: [String: Data] = [:]\n\n    func fetch(_ key: String) async throws -> Data {\n        if items[key] == nil {\n            items[key] = try await download(key)\n        }\n        return items[key]!\n    }\n}\n\n\u002F\u002F After\nactor Cache {\n    var items: [String: Data] = [:]\n\n    func fetch(_ key: String) async throws -> Data {\n        if let existing = items[key] { return existing }\n        let data = try await download(key)\n        items[key] = data\n        return data\n    }\n}\n```\n\n**Line 34: Use `withTaskGroup` instead of creating tasks in a loop.**\n\n```swift\n\u002F\u002F Before\nfor url in urls {\n    Task { try await fetch(url) }\n}\n\n\u002F\u002F After\ntry await withThrowingTaskGroup(of: Data.self) { group in\n    for url in urls {\n        group.addTask { try await fetch(url) }\n    }\n\n    for try await result in group {\n        process(result)\n    }\n}\n```\n\n### Summary\n\n1. **Correctness (high):** Actor reentrancy bug on line 18 may cause duplicate downloads and a force-unwrap crash.\n2. **Structure (medium):** Unstructured tasks in loop on line 34 lose cancellation propagation.\n\nEnd of example.\n\n\n## References\n\n- `references\u002Fhotspots.md` - Grep targets for code review: known-dangerous patterns and what to check for each.\n- `references\u002Fnew-features.md` - Swift 6.2 changes that alter review advice: default actor isolation, isolated conformances, caller-actor async behavior, `@concurrent`, `Task.immediate`, task naming, and priority escalation.\n- `references\u002Factors.md` - Actor reentrancy, shared-state annotations, global actor inference, and isolation patterns.\n- `references\u002Fstructured.md` - Task groups over loops, discarding task groups, concurrency limits.\n- `references\u002Funstructured.md` - Task vs Task.detached, when Task {} is a code smell.\n- `references\u002Fcancellation.md` - Cancellation propagation, cooperative checking, broken cancellation patterns.\n- `references\u002Fasync-streams.md` - AsyncStream factory, continuation lifecycle, back-pressure.\n- `references\u002Fbridging.md` - Checked continuations, wrapping legacy APIs, `@unchecked Sendable`.\n- `references\u002Finterop.md` - Migrating from GCD, `Mutex`\u002Flocks, completion handlers, delegates, and Combine.\n- `references\u002Fbug-patterns.md` - Common concurrency failure modes and their fixes.\n- `references\u002Fdiagnostics.md` - Strict-concurrency compiler errors, protocol conformance fixes, and likely remedies.\n- `references\u002Ftesting.md` - Async test strategy with Swift Testing, race detection, avoiding timing-based tests.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"Paul Hudson","1.0","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Ftwostraws-swift-concurrency-agent-skill\u002Fswift-concurrency-pro",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill swift-concurrency-pro",{"tool":41,"command":42},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill swift-concurrency-pro",{"tool":44,"command":45},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill swift-concurrency-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Ftwostraws-swift-concurrency-agent-skill\u002Fswift-concurrency-pro\u002FSkill.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"metadata.json","REFERENCE","参考文档",564,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Ftwostraws-swift-concurrency-agent-skill\u002Fswift-concurrency-pro\u002Fmetadata.json",[56,63,68,75,80,87],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":64,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":76,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":88,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]