xcode-compilation-analyzer
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.
Install
Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.
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.
More from this repo
spm-build-analysis
Used to analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead...
xcode-build-benchmark
Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped...
xcode-build-fixer
Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement.