# xcode-compilation-analyzer

> Claude/Codex skill by [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars · Updated 2026-08-12

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.

Tags: agent, agent-skills, ios, ios-development, skills, xcode

## Install

```sh
git clone https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill /tmp/Xcode-Build-Optimization-Agent-Skill && ln -s /tmp/Xcode-Build-Optimization-Agent-Skill/skills/xcode-compilation-analyzer ~/.claude/skills/xcode-compilation-analyzer
```

## From README

Xcode Compilation Analyzer Use this skill when compile time, not just general project configuration, looks like the bottleneck. Core Rules Start from evidence, ideally a recent .build-benchmark/ artifact or raw timing-summary output. Prefer analysis-only compiler flags over persistent project edits during investigation. Rank findings by expected wall-clock impact, not cumulative compile-time impact. When compile tasks are heavily parallelized (sum of compile categories \>\> wall-clock median), note that fixing individual hotspots may improve parallel efficiency without reducing build wait time. When the evidence points to parallelized work rather than serial bottlenecks, label recommendations as "Reduces compiler workload (parallel)" rather than "Reduces build time." Do not edit source or build settings without explicit developer approval.

## Links

- HTML page: https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer/
- GitHub: https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill
- Author: [@avdlee](https://omgskills.com/library/avdlee/index.md)

## More from this repo

- [spm-build-analysis](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/spm-build-analysis/index.md) — Used to analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-benchmark](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-benchmark/index.md) — Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-fixer](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-fixer/index.md) — Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
