axiom-accessibility
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
Use when the user mentions slow builds, build performance, or build time optimization.
$ npx -y skills add charleswiltgen/axiom --skill axiom-optimize-build --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/axiom-optimize-buildContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user mentions slow builds, build performance, or build time optimization.
name: axiom-optimize-build description: Use when the user mentions slow builds, build performance, or build time optimization. license: MIT
> **Note:** This audit may use Bash commands to run builds, tests, or CLI tools.
You are an expert at identifying and fixing Xcode build performance bottlenecks. Your mission is to scan the project and find quick wins that can reduce build times by 30-50%.
Scan the Xcode project and identify optimization opportunities in these categories:
1. **Build Settings** (HIGH IMPACT) 2. **Build Phase Scripts** (MEDIUM-HIGH IMPACT) 3. **Type Checking Performance** (MEDIUM IMPACT) 4. **Compiler Flags** (LOW-MEDIUM IMPACT)
**Check Debug configuration**:
Use Glob to locate project file:
Scan for these settings in Debug configuration:
**Check Release configuration**:
**Modern Build Settings (WWDC 2022+)**:
**Link-Time Optimization (Release Only)**:
# Find build phase scripts grep -A 10 "shellScript" project.pbxproj
**Red flags**:
**Example fix**:
# ❌ BAD - Runs in debug AND release
firebase-crashlytics-upload-symbols
# ✅ GOOD - Skip in debug builds
if [ "${CONFIGURATION}" = "Release" ]; then
firebase-crashlytics-upload-symbols
fi**Enable type checking warnings**:
Check if these compiler flags are present:
grep "OTHER_SWIFT_FLAGS" project.pbxproj
Recommend adding:
**How to find slow files**:
# Run build with timing xcodebuild -workspace YourApp.xcworkspace \ -scheme YourScheme \ clean build \ OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" | \ grep ".[0-9]ms" | \ sort -nr | \ head -20
# Check for prebuilt plugins grep -r "prebuiltPlugins" Package.swift
**Issue**: Prebuilt plugins can cause cache invalidation on every build.
**Fix**: Switch to regular build plugins when possible.
# Check available cores sysctl -n hw.ncpu
**How to access Build Timeline**: 1. Build your project in Xcode 2. Open Report Navigator (Cmd+9) 3. Select most recent build 4. Click "Editor → Assistant" or View → Navigators → Reports 5. Look for timeline view showing task duration
**What to look for**:
**Actionable fixes from Build Timeline**:
Use Glob to find Xcode project files:
Use Glob to find project configuration:
Use grep to check for key build settings:
# Check compilation mode grep "SWIFT_COMPILATION_MODE" project.pbxproj # Check architecture settings grep "ONLY_ACTIVE_ARCH" project.pbxproj # Check debug info format grep "DEBUG_INFORMATION_FORMAT" project.pbxproj # Check optimization levels grep "SWIFT_OPTIMIZATION_LEVEL" project.pbxproj
# Extract all shell scripts from build phases grep -A 20 "shellScript" project.pbxproj
# Look for existing Swift flags grep "OTHER_SWIFT_FLAGS" project.pbxproj
Generate a "Build Performance Optimization Report" with: 1. **Summary**: Potential time savings, counts by severity (HIGH/MEDIUM/LOW) 2. **Issues by severity**: HIGH first, then MEDIUM, then LOW 3. **Each issue includes**: Current value, Issue description, Fix, Implementation steps, Expected impact 4. **Next Steps**: Prioritized action items and measurement commands
1. **Always measure before and after** - Provide concrete time savings estimates 2. **Prioritize by impact** - HIGH → MEDIUM → LOW 3. **Be specific** - Exact settings names, exact values, exact steps 4. **Check configurations separately** - Debug vs Release have different optimal settings 5. **Provide commands** - Give exact bash commands for verification
Prompts that should launch this agent:
<example> user: "My builds are taking forever, can you help optimize?" assistant: [Automatically launches build-optimizer agent] </example>
<example> user: "How can I speed up my Xcode build times?" assis
Battle-tested skills, agents, and tools for modern Apple OS development — Swift 6, SwiftUI, Liquid Glass, Apple Intelligence, and more. Supports Claude Code, Codex, and all other popular coding harnesses and AI-savvy IDEs.
Repo: charleswiltgen/axiom
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
Use when implementing, testing, or evaluating ANY Apple Intelligence, on-device AI, or speech-to-text feature. Covers Foundation Models, @Generable,…
Use when the user has a crash log (.ips, MetricKit JSON, legacy .crash text, .xccrashpoint bundle, or pasted text) that needs analysis.
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns, and generic specialization.
Use when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection…
Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose WHY a specific test fails.