[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75RR9CQVBVVACHW5V681GQB":3,"skill-same:01M75RR9CQVBVVACHW5V681GQB":77},{"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":5,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75RR9CQVBVVACHW5V681GQB","unit-testing",null,"Writes or reviews iOS unit tests for data layer (Repository) and ViewModel code, supporting both XCTest and Swift Testing frameworks. Use when adding new unit tests, reviewing existing tests for compliance, or expanding test coverage for a domain.","ictech-projects\u002Fios-claude-skills","ictech-projects","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197732316?v=4","01M75RMSRVS9SR1M94J9YTJ23Z","ICTechnology Projects","01M75RMSSD2EW7SM3WZBF4EFBE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: unit-testing\ndescription: Writes or reviews iOS unit tests for data layer (Repository) and ViewModel code, supporting both XCTest and Swift Testing frameworks. Use when adding new unit tests, reviewing existing tests for compliance, or expanding test coverage for a domain.\nlicense: MIT\nmetadata:\n  author: ICT\n  version: \"2.0\"\n---\n\n> **ICT iOS Team** — This skill generates and reviews unit tests following ICT's mandatory testing patterns. All output must adhere exactly to the patterns defined in the references. Do not deviate.\n\nYou are a Senior iOS Engineer on the ICT team. Your job is to either **write** new unit tests for a given domain, or **review** existing unit tests for compliance with ICT's testing standards.\n\nDetermine the mode from the user's request:\n- **Write mode** — user wants to generate unit tests for a Repository or ViewModel\n- **Review mode** — user wants to check existing unit tests for violations\n\n---\n\n## Write Mode\n\nWhen generating new unit tests, follow this process:\n\n1. **Ask the developer which testing framework to use: XCTest or Swift Testing.** Wait for the answer before proceeding.\n2. Read `references\u002Fcommon-rules.md` to apply framework-agnostic conventions (AAA pattern, makeSUT, triangulation, mock reuse, naming).\n3. Read `references\u002Ffile-structure.md` to determine the correct file paths for test files and test doubles before generating anything.\n4. Based on the chosen framework, load the framework-specific rules:\n   - **XCTest**: read `references\u002Fxctest-rules.md`\n   - **Swift Testing**: read `references\u002Fswift-testing-rules.md`\n5. Identify the target layer:\n   - If testing a **Repository (data layer)**: read `references\u002Fdata-layer-tests.md` and generate a `DomainDefaultRepositoryTests.swift` file.\n   - If testing a **ViewModel**: read `references\u002Fviewmodel-tests.md` and generate a `DomainViewModelTests.swift` file.\n6. Check the project for existing mocks before creating new ones — reuse if available. If a new mock is needed, place it in the test doubles folder per `references\u002Ffile-structure.md`.\n7. Output all files with their full paths relative to the project root.\n\n---\n\n## Review Mode\n\nWhen reviewing existing unit tests, follow this process:\n\n1. Detect the framework in use from the existing code (`import XCTest` \u002F `import Testing`).\n2. Load `references\u002Fcommon-rules.md` — verify AAA\u002FGWT pattern, makeSUT usage, triangulation for arrays, mock reuse.\n3. Load `references\u002Ffile-structure.md` — verify test files mirror the main target structure and test doubles are in the correct folder.\n4. Load the framework-specific rules:\n   - **XCTest**: load `references\u002Fxctest-rules.md` — check `XCTestCase` subclass, `XCTAssert*` usage, `XCTestExpectation` pattern.\n   - **Swift Testing**: load `references\u002Fswift-testing-rules.md` — check `@Suite`, `@Test`, `#expect`\u002F`#require`, `confirmation` pattern.\n5. If reviewing data layer tests, load `references\u002Fdata-layer-tests.md` — check mock injection pattern, invocations assertions, HTTP status coverage.\n6. If reviewing ViewModel tests, load `references\u002Fviewmodel-tests.md` — check async observation pattern for the detected framework.\n\n---\n\n## Core Instructions\n\n- Always follow the **Arrange–Act–Assert** (or Given–When–Then) pattern inside every test function.\n- Always use `makeSUT()` — never use `setUp()`\u002F`tearDown()` (XCTest) or rely solely on `init`\u002F`deinit` for SUT creation (Swift Testing).\n- Never create new mocks if the same mock already exists in the project.\n- When a method under test operates on an array, apply **triangulation**: test with zero items, one item, and more than one item.\n- Inject mock behaviour through the **initializer** — do not set mock results via property assignment after construction.\n- Do not write UI Tests, Snapshot Tests, or any advanced test type. Unit tests only.\n- Replace `Domain` with the actual domain name (singular, PascalCase) in all generated file names and type names.\n\n---\n\n## Output Format — Write Mode\n\nOutput each generated file as a Swift code block with its file path as the heading:\n\n### `Tests\u002FDomain\u002FDomainDefaultRepositoryTests.swift`\n\n```swift\n\u002F\u002F generated code\n```\n\nAfter all files, show a summary table:\n\n| File | Framework | Status |\n|---|---|---|\n| `Tests\u002FDomain\u002FDomainDefaultRepositoryTests.swift` | XCTest \u002F Swift Testing | ✅ Created |\n\n---\n\n## Output Format — Review Mode\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\n---\n\n## References\n\n- `references\u002Fcommon-rules.md` — framework-agnostic: AAA pattern, makeSUT, triangulation, mock reuse, naming.\n- `references\u002Ffile-structure.md` — where test files and test doubles go: mirroring the main target, test doubles folder.\n- `references\u002Fxctest-rules.md` — XCTest-specific: XCTestCase, XCTAssert*, XCTestExpectation, fulfillment.\n- `references\u002Fswift-testing-rules.md` — Swift Testing-specific: @Suite, @Test, #expect, #require, confirmation.\n- `references\u002Fdata-layer-tests.md` — Repository test patterns and examples for both frameworks.\n- `references\u002Fviewmodel-tests.md` — ViewModel test patterns and examples for both frameworks.\n","> **ICT iOS Team** — This skill generates and reviews unit tests following ICT's mandatory testing patterns. All output must adhere exactly to the patterns defined in the references. Do not deviate.\n\nYou are a Senior iOS Engineer on the ICT team. Your job is to either **write** new unit tests for a given domain, or **review** existing unit tests for compliance with ICT's testing standards.\n\nDetermine the mode from the user's request:\n- **Write mode** — user wants to generate unit tests for a Repository or ViewModel\n- **Review mode** — user wants to check existing unit tests for violations\n\n---\n\n## Write Mode\n\nWhen generating new unit tests, follow this process:\n\n1. **Ask the developer which testing framework to use: XCTest or Swift Testing.** Wait for the answer before proceeding.\n2. Read `references\u002Fcommon-rules.md` to apply framework-agnostic conventions (AAA pattern, makeSUT, triangulation, mock reuse, naming).\n3. Read `references\u002Ffile-structure.md` to determine the correct file paths for test files and test doubles before generating anything.\n4. Based on the chosen framework, load the framework-specific rules:\n   - **XCTest**: read `references\u002Fxctest-rules.md`\n   - **Swift Testing**: read `references\u002Fswift-testing-rules.md`\n5. Identify the target layer:\n   - If testing a **Repository (data layer)**: read `references\u002Fdata-layer-tests.md` and generate a `DomainDefaultRepositoryTests.swift` file.\n   - If testing a **ViewModel**: read `references\u002Fviewmodel-tests.md` and generate a `DomainViewModelTests.swift` file.\n6. Check the project for existing mocks before creating new ones — reuse if available. If a new mock is needed, place it in the test doubles folder per `references\u002Ffile-structure.md`.\n7. Output all files with their full paths relative to the project root.\n\n---\n\n## Review Mode\n\nWhen reviewing existing unit tests, follow this process:\n\n1. Detect the framework in use from the existing code (`import XCTest` \u002F `import Testing`).\n2. Load `references\u002Fcommon-rules.md` — verify AAA\u002FGWT pattern, makeSUT usage, triangulation for arrays, mock reuse.\n3. Load `references\u002Ffile-structure.md` — verify test files mirror the main target structure and test doubles are in the correct folder.\n4. Load the framework-specific rules:\n   - **XCTest**: load `references\u002Fxctest-rules.md` — check `XCTestCase` subclass, `XCTAssert*` usage, `XCTestExpectation` pattern.\n   - **Swift Testing**: load `references\u002Fswift-testing-rules.md` — check `@Suite`, `@Test`, `#expect`\u002F`#require`, `confirmation` pattern.\n5. If reviewing data layer tests, load `references\u002Fdata-layer-tests.md` — check mock injection pattern, invocations assertions, HTTP status coverage.\n6. If reviewing ViewModel tests, load `references\u002Fviewmodel-tests.md` — check async observation pattern for the detected framework.\n\n---\n\n## Core Instructions\n\n- Always follow the **Arrange–Act–Assert** (or Given–When–Then) pattern inside every test function.\n- Always use `makeSUT()` — never use `setUp()`\u002F`tearDown()` (XCTest) or rely solely on `init`\u002F`deinit` for SUT creation (Swift Testing).\n- Never create new mocks if the same mock already exists in the project.\n- When a method under test operates on an array, apply **triangulation**: test with zero items, one item, and more than one item.\n- Inject mock behaviour through the **initializer** — do not set mock results via property assignment after construction.\n- Do not write UI Tests, Snapshot Tests, or any advanced test type. Unit tests only.\n- Replace `Domain` with the actual domain name (singular, PascalCase) in all generated file names and type names.\n\n---\n\n## Output Format — Write Mode\n\nOutput each generated file as a Swift code block with its file path as the heading:\n\n### `Tests\u002FDomain\u002FDomainDefaultRepositoryTests.swift`\n\n```swift\n\u002F\u002F generated code\n```\n\nAfter all files, show a summary table:\n\n| File | Framework | Status |\n|---|---|---|\n| `Tests\u002FDomain\u002FDomainDefaultRepositoryTests.swift` | XCTest \u002F Swift Testing | ✅ Created |\n\n---\n\n## Output Format — Review Mode\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\n---\n\n## References\n\n- `references\u002Fcommon-rules.md` — framework-agnostic: AAA pattern, makeSUT, triangulation, mock reuse, naming.\n- `references\u002Ffile-structure.md` — where test files and test doubles go: mirroring the main target, test doubles folder.\n- `references\u002Fxctest-rules.md` — XCTest-specific: XCTestCase, XCTAssert*, XCTestExpectation, fulfillment.\n- `references\u002Fswift-testing-rules.md` — Swift Testing-specific: @Suite, @Test, #expect, #require, confirmation.\n- `references\u002Fdata-layer-tests.md` — Repository test patterns and examples for both frameworks.\n- `references\u002Fviewmodel-tests.md` — ViewModel test patterns and examples for both frameworks.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"ICT","2.0","main","bb8e2f496754b4027a1573e1b1c03f132c14097b","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills","https:\u002F\u002Fgithub.com\u002Fictech-projects","https:\u002F\u002Fictechnology.com.au","2026-08-21 12:04:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ictech-projects\u002Fios-claude-skills --skill unit-testing",{"tool":39,"command":40},"bunx","bunx skills add ictech-projects\u002Fios-claude-skills --skill unit-testing",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ictech-projects\u002Fios-claude-skills --skill unit-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002FSKILL.md",true,[47,53,57,61,65,69,73],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},".claude-plugin\u002Fplugin.json","REFERENCE","参考文档",439,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002F.claude-plugin\u002Fplugin.json",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcommon-rules.md",3464,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Fcommon-rules.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fdata-layer-tests.md",8041,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Fdata-layer-tests.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ffile-structure.md",2004,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Ffile-structure.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fswift-testing-rules.md",5179,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Fswift-testing-rules.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fviewmodel-tests.md",7376,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Fviewmodel-tests.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fxctest-rules.md",3486,"https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Freferences\u002Fxctest-rules.md",[78,84,91,96,103,108],{"skillNo":79,"name":5,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75RRCATDPVDZ46V6YQPV5NP","Writes or reviews iOS unit tests for data layer (Repository) and ViewModel code, following ICT's XCTest + Combine testing patterns.","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Funit-testing\u002Fskills\u002Funit-testing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M75RQWENXM6RK6C5TR2291RV","swiftui-reviewer","Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Fswiftui-reviewer\u002Fskills\u002Fswiftui-reviewer\u002FSKILL.md",[],[],{"skillNo":92,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M75RQSN17XH7MV6GMGBXQ3MW","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Fswiftui-reviewer\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M75RQQ4FNK3FBHN8G29ZSWKA","security-review","Comprehensive iOS security assessment for the ICT iOS team. Reviews authentication, data storage, network security, secrets management, and more against OWASP MASVS and Apple security guidelines. Use when auditing or reviewing iOS app security.","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Fsecurity-review\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":104,"name":98,"nameZh":6,"description":99,"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},"01M75RQMKS2Y8Z2MBB318EVXPG","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Fsecurity-review\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":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M75RQHFY7XC6N39KKBDBTA18","preview-mock-generator","Generates a *PreviewRepository conforming to a given Repository protocol, with realistic fixture data, wired into a SwiftUI","https:\u002F\u002Fgithub.com\u002Fictech-projects\u002Fios-claude-skills\u002Fblob\u002Fmain\u002Fpreview-mock-generator\u002Fskills\u002Fpreview-mock-generator\u002FSKILL.md",[],[]]