# Xcode compilation analyzer

> Xcode compilation analyzer is an open-source agent skill for developer tools. Finds Swift compile-time hotspots and proposes a source-level optimization plan. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/carloshpdoc/ios-workflow-claude/tree/main/plugins/xcode-build-suite/skills/xcode-compilation-analyzer
- **Repository:** https://github.com/carloshpdoc/ios-workflow-claude
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** xcode-compilation-analyzer
- **Collection:** https://github.com/carloshpdoc/ios-workflow-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill helps an agent investigate why Swift or mixed Swift and Objective-C builds are slow. It starts from build timing summaries and recent benchmark artifacts, ranks the compile categories that contribute most to wall-clock time, and separates parallel compiler workload from serial bottlenecks so the effect of a fix is not overstated.

The workflow leans on analysis-only compiler flags, such as long-expression and long-function-body warning thresholds and per-file or per-function timing, rather than persistent project edits. It includes a diagnostics script that writes a ranked list of slow functions and expressions to an output folder, which the agent then matches against source files to focus on the most expensive code first.

Findings come back as a recommend-first plan. Each item lists the observed evidence, the likely file or module, an expected wait-time effect, a confidence level and whether developer approval is needed. Source or build settings are not changed without explicit sign-off. Project-configuration issues are handed off to a companion project analyzer skill.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-compilation-analyzer)
- [License: Apache-2.0](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-compilation-analyzer)

## Features

- **Build timing triage:** Reads Build Timing Summary output to see whether compile cost comes from broad volume or a few extreme hotspots.
- **Type-checking hotspot diagnostics:** Runs a script that ranks slow functions and expressions above a millisecond threshold.
- **Ad hoc compiler flag analysis:** Uses temporary frontend flags to measure per-file and per-function compile times without editing the project.
- **Recommend-first optimization plan:** Produces source-level suggestions with evidence, expected impact, confidence and approval status.
- **Mixed-language boundary review:** Flags Objective-C bridging headers and generated Swift surfaces that add compile work.

## Good for

- Why does my Swift project take so long to compile after a clean build?
- Find the functions causing type-checking warnings in my app
- Explain what is slowing down my CompileSwiftSources step
- Suggest changes to speed up Swift type checking in my SwiftUI views
- Review my Objective-C bridging header for compile overhead

## Install

### Claude Code

This skill ships in the `xcode-build-suite` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add carloshpdoc/ios-workflow-claude
/plugin install xcode-build-suite@carloshpdoc-plugins
```

Or copy only this skill to `~/.claude/skills/xcode-compilation-analyzer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/xcode-compilation-analyzer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-compilation-analyzer" ~/.claude/skills/xcode-compilation-analyzer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/xcode-compilation-analyzer` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/xcode-compilation-analyzer` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/xcode-compilation-analyzer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-compilation-analyzer" ~/.agents/skills/xcode-compilation-analyzer &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/xcode-compilation-analyzer` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/xcode-compilation-analyzer` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/xcode-compilation-analyzer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-compilation-analyzer" ~/.cursor/skills/xcode-compilation-analyzer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/xcode-compilation-analyzer` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/carloshpdoc/ios-workflow-claude.git --path plugins/xcode-build-suite/skills/xcode-compilation-analyzer
```

Or copy the folder to `~/.gemini/skills/xcode-compilation-analyzer` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/xcode-compilation-analyzer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/xcode-compilation-analyzer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-compilation-analyzer" ~/.copilot/skills/xcode-compilation-analyzer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/xcode-compilation-analyzer` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git
```

Then copy `ios-workflow-claude/plugins/xcode-build-suite/skills/xcode-compilation-analyzer` into your agent's skills folder as `xcode-compilation-analyzer`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Xcode compilation analyzer need to run?

It expects a Swift or mixed-language Xcode project and uses build timing summaries or a benchmark artifact. The diagnostics script takes a project, scheme, configuration, simulator destination and threshold.

### Does Xcode compilation analyzer change my code or build settings?

No. It is designed to recommend changes first and does not edit source or build settings without explicit developer approval.

### When does Xcode compilation analyzer trigger?

It triggers when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks, warn-long-function-bodies output or a wish to speed up Swift type checking.

### What if the slowdown is in project configuration?

The skill hands off to a companion xcode-project-analyzer skill and applies its workflow to the same project.

### How do I install Xcode compilation analyzer in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/xcode-compilation-analyzer to use it in all your projects, or to .claude/skills/xcode-compilation-analyzer in one project. Or install the xcode-build-suite plugin, which includes it: /plugin marketplace add carloshpdoc/ios-workflow-claude, then /plugin install xcode-build-suite@carloshpdoc-plugins.

### Does Xcode compilation analyzer run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Xcode compilation analyzer?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Xcode compilation analyzer?

The closest alternatives to Xcode compilation analyzer are Xcode project analyzer, Axiom optimize build, Axiom analyze swift performance, Spm build analysis and Xcode build fixer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Xcode project analyzer](https://ai-powered.com/skills/xcode-project-analyzer): Xcode project analyzer is an open-source agent skill for developer tools.
- [Axiom optimize build](https://ai-powered.com/skills/axiom-optimize-build): Axiom optimize build is an open-source agent skill for developer tools.
- [Axiom analyze swift performance](https://ai-powered.com/skills/axiom-analyze-swift-performance): Axiom analyze swift performance is an open-source agent skill for developer tools.
- [Spm build analysis](https://ai-powered.com/skills/spm-build-analysis): Spm build analysis is an open-source agent skill for developer tools.
- [Xcode build fixer](https://ai-powered.com/skills/xcode-build-fixer): Xcode build fixer is an open-source agent skill for developer tools.
- [Xcode build orchestrator](https://ai-powered.com/skills/xcode-build-orchestrator): Xcode build orchestrator is an open-source agent skill for developer tools.
- [Axiom swift simplifier](https://ai-powered.com/skills/axiom-swift-simplifier): Axiom swift simplifier is an open-source agent skill for developer tools.
- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/xcode-compilation-analyzer
