# spm-build-analysis

> Claude/Codex skill by [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars · Updated 2026-08-12

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.

Tags: agent, agent-skills, ios, ios-development, skills, xcode

## Install

```sh
git clone https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill /tmp/Xcode-Build-Optimization-Agent-Skill && ln -s /tmp/Xcode-Build-Optimization-Agent-Skill/skills/spm-build-analysis ~/.claude/skills/spm-build-analysis
```

## From README

SPM Build Analysis Use this skill when package structure, plugins, or dependency configuration are likely contributing to slow Xcode builds. Core Rules Treat package analysis as evidence gathering first, not a mandate to replace dependencies. Separate package-graph issues from project-setting issues. Do not rewrite package manifests or dependency sources without explicit approval. What To Inspect Package.swift and Package.resolved local packages vs remote packages package plugin and build-tool binary target footprint dependency layering, repeated imports, and potential cycles build logs or timing summaries that show package-related work Verification Before Recommending Before including any local package in a recommendation, verify that it is actually part of the project's dependency graph. A Vendor/ directory may contain packages that are not linked to any target. Check project.pbxproj for XCLocalSwiftPackageReference entries that reference the package path.

## Links

- HTML page: https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/spm-build-analysis/
- GitHub: https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill
- Author: [@avdlee](https://omgskills.com/library/avdlee/index.md)

## More from this repo

- [xcode-build-benchmark](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-benchmark/index.md) — Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-fixer](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-fixer/index.md) — Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-orchestrator](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-orchestrator/index.md) — Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
