Xcode compilation analyzer

From gabrielmoreira/agent-skills-mirror · View interactive version

Xcode compilation analyzer is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. 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 CompileSwift

How to use this skill

Skill file

Xcode Compilation Analyzer

Use this skill when compile time, not just general project configuration, looks like the bottleneck.

Core Rules

What To Inspect

Analysis Workflow

  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:

```bash

python3 scripts/diagnose_compilation.py \

--project App.xcodeproj \

--scheme MyApp \

--configuration Debug \

--destination "platform=iOS Simulator,name=iPhone 16" \

--threshold 100 \

--output-dir .build-benchmark

```

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

  1. Map the evidence to a concrete recommendation list.
  2. Separate code-level suggestions from project-level or module-level suggestions.

Apple-Derived Checks

Look for these patterns first:

Reporting Format

For each recommendation, include:

If the evidence points to project configuration instead of source, hand off to CODE0 by reading its SKILL.md and applying its workflow to the same project context.

Preferred Tactics

Additional Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.