Skip to content

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 ​

CommandWhat It ChecksOutput
/axiom:askNatural language entry point to all Axiom skillsTriggers the right skill or agent
/axiom:auditUnified audit command - smart selector or direct area targetingSuggestions or specific audit execution
/axiom:analyze-crashParse and analyze crash logs (.ips, .crash) to identify root causeCrash pattern categorization and actionable diagnostics
/axiom:compare-tracesTwo Instruments .trace recordings, diffed with xcprof compareFunction-level CPU-share deltas, with an exit code for CI gating
/axiom:consoleSimulator console output — print(), os_log(), Logger — as structured JSONGuided capture with bounded defaults
/axiom:fix-buildXcode build failures, environment issues, zombie processes, Derived Data, SPM cache, simulator stateAutomatic diagnostics and fixes with verification
/axiom:health-checkAuto-detect relevant auditors, run in parallel, deduplicate findingsPrioritized report with executive summary + per-domain details
/axiom:modernizeLegacy iOS patterns: ObservableObject, @StateObject, deprecated SwiftUI APIsA migration path for each finding
/axiom:optimize-buildBuild performance bottlenecks, compilation settings, build phase scripts, type checking issuesOptimization recommendations with time savings estimates
/axiom:profileAutomated performance profiling via xctrace CLI (CPU, memory, leaks, SwiftUI)Trace recording, export, and analysis summary
/axiom:resolve-depsSwift Package Manager resolution failures, version conflicts, and the link errors they causeAn explanation of the conflict and how to resolve it
/axiom:run-testsRun XCUITests and parse .xcresult bundles for structured resultsTest results with failure analysis and attachment export
/axiom:screenshotQuick screenshot capture from booted iOS SimulatorScreenshot file path + visual analysis
/axiom:siriSiri AI readiness: source audit, build, sirimetadataanalyzer, App SkillsFindings mapped to fixes, then SiriEvaluations next steps
/axiom:statusEnvironment health, zombie processes, Derived Data size, simulator status, project statsDashboard with quick health metrics
/axiom:test-simulatorAutomated simulator testing with visual verification (screenshots, location, push, permissions, logs)Test results with evidence (screenshots, logs)
/axiom:triageProduction crashes and hangs from Sentry or App Store ConnectCrash families ranked by impact, with false positives flagged
/axiom:uiInspect and exercise scoped UI with axuiA 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 testing

Commands 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 compliance
  • liquid-glass – Liquid Glass adoption opportunities
  • resize – Scene-lifecycle gaps, UIScreen.main, fixed-canvas rendering, iPhone Mirroring input
  • swiftui-architecture – SwiftUI architecture and testability
  • swiftui-layout – GeometryReader misuse, deprecated screen APIs, hardcoded breakpoints
  • swiftui-nav – Navigation architecture
  • swiftui-performance – SwiftUI performance anti-patterns
  • textkit – TextKit 1 vs 2 modernization
  • touch – Touch readiness on touch-display Macs and Sidecar
  • ux-flow – Dead ends, dismiss traps, missing states

Code Quality ​

  • codable – JSON serialization anti-patterns
  • concurrency – Swift 6 strict concurrency
  • energy – Battery drain, timer abuse, polling
  • memory – Memory leak detection
  • security / privacy – Hardcoded credentials, Privacy Manifests, ATS
  • swift-performance – ARC and allocation issues
  • swift-simplify – Behavior-preserving Swift clarity cleanups
  • test-failures – Why a specific test fails or flakes
  • testing – Flaky tests, missing assertions, Swift Testing migration

Persistence & Storage ​

  • core-data – Core Data safety and migrations
  • database-schema – Unsafe ALTER TABLE, DROP operations, migration safety
  • grdb-performance – GRDB query performance, app-group WAL setup, stale observations
  • icloud – iCloud sync reliability
  • storage – File storage safety
  • swiftdata – SwiftData models, relationships, N+1 patterns

Integration ​

  • camera – Camera capture issues, deprecated APIs
  • foundation-models – Foundation Models availability, session lifecycle
  • iap – Missing transaction.finish(), weak receipt validation, missing restore, subscription tracking
  • networking – Deprecated networking APIs
  • siri-ai – Siri AI readiness: tools, entities, dependencies, results, App Skills
  • spritekit – Physics bitmask issues, draw call waste

Shipping ​

  • screenshots – App Store screenshot validation
  • modernization – Legacy pattern migration (ObservableObject → @Observable)

Project-Wide ​

  • all – Run all relevant auditors via /axiom:health-check

Released under the MIT License