By AvdLee
Analyze and optimize Xcode build performance by benchmarking clean and incremental builds, diagnosing SPM dependency overhead, identifying compilation hotspots, auditing project settings, and implementing verified improvements.
Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspects packages, plugins, or dependency graph shape are hurting clean or incremental build performance, mentions SPM slowness, package resolution time, build plugin overhead, duplicate module builds from configuration drift, circular dependencies between modules, oversized modules needing splitting, or modularization best practices.
Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped `.build-benchmark/` artifacts. Use when a developer wants a baseline, wants to compare before and after changes, asks to measure build performance, mentions build times, build duration, how long builds take, or wants to know if builds got faster or slower.
Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement. Use when a developer has an approved optimization plan from xcode-build-orchestrator, wants to apply specific build fixes, needs help implementing build setting changes, script phase guards, source-level compilation fixes, or SPM restructuring that was recommended by an analysis skill.
Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing findings, requesting explicit approval, delegating approved fixes to xcode-build-fixer, and re-benchmarking after changes. Use when a developer wants an end-to-end build optimization workflow, asks to speed up Xcode builds, wants a full build audit, or needs a recommend-first optimization pass covering compilation, project settings, and packages.
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.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Open-source Agent Skills for benchmarking and optimizing Xcode build performance across clean builds, incremental builds, compile hotspots, project settings, and Swift Package Manager overhead.
Install all six skills (the orchestrator needs the specialist skills to work):
npx skills add https://github.com/avdlee/xcode-build-optimization-agent-skill
Then open your Xcode project in your AI coding tool and say:
Use the /xcode-build-orchestrator skill to analyze build performance and come up with a plan for improvements.
The agent will benchmark your clean and incremental builds, audit build settings, find compile hotspots, and produce an optimization plan at .build-benchmark/optimization-plan.md. No project files are modified until you explicitly approve changes.
For long-term monitoring across days, machines, Xcode versions, and teams, use RocketSim Build Insights and Team Build Insights.
A 1-second improvement on a 30-second incremental build sounds small. At 50 builds a day, that adds up to 3.5 hours per developer per year -- or 35 hours across a team of ten.
Most projects have several seconds of easy wins hiding in build settings, script phases, and compiler flags. This skill finds them.
The orchestrator coordinates five specialist skills in a recommend-first workflow. Nothing is modified until you approve.
flowchart LR
Orchestrator --> Benchmark["Benchmark\n(clean + incremental)"]
Benchmark --> Compilation["Compilation\nAnalyzer"]
Benchmark --> Project["Project\nAnalyzer"]
Benchmark --> SPM["SPM\nAnalyzer"]
Compilation --> Plan["Optimization\nPlan"]
Project --> Plan
SPM --> Plan
Plan --> You{{"You review\n& approve"}}
You --> Fixer["Build\nFixer"]
Fixer --> ReBenchmark["Re-benchmark\n& verify"]
Phase 1 -- Analyze. The orchestrator benchmarks your project, runs the three specialist analyzers, and produces a prioritized optimization plan at .build-benchmark/optimization-plan.md. No project files are modified.
Use the Xcode build orchestrator to analyze build performance and come up with a plan for improvements.
Phase 2 -- Fix. Review the plan, check the approval boxes for the items you want, and ask the agent to apply them. The fixer implements only approved changes and re-benchmarks to verify.
Implement the approved items from the optimization plan at .build-benchmark/optimization-plan.md, then re-benchmark to verify the improvements.
The plan file is your evidence trail -- shareable with teammates, reviewable in PRs, and diffable over time.
The agent runs over 40 individual checks across build settings, project configuration, source code, and package dependencies.
npx claudepluginhub avdlee/xcode-build-optimization-agent-skill --plugin xcode-build-skillsExpert SwiftUI guidance for state management, view composition, performance, and iOS 26+ Liquid Glass adoption.
Analyze AvdLee Diagnostics HTML reports using embedded JSON first, with legacy HTML report fallback.
Expert Swift Testing guidance for test structure, #expect/#require usage, traits and tags, parameterized tests, async waiting patterns, parallel execution, and XCTest migration.
Expert guidance on Core Data persistence, data modeling, and performance. Covers NSPersistentContainer, fetch optimization, threading with NSManagedObjectID, batch operations, schema migration, and NSPersistentCloudKitContainer integration.
Audit Xcode developer storage, report recoverable GiB, and clean only explicitly approved items.
iOS development validation with Xcode build hooks.
Automatically pipe xcodebuild and swift build output through xcsift for structured TOON format optimized for LLM consumption
Agent skills for building, debugging, profiling, testing, refactoring, and shipping Swift apps across Apple platforms.
Develops iOS applications with XcodeGen, SwiftUI, and SPM. Use when configuring XcodeGen project.yml, resolving SPM dependency issues, deploying to devices, handling code signing, debugging camera/AVFoundation, iOS version compatibility issues, or fixing Library not loaded @rpath framework errors. Includes state machine testing patterns for @MainActor classes
Expert Swift 6.2 + SwiftUI for iOS 26, macOS 26, iPadOS 26, watchOS 26, visionOS 26, tvOS 26 with Liquid Glass, @Observable, actors, SwiftData inheritance
Battle-tested Claude Code skills, agents, and tools for modern xOS (iOS, iPadOS, macOS, watchOS, tvOS) development