axiom-accessibility
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance,…
Use when the user mentions slow builds, build performance, or build time optimization.
Claude Code
$ npx -y skills add charleswiltgen/axiom --skill axiom-optimize-build --agent claude-code
Codex
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a codex -y
Cursor
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a cursor -y
Gemini CLI
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a gemini-cli -y
GitHub Copilot
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a github-copilot -y
OpenCode
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a opencode -y
Windsurf
$ npx skills add charleswiltgen/axiom --skill axiom-optimize-build -a windsurf -y
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%.
Before recommending edits to a `.pbxproj` or `.xcproj` file, warn: "Modifying Xcode project file. Ensure backup exists". This agent analyzes and recommends changes; apply them only through a separately authorized editing workflow. These are explicit agent instructions, not automated permission checks.
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**:
Follow `axiom-build (skills/build-performance.md)`, "Project selection and effective settings": discover both inner filenames at any depth, select the project/target/configuration/SDK explicitly, and distinguish declarations from a fresh Xcode effective-settings capture. Check `command -v xcproject`. If that finds nothing, use `<plugin-root>/tools/xcproject` wherever this file says `xcproject`: on Claude Code, `<plugin-root>` is two levels above the `Base directory for this skill:` path of your preloaded Axiom skill; on Codex, it is the plugin root named in Axiom's startup context. Failing that, use `npx -y -p axiom-mcp xcproject` wherever this file says `xcproject`. `xcproject inspect` is read-only; an Xcode query needs authorized scope because it can resolve packages or write state. If no effective capture is permitted, label values declared/unverified. Never report the first grep hit as the selected Debug setting.
Scan for these settings in Debug configuration:
**Check Release configuration**:
**Modern Build Settings (WWDC 2022+)**:
**Link-Time Optimization (Release Only)**:
# Read the selected target's entire phase/rule graph; script bodies can be arrays. xcproject inspect --project "$PROJECT" --target "$TARGET" --configuration "$CONFIGURATION"
**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 (an array value spans several lines — read the whole value):
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key OTHER_SWIFT_FLAGS --value-only
Recommend adding:
**How to find slow files**:
# After build authorization, set BUILD_LOG to a task-owned file. # Inventory running builds first (exit 1 = none, 0 = listed, 2/3 = inventory failed). pgrep -lx xcodebuild; echo "pgrep exit=$?" if xcodebuild -workspace YourApp.xcworkspace \ -scheme YourScheme \ build \ OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" > "$BUILD_LOG" 2>&1; then grep ".[0-9]ms" "$BUILD_LOG" | sort -nr | head -20 else build_status=$? echo "Timing build failed for YourApp.xcworkspace/YourScheme (exit $build_status); see $BUILD_LOG" >&2 exit "$build_status" fi
# 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**:
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.
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance,…
Use when implementing, testing, or evaluating ANY Apple Intelligence, on-device AI, or speech-to-text feature. Covers Foundation…
Use when the user has a crash log (.ips, MetricKit JSON, legacy .crash text, .xccrashpoint bundle, or pasted text) that needs…
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns,…
Use when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies,…
Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose…
Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP…