spm-build-analysis
Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode…
Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile
Claude Code
$ npx -y skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer --agent claude-code
Codex
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a codex -y
Cursor
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a cursor -y
Gemini CLI
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a gemini-cli -y
GitHub Copilot
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a github-copilot -y
OpenCode
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a opencode -y
Windsurf
$ npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer -a windsurf -y
name: xcode-compilation-analyzer description: Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks, warn-long-function-bodies output, or wants to speed up Swift type checking.
Use this skill when compile time, not just general project configuration, looks like the bottleneck.
1. Identify whether the main issue is broad compilation volume or a few extreme hotspots. 2. Parse timing-summary categories and rank the biggest compile contributors. 3. Run the diagnostics script to surface type-checking hotspots:
python3 scripts/diagnose_compilation.py \
--project App.xcodeproj \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=iPhone 16" \
--threshold 100 \
--output-dir .build-benchmarkThis produces a ranked list of functions and expressions that exceed the millisecond threshold. Use the diagnostics artifact alongside source inspection to focus on the most expensive files first. 4. Map the evidence to a concrete recommendation list. 5. Separate code-level suggestions from project-level or module-level suggestions.
Look for these patterns first:
For each recommendation, include:
If the evidence points to project configuration instead of source, hand off to [`xcode-project-analyzer`](../xcode-project-analyzer/SKILL.md) by reading its SKILL.md and applying its workflow to the same project context.
Open-source Agent Skills for benchmarking and optimizing Xcode build performance across clean builds, incremental builds, compile hotspots, project settings, and Swift Package Manager overhead.
Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode…
Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped `.build-benchmark/`…
Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement. Use when a…
Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing findings,…
Audit Xcode project configuration, build settings, scheme behavior, and script phases to find build-time improvements with…
Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP…