[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4F8ZW1W0ERPMDBRKDW7YB":3,"skill-same:01M6C4F8ZW1W0ERPMDBRKDW7YB":80},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":17,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6C4F8ZW1W0ERPMDBRKDW7YB","xcuitest","XCTest UI自动化测试","WHEN authoring or repairing XCTest UI automation with XCUIApplication, accessible queries, launch fixtures, permission alerts or screenshot comparisons; NOT for non-UI XCTest, Swift Testing, unchanged test execution or visual taste review; provides isolated UI-test patterns and observable lifecycle assertions.","当编写或修复使用 XCUIApplication 的 XCTest UI 自动化时使用，包括无障碍查询、启动夹具、权限弹窗或截图比较；不适用于非 UI 的 XCTest、Swift Testing、未更改的测试执行或视觉审美评审；提供隔离的 UI 测试模式和可观察的生命周期断言。","mintuz\u002Fskills","mintuz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F447031?v=4","01M6BVWJYSVR4XQC9AQCEMWQRG","Adam Bulmer","01M6C4DCXKNYZB281YB3PZDJJG",35,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Fxcuitest\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41],"testing","swift","review","automation","test","launch","screenshot","ui","execution","lifecycle","swift testing","2026-11-10 10:12:30",false,"---\nname: xcuitest\ndescription: >\n  WHEN authoring or repairing XCTest UI automation with XCUIApplication,\n  accessible queries, launch fixtures, permission alerts or screenshot comparisons;\n  NOT for non-UI XCTest, Swift Testing, unchanged test execution or visual taste review;\n  provides isolated UI-test patterns and observable lifecycle assertions.\n---\n\n# Author Reliable XCTest UI Automation\n\nAuthor UI tests in the project's existing XCTest UI target: `import XCTest`,\n`XCTestCase`, `test…` methods, `XCUIApplication` and XCTest assertions.\nSwift Testing's `@Test` and `#expect` do not supply UI automation APIs.\nDo not migrate frameworks merely because the tests are written in Swift.\n\n## Responsibility and proof\n\n- Read the requirement, existing UI target\u002Ftest plan, fixtures and neighbouring\n  tests before changing a case. Keep its agreed behaviour and scenario identity.\n- Use `tdd` for the failing-before\u002Fpassing-after workflow. This skill owns the\n  UI assertion and fixture design, not a replacement test runner.\n- Use `xcode-dev-loop` for Apple toolchain discovery, building, running, installing\n  and inspecting results; use documented project commands if it is unavailable.\n  Running an unchanged target alone is an execution task, not test authorship.\n- Swift Testing unit\u002Fintegration authorship belongs to `swift-testing`. Existing\n  non-UI XCTest unit, integration and `measure` tests retain their established\n  XCTest conventions and framework-neutral TDD; this skill does not own them.\n  Dedicated reusable non-UI XCTest authorship remains a separate gap.\n- Interactive appearance judgement belongs to `visual-feedback`, not unattended\n  baseline approval. Requirement acceptance remains with the authoritative\n  contract and `acceptance-review`.\n\nState the exact public action and observable result. Ask which plausible defect\nwould still pass: a Save button's existence does not prove saving; a seeded note\nseen after launch does not prove persistence. Assert the intended value, record,\nordering, denial or navigation outcome, not just that the app is alive.\n\n## Isolate launch preconditions\n\nUse the project's existing test-build seams, not invented environment keys or a\nnew production back door. Confine DEBUG\u002Fseed\u002Freset support to authorised test\nbuilds; a test-side repair does not grant production configuration changes.\n\n1. Allocate a unique per-test store\u002Faccount namespace, safe across workers and\n   simultaneous runs. Reuse existing disposable backend fixtures and their\n   owner\u002Frun IDs and readiness checks. A unique string is isolation only if the\n   app\u002Fbackend actually scopes its mutable state to it.\n2. Set documented keys on the **specific app instance's**\n   `app.launchEnvironment` before `app.launch()`. `setenv` in the UI test runner,\n   an `xcodebuild` shell variable and the app's startup environment are separate\n   boundaries. Do not assume automatic inheritance. Use `launchArguments` only\n   where the app already interprets those arguments.\n3. Verify the selected app\u002Fbackend\u002Fstore through an existing observable\n   diagnostic, fixture request log or resulting scoped data. The variable's\n   spelling alone is not evidence that the app consumed it.\n4. Reset only the owned namespace on its initial launch. Before a persistence\n   relaunch, remove or disable the reset key, keep the same store ID and backend,\n   terminate the app and launch it again. Do not reseed the target value.\n5. Arrange cleanup of owned fixtures\u002Fresources on success, failure and\n   cancellation using the suite's existing teardown facilities. Keep diagnostic\n   evidence outside cleanup targets. Never erase a shared simulator\u002Fstore,\n   reset another worker's permissions or kill processes by name.\n\nA DEBUG deep link may seed unrelated records for a create-form test, or establish\nan explicitly separate seeded-list rendering case. It cannot insert the target\nrecord in a test claiming to create it through the form. For that case, start\nfrom isolated known data, perform Add → enter fields → Save through the public\nUI, assert the new record, then relaunch without reset\u002Fseed and assert it again.\nDocument any stand-in and the narrower boundary it actually exercises.\n\n## Query, wait, interact, assert\n\nPrefer existing accessibility identifiers, scoped by element type\u002Fcontainer:\n`app.buttons[\"settings.open\"]`, `app.staticTexts[\"appearance.selection\"]`.\nUse a stable accessible label when that is the project contract; pin the locale\nand avoid ambiguous translated or dynamic strings. Inspect the hierarchy when a\nquery is uncertain. Do not conceal duplicates with `.firstMatch` unless choosing\nthe first is genuinely the requirement. Accessible queries are not a complete\nVoiceOver or accessibility audit.\n\n- Use `waitForExistence(timeout:)` before reading an element, and bounded\n  `XCTNSPredicateExpectation`\u002F`XCTWaiter` checks for properties such as\n  `isHittable`, `isEnabled`, label\u002Fvalue changes or disappearance. Match the\n  supported SDK and existing project wait helpers.\n- Wait for the state needed by the next action: existence alone does not mean\n  a covered\u002Fdisabled button is tappable. For scrolling, use bounded gestures in\n  the identified container until the intended element becomes actionable.\n- Prefer `tap()`, `typeText(_:)` and the appropriate control API. Avoid guessed\n  coordinates, blind swipes, fixed sleeps and unbounded polling\u002Fretry loops.\n- Assert exact expected content\u002Fstate after the action. Wait for the expected\n  value, not merely the previous screen's existence. Include useful failure\n  messages and preserve screenshot\u002Fhierarchy diagnostics without swallowing\n  the failed assertion. Fail fast when a required precondition is missing.\n\n[Persistence example](references\u002Fpersistence-example.md) shows real APIs using an\nexplicit example app contract, including the first-launch-only reset. Adapt its\nidentifiers and seams to the inspected project; they are not built-in APIs.\n\n## Handle app and system alerts deliberately\n\nSeparate cases with known owned permission states: undetermined → allow,\nundetermined → deny where required, and an already-denied explanation\u002Fsettings\njourney. Do not rely on test order or reset a shared device to obtain these states.\nA store reset does not necessarily reset OS permissions, keychain or accounts.\nReuse the approved fixture and the project's approved system-prompt convention.\n\nFor app-owned alerts, query the specific `app.alerts` alert and intended button\nwith bounded waits. For system interruptions, use the approved direct query or\n`addUIInterruptionMonitor(withDescription:handler:)` approach for the tested OS\nand locale. Match the expected alert and named action, never the first arbitrary\nSpringBoard button. Register a monitor **before** triggering the alert. A monitor\nis invoked when an attempted UI interaction encounters an interruption; merely\nregistering it or waiting does not dismiss the prompt. Use the project's known\nsafe app interaction to trigger handling, then assert the resulting app state.\n\nReturn `true` from a monitor only after recognising the expected alert and\nactually handling the intended button; return `false` for unrelated alerts or\nmissing actions. Remove the monitor with `removeUIInterruptionMonitor(_:)` after\nits scope. XCTest's implicit interruption handling may dismiss an unclaimed alert,\nso `false` does not guarantee it remains visible. Record whether the scoped\nhandler tapped the expected action and verify the actual permission\u002Fapp outcome;\nan unexpected prompt or implicit dismissal is not successful handling.\nSee [alert handling](references\u002Falert-handling.md).\n\nUse bounded checks for outcomes such as `scanner.ready`, or the denied\n`camera.explanation` plus Open Settings action. Assert the specified transition\nwhen Settings navigation is required. Simulator permission UX\u002Fscanner readiness\nis not proof of actual camera image capture; retain a hardware\u002Fdevice obligation\nwhen capture is required.\n\n## Separate screenshots from automated comparisons\n\n`XCTAttachment(screenshot: app.screenshot())` records a diagnostic image;\n`attachment.lifetime = .keepAlways` retains it when needed. It does **not** compare\npixels, detect a clipped total or turn button existence into a visual regression\nassertion. XCTest UI automation has no built-in snapshot-diff assertion.\n\nUse synthetic data and disposable accounts for screenshots and result bundles.\nBefore sharing, inspect and redact derivatives; keep necessary originals\naccess-controlled under the project's retention policy, including `.keepAlways`\nattachments. Never publish credentials, customer data or whole unreviewed bundles.\n\nReuse the project's already selected, supported snapshot engine, configuration\nand test integration. If none exists, engine adoption\u002Fconfiguration is an\nexplicit project decision and missing prerequisite: propose the integration,\nbut do not install packages or describe a functioning comparison suite.\n\nBefore comparing, match approved device model, OS\u002Fruntime, scale\u002Forientation,\nlocale\u002Ftimezone, appearance, text size, fonts, fixture data and render readiness.\nUse observable readiness, not a delay hiding animation or loading. Apply only\nauthorised masks\u002Ftolerances; a mask must not hide the feature under test. Retain\nexpected, actual and diff images plus the engine's machine result and relevant\nconfiguration. A screenshot attachment remains diagnostic evidence alongside it.\n\nBaseline additions\u002Fupdates need the project's authorised review against the\nrequirement. Never replace an approved image automatically, update-until-green,\nloosen tolerance or approve a changed baseline merely because the test failed.\nAn approved reference image without an implemented selected engine is not\nan automated comparison pass; report that capability unverified. Raw diffs do\nnot decide visual taste or requirement correctness.\n\n## Keep system and device boundaries explicit\n\nPreserve useful simulator UI cases, but name the stand-in and unproved boundary:\n\n| Executable stand-in | Does not prove | Required boundary evidence |\n| --- | --- | --- |\n| DEBUG deep link seeds a reminder | Spoken Siri phrase invokes the shortcut and creates it | Required physical phone, signed build, intent\u002Fshortcut configuration and actual Siri invocation\u002Fresult |\n| Injected local notification opens a reminder | Real remote push delivery\u002Fopen | Correct signed\u002Fprovisioned build, push entitlement, service\u002Fdevice registration and real remote delivery\u002Fopen |\n| DEBUG Pro flag displays unlocked UI | StoreKit sandbox purchase unlocks Pro | Required StoreKit product configuration, signed build, sandbox account and actual transaction\u002Funlock evidence |\n| Simulator scanner-ready state | Physical camera or other hardware operation | Supported physical device, permission and real hardware operation |\n\nUse `app-intent-driven-development` for intent integration design when relevant,\nnot as substitute execution proof. Do not invent Siri speech, purchase or remote\npush APIs to cross missing boundaries. Once prerequisites exist, return actual\nApple build\u002Ftest\u002Fdevice execution to `xcode-dev-loop` or established project\ncommands. Missing device, entitlement, signing or account keeps the corresponding\nobligation **blocked\u002Funverified**, even if every stand-in UI test passes.\n\n## Hand off execution and judge the returned evidence\n\nWhen execution is authorised, name one `xcode-dev-loop` executor or actual\ndocumented project command in the handoff\u002Freport, including device\u002Fsystem\nfollow-through. It uses the project's recipes and owns discovery, build,\ninstall, run, native case-result inspection, process verdicts and teardown.\nSend exact case\u002Ftest-plan IDs, isolated fixture and permission preconditions,\nreset-versus-relaunch rules and expected outcomes. Do not create another runner.\n\nRequire returned case IDs and non-zero execution count, source identity including\ndirty changes, actual built\u002Finstalled product, toolchain, device\u002Fruntime, fixture\nID and evidence that the requested permission state held. Expected cases must\nhave fresh native results with no unexplained skips, failures or crashes.\nAuthored code, a screenshot, a total count or an old result alone is not proof.\nKeep unavailable device\u002Fsystem boundaries explicit.\n\nRetain failed attempts and their evidence. A seeded pass cannot close a failed\npersistence obligation: remove the target reseed, preserve the original failure\nand use only a declared retry policy or a diagnosed setup\u002Finfrastructure reason.\nNever suppress assertions, retry indefinitely or erase shared state to get green.\n\nReport authored changes separately from exercised proof: exact case and attempt\nIDs, each pass\u002Ffail\u002Fblocked\u002Fnot-run result, evidence paths, stand-ins and\ncleanup\u002Fretention gaps. A later passing retry must not conceal an earlier\nbehavioural failure or unresolved flakiness. Until that failure is explained and\nthe required behaviour is proved, do not claim the test or product fixed.\nHand both attempts and their retained evidence to `debug` or the project's named\ndiagnostic owner. Do not investigate or request another run here.\nIf execution was unavailable or not requested, label the code unexecuted.\n","# Author Reliable XCTest UI Automation\n\nAuthor UI tests in the project's existing XCTest UI target: `import XCTest`,\n`XCTestCase`, `test…` methods, `XCUIApplication` and XCTest assertions.\nSwift Testing's `@Test` and `#expect` do not supply UI automation APIs.\nDo not migrate frameworks merely because the tests are written in Swift.\n\n## Responsibility and proof\n\n- Read the requirement, existing UI target\u002Ftest plan, fixtures and neighbouring\n  tests before changing a case. Keep its agreed behaviour and scenario identity.\n- Use `tdd` for the failing-before\u002Fpassing-after workflow. This skill owns the\n  UI assertion and fixture design, not a replacement test runner.\n- Use `xcode-dev-loop` for Apple toolchain discovery, building, running, installing\n  and inspecting results; use documented project commands if it is unavailable.\n  Running an unchanged target alone is an execution task, not test authorship.\n- Swift Testing unit\u002Fintegration authorship belongs to `swift-testing`. Existing\n  non-UI XCTest unit, integration and `measure` tests retain their established\n  XCTest conventions and framework-neutral TDD; this skill does not own them.\n  Dedicated reusable non-UI XCTest authorship remains a separate gap.\n- Interactive appearance judgement belongs to `visual-feedback`, not unattended\n  baseline approval. Requirement acceptance remains with the authoritative\n  contract and `acceptance-review`.\n\nState the exact public action and observable result. Ask which plausible defect\nwould still pass: a Save button's existence does not prove saving; a seeded note\nseen after launch does not prove persistence. Assert the intended value, record,\nordering, denial or navigation outcome, not just that the app is alive.\n\n## Isolate launch preconditions\n\nUse the project's existing test-build seams, not invented environment keys or a\nnew production back door. Confine DEBUG\u002Fseed\u002Freset support to authorised test\nbuilds; a test-side repair does not grant production configuration changes.\n\n1. Allocate a unique per-test store\u002Faccount namespace, safe across workers and\n   simultaneous runs. Reuse existing disposable backend fixtures and their\n   owner\u002Frun IDs and readiness checks. A unique string is isolation only if the\n   app\u002Fbackend actually scopes its mutable state to it.\n2. Set documented keys on the **specific app instance's**\n   `app.launchEnvironment` before `app.launch()`. `setenv` in the UI test runner,\n   an `xcodebuild` shell variable and the app's startup environment are separate\n   boundaries. Do not assume automatic inheritance. Use `launchArguments` only\n   where the app already interprets those arguments.\n3. Verify the selected app\u002Fbackend\u002Fstore through an existing observable\n   diagnostic, fixture request log or resulting scoped data. The variable's\n   spelling alone is not evidence that the app consumed it.\n4. Reset only the owned namespace on its initial launch. Before a persistence\n   relaunch, remove or disable the reset key, keep the same store ID and backend,\n   terminate the app and launch it again. Do not reseed the target value.\n5. Arrange cleanup of owned fixtures\u002Fresources on success, failure and\n   cancellation using the suite's existing teardown facilities. Keep diagnostic\n   evidence outside cleanup targets. Never erase a shared simulator\u002Fstore,\n   reset another worker's permissions or kill processes by name.\n\nA DEBUG deep link may seed unrelated records for a create-form test, or establish\nan explicitly separate seeded-list rendering case. It cannot insert the target\nrecord in a test claiming to create it through the form. For that case, start\nfrom isolated known data, perform Add → enter fields → Save through the public\nUI, assert the new record, then relaunch without reset\u002Fseed and assert it again.\nDocument any stand-in and the narrower boundary it actually exercises.\n\n## Query, wait, interact, assert\n\nPrefer existing accessibility identifiers, scoped by element type\u002Fcontainer:\n`app.buttons[\"settings.open\"]`, `app.staticTexts[\"appearance.selection\"]`.\nUse a stable accessible label when that is the project contract; pin the locale\nand avoid ambiguous translated or dynamic strings. Inspect the hierarchy when a\nquery is uncertain. Do not conceal duplicates with `.firstMatch` unless choosing\nthe first is genuinely the requirement. Accessible queries are not a complete\nVoiceOver or accessibility audit.\n\n- Use `waitForExistence(timeout:)` before reading an element, and bounded\n  `XCTNSPredicateExpectation`\u002F`XCTWaiter` checks for properties such as\n  `isHittable`, `isEnabled`, label\u002Fvalue changes or disappearance. Match the\n  supported SDK and existing project wait helpers.\n- Wait for the state needed by the next action: existence alone does not mean\n  a covered\u002Fdisabled button is tappable. For scrolling, use bounded gestures in\n  the identified container until the intended element becomes actionable.\n- Prefer `tap()`, `typeText(_:)` and the appropriate control API. Avoid guessed\n  coordinates, blind swipes, fixed sleeps and unbounded polling\u002Fretry loops.\n- Assert exact expected content\u002Fstate after the action. Wait for the expected\n  value, not merely the previous screen's existence. Include useful failure\n  messages and preserve screenshot\u002Fhierarchy diagnostics without swallowing\n  the failed assertion. Fail fast when a required precondition is missing.\n\n[Persistence example](references\u002Fpersistence-example.md) shows real APIs using an\nexplicit example app contract, including the first-launch-only reset. Adapt its\nidentifiers and seams to the inspected project; they are not built-in APIs.\n\n## Handle app and system alerts deliberately\n\nSeparate cases with known owned permission states: undetermined → allow,\nundetermined → deny where required, and an already-denied explanation\u002Fsettings\njourney. Do not rely on test order or reset a shared device to obtain these states.\nA store reset does not necessarily reset OS permissions, keychain or accounts.\nReuse the approved fixture and the project's approved system-prompt convention.\n\nFor app-owned alerts, query the specific `app.alerts` alert and intended button\nwith bounded waits. For system interruptions, use the approved direct query or\n`addUIInterruptionMonitor(withDescription:handler:)` approach for the tested OS\nand locale. Match the expected alert and named action, never the first arbitrary\nSpringBoard button. Register a monitor **before** triggering the alert. A monitor\nis invoked when an attempted UI interaction encounters an interruption; merely\nregistering it or waiting does not dismiss the prompt. Use the project's known\nsafe app interaction to trigger handling, then assert the resulting app state.\n\nReturn `true` from a monitor only after recognising the expected alert and\nactually handling the intended button; return `false` for unrelated alerts or\nmissing actions. Remove the monitor with `removeUIInterruptionMonitor(_:)` after\nits scope. XCTest's implicit interruption handling may dismiss an unclaimed alert,\nso `false` does not guarantee it remains visible. Record whether the scoped\nhandler tapped the expected action and verify the actual permission\u002Fapp outcome;\nan unexpected prompt or implicit dismissal is not successful handling.\nSee [alert handling](references\u002Falert-handling.md).\n\nUse bounded checks for outcomes such as `scanner.ready`, or the denied\n`camera.explanation` plus Open Settings action. Assert the specified transition\nwhen Settings navigation is required. Simulator permission UX\u002Fscanner readiness\nis not proof of actual camera image capture; retain a hardware\u002Fdevice obligation\nwhen capture is required.\n\n## Separate screenshots from automated comparisons\n\n`XCTAttachment(screenshot: app.screenshot())` records a diagnostic image;\n`attachment.lifetime = .keepAlways` retains it when needed. It does **not** compare\npixels, detect a clipped total or turn button existence into a visual regression\nassertion. XCTest UI automation has no built-in snapshot-diff assertion.\n\nUse synthetic data and disposable accounts for screenshots and result bundles.\nBefore sharing, inspect and redact derivatives; keep necessary originals\naccess-controlled under the project's retention policy, including `.keepAlways`\nattachments. Never publish credentials, customer data or whole unreviewed bundles.\n\nReuse the project's already selected, supported snapshot engine, configuration\nand test integration. If none exists, engine adoption\u002Fconfiguration is an\nexplicit project decision and missing prerequisite: propose the integration,\nbut do not install packages or describe a functioning comparison suite.\n\nBefore comparing, match approved device model, OS\u002Fruntime, scale\u002Forientation,\nlocale\u002Ftimezone, appearance, text size, fonts, fixture data and render readiness.\nUse observable readiness, not a delay hiding animation or loading. Apply only\nauthorised masks\u002Ftolerances; a mask must not hide the feature under test. Retain\nexpected, actual and diff images plus the engine's machine result and relevant\nconfiguration. A screenshot attachment remains diagnostic evidence alongside it.\n\nBaseline additions\u002Fupdates need the project's authorised review against the\nrequirement. Never replace an approved image automatically, update-until-green,\nloosen tolerance or approve a changed baseline merely because the test failed.\nAn approved reference image without an implemented selected engine is not\nan automated comparison pass; report that capability unverified. Raw diffs do\nnot decide visual taste or requirement correctness.\n\n## Keep system and device boundaries explicit\n\nPreserve useful simulator UI cases, but name the stand-in and unproved boundary:\n\n| Executable stand-in | Does not prove | Required boundary evidence |\n| --- | --- | --- |\n| DEBUG deep link seeds a reminder | Spoken Siri phrase invokes the shortcut and creates it | Required physical phone, signed build, intent\u002Fshortcut configuration and actual Siri invocation\u002Fresult |\n| Injected local notification opens a reminder | Real remote push delivery\u002Fopen | Correct signed\u002Fprovisioned build, push entitlement, service\u002Fdevice registration and real remote delivery\u002Fopen |\n| DEBUG Pro flag displays unlocked UI | StoreKit sandbox purchase unlocks Pro | Required StoreKit product configuration, signed build, sandbox account and actual transaction\u002Funlock evidence |\n| Simulator scanner-ready state | Physical camera or other hardware operation | Supported physical device, permission and real hardware operation |\n\nUse `app-intent-driven-development` for intent integration design when relevant,\nnot as substitute execution proof. Do not invent Siri speech, purchase or remote\npush APIs to cross missing boundaries. Once prerequisites exist, return actual\nApple build\u002Ftest\u002Fdevice execution to `xcode-dev-loop` or established project\ncommands. Missing device, entitlement, signing or account keeps the corresponding\nobligation **blocked\u002Funverified**, even if every stand-in UI test passes.\n\n## Hand off execution and judge the returned evidence\n\nWhen execution is authorised, name one `xcode-dev-loop` executor or actual\ndocumented project command in the handoff\u002Freport, including device\u002Fsystem\nfollow-through. It uses the project's recipes and owns discovery, build,\ninstall, run, native case-result inspection, process verdicts and teardown.\nSend exact case\u002Ftest-plan IDs, isolated fixture and permission preconditions,\nreset-versus-relaunch rules and expected outcomes. Do not create another runner.\n\nRequire returned case IDs and non-zero execution count, source identity including\ndirty changes, actual built\u002Finstalled product, toolchain, device\u002Fruntime, fixture\nID and evidence that the requested permission state held. Expected cases must\nhave fresh native results with no unexplained skips, failures or crashes.\nAuthored code, a screenshot, a total count or an old result alone is not proof.\nKeep unavailable device\u002Fsystem boundaries explicit.\n\nRetain failed attempts and their evidence. A seeded pass cannot close a failed\npersistence obligation: remove the target reseed, preserve the original failure\nand use only a declared retry policy or a diagnosed setup\u002Finfrastructure reason.\nNever suppress assertions, retry indefinitely or erase shared state to get green.\n\nReport authored changes separately from exercised proof: exact case and attempt\nIDs, each pass\u002Ffail\u002Fblocked\u002Fnot-run result, evidence paths, stand-ins and\ncleanup\u002Fretention gaps. A later passing retry must not conceal an earlier\nbehavioural failure or unresolved flakiness. Until that failure is explained and\nthe required behaviour is proved, do not claim the test or product fixed.\nHand both attempts and their retained evidence to `debug` or the project's named\ndiagnostic owner. Do not investigate or request another run here.\nIf execution was unavailable or not requested, label the code unexecuted.\n",{"name":5,"description":7},"main","4e0a12b5048eac78a3ace4feee657873cdd530ef","src\u002Fapp\u002Fskills\u002Fxcuitest",7,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmintuz","http:\u002F\u002Fwww.mintuz.com","Working at @monzo, Previously worked at Moonpig, @booking and @bbc","2026-11-13 19:21:11",{"source":9,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add mintuz\u002Fskills --skill xcuitest",{"tool":62,"command":63},"bunx","bunx skills add mintuz\u002Fskills --skill xcuitest",{"tool":65,"command":66},"pnpm","pnpm dlx skills add mintuz\u002Fskills --skill xcuitest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Fxcuitest\u002FSKILL.md",true,[70,76],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Falert-handling.md","REFERENCE","参考文档",5025,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Fxcuitest\u002Freferences\u002Falert-handling.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fpersistence-example.md",5547,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fapp\u002Fskills\u002Fxcuitest\u002Freferences\u002Fpersistence-example.md",[81,89,111,133,149,172],{"skillNo":82,"name":83,"nameZh":17,"description":84,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7B66DH3EX8C4A3JBAPB1NCY","lens-review","USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens \u002Fcode-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Flens-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":42},"01M6C4PDGB6ZZWBS35N3DF7PZZ","xstate","XState 状态机建模","WHEN React state changes in response to an external answer — async submit, in-flight or loading flags, retries, cancellation, polling, optimistic updates, stale responses — or to an interaction with an interruptible middle, such as a drag or a gesture; or WHEN building, reviewing, testing, or visualising XState 5 actors and @xstate\u002Freact integrations; NOT for a value one event sets completely, such as a text draft, a focus flag, or a plain open and closed toggle; models typed lifecycles and renders legal Mermaid stateDiagram-v2 charts.","当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程（如拖拽或手势）交互而变化时使用；或在构建、审查、测试或可视化 XState 5 actors 和 @xstate\u002Freact 集成时使用；不适用于单个事件即可完全设定的值，如文本草稿、焦点标志或简单的开关切换；建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fxstate\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[91,104,105,106,107,108,31,109,110],"text","state","integrations","Charts","mermaid","open","react",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":125,"publishedAt":42},"01M6C4PB6VVC2X19B63B7YNH0T","web-design","网页界面设计优化","WHEN refining UI layout, typography, color, or polish; NOT code implementation; provides concise principles for intentional, legible design.","在优化 UI 布局、排版、色彩或细节打磨时使用；不涉及代码实现；提供简洁的原则，以实现有意图、易读的设计。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fweb-design\u002FSKILL.md",[119,122],{"categoryNo":120,"categoryName":121,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1VGZ0ZM4TQHMPD75R2KWQ","用户体验设计",[126,127,128,129,130,38,131,132],"web","design","web design","polish","code implementation","typography","code",{"skillNo":134,"name":135,"nameZh":136,"description":137,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":143,"publishedAt":42},"01M6C4P8D92GJDA49V7X1CZXEV","tailwind","Tailwind CSS 样式开发","USE WHEN writing, fixing or reviewing styling in a project that uses Tailwind CSS, even a one-class change or a request that does not name Tailwind: colours, focus rings, spacing, class names chosen by a prop, map or CVA variants, theme tokens and dark mode in the Tailwind stylesheet or tailwind.config, setup or upgrades (if unsure whether the project uses Tailwind, check package.json or the main stylesheet first); NOT WHEN writing plain CSS or Sass in a project without Tailwind; produces class names Tailwind can find, syntax for the installed major version, visible focus indicators, and no unrequested dependency or invented brand value.","在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用，即便只是改一个类名，或请求中未提及 Tailwind：颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级（如不确定项目是否使用 Tailwind，先检查 package.json 或主样式表）；不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass；产出的类名能被 Tailwind 识别，语法适配已安装的主版本，具有可见的焦点指示器，且不引入未要求的依赖或杜撰的品牌值。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Ftailwind\u002FSKILL.md",[141,142],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},[144,145,146,147,127,148],"Tailwind","libraries","component","css","design systems",{"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":161,"publishedAt":42},"01M6C4P5VWQ69Q32DA0634GDJY","refactoring","代码重构规划","WHEN you need a plan to refactor, restructure, or clean up working code and the test result is known, either green or a recorded failing set; NOT for new feature delivery or any behavior change; reversible-baseline safety with prioritized improvements.","当你需要制定计划来重构、重组或清理正常工作的代码，且测试结果已知（全绿或已记录的失败集合）时使用；不适用于新功能交付或任何行为变更；以可逆的基线安全性和按优先级排序的改进为核心。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Frefactoring\u002FSKILL.md",[157,158],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":159,"categoryName":160,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",[151,162,163,164,165,166,132,167,35,168,169,170,171],"refactor","baseline","Safety","SET","up","feature delivery","new feature","plan","change","behavior",{"skillNo":173,"name":110,"nameZh":17,"description":174,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":42},"01M6C4P345APEFEX00J8T7QMXQ","USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Freact\u002FSKILL.md",[],[110,178,147,144,179,31,180,132,181,182,183,184,105,35,185,186],"state management","performance","hooks","components","architecture","api","react components","styling","management"]