[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B3FZ41GN4WVDDY6ZCNFKX2":3,"skill-same:01M7B3FZ41GN4WVDDY6ZCNFKX2":61},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7B3FZ41GN4WVDDY6ZCNFKX2","xcode-builds",null,"Use when building, compile-checking, running tests, driving a simulator, or reading build and runtime output for an Xcode project, or when a system feature misbehaves only on a simulator.","vadimvitvickiy\u002Fvv-agent-kit","vadimvitvickiy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5019512?v=4","01M7B3ABRYF7KHBCDW6GB2XH0C","Vadim Vitvitskii","01M7B3ABSZYG9MXP1CC7BQYM25",0,"MIT","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fswift\u002Fskills\u002Fxcode-builds\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: xcode-builds\ndescription: Use when building, compile-checking, running tests, driving a simulator, or reading build and runtime output for an Xcode project, or when a system feature misbehaves only on a simulator.\n---\n\n# Xcode builds\n\n**REQUIRED BACKGROUND:** `vvkit:verifying-changes` — what to run and when. This covers how.\n\n**Always prefer the project's script.** `scripts\u002Fbuild.sh` \u002F `scripts\u002Ftest.sh` if present; none —\ngenerate them with `\u002Fvvkit:scripts`. A hand-written `xcodebuild` is usually slower by a large multiple\nfor reasons invisible on the command line, and one that \"works\" often works by rebuilding everything.\nNever hand-write `xcrun` or `simctl` the project wraps.\n\n## Four traps in a hand-written invocation\n\nEach measured on a large project:\n\n| Trap | Cost |\n|-|-|\n| `-destination 'generic\u002Fplatform=iOS Simulator'` | Resolves several architectures and evicts the shared cache slice every time you alternate with Xcode — 9,227 file compiles \u002F 247s, versus 1,278 \u002F 104s with a concrete simulator UDID |\n| `CODE_SIGNING_ALLOWED=NO` | A build-setting override changes the build description. If Xcode builds the same DerivedData without it, the two evict each other — a 5,879-file rebuild on every switch. Simulator products need no signing anyway |\n| `-derivedDataPath` on a routine build | Opts out of the cache the IDE is warming. Even pointed at Xcode's own folder, it moves the module and compilation caches inside it, and every switch with Xcode recompiles everything — 26 of 26 files on an iOS app. Use it only for a deliberately isolated or reproducible build |\n| `xcodebuild clean` | Discards the cache that makes everything else fast. The build system reads sources from disk every run; a clean buys no correctness |\n\nTwo configurations sharing one DerivedData ping-pong the generated module maps (keyed by platform, not\nconfiguration) — 6m34s versus 1m14s. Point every local entry point at one configuration.\n\n## Discovering what exists\n\n```bash\nxcodebuild -list -project \u003CProject>.xcodeproj      # schemes, targets, configurations\nxcrun simctl list devices available                # booted and bootable simulators\n```\n\n**`-list` sorts schemes alphabetically.** The first is often a framework, which compile-checks a\ndependency and reports success for the project. Pick the scheme named after the project, or name it.\n\n## Reading results\n\n- On failure read the bundle, not the log: `xcrun xcresulttool get --format json --path \u003Cpath>.xcresult`.\n- **A full disk does not look like one** — a `lipo` or linker failure, or a module \"modified since the\n  module file was built\", with `database or disk is full` only at the end. `bash\n  scripts\u002Fderived-data.sh` in this skill's directory reports data-volume free space (`df -h \u002F` reads\n  the sealed system volume) and orphaned DerivedData. Judge a cleanup by `df`, not `du`, which counts\n  APFS clones twice.\n- Beyond `vvkit:verifying-changes`' gaps, a green build can hide: **an asset catalog or strings edit\n  with a cached \"success\"** that never re-ran the generator, and **a scheme that excludes the target\n  you changed.**\n\n## Generated project files\n\n- A generated `.xcodeproj` — from a manifest or generator — is **never edited directly**. Edit the\n  manifest and regenerate; a direct edit vanishes at the next generation.\n- A hand-managed one: still never edit `project.pbxproj` as text. It is a graph of cross-referenced\n  UUIDs; use a library that understands it.\n\n## Every tool that builds must share one cache\n\nTools that pick a build location bring the same defect silently — a second, cold cache nothing else\nreads. Bind them to Xcode's folder for the checkout before the first build; `scripts\u002Fsetup-tooling.sh`\ndoes both if the project has it.\n\n| Tool | Unbound behavior | Symptom |\n|-|-|-|\n| `xcodebuildmcp` | Builds into `~\u002FLibrary\u002FDeveloper\u002FXcodeBuildMCP\u002Fworkspaces\u002F` | Every build cold; a second multi-GB cache — 3.53 GB measured on one checkout |\n| `xcodebuildmcp`, bound by `derivedDataPath` alone | Module and compilation caches move inside that folder | Every switch with Xcode or the scripts recompiles the whole project |\n| `sourcekit-lsp` | Falls back to a macOS target | `No such module 'UIKit'` on every file in an iOS framework |\n\n- For sourcekit-lsp, `xcode-build-server config` binds the scheme and `xcode-build-server parse`\n  supplies flags — **both**. Command-line `xcodebuild` never writes the `.xcactivitylog` the server\n  watches, so a bare `config` fails over to macOS silently.\n- Bound correctly, switching tools compiles nothing, but IDE ↔ command line still relinks and re-signs\n  — the linker's `PATH` is in its signature. Seconds, not a rebuild; leave it.\n- **Removing a worktree orphans its DerivedData** — 25–30 GB per built worktree. After `git worktree\n  remove`: `bash scripts\u002Fderived-data.sh --delete \u003Cremoved-path>` from this skill's directory, and\n  `xcodebuildmcp purge --dry-run`. `--delete-orphans` sweeps every removed checkout's folder — ask\n  first.\n\n## A slimmed simulator breaks features silently\n\n`simslim` turns off simulator daemons to save memory; push, widgets, iCloud, universal links,\nHealthKit, Photos and more go with them, with no error. A lost notification looks like an app bug.\n\n- **Before debugging a system feature failing on a simulator, check the device** (booted):\n\n  ```bash\n  simslim doctor \u003Cudid> --requires push      # exit 1 and BROKEN when the feature's daemons are off\n  ```\n\n- `simslim doctor --list` gives feature IDs. A shut-down simulator reports no slim state — that does\n  not mean stock. Read state from the device every time, never from notes; a committed profile is what\n  the project wants, not what the device has.\n- Not installed: say so rather than assume stock. A user short of memory running several simulators:\n  mention `brew install mobai-app\u002Ftap\u002Fsimslim` once.\n- **Never slim, restore or clean a simulator unasked.** `on` \u002F `off` reboot it; `disk-clean` deletes\n  data permanently. Commands and deriving a profile from entitlements: `references\u002Fsimslim.md`.\n\n## The xcodebuildmcp CLI\n\nWhen the project uses it, or for simulators and UI automation: `references\u002Fxcodebuildmcp.md`. Do not\nwork from a remembered tool list — the CLI ships its own versioned agent skill (`xcodebuildmcp init`),\nand workflow names change between releases.\n","# Xcode builds\n\n**REQUIRED BACKGROUND:** `vvkit:verifying-changes` — what to run and when. This covers how.\n\n**Always prefer the project's script.** `scripts\u002Fbuild.sh` \u002F `scripts\u002Ftest.sh` if present; none —\ngenerate them with `\u002Fvvkit:scripts`. A hand-written `xcodebuild` is usually slower by a large multiple\nfor reasons invisible on the command line, and one that \"works\" often works by rebuilding everything.\nNever hand-write `xcrun` or `simctl` the project wraps.\n\n## Four traps in a hand-written invocation\n\nEach measured on a large project:\n\n| Trap | Cost |\n|-|-|\n| `-destination 'generic\u002Fplatform=iOS Simulator'` | Resolves several architectures and evicts the shared cache slice every time you alternate with Xcode — 9,227 file compiles \u002F 247s, versus 1,278 \u002F 104s with a concrete simulator UDID |\n| `CODE_SIGNING_ALLOWED=NO` | A build-setting override changes the build description. If Xcode builds the same DerivedData without it, the two evict each other — a 5,879-file rebuild on every switch. Simulator products need no signing anyway |\n| `-derivedDataPath` on a routine build | Opts out of the cache the IDE is warming. Even pointed at Xcode's own folder, it moves the module and compilation caches inside it, and every switch with Xcode recompiles everything — 26 of 26 files on an iOS app. Use it only for a deliberately isolated or reproducible build |\n| `xcodebuild clean` | Discards the cache that makes everything else fast. The build system reads sources from disk every run; a clean buys no correctness |\n\nTwo configurations sharing one DerivedData ping-pong the generated module maps (keyed by platform, not\nconfiguration) — 6m34s versus 1m14s. Point every local entry point at one configuration.\n\n## Discovering what exists\n\n```bash\nxcodebuild -list -project \u003CProject>.xcodeproj      # schemes, targets, configurations\nxcrun simctl list devices available                # booted and bootable simulators\n```\n\n**`-list` sorts schemes alphabetically.** The first is often a framework, which compile-checks a\ndependency and reports success for the project. Pick the scheme named after the project, or name it.\n\n## Reading results\n\n- On failure read the bundle, not the log: `xcrun xcresulttool get --format json --path \u003Cpath>.xcresult`.\n- **A full disk does not look like one** — a `lipo` or linker failure, or a module \"modified since the\n  module file was built\", with `database or disk is full` only at the end. `bash\n  scripts\u002Fderived-data.sh` in this skill's directory reports data-volume free space (`df -h \u002F` reads\n  the sealed system volume) and orphaned DerivedData. Judge a cleanup by `df`, not `du`, which counts\n  APFS clones twice.\n- Beyond `vvkit:verifying-changes`' gaps, a green build can hide: **an asset catalog or strings edit\n  with a cached \"success\"** that never re-ran the generator, and **a scheme that excludes the target\n  you changed.**\n\n## Generated project files\n\n- A generated `.xcodeproj` — from a manifest or generator — is **never edited directly**. Edit the\n  manifest and regenerate; a direct edit vanishes at the next generation.\n- A hand-managed one: still never edit `project.pbxproj` as text. It is a graph of cross-referenced\n  UUIDs; use a library that understands it.\n\n## Every tool that builds must share one cache\n\nTools that pick a build location bring the same defect silently — a second, cold cache nothing else\nreads. Bind them to Xcode's folder for the checkout before the first build; `scripts\u002Fsetup-tooling.sh`\ndoes both if the project has it.\n\n| Tool | Unbound behavior | Symptom |\n|-|-|-|\n| `xcodebuildmcp` | Builds into `~\u002FLibrary\u002FDeveloper\u002FXcodeBuildMCP\u002Fworkspaces\u002F` | Every build cold; a second multi-GB cache — 3.53 GB measured on one checkout |\n| `xcodebuildmcp`, bound by `derivedDataPath` alone | Module and compilation caches move inside that folder | Every switch with Xcode or the scripts recompiles the whole project |\n| `sourcekit-lsp` | Falls back to a macOS target | `No such module 'UIKit'` on every file in an iOS framework |\n\n- For sourcekit-lsp, `xcode-build-server config` binds the scheme and `xcode-build-server parse`\n  supplies flags — **both**. Command-line `xcodebuild` never writes the `.xcactivitylog` the server\n  watches, so a bare `config` fails over to macOS silently.\n- Bound correctly, switching tools compiles nothing, but IDE ↔ command line still relinks and re-signs\n  — the linker's `PATH` is in its signature. Seconds, not a rebuild; leave it.\n- **Removing a worktree orphans its DerivedData** — 25–30 GB per built worktree. After `git worktree\n  remove`: `bash scripts\u002Fderived-data.sh --delete \u003Cremoved-path>` from this skill's directory, and\n  `xcodebuildmcp purge --dry-run`. `--delete-orphans` sweeps every removed checkout's folder — ask\n  first.\n\n## A slimmed simulator breaks features silently\n\n`simslim` turns off simulator daemons to save memory; push, widgets, iCloud, universal links,\nHealthKit, Photos and more go with them, with no error. A lost notification looks like an app bug.\n\n- **Before debugging a system feature failing on a simulator, check the device** (booted):\n\n  ```bash\n  simslim doctor \u003Cudid> --requires push      # exit 1 and BROKEN when the feature's daemons are off\n  ```\n\n- `simslim doctor --list` gives feature IDs. A shut-down simulator reports no slim state — that does\n  not mean stock. Read state from the device every time, never from notes; a committed profile is what\n  the project wants, not what the device has.\n- Not installed: say so rather than assume stock. A user short of memory running several simulators:\n  mention `brew install mobai-app\u002Ftap\u002Fsimslim` once.\n- **Never slim, restore or clean a simulator unasked.** `on` \u002F `off` reboot it; `disk-clean` deletes\n  data permanently. Commands and deriving a profile from entitlements: `references\u002Fsimslim.md`.\n\n## The xcodebuildmcp CLI\n\nWhen the project uses it, or for simulators and UI automation: `references\u002Fxcodebuildmcp.md`. Do not\nwork from a remembered tool list — the CLI ships its own versioned agent skill (`xcodebuildmcp init`),\nand workflow names change between releases.\n",{"name":5,"description":7},"main","cc22a222a76add5759a2df5fadf231a758691db5","plugins\u002Fswift\u002Fskills\u002Fxcode-builds","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy","Senior iOS engineer. Architecture, SDKs and apps for iOS, tvOS and watchOS.","2026-11-13 19:10:29",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add vadimvitvickiy\u002Fvv-agent-kit --skill xcode-builds",{"tool":37,"command":38},"bunx","bunx skills add vadimvitvickiy\u002Fvv-agent-kit --skill xcode-builds",{"tool":40,"command":41},"pnpm","pnpm dlx skills add vadimvitvickiy\u002Fvv-agent-kit --skill xcode-builds","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fswift\u002Fskills\u002Fxcode-builds\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fsimslim.md","REFERENCE","参考文档",5766,"https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fswift\u002Fskills\u002Fxcode-builds\u002Freferences\u002Fsimslim.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fxcodebuildmcp.md",4247,"https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fswift\u002Fskills\u002Fxcode-builds\u002Freferences\u002Fxcodebuildmcp.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fderived-data.sh","SCRIPT","脚本",3657,"https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fswift\u002Fskills\u002Fxcode-builds\u002Fscripts\u002Fderived-data.sh",[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7B3JN7VG0YJ4JB8RP6HYZSJ","no-heading","Use when proving that the validator rejects a body with no H1 and a force-loading @-link.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-heading\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7B3JJMEW4E710ZG6HYJ7BWV","wrong-name-does-not-match-dir","Dispatches a subagent per task and reviews between each one.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbroken-skill\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7B3JGE9MFT1HRP41YRVKN97","writing-tests","Use when adding or changing behavior, fixing a bug, or judging whether an existing or generated test earns its place.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-tests\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7B3JD5X32VEBDBN7HB8E17Z","writing-skills","Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7B3J992MZH2QVZRED0DRPD9","writing-project-instructions","Use when creating or editing a CLAUDE.md or AGENTS.md, when it has grown long, or when a rule in it also exists in an installed skill.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-project-instructions\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7B3J55C5WPWN20QXP9ET848","writing-logs","Use when adding or reviewing log statements, or when deciding what level a message belongs at.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-logs\u002FSKILL.md",[],[]]