Tooluck logoTooluck
SKILL.md

xcode-compilation-analyzer

Agent skill fromAvdLee/Xcode-Build-Optimization-Agent-Skill

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.

How to install xcode-compilation-analyzer

install xcode-compilation-analyzer
# install the Xcode-Build-Optimization-Agent-Skill pack with the skills CLI
npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill

# or add only this skill to Claude Code: copy the folder

skills/xcode-compilation-analyzer/

# into

~/.claude/skills/xcode-compilation-analyzer/ (all projects)

.claude/skills/xcode-compilation-analyzer/ (one project)

skills/xcode-compilation-analyzer/SKILL.md

MITFull file
1# Xcode Compilation Analyzer
2
3Use this skill when compile time, not just general project configuration, looks like the bottleneck.
4
5## Core Rules
6
7- Start from evidence, ideally a recent `.build-benchmark/` artifact or raw timing-summary output.
8- Prefer analysis-only compiler flags over persistent project edits during investigation.
9- 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.
10- When the evidence points to parallelized work rather than serial bottlenecks, label recommendations as "Reduces compiler workload (parallel)" rather than "Reduces build time."
11- Do not edit source or build settings without explicit developer approval.
12
13## What To Inspect
14
15- `Build Timing Summary` output from clean and incremental builds
16- long-running `CompileSwiftSources` or per-file compilation tasks
17- `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
18- `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
19- ad hoc runs with:
20 - `-Xfrontend -warn-long-expression-type-checking=<ms>`
21…

Excerpt shown under the repository's MIT license.

More skills in Xcode-Build-Optimization-Agent-Skill

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates