From Build Swift Apps
Analyzes Swift/Xcode compile hotspots from timing summaries, frontend diagnostics, and type-checking warnings to surface slow compiles, bridging header bloat, and parallelizable work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/build-swift-apps:xcode-compile-profilerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use when compile time, type checking, or mixed-language compilation is the bottleneck. Recommend first; do not edit source or build settings without explicit approval.
Use when compile time, type checking, or mixed-language compilation is the bottleneck. Recommend first; do not edit source or build settings without explicit approval.
.build-benchmark/ artifacts or raw build timing output.Build Timing SummaryCompileSwiftSources, per-file compile tasks, SwiftEmitModule, and Planning Swift module-Xfrontend -warn-long-expression-type-checking=<ms>-Xfrontend -warn-long-function-bodies=<ms>-Xfrontend -debug-time-compilation-Xfrontend -debug-time-function-bodies-Xswiftc -driver-time-compilation-Xfrontend -stats-output-dir <path>Preferred script:
python3 ../../shared/build-optimization/scripts/diagnose_compilation.py \
--project App.xcodeproj \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=<latest available iPhone simulator>,OS=latest" \
--threshold 100 \
--output-dir .build-benchmark
Look first for missing explicit types in expensive expressions, deeply chained expressions, delegates typed as AnyObject, oversized bridging surfaces, unqualified header imports, non-final classes, broad public/open symbols, monolithic SwiftUI body, and closures without helpful type annotations.
For each recommendation include evidence, file/module, expected wait-time impact or parallel-work caveat, confidence, and whether approval is needed. If evidence points to project configuration, read and hand off to xcode-project-auditor.
references/code-compilation-checks.md../../shared/build-optimization/references/recommendation-format.md../../shared/build-optimization/references/build-optimization-sources.md2plugins reuse this skill
First indexed Jun 4, 2026
npx claudepluginhub xopoko/build-swift-apps --plugin build-swift-appsAnalyzes Xcode build timing summaries and Swift frontend diagnostics to identify compilation hotspots and recommend source-level optimizations for slow Swift compilation.
Analyzes Xcode build performance by benchmarking, running specialist diagnostics, and generating prioritized optimization plans. Use for speeding up builds or full build audits.
Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.