Commands
Quick automated scans and workflows for your codebase. Run one by typing its name: /axiom:audit in Claude Code, or /axiom-audit in Cursor and Pi.
Start Here
Not sure which command to use? Start with /axiom:ask:
bash
/axiom:ask "My build is failing"
/axiom:ask "How do I optimize SwiftUI performance?"
/axiom:ask "Check my code for memory leaks"This routes your question to the right Axiom skill or agent automatically.
Available Commands
| Command | What It Checks | Output |
|---|---|---|
/axiom:ask | Natural language entry point to all Axiom skills | Triggers the right skill or agent |
/axiom:audit | Unified audit command - smart selector or direct area targeting | Suggestions or specific audit execution |
/axiom:analyze-crash | Parse and analyze crash logs (.ips, .crash) to identify root cause | Crash pattern categorization and actionable diagnostics |
/axiom:compare-traces | Two Instruments .trace recordings, diffed with xcprof compare | Function-level CPU-share deltas, with an exit code for CI gating |
/axiom:console | Simulator console output — print(), os_log(), Logger — as structured JSON | Guided capture with bounded defaults |
/axiom:fix-build | Xcode build failures, environment issues, zombie processes, Derived Data, SPM cache, simulator state | Automatic diagnostics and fixes with verification |
/axiom:health-check | Auto-detect relevant auditors, run in parallel, deduplicate findings | Prioritized report with executive summary + per-domain details |
/axiom:modernize | Legacy iOS patterns: ObservableObject, @StateObject, deprecated SwiftUI APIs | A migration path for each finding |
/axiom:optimize-build | Build performance bottlenecks, compilation settings, build phase scripts, type checking issues | Optimization recommendations with time savings estimates |
/axiom:profile | Automated performance profiling via xctrace CLI (CPU, memory, leaks, SwiftUI) | Trace recording, export, and analysis summary |
/axiom:resolve-deps | Swift Package Manager resolution failures, version conflicts, and the link errors they cause | An explanation of the conflict and how to resolve it |
/axiom:run-tests | Run XCUITests and parse .xcresult bundles for structured results | Test results with failure analysis and attachment export |
/axiom:screenshot | Quick screenshot capture from booted iOS Simulator | Screenshot file path + visual analysis |
/axiom:siri | Siri AI readiness: source audit, build, sirimetadataanalyzer, App Skills | Findings mapped to fixes, then SiriEvaluations next steps |
/axiom:status | Environment health, zombie processes, Derived Data size, simulator status, project stats | Dashboard with quick health metrics |
/axiom:test-simulator | Automated simulator testing with visual verification (screenshots, location, push, permissions, logs) | Test results with evidence (screenshots, logs) |
/axiom:triage | Production crashes and hangs from Sentry or App Store Connect | Crash families ranked by impact, with false positives flagged |
/axiom:ui | Inspect and exercise scoped UI with axui | A report distinguishing dispatch, verification, and cleanup |
Usage
bash
# Utility commands
/axiom:ask "My build is failing"
/axiom:audit # Smart mode - analyze and suggest audits
/axiom:health-check # Run all relevant auditors in parallel
/axiom:status # Check health
# Audit commands (unified syntax)
/axiom:audit accessibility # VoiceOver, Dynamic Type, WCAG
/axiom:audit concurrency # Swift 6 data races, actor isolation
/axiom:audit memory # Retain cycles, leaks
/axiom:audit swiftui-performance # Expensive body, missing lazy
/axiom:audit swiftui-architecture # Logic in view, testability
/axiom:audit swiftui-nav # Navigation architecture
/axiom:audit swift-performance # ARC issues, allocation
/axiom:audit core-data # Thread safety, migrations
/axiom:audit networking # Deprecated APIs
/axiom:audit codable # JSON serialization
/axiom:audit icloud # iCloud sync reliability
/axiom:audit storage # File storage safety
/axiom:audit liquid-glass # iOS 26 adoption
/axiom:audit textkit # TextKit modernization
# Build commands
/axiom:fix-build # Diagnose and fix build failures
/axiom:optimize-build # Optimize build performance
# Testing commands
/axiom:screenshot # Quick screenshot
/axiom:test-simulator # Full simulator testingCommands output results with file:line references and link to relevant skills for deeper analysis.
Command Categories
Utility
/axiom:ask– Natural language helper/axiom:audit– Unified audit command (smart selector or direct area targeting)/axiom:health-check– Run all relevant auditors in parallel with unified report/axiom:status– Project health dashboard
Build & Environment
/axiom:fix-build– Automatic build failure diagnosis and fixes/axiom:optimize-build– Build performance optimization/axiom:resolve-deps– Swift Package Manager conflicts and link errors
Debugging
/axiom:analyze-crash– Parse and analyze crash logs/axiom:compare-traces– Diff two performance traces for regressions/axiom:console– Capture simulator console output (print + os_log) as structured JSON/axiom:modernize– Migrate legacy iOS patterns to modern equivalents/axiom:profile– Automated performance profiling via xctrace CLI/axiom:triage– Rank production crashes and hangs from Sentry or App Store Connect
Integration
/axiom:siri– Siri AI readiness loop: audit, build, analyze metadata, check App Skills
Testing
/axiom:run-tests– Run XCUITests and parse results/axiom:screenshot– Quick simulator screenshot/axiom:test-simulator– Full simulator testing capabilities/axiom:ui– Drive and validate the simulator UI and accessibility
Audit Areas
The /axiom:audit command supports these areas:
Build
build– Build time optimization opportunities
UI & Design
accessibility– VoiceOver, Dynamic Type, WCAG complianceliquid-glass– Liquid Glass adoption opportunitiesresize– Scene-lifecycle gaps,UIScreen.main, fixed-canvas rendering, iPhone Mirroring inputswiftui-architecture– SwiftUI architecture and testabilityswiftui-layout– GeometryReader misuse, deprecated screen APIs, hardcoded breakpointsswiftui-nav– Navigation architectureswiftui-performance– SwiftUI performance anti-patternstextkit– TextKit 1 vs 2 modernizationtouch– Touch readiness on touch-display Macs and Sidecarux-flow– Dead ends, dismiss traps, missing states
Code Quality
codable– JSON serialization anti-patternsconcurrency– Swift 6 strict concurrencyenergy– Battery drain, timer abuse, pollingmemory– Memory leak detectionsecurity/privacy– Hardcoded credentials, Privacy Manifests, ATSswift-performance– ARC and allocation issuesswift-simplify– Behavior-preserving Swift clarity cleanupstest-failures– Why a specific test fails or flakestesting– Flaky tests, missing assertions, Swift Testing migration
Persistence & Storage
core-data– Core Data safety and migrationsdatabase-schema– Unsafe ALTER TABLE, DROP operations, migration safetygrdb-performance– GRDB query performance, app-group WAL setup, stale observationsicloud– iCloud sync reliabilitystorage– File storage safetyswiftdata– SwiftData models, relationships, N+1 patterns
Integration
camera– Camera capture issues, deprecated APIsfoundation-models– Foundation Models availability, session lifecycleiap– Missingtransaction.finish(), weak receipt validation, missing restore, subscription trackingnetworking– Deprecated networking APIssiri-ai– Siri AI readiness: tools, entities, dependencies, results, App Skillsspritekit– Physics bitmask issues, draw call waste
Shipping
screenshots– App Store screenshot validationmodernization– Legacy pattern migration (ObservableObject → @Observable)
Project-Wide
all– Run all relevant auditors via/axiom:health-check