[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BSW068PA7N351SJWX9MY0N":3,"skill-same:01M6BSW068PA7N351SJWX9MY0N":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":17,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6BSW068PA7N351SJWX9MY0N","modernize-tests","Swift 测试套件现代化改造","Modernize test suites to use modern Swift Testing features or migrate from XCTest.","将测试套件现代化改造，以使用现代 Swift Testing 特性，或从 XCTest 迁移过来。","mikker\u002Fdotfiles","mikker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2819?v=4","01M6BSPF9WRVEQ89CW9NNJ7JK4","Mikkel Malmberg","01M6BSPFEEZKZSB4B603CZGV9W",116,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fmodernize-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34],"modernize tests","testing","swift","test","2026-11-10 10:12:30",false,"---\nname: modernize-tests\ndescription: \"Modernize test suites to use modern Swift Testing features or migrate from XCTest.\"\n---\n# Modernize Tests\n\nTest modernization refers to two potential actions: migrating from XCTest to Swift Testing, and updating existing Swift Testing tests to use recommended patterns.\n\nXCTests should be migrated to Swift Testing when possible. However, not all XCTests can be migrated to Swift Testing.\n- UI tests (those that use XCUIAutomation) cannot be written with Swift Testing, and must remain XCTests.\n- XCTests that use the `measure { ... }` family of APIs for performance measurement cannot be migrated. However, other test methods within an XCTestCase that do not use XCTest performance APIs can be migrated.\n\n## Migration Reference\n\n### Imports\n\nReplace `import XCTest` with `import Testing`. A file can import both if it contains mixed test content during incremental migration.\n\nWhen removing `import XCTest`, check whether the file uses Foundation types (URL, CharacterSet, ProcessInfo, Data, etc.). XCTest re-exports Foundation, so add `import Foundation` if needed.\n\n### Test Classes to Suites\n\nRemove `XCTestCase` inheritance. Prefer structs over classes:\n\n- `final class FoodTruckTests: XCTestCase { ... }` -> `struct FoodTruckTests { ... }`\n\n### Move setUp\u002FtearDown code to init\u002Fdeinit\n\nReplace `override func setUp()` with `init()` (can be `async throws`). Replace `override func tearDown()` with `deinit`. If `deinit` is needed, use\n`actor` or `final class` instead of `struct` (since structs have no `deinit`). Change stored properties to not use implicitly-unwrapped optional\ntypes, and move their initial assignment from `setUp` to either be initialized inline or, if the initialization is complex, in an initializer.\n\n```\nstruct MyTests {\n    var fixture = Fixture()\n    mutating func `Fixture behaves as expected`() {\n        #expect(fixture.doSomething())\n    }\n}\n```\n\nAvoid pulling instance variables into function bodies; this can cause noise. Swift Testing reinvokes the initializer fresh before each test runs.\nIf the test mutates an instance variable with value semantics, you may need to mark the test function `mutating`.\n\n### Test Methods\n\nReplace the `test` name prefix with the `@Test` attribute. If the resulting test name includes multiple camelCase words,\nuse a raw identifier with the test name in sentence case.\n\n- `func testEngineDoesNotStall() { ... }` -> `@Test func `Engine does not stall`() { ... }`\n- `func testIgnition() { ... }` -> `@Test func ignition() { ... }`\n\nTest functions can be `async`, `throws`, or `async throws`, and can be isolated to a global actor with `@MainActor`.\n\n### Assertions to Expectations\n\nWhen migrating a test from XCTest to Swift Testing, apply these mappings:\n\n`XCTAssert(x)`, `XCTAssertTrue(x)` -> `#expect(x)`\n`XCTAssertFalse(x)` -> `#expect(!x)`\n`XCTAssertNil(x)` -> `#expect(x == nil)`\n`XCTAssertNotNil(x)` -> `#expect(x != nil)`\n`XCTAssertEqual(x, y)` -> `#expect(x == y)`\n`XCTAssertNotEqual(x, y)` -> `#expect(x != y)`\n`XCTAssertIdentical(x, y)` -> `#expect(x === y)`\n`XCTAssertNotIdentical(x, y)` -> `#expect(x !== y)`\n`XCTAssertGreaterThan(x, y)` -> `#expect(x > y)`\n`XCTAssertGreaterThanOrEqual(x, y)` -> `#expect(x >= y)`\n`XCTAssertLessThanOrEqual(x, y)` -> `#expect(x \u003C= y)`\n`XCTAssertLessThan(x, y)` -> `#expect(x \u003C y)`\n`try XCTUnwrap(x)` -> `try #require(x)`\n\nThere is no direct equivalent for `XCTAssertEqual(_:_:accuracy:)`; use floating point math directly.\n\n### Errors\n\nWhen the error type is `Equatable` and the exact value is known, prefer to check the specific error value.\n\n```\nXCTAssertThrowsError(try f())\n```\n->\n```\n#expect(throws: (any Error).self) {\n    try f()\n}\n```\n\n```\nXCTAssertThrowsError(try f()) { error in\n    XCTAssertEqual(error, specificError)\n}\n```\n->\n```\n#expect(throws: specificError) {\n    try f()\n}\n```\n\n```\nXCTAssertThrowsError(try f()) { error in\n    \u002F\u002F Check error\n}\n```\n->\n```\nlet error = #expect(throws: (any Error).self) {\n    try f()\n}\n\u002F\u002F Check error\n```\n\n```\nXCTAssertNoThrow(try f())\n```\n->\n```\n#expect(throws: Never.self) {\n    try f()\n}\n```\n\n### continueAfterFailure\n\nBy default `continueAfterFailure` is true, which means expectations do not halt the test run.\nSome XCTestCases set `continueAfterFailure = false`, which means the `XCTAssert` family of functions\nwill throw Objective-C exceptions that halt the test execution.\n\nWhen a test method sets `continueAfterFailure = false`, all subsequent assertions need to be `try #require(x)`\ninstead of `#expect(x)` to preserve this behavior. When adding `try #require(x)`, add `throws` to the affected methods.\n\nWhen `continueAfterFailure = false` is set in `setUp`, the conversion to `try #require(x)` must apply\nto **all assertions in all test methods** in that class.\n\n### Promote `Issue.record`\u002F`XCTFail` to expectations\n\nWherever it is not disruptive, convert usage of `Issue.record` or `XCTFail` to #expect or #require,\ndepending if the test exits after (taking `continueAfterFailure` into account).\n\nIn some cases, the source of the expectation itself is sufficient to explain the failure,\nand the comment would be redundant.\n\nFor example, the following structures should be converted as such:\n\n```\nguard let object = somethingOptional() else {\n    Issue.record(\"Could not get object\")\n    return\n}\n\nguard object.isAvailable() else {\n    Issue.record(\"Object not available\")\n    return\n}\n\nif !object.performOperation() {\n    Issue.record(\"Failed to perform operation\")\n}\n```\n->\n```\nlet object = try #require(somethingOptional(), \"Could not get object\")\ntry #require(object.isAvailable())\n#expect(object.performOperation())\n```\n\n### Asynchronous Expectations to Confirmations\n\nReplace `XCTestExpectation` + `fulfill()` + `await fulfillment(of:)` with `confirmation()`:\n\n```swift\n\u002F\u002F Before\nlet exp = expectation(description: \"...\")\nhandler = { exp.fulfill() }\ndoWork()\nawait fulfillment(of: [exp])\n\n\u002F\u002F After\nawait confirmation(\"...\") { confirm in\n    handler = { confirm() }\n    doWork()\n}\n```\n\nFor `assertForOverFulfill = false` with an `expectedFulfillmentCount`, use a range:\n`await confirmation(\"...\", expectedCount: 10...) { confirm in ... }`\n\n### Skipping Tests\n\nReplace `XCTSkipIf`\u002F`XCTSkipUnless` with traits on the test or suite:\n\n- `try XCTSkipIf(condition)` -> `@Test(.disabled(if: condition))`\n- `try XCTSkipUnless(condition)` -> `@Test(.enabled(if: condition))`\n\nReplace `throw XCTSkip(\"reason\")` mid-test with `try Test.cancel(\"reason\")`.\n\nWhen a skip checks OS version or platform availability, replace it with an `@available` attribute on the test function instead of `.enabled(if:)`.\n\n### Known Issues\n\nReplace `XCTExpectFailure(\"...\", ...) { ... }` with `withKnownIssue(\"...\") { ... }`.\n\nFor intermittent failures, replace `.nonStrict()` option (or the shorthand `strict: false` parameter) with `isIntermittent: true`.\n\nFor conditional\u002Fmatching: use `when:` and `matching:` parameters:\n\n```swift\nwithKnownIssue(\"...\") {\n    try riskyOperation()\n} when: {\n    shouldExpectFailure\n} matching: { issue in\n    issue.error != nil\n}\n```\n\n### Concurrency and Serial Execution\n\nXCTest runs synchronous tests on the main actor and sequentially within a suite by default. Swift Testing runs all test functions on an arbitrary task\nand in parallel. Add `@MainActor` only if a test explicitly relied on main-actor isolation in its XCTest form, and add `@Suite(.serialized)` if\ntests depend on shared state.\n\n### Attachments\n\nReplace `XCTAttachment` + `self.add(attachment)` with `Attachment.record(value)`. The attached type must conform to `Attachable` (automatic for\n`Codable` and `NSSecureCoding` types when Foundation is imported).\n\n## Modernization Guidelines\n\n- When migrating from XCTest, migrate one test class at a time. A file can contain both XCTest and Swift Testing tests during migration.\n- Prefer `struct` for suites unless `deinit` (tearDown) is needed, in which case use `actor` or `final class`.\n- Remove the `test` prefix from method names when adding `@Test`. For lengthier test names which read like a sentence, use raw identifier syntax to\nimprove readability, e.g. `@Test func `Authenticate, fetch summary, then check count`() { ... }`.\n- Use raw identifier syntax only for multi-word names that read like a sentence.\n- When migrating `setUp`, convert implicitly-unwrapped optional properties to non-optional properties initialized in-place, or in `init` if initialization is complex, may throw, or is async.\n- Look for explicit `XCTFail`\u002F`Issue.record` calls that could be converted to `#expect` or `#require`\n- Do not change `try #require` calls into `#expect`; this changes the behavior of tests.\n- Add `@MainActor` only to tests that explicitly relied on XCTest's implicit main-actor isolation. Do not add it unnecessarily.\n- Look for tests that loop over inputs or many repeated tests with the same logic and convert them to parameterized tests using `@Test(arguments:)`.\n- For suites with shared mutable state between tests, add `@Suite(.serialized)` and consider using `actor` or `class` instead of `struct`.\n- Do not introduce usage of underscore-prefixed symbols such as `#_sourceLocation`; only use public API.\n  For source locations, always use the full `SourceLocation(fileID:filePath:line:column:)` initializer.\n- If the test suite already uses #_sourceLocation, do not replace the existing usage as part of modernization.\n- Split this work over multiple agents if necessary if the modernization task is complex","# Modernize Tests\n\nTest modernization refers to two potential actions: migrating from XCTest to Swift Testing, and updating existing Swift Testing tests to use recommended patterns.\n\nXCTests should be migrated to Swift Testing when possible. However, not all XCTests can be migrated to Swift Testing.\n- UI tests (those that use XCUIAutomation) cannot be written with Swift Testing, and must remain XCTests.\n- XCTests that use the `measure { ... }` family of APIs for performance measurement cannot be migrated. However, other test methods within an XCTestCase that do not use XCTest performance APIs can be migrated.\n\n## Migration Reference\n\n### Imports\n\nReplace `import XCTest` with `import Testing`. A file can import both if it contains mixed test content during incremental migration.\n\nWhen removing `import XCTest`, check whether the file uses Foundation types (URL, CharacterSet, ProcessInfo, Data, etc.). XCTest re-exports Foundation, so add `import Foundation` if needed.\n\n### Test Classes to Suites\n\nRemove `XCTestCase` inheritance. Prefer structs over classes:\n\n- `final class FoodTruckTests: XCTestCase { ... }` -> `struct FoodTruckTests { ... }`\n\n### Move setUp\u002FtearDown code to init\u002Fdeinit\n\nReplace `override func setUp()` with `init()` (can be `async throws`). Replace `override func tearDown()` with `deinit`. If `deinit` is needed, use\n`actor` or `final class` instead of `struct` (since structs have no `deinit`). Change stored properties to not use implicitly-unwrapped optional\ntypes, and move their initial assignment from `setUp` to either be initialized inline or, if the initialization is complex, in an initializer.\n\n```\nstruct MyTests {\n    var fixture = Fixture()\n    mutating func `Fixture behaves as expected`() {\n        #expect(fixture.doSomething())\n    }\n}\n```\n\nAvoid pulling instance variables into function bodies; this can cause noise. Swift Testing reinvokes the initializer fresh before each test runs.\nIf the test mutates an instance variable with value semantics, you may need to mark the test function `mutating`.\n\n### Test Methods\n\nReplace the `test` name prefix with the `@Test` attribute. If the resulting test name includes multiple camelCase words,\nuse a raw identifier with the test name in sentence case.\n\n- `func testEngineDoesNotStall() { ... }` -> `@Test func `Engine does not stall`() { ... }`\n- `func testIgnition() { ... }` -> `@Test func ignition() { ... }`\n\nTest functions can be `async`, `throws`, or `async throws`, and can be isolated to a global actor with `@MainActor`.\n\n### Assertions to Expectations\n\nWhen migrating a test from XCTest to Swift Testing, apply these mappings:\n\n`XCTAssert(x)`, `XCTAssertTrue(x)` -> `#expect(x)`\n`XCTAssertFalse(x)` -> `#expect(!x)`\n`XCTAssertNil(x)` -> `#expect(x == nil)`\n`XCTAssertNotNil(x)` -> `#expect(x != nil)`\n`XCTAssertEqual(x, y)` -> `#expect(x == y)`\n`XCTAssertNotEqual(x, y)` -> `#expect(x != y)`\n`XCTAssertIdentical(x, y)` -> `#expect(x === y)`\n`XCTAssertNotIdentical(x, y)` -> `#expect(x !== y)`\n`XCTAssertGreaterThan(x, y)` -> `#expect(x > y)`\n`XCTAssertGreaterThanOrEqual(x, y)` -> `#expect(x >= y)`\n`XCTAssertLessThanOrEqual(x, y)` -> `#expect(x \u003C= y)`\n`XCTAssertLessThan(x, y)` -> `#expect(x \u003C y)`\n`try XCTUnwrap(x)` -> `try #require(x)`\n\nThere is no direct equivalent for `XCTAssertEqual(_:_:accuracy:)`; use floating point math directly.\n\n### Errors\n\nWhen the error type is `Equatable` and the exact value is known, prefer to check the specific error value.\n\n```\nXCTAssertThrowsError(try f())\n```\n->\n```\n#expect(throws: (any Error).self) {\n    try f()\n}\n```\n\n```\nXCTAssertThrowsError(try f()) { error in\n    XCTAssertEqual(error, specificError)\n}\n```\n->\n```\n#expect(throws: specificError) {\n    try f()\n}\n```\n\n```\nXCTAssertThrowsError(try f()) { error in\n    \u002F\u002F Check error\n}\n```\n->\n```\nlet error = #expect(throws: (any Error).self) {\n    try f()\n}\n\u002F\u002F Check error\n```\n\n```\nXCTAssertNoThrow(try f())\n```\n->\n```\n#expect(throws: Never.self) {\n    try f()\n}\n```\n\n### continueAfterFailure\n\nBy default `continueAfterFailure` is true, which means expectations do not halt the test run.\nSome XCTestCases set `continueAfterFailure = false`, which means the `XCTAssert` family of functions\nwill throw Objective-C exceptions that halt the test execution.\n\nWhen a test method sets `continueAfterFailure = false`, all subsequent assertions need to be `try #require(x)`\ninstead of `#expect(x)` to preserve this behavior. When adding `try #require(x)`, add `throws` to the affected methods.\n\nWhen `continueAfterFailure = false` is set in `setUp`, the conversion to `try #require(x)` must apply\nto **all assertions in all test methods** in that class.\n\n### Promote `Issue.record`\u002F`XCTFail` to expectations\n\nWherever it is not disruptive, convert usage of `Issue.record` or `XCTFail` to #expect or #require,\ndepending if the test exits after (taking `continueAfterFailure` into account).\n\nIn some cases, the source of the expectation itself is sufficient to explain the failure,\nand the comment would be redundant.\n\nFor example, the following structures should be converted as such:\n\n```\nguard let object = somethingOptional() else {\n    Issue.record(\"Could not get object\")\n    return\n}\n\nguard object.isAvailable() else {\n    Issue.record(\"Object not available\")\n    return\n}\n\nif !object.performOperation() {\n    Issue.record(\"Failed to perform operation\")\n}\n```\n->\n```\nlet object = try #require(somethingOptional(), \"Could not get object\")\ntry #require(object.isAvailable())\n#expect(object.performOperation())\n```\n\n### Asynchronous Expectations to Confirmations\n\nReplace `XCTestExpectation` + `fulfill()` + `await fulfillment(of:)` with `confirmation()`:\n\n```swift\n\u002F\u002F Before\nlet exp = expectation(description: \"...\")\nhandler = { exp.fulfill() }\ndoWork()\nawait fulfillment(of: [exp])\n\n\u002F\u002F After\nawait confirmation(\"...\") { confirm in\n    handler = { confirm() }\n    doWork()\n}\n```\n\nFor `assertForOverFulfill = false` with an `expectedFulfillmentCount`, use a range:\n`await confirmation(\"...\", expectedCount: 10...) { confirm in ... }`\n\n### Skipping Tests\n\nReplace `XCTSkipIf`\u002F`XCTSkipUnless` with traits on the test or suite:\n\n- `try XCTSkipIf(condition)` -> `@Test(.disabled(if: condition))`\n- `try XCTSkipUnless(condition)` -> `@Test(.enabled(if: condition))`\n\nReplace `throw XCTSkip(\"reason\")` mid-test with `try Test.cancel(\"reason\")`.\n\nWhen a skip checks OS version or platform availability, replace it with an `@available` attribute on the test function instead of `.enabled(if:)`.\n\n### Known Issues\n\nReplace `XCTExpectFailure(\"...\", ...) { ... }` with `withKnownIssue(\"...\") { ... }`.\n\nFor intermittent failures, replace `.nonStrict()` option (or the shorthand `strict: false` parameter) with `isIntermittent: true`.\n\nFor conditional\u002Fmatching: use `when:` and `matching:` parameters:\n\n```swift\nwithKnownIssue(\"...\") {\n    try riskyOperation()\n} when: {\n    shouldExpectFailure\n} matching: { issue in\n    issue.error != nil\n}\n```\n\n### Concurrency and Serial Execution\n\nXCTest runs synchronous tests on the main actor and sequentially within a suite by default. Swift Testing runs all test functions on an arbitrary task\nand in parallel. Add `@MainActor` only if a test explicitly relied on main-actor isolation in its XCTest form, and add `@Suite(.serialized)` if\ntests depend on shared state.\n\n### Attachments\n\nReplace `XCTAttachment` + `self.add(attachment)` with `Attachment.record(value)`. The attached type must conform to `Attachable` (automatic for\n`Codable` and `NSSecureCoding` types when Foundation is imported).\n\n## Modernization Guidelines\n\n- When migrating from XCTest, migrate one test class at a time. A file can contain both XCTest and Swift Testing tests during migration.\n- Prefer `struct` for suites unless `deinit` (tearDown) is needed, in which case use `actor` or `final class`.\n- Remove the `test` prefix from method names when adding `@Test`. For lengthier test names which read like a sentence, use raw identifier syntax to\nimprove readability, e.g. `@Test func `Authenticate, fetch summary, then check count`() { ... }`.\n- Use raw identifier syntax only for multi-word names that read like a sentence.\n- When migrating `setUp`, convert implicitly-unwrapped optional properties to non-optional properties initialized in-place, or in `init` if initialization is complex, may throw, or is async.\n- Look for explicit `XCTFail`\u002F`Issue.record` calls that could be converted to `#expect` or `#require`\n- Do not change `try #require` calls into `#expect`; this changes the behavior of tests.\n- Add `@MainActor` only to tests that explicitly relied on XCTest's implicit main-actor isolation. Do not add it unnecessarily.\n- Look for tests that loop over inputs or many repeated tests with the same logic and convert them to parameterized tests using `@Test(arguments:)`.\n- For suites with shared mutable state between tests, add `@Suite(.serialized)` and consider using `actor` or `class` instead of `struct`.\n- Do not introduce usage of underscore-prefixed symbols such as `#_sourceLocation`; only use public API.\n  For source locations, always use the full `SourceLocation(fileID:filePath:line:column:)` initializer.\n- If the test suite already uses #_sourceLocation, do not replace the existing usage as part of modernization.\n- Split this work over multiple agents if necessary if the modernization task is complex",{"name":5,"description":7},"master","8d883d350240b10cc23da854de1fb212e889caed","agents.symlink\u002Fskills\u002Fxcode-skills\u002Fmodernize-tests",4,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fmikker","https:\u002F\u002Fmikkelmalmberg.com\u002Fama","Top Highlight – research at @githubnext","2026-11-10 22:09:39",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add mikker\u002Fdotfiles --skill modernize-tests",{"tool":55,"command":56},"bunx","bunx skills add mikker\u002Fdotfiles --skill modernize-tests",{"tool":58,"command":59},"pnpm","pnpm dlx skills add mikker\u002Fdotfiles --skill modernize-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fmodernize-tests\u002FSKILL.md",true,[],[64,74,101,124,149,170],{"skillNo":65,"name":66,"nameZh":17,"description":67,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":35},"01M6WFXRC2WZQA9G5AT4D6PCAY","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Funslop\u002FSKILL.md",[],[66,71,72,73],"writing","cut","true",{"skillNo":75,"name":76,"nameZh":17,"description":77,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":35},"01M6WFWGJTZWZTVED8A7DHZSCB","stageshow","Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say \"faux UI\". React and plain CSS.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FSKILL.md",[],[76,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"css","react","windows","browser","dashboards","product","ui","notifications","Animation","walkthrough","marketing","never","feature","as","app","framed","card","interface","hero",{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":35},"01M6WFW0TZQ1H9C9X4HMZBTBYZ","clean-copy","Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up \u002F tighten copy.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fclean-copy\u002FSKILL.md",[],[108,109,110,99,111,112,113,114,115,116,71,117,118,119,120,93,121,122,72,123],"copy","clean copy","clean","labels","states","when","restate","empty","STRING","Captions","text","user","use","up","bug","tighten",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":138,"publishedAt":35},"01M6BSWBGGT11ZA2BQ0EJH2ZBN","elyx","Elyx 设计文件处理","Elyx is a design tool with local, AI-friendly `.elyx` files for screens, components, layouts, flows, and design systems. This skill is only available to agents running in external harnesses while using the Elyx CLI. It is unavailable and must not be used when running in the ACP harness inside the Elyx app. In external harnesses, use this skill before reading, reasoning about, or answering any question that touches Elyx or `.elyx` files — authoring, editing, validating, inspecting, reviewing, refactoring, comparing, or recommending changes, including read-only analysis where you produce no edit. Do not reason about `.elyx` from source text alone; imports, instances, overrides, and layout only resolve through the tools.","Elyx 是一款设计工具，使用本地的、对 AI 友好的 `.elyx` 文件来管理屏幕、组件、布局、流程和设计系统。此技能仅对在外部 harness 中运行并使用 Elyx CLI 的智能体可用。在 Elyx 应用内部的 ACP harness 中运行时不可用，且不得使用。在外部 harness 中，凡涉及 Elyx 或 `.elyx` 文件的问题——包括创作、编辑、验证、检查、审查、重构、比较或推荐修改，以及不产生任何编辑的只读分析——在读取、推理或回答之前都应先使用此技能。不要仅凭源文本推断 `.elyx`；导入、实例、覆盖和布局只能通过工具来解析。","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002Fskills\u002Felyx\u002FSKILL.md",[132,135],{"categoryNo":133,"categoryName":134,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKC3WYCB32755485KS6","视觉设计",{"categoryNo":136,"categoryName":137,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",[126,139,140,141,142,143,144,145,146,147,148],"acp","design","cli","components","reasoning","design systems","harness","produce","Tools","analysis",{"skillNo":150,"name":151,"nameZh":152,"description":153,"descriptionZh":154,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":155,"categories":156,"keywords":163,"publishedAt":35},"01M6BSW8K6Z805WVG0670SHXY9","uikit-app-modernization","UIKit 应用多窗口现代化改造","Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.","通过将旧的共享状态 API 替换为符合上下文的现代替代方案，使 UIKit 应用现代化以适配多窗口环境。这包括对 mainScreen、interfaceOrientation、application 与 scene 生命周期，以及安全区域 inset 更新的引用。","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fuikit-app-modernization\u002FSKILL.md",[157,160],{"categoryNo":158,"categoryName":159,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":161,"categoryName":162,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CA037B4PDBN5RD34KV8RPR","Apple 平台应用开发",[164,165,166,167,168,169],"uikit app modernization","app modernization","modernization","safe","state","lifecycle",{"skillNo":171,"name":172,"nameZh":173,"description":174,"descriptionZh":175,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":176,"categories":177,"keywords":180,"publishedAt":35},"01M6BSW5SCT7GQ4QX7CBSB4WF1","swiftui-whats-new-27","SwiftUI 27 新特性与变更","New SwiftUI APIs, behaviors, and deprecations in the 2027 OS releases (iOS 27 and aligned macOS\u002FwatchOS\u002FtvOS\u002FvisionOS). Consult when asked what's new in SwiftUI 27, or when working with: - @State compile errors after an SDK update (\"used before being initialized\", \"invalid redeclaration of synthesized property\") or @State becaming a macro - @ViewBuilder\u002F@ContentBuilder ambiguous overloads or type-check regressions; drag-to-reorder in any container (List, stacks, grids, custom layouts) via reorderable()\u002FreorderContainer and its drag-and-drop - AsyncImage caching, reloading on scroll, or a custom URLSession - Swipe actions outside List (ScrollView, LazyVStack, LazyVGrid) via swipeActions()\u002FswipeActionsContainer() - Toolbar overflow, visibility (visibilityPriority, ToolbarOverflowMenu, toolbarMinimizeBehavior), and pinning - Presenting a confirmationDialog or alert from an optional item binding","2027 年操作系统版本（iOS 27 及同步的 macOS\u002FwatchOS\u002FtvOS\u002FvisionOS）中新增的 SwiftUI API、行为变更和弃用项。当被问及 SwiftUI 27 有哪些新特性，或处理以下工作时请查阅： - SDK 更新后的 @State 编译错误（\"used before being initialized\"、\"invalid redeclaration of synthesized property\"），或 @State 变成宏 - @ViewBuilder\u002F@ContentBuilder 的歧义重载或类型检查回归；通过 reorderable()\u002FreorderContainer 及其拖放功能在任意容器（List、stacks、grids、自定义布局）中实现拖拽重排 - AsyncImage 缓存、滚动时重新加载或使用自定义 URLSession - 通过 swipeActions()\u002FswipeActionsContainer() 在 List 之外（ScrollView、LazyVStack、LazyVGrid）使用滑动操作 - Toolbar 溢出、可见性（visibilityPriority、ToolbarOverflowMenu、toolbarMinimizeBehavior）与固定（pinning） - 从可选 item 绑定呈现 confirmationDialog 或 alert","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fswiftui-whats-new-27\u002FSKILL.md",[178,179],{"categoryNo":158,"categoryName":159,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":161,"categoryName":162,"taxonomyType":28,"taxonomyTypeDesc":29},[181,182,183,168,184,185,186,187,188],"swiftui whats new 27","sdk","update","compile","actions","ios","macro","macos"]