Use this skill to implement approved build optimization changes and verify them with a benchmark.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionxcode-build-fixerExecute the skills CLI command in your project's root directory to begin installation:
Fetches xcode-build-fixer from avdlee/xcode-build-optimization-agent-skill and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate xcode-build-fixer. Access via /xcode-build-fixer in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
669
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
669
stars
Use this skill to implement approved build optimization changes and verify them with a benchmark.
The fixer expects one of:
.build-benchmark/optimization-plan.md with checked approval boxes.DEBUG_INFORMATION_FORMAT to dwarf for Debug").When working from an optimization plan, read the approval checklist and implement only the checked items.
Change project.pbxproj values to match the recommendations in build-settings-best-practices.md.
Typical fixes:
DEBUG_INFORMATION_FORMAT = dwarf for DebugSWIFT_COMPILATION_MODE = singlefile for DebugCOMPILATION_CACHE_ENABLE_CACHING = YESEAGER_LINKING = YES for DebugWhen editing project.pbxproj, locate the correct buildSettings block by matching the target name and configuration name. Verify the change with xcodebuild -showBuildSettings after applying.
Fix run script phases that waste time during incremental or debug builds.
Typical fixes:
[[ "$CONFIGURATION" != "Release" ]] && exit 0 for release-only scripts..xcfilelist files when the list is long.Based on dependency analysis when inputs and outputs are declared.Apply code changes that reduce type-checker and compiler overhead. See references/fix-patterns.md for before/after patterns.
Typical fixes:
final when they are not subclassed.private/fileprivate) for internal-only symbols.body properties into smaller composed subviews.Restructure Swift packages to improve build parallelism and reduce rebuild scope.
Typical fixes:
@_exported import usage.Before applying version pin changes:
git ls-remote --tags <url> to confirm tags exist. If the upstream has no tags, pin to a specific revision hash instead.xcodebuild -resolvePackageDependencies before proceeding.xcodebuild build to confirm no errors were introduced.python3 scripts/benchmark_builds.py \
--project App.xcodeproj \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=iPhone 16" \
--output-dir .build-benchmark
Not every slower number is a true regression. The fixer must evaluate the full picture before recommending a revert.
A change like COMPILATION_CACHE_ENABLE_CACHING = YES may make a standard clean build slightly slower (cache population overhead) while making cached clean builds significantly faster. Since cached clean builds reflect the realistic developer workflow (branch switching, pulling changes, Clean Build Folder with a warm cache), a slower standard clean build paired with a faster cached clean build is a net improvement, not a regression. The same logic applies to any change where the first-time cost is higher but subsequent builds benefit.
Evaluate standard clean, cached clean (when available), and incremental builds together. A change is only a clear regression if it makes the metrics that matter to the developer's daily workflow worse. If only the cold-start clean build is slower but the developer rarely does truly cold builds, that may be acceptable.
A single change that regresses on its own may still be worth keeping if it enables a larger cumulative improvement (e.g., enabling compilation caching makes one build type slower but unlocks cache benefits for everything else).
Some build settings are Apple's recommended modern defaults. These should be applied and kept regardless of whether the immediate benchmark shows a measurable improvement. They are not speculative optimizations -- they align the project with Apple's toolchain direction and will compound in value over future Xcode releases. The fixer must never recommend reverting these settings based on a single benchmark result.
Best-practice settings that should always be kept once applied:
COMPILATION_CACHE_ENABLE_CACHING = YES -- Apple is actively investing in this; the cache improves with each Xcode release and compounds across real workflowsEAGER_LINKING = YES (Debug) -- allows the linker to overlap with compilationSWIFT_USE_INTEGRATED_DRIVER = YES -- eliminates inter-process scheduling overheadDEBUG_INFORMATION_FORMAT = dwarf (Debug) -- avoids unnecessary dSYM generationSWIFT_COMPILATION_MODE = singlefile (Debug) -- incremental recompilationONLY_ACTIVE_ARCH = YES (Debug) -- no reason to build all architectures locallyWhen reporting on these settings, use language like: "Applied recommended build setting. No immediate benchmark improvement measured, but this aligns with Apple's recommended configuration and positions the project for future Xcode improvements."
For changes that are not best-practice settings (e.g., source refactors, linkage experiments, script phase modifications, dependency restructuring):
Recommend revert and the measured delta.Lead with the wall-clock result in plain language:
"Your clean build now takes X.Xs (was Y.Ys) -- Z.Zs faster." "Your incremental build now takes X.Xs (was Y.Ys) -- Z.Zs faster."
Then include:
If cumulative task metrics improved but wall-clock did not, say plainly: "Compiler workload decreased but build wait time did not improve. This is expected when Xcode runs these tasks in parallel with other equally long work."
If a fix produced no measurable wall-time improvement, note No measurable wall-time improvement and suggest whether to keep (e.g. for code quality) or revert.
For changes valuable for non-benchmark reasons (deterministic package resolution, branch-switch caching), label them: "No wait-time improvement expected from this change. The benefit is [deterministic builds / faster branch switching / reduced CI cost]."
Note: COMPILATION_CACHE_ENABLE_CACHING has been measured at 5-14% faster clean builds across tested projects (87 to 1,991 Swift files). The benefit compounds in real developer workflows where the cache persists between builds -- branch switching, pulling changes, and CI with persistent DerivedData. The benchmark script auto-detects this setting and runs a cached clean phase for validation.
After the optimization pass is complete, produce a structured execution report. This gives the developer a clear summary of what was attempted, what worked, and what the final state is.
Structure:
## Execution Report
### Baseline
- Clean build median: X.Xs
- Cached clean build median: X.Xs (if applicable)
- Incremental build median: X.Xs
### Changes Applied
| # | Change | Actionability | Measured Result | Status |
|---|--------|---------------|-----------------|--------|
| 1 | Description | repo-local | Clean: X.Xs→Y.Ys, Incr: X.Xs→Y.Ys | Kept / Reverted / Blocked |
| 2 | ... | ... | ... | ... |
### Final Cumulative Result
- Clean build median: X.Xs (was Y.Ys) -- Z.Zs faster/slower
- Cached clean build median: X.Xs (was Y.Ys) -- Z.Zs faster/slower
- Incremental build median: X.Xs (was Y.Ys) -- Z.Zs faster/slower
- **Net result:** Faster / Slower / Unchanged
### Blocked or Non-Actionable Findings
- Finding: reason it could not be addressed from the repo
Status values:
Kept -- Change improved or maintained build times and was kept.Kept (best practice) -- Change is a recommended build setting; kept regardless of immediate benchmark result.Reverted -- Change regressed build times and was reverted.Blocked -- Change could not be applied due to project structure, Xcode behavior, or external constraints.No improvement -- Change compiled but showed no measurable wall-time benefit. Include whether it was kept (for non-performance reasons) or reverted.If during implementation you discover issues outside this skill's scope:
xcode-project-analyzerxcode-compilation-analyzerspm-build-analysisPrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
leonxlnx/taste-skill
sickn33/antigravity-awesome-skills
erichowens/some_claude_skills
We added xcode-build-fixer from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
xcode-build-fixer has been reliable in day-to-day use. Documentation quality is above average for community skills.
xcode-build-fixer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
xcode-build-fixer is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
I recommend xcode-build-fixer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
xcode-build-fixer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Useful defaults in xcode-build-fixer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added xcode-build-fixer from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: xcode-build-fixer is the kind of skill you can hand to a new teammate without a long onboarding doc.
Solid pick for teams standardizing on skills: xcode-build-fixer is focused, and the summary matches what you get after install.
showing 1-10 of 68