xcode-build-fixer
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.
Security Assessment
About xcode-build-fixer
The xcode-build-fixer skill helps developers implement approved Xcode build optimization changes and validate their impact through benchmarking. It is designed to work alongside an existing optimization workflow, applying only explicitly approved changes from an optimization plan or direct developer instructions. The skill focuses on improving build performance, reducing unnecessary compilation overhead, and ensuring that modifications remain reviewable, reversible, and measurable. After each optimization is applied, the skill re-runs benchmarks and reports the exact changes made, the files affected, and the measured performance delta.
The skill supports multiple categories of build optimization fixes. It can modify Xcode build settings within project.pbxproj files, optimize run script phases by adding dependency analysis guards and input/output declarations, and apply source-level Swift compilation improvements to reduce compiler and type-checking overhead. It also supports Swift Package Manager restructuring tasks such as splitting oversized modules, reducing dependency complexity, aligning build options across targets, and pinning dependencies to deterministic versions or revisions. Verification steps such as checking build settings with xcodebuild and validating package resolution are included as part of the workflow.
This skill is intended for iOS and macOS developers, build engineers, and teams managing large Xcode projects with slow builds or inefficient compilation behavior. It is especially useful after build analysis has already identified bottlenecks and generated optimization recommendations. Typical use cases include improving debug build performance, reducing incremental build times, optimizing SwiftUI-heavy codebases, and restructuring Swift package dependencies to improve parallelism and rebuild isolation.
FAQ
What input does the xcode-build-fixer skill require?
The skill requires either an approved optimization plan located at .build-benchmark/optimization-plan.md with checked approval items, or a direct developer instruction describing a specific fix to apply.
Does the skill automatically decide which optimizations to apply?
No. The skill only applies changes that have explicit developer approval or direct developer instructions. Unapproved optimizations are not implemented.
Can this skill modify Swift source code as part of build optimization?
Yes. The skill can apply source-level compilation fixes such as adding explicit type annotations, simplifying complex expressions, marking classes as final, tightening access control, and restructuring SwiftUI code.
How does the skill verify that optimizations improved build performance?
After each logical fix is applied, the skill re-benchmarks the build and reports the measured performance impact, including regressions or cases where no improvement was observed.
Is the skill compatible with Swift Package Manager projects?
Yes. The skill includes support for Swift Package Manager restructuring tasks such as splitting large modules, aligning build options, removing unnecessary exports, and pinning dependencies to deterministic versions or revisions.
Install xcode-build-fixer
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
