Help us improve
Share bugs, ideas, or general feedback.
From xcode-build-skills
Benchmarks Xcode clean/incremental builds with repeatable timings, summaries, and .build-benchmark/ artifacts for performance baselines and change comparisons.
npx claudepluginhub avdlee/xcode-build-optimization-agent-skill --plugin xcode-build-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/xcode-build-skills:xcode-build-benchmarkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to produce a repeatable Xcode build baseline before anyone tries to optimize build times.
Benchmarks Xcode builds (clean, cached-clean, zero-change, incremental) with repeatable inputs and timing artifacts. Use before recommending build-time optimizations.
Orchestrates Xcode build optimization: benchmarks baseline, analyzes with specialist skills, recommends prioritized fixes, delegates approved changes, re-benchmarks wall-clock time.
Guides Xcode build workflows for iOS projects using execute_xcode_command tool. Covers builds, tests, cleans, schemes, xcodebuild output interpretation, and error troubleshooting.
Share bugs, ideas, or general feedback.
Use this skill to produce a repeatable Xcode build baseline before anyone tries to optimize build times.
.build-benchmark/.Confirm or infer:
DerivedData path is neededIf the project has both clean-build and incremental-build pain, benchmark both. That is the default.
When benchmarking inside a git worktree, SPM packages with exclude: paths that reference gitignored directories (e.g., __Snapshots__) will cause xcodebuild -resolvePackageDependencies to crash. Create those missing directories before running any builds.
COMPILATION_CACHE_ENABLE_CACHING = YES is detected, run 3 cached clean builds. These measure clean build time with a warm compilation cache -- the realistic scenario for branch switching, pulling changes, or Clean Build Folder. The script handles this automatically by building once to warm the cache, then deleting DerivedData (but not the compilation cache) before each measured run. Pass --no-cached-clean to skip.benchmark_builds.py invocation (no --touch-file flag).--touch-file path/to/SomeFile.swift to touch a representative source file before each build..build-benchmark/.Use the shared helper when possible:
python3 scripts/benchmark_builds.py \
--workspace App.xcworkspace \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=iPhone 16" \
--output-dir .build-benchmark
If you cannot use the helper script, run equivalent xcodebuild commands with -showBuildTimingSummary and preserve the raw output.
Return:
--touch-file was used)If results are noisy, say so and recommend rerunning under calmer conditions.
Stop after measurement if the user only asked for benchmarking. If they want optimization guidance, hand off the artifact to the relevant specialist by reading its SKILL.md and applying its workflow to the same project context:
xcode-compilation-analyzerxcode-project-analyzerspm-build-analysisxcode-build-orchestrator for full orchestration