xcode-compilation-analyzer

xcode-compilation-analyzer is a skill for Claude Code from AvdLee/Xcode-Build-Optimization-Agent-Skill. It costs 74 tokens per session (1,080 once invoked), scanned A, original, MIT.

A diagnostic skill for finding slow Swift and mixed-language compilation in Xcode projects using build timing data and compiler diagnostics.

In plain words
What is it for?
Use it when clean builds, incremental builds, type checking, or module emission take too long. It analyzes the project and does not edit source or build settings without approval.
Why use it?
It turns build evidence into a ranked source-level plan, helping distinguish individual compile hotspots from work that is merely spread across parallel tasks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xcode-build-skills plugin — 6 skills shipped together

not rated 1.3krepo +7 1mo ago A scan Socket: passSnyk: passSkillSpector: pass 74 tokens original MIT

Good fit Use it when clean builds, incremental builds, type checking, or module emission take too long. It analyzes the project and does not edit source or build settings without approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer
About the project

Xcode Build Optimization Agent Skills is a collection of agent skills that benchmarks and analyzes Xcode clean and incremental builds, compiler hotspots, project settings, and Swift Package Manager overhead. It is for iOS developers who want an AI coding agent to identify build-performance improvements and produce an optimization plan before changes are approved. The catalogue entries provide the skills, instructions, and plugin used for this workflow.

AvdLee/Xcode-Build-Optimization-Agent-Skill · 1,262 stars · on GitHub · rocketsim.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill --skill xcode-compilation-analyzer
Clone the repo
git clone --depth 1 https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill

Made for: Claude Code.

Or install xcode-build-skills, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xcode-compilation-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer/github.svg)](https://agentmods.dev/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer)
Your own site
<a href="https://agentmods.dev/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer"><img src="https://agentmods.dev/badge/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xcode-compilation-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer"><img src="https://agentmods.dev/badge/skills/avdlee/xcode-build-optimization-agent-skill/xcode-compilation-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,080 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.01080
Opus 5.5 $0.00030 $0.00432
Sonnet 5.5 $0.00015 $0.00216
Haiku 4.5 $0.00007 $0.00108

Measured 1mo ago against content hash c49d8bf206d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xcode-compilation-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diagnose_compilation.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

skills/xcode-compilation-analyzer/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

What To Inspect

  • Build Timing Summary output from clean and incremental builds
  • long-running CompileSwiftSources or per-file compilation tasks
  • SwiftEmitModule time -- can reach 60s+ after a single-line change in large modules; if it dominates incremental builds, the module is likely too large or macro-heavy
  • Planning Swift module time -- if this category is disproportionately large in incremental builds (up to 30s per module), it signals unexpected input invalidation or macro-related rebuild cascading
  • ad hoc runs with:
    • -Xfrontend -warn-long-expression-type-checking=<ms>
    • -Xfrontend -warn-long-function-bodies=<ms>
  • deeper diagnostic flags for thorough investigation:
    • -Xfrontend -debug-time-compilation -- per-file compile times to rank the slowest files
    • -Xfrontend -debug-time-function-bodies -- per-function compile times (unfiltered, complements the threshold-based warning flags)
    • -Xswiftc -driver-time-compilation -- driver-level timing to isolate driver overhead
    • -Xfrontend -stats-output-dir <path> -- detailed compiler statistics (JSON) per compilation unit for root-cause analysis
  • mixed Swift and Objective-C surfaces that increase bridging work

Read the full file on GitHub · 90 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 90 lines · 74 tokens per session scan A c49d8bf206d6

Subscribe to this mod's changes

xcode-compilation-analyzer is a skill published in the GitHub repository AvdLee/Xcode-Build-Optimization-Agent-Skill (1,262 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,080 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

swift-concurrency

Resolve Swift concurrency compiler errors, adopt approachable concurrency (SE-0466), and write data-race-safe async code. Use when fixing Sendable conformance errors, actor isolation warnings, or strict concurrency diagnostics; when adopting default MainActor isolation, @concurrent, nonisolated(nonsending), or…

JordanCoin/ios-skills-collection · 103 tokens

swift-coding-guideline

Core Swift development workflows for Xcode and Swift tooling, including project setup, dependency management, concurrency guidance, language/runtime best practices, and troubleshooting build or package resolution issues. Use when working on Swift tasks across a codebase, especially package/tooling/runtime work and…

JordanCoin/ios-skills-collection · 82 tokens

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…

JordanCoin/ios-skills-collection · 74 tokens

sweetpad

Build, run, and test Xcode and Swift Package apps from the terminal with the sweetpad CLI ("xcodebuild for humans"). Use when the user wants to compile an iOS/macOS/Swift app, run it on a simulator or device, read build errors, run tests, or inspect resolved build settings from the command line — with agent-safe…

sweetpad-dev/sweetpad · 90 tokens

kotlin-tooling-native-build-performance

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…

Kotlin/kotlin-agent-skills · 96 tokens

ios-expert

Expert in iOS development with SwiftUI, UIKit, Combine, and Apple ecosystem integration. Use when the user mentions mobile, Swift, SwiftUI, UIKit, Apple platforms, or Xcode, or when the task involves iOS App Architecture, SwiftUI Fundamentals, UIKit Essentials, or Combine Framework.

personamanagmentlayer/pcl · 64 tokens