[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D2XWS7KKSD8GJ54BDSHC67":3,"skill-same:01M7D2XWS7KKSD8GJ54BDSHC67":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},"01M7D2XWS7KKSD8GJ54BDSHC67","swiftdata-pro",null,"Writes, reviews, and improves SwiftData code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use SwiftData.","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-swiftdata-agent-skill\u002Fswiftdata-pro\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: swiftdata-pro\ndescription: Writes, reviews, and improves SwiftData code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use SwiftData.\nlicense: MIT\nmetadata:\n  author: Paul Hudson\n  version: \"1.0\"\n---\n\nWrite and review SwiftData 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. Check for core SwiftData issues using `references\u002Fcore-rules.md`.\n1. Check that predicates are safe and supported using `references\u002Fpredicates.md`.\n1. If the project uses CloudKit, check for CloudKit-specific constraints using `references\u002Fcloudkit.md`.\n1. If the project targets iOS 18+, check for indexing opportunities using `references\u002Findexing.md`.\n1. If the project targets iOS 26+, check for class inheritance patterns using `references\u002Fclass-inheritance.md`.\n\nIf doing partial work, load only the relevant reference files.\n\n\n## Core Instructions\n\n- Target Swift 6.2 or later, using modern Swift concurrency.\n- The user strongly prefers to use SwiftData across the board. Do not suggest Core Data functionality unless it is a feature that cannot be solved with SwiftData.\n- Do not introduce third-party frameworks without asking first.\n- Use a consistent project structure, with folder layout determined by app features.\n\n\n## Output Format\n\nIf the user asks for a review, organize 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\nIf the user asks you to write or improve code, follow the same rules above but make the changes directly instead of returning a findings report.\n\nExample output:\n\n### Destination.swift\n\n**Line 8: Add an explicit delete rule for relationships.**\n\n```swift\n\u002F\u002F Before\nvar sights: [Sight]\n\n\u002F\u002F After\n@Relationship(deleteRule: .cascade, inverse: \\Sight.destination) var sights: [Sight]\n```\n\n**Line 22: Do not use `isEmpty == false` in predicates – it crashes at runtime. Use `!` instead.**\n\n```swift\n\u002F\u002F Before\n#Predicate\u003CDestination> { $0.sights.isEmpty == false }\n\n\u002F\u002F After\n#Predicate\u003CDestination> { !$0.sights.isEmpty }\n```\n\n### DestinationListView.swift\n\n**Line 5: `@Query` must only be used inside SwiftUI views.**\n\n```swift\n\u002F\u002F Before\nclass DestinationStore {\n    @Query var destinations: [Destination]\n}\n\n\u002F\u002F After\nclass DestinationStore {\n    var modelContext: ModelContext\n\n    func fetchDestinations() throws -> [Destination] {\n        try modelContext.fetch(FetchDescriptor\u003CDestination>())\n    }\n}\n```\n\n### Summary\n\n1. **Data loss (high):** Missing delete rule on line 8 of Destination.swift means sights will be orphaned when a destination is deleted.\n2. **Crash (high):** `isEmpty == false` on line 22 will crash at runtime – use `!isEmpty` instead.\n3. **Incorrect behavior (high):** `@Query` on line 5 of DestinationListView.swift only works inside SwiftUI views.\n\nEnd of example.\n\n\n## References\n\n- `references\u002Fcore-rules.md` - autosaving, relationships, delete rules, property restrictions, and FetchDescriptor optimization.\n- `references\u002Fpredicates.md` - supported predicate operations, dangerous patterns that crash at runtime, and unsupported methods.\n- `references\u002Fcloudkit.md` - CloudKit-specific constraints including uniqueness, optionality, and eventual consistency.\n- `references\u002Findexing.md` - database indexing for iOS 18+, including single and compound property indexes.\n- `references\u002Fclass-inheritance.md` - model subclassing for iOS 26+, including @available requirements, schema setup, and predicate filtering.\n","Write and review SwiftData 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. Check for core SwiftData issues using `references\u002Fcore-rules.md`.\n1. Check that predicates are safe and supported using `references\u002Fpredicates.md`.\n1. If the project uses CloudKit, check for CloudKit-specific constraints using `references\u002Fcloudkit.md`.\n1. If the project targets iOS 18+, check for indexing opportunities using `references\u002Findexing.md`.\n1. If the project targets iOS 26+, check for class inheritance patterns using `references\u002Fclass-inheritance.md`.\n\nIf doing partial work, load only the relevant reference files.\n\n\n## Core Instructions\n\n- Target Swift 6.2 or later, using modern Swift concurrency.\n- The user strongly prefers to use SwiftData across the board. Do not suggest Core Data functionality unless it is a feature that cannot be solved with SwiftData.\n- Do not introduce third-party frameworks without asking first.\n- Use a consistent project structure, with folder layout determined by app features.\n\n\n## Output Format\n\nIf the user asks for a review, organize 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\nIf the user asks you to write or improve code, follow the same rules above but make the changes directly instead of returning a findings report.\n\nExample output:\n\n### Destination.swift\n\n**Line 8: Add an explicit delete rule for relationships.**\n\n```swift\n\u002F\u002F Before\nvar sights: [Sight]\n\n\u002F\u002F After\n@Relationship(deleteRule: .cascade, inverse: \\Sight.destination) var sights: [Sight]\n```\n\n**Line 22: Do not use `isEmpty == false` in predicates – it crashes at runtime. Use `!` instead.**\n\n```swift\n\u002F\u002F Before\n#Predicate\u003CDestination> { $0.sights.isEmpty == false }\n\n\u002F\u002F After\n#Predicate\u003CDestination> { !$0.sights.isEmpty }\n```\n\n### DestinationListView.swift\n\n**Line 5: `@Query` must only be used inside SwiftUI views.**\n\n```swift\n\u002F\u002F Before\nclass DestinationStore {\n    @Query var destinations: [Destination]\n}\n\n\u002F\u002F After\nclass DestinationStore {\n    var modelContext: ModelContext\n\n    func fetchDestinations() throws -> [Destination] {\n        try modelContext.fetch(FetchDescriptor\u003CDestination>())\n    }\n}\n```\n\n### Summary\n\n1. **Data loss (high):** Missing delete rule on line 8 of Destination.swift means sights will be orphaned when a destination is deleted.\n2. **Crash (high):** `isEmpty == false` on line 22 will crash at runtime – use `!isEmpty` instead.\n3. **Incorrect behavior (high):** `@Query` on line 5 of DestinationListView.swift only works inside SwiftUI views.\n\nEnd of example.\n\n\n## References\n\n- `references\u002Fcore-rules.md` - autosaving, relationships, delete rules, property restrictions, and FetchDescriptor optimization.\n- `references\u002Fpredicates.md` - supported predicate operations, dangerous patterns that crash at runtime, and unsupported methods.\n- `references\u002Fcloudkit.md` - CloudKit-specific constraints including uniqueness, optionality, and eventual consistency.\n- `references\u002Findexing.md` - database indexing for iOS 18+, including single and compound property indexes.\n- `references\u002Fclass-inheritance.md` - model subclassing for iOS 26+, including @available requirements, schema setup, and predicate filtering.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"Paul Hudson","1.0","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Ftwostraws-swiftdata-agent-skill\u002Fswiftdata-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 swiftdata-pro",{"tool":41,"command":42},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill swiftdata-pro",{"tool":44,"command":45},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill swiftdata-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Ftwostraws-swiftdata-agent-skill\u002Fswiftdata-pro\u002FSkill.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"metadata.json","REFERENCE","参考文档",492,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Ftwostraws-swiftdata-agent-skill\u002Fswiftdata-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",[],[]]