⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

spm-build-analysis

@avdlee⭐ 1.2k stars

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.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐⭐⭐⭐ 1.2kGitHub ↗

Very popular

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Xcode Build Optimization Agent Skills

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.

Quick Start

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.

Every Second Counts

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.

How It Works

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.

What It Checks

The agent runs over 40 individual checks across build settings, project configuration, source code, and package dependencies.

CheckWhat the agent looks for
Build settings auditDebug/Release/General settings against best practices (compilation mode, optimization level, eager linking, compilation caching)Details
Script phase analysisMissing input/output declarations, scripts running unnecessarily, debug/simulator guardsDetails
Compile hotspot detectionLong type-checks, complex expressions, compiler diagnostic flagsDetails
Zero-change build overheadFixed-cost phases (codesign, validation, scripts) inflating incremental buildsDetails
Target dependency reviewAccuracy, parallelism blockers, monolithic targetsDetails
Module variant detectionConfig drift across targets causing duplicate module buildsDetails
SPM graph analysisPlugin overhead, branch pins, package layering, circular dependenciesDetails
Swift macro impactCascading rebuilds, swift-syntax universal buildsDetails
SwiftUI view decompositionMonolithic body properties, result builder complexityDetails
Asset catalog parallelismSingle-threaded compilation bottleneck, splitting for parallel buildsDetails
Access control optimizationMissing final, overly broad visibility inflating compiler workDetails
Incremental build diagnosticsPlanning Swift module, SwiftEmitModule, Task BacktracesDetails

Community Results

Real-world improvements reported by developers who used these skills. Add your own by opening a pull request.

The xcode-build-orchestrator generates your table row at the end of every optimization run, so contributing is a single copy-paste.

[!NOTE] A small clean-build increase is normal when enabling compilation caching -- the first cold build populates the cache. Cached clean builds (branch switching, pulling changes) and incremental builds are where the real gains show up.

AppClean BuildIncremental Build
Helm for App Store Connect86s → 91s (+5s / within noise)70s → 9s (-61s / 87% faster)
Stock Analyzer41.5s → 33.2s (-8.3s / 20% faster)5.3s → 3.6s (-1.7s / 32% faster)
Enchanted19.4s → 16.6s (-2.8s / 14% faster)2.5s → 2.2s (-0.3s / 12% faster)
Wikipedia iOS48.7s → 46.5s (-2.2s / 5% faster)12.9s → 12.2s (-0.7s / 5% faster)
Kickstarter iOS83.4s → 83.5s (~0s / within noise)10.9s → 10.6s (-0.3s / 3% faster)
Dash67.8s → 66.9s (-0.9s / within noise)6.7s → 7.1s (+0.4s / within noise)
Klivvr247ss → 167s (-80s / 32% faster)48s → 48s (same)

Who This Is For

  • iOS and macOS teams with slow local build loops
  • developers investigating a recent build-time regression
  • teams that want evidence-backed Xcode build optimization instead of guesswork
  • developers who want a reusable Agent Skills package, not a one-off script

Included Skills

SkillPurpose
xcode-build-orchestratorEnd-to-end workflow: benchmark, analyze, prioritize, approve, fix, re-benchmark
xcode-build-benchmarkRepeatable clean and incremental build benchmarks with timestamped artifacts
xcode-compilation-analyzerSwift compile hotspot analysis and source-level recommendations
xcode-project-analyzerBuild settings, scheme, script phase, and target dependency auditing
spm-build-analysisPackage graph, plugin overhead, and module variant review
xcode-build-fixerApply approved optimization changes and verify with benchmarks

The orchestrator is the recommended starting point -- it coordinates the other five skills automatically. Install all six skills so the orchestrator can access each specialist.

Installation Options

Option A: Using skills.sh

Install all six skills (required -- the orchestrator depends on the specialist skills):

npx skills add https://github.com/avdl

// HOW IT'S BUILT

KEY FILES

skills/spm-build-analysis/SKILL.mdREADME.md

// REPO STATS

1.2k stars

// ACTIONS

Rate this skill

login to rate

// SCORE

Pending review

// DETAILS

Categoryother
Author@avdlee
Versionversion unknown
PriceFree