axiom-accessibility
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance,…
Use when the user wants to audit test quality, find flaky test patterns, speed up test execution, or prepare for Swift Testing migration.
Claude Code
$ npx -y skills add charleswiltgen/axiom --skill axiom-audit-testing --agent claude-code
Codex
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a codex -y
Cursor
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a cursor -y
Gemini CLI
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a gemini-cli -y
GitHub Copilot
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a github-copilot -y
OpenCode
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a opencode -y
Windsurf
$ npx skills add charleswiltgen/axiom --skill axiom-audit-testing -a windsurf -y
name: axiom-audit-testing description: Use when the user wants to audit test quality, find flaky test patterns, speed up test execution, or prepare for Swift Testing migration. license: MIT
You are an expert at detecting test quality issues — both known anti-patterns AND missing/incomplete test coverage that leaves critical paths unverified.
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
**Test files**: `*Tests.swift`, `*Test.swift`, `*Spec.swift` **Production files**: `**/*.swift` (for coverage shape mapping in Phase 1) Skip: `*Previews.swift`, `*/Pods/*`, `*/Carthage/*`, `*/.build/*`, `*/DerivedData/*`, `*/scratch/*`, `*/docs/*`, `*/.claude/*`, `*/.claude-plugin/*`
Glob: **/*.swift (production code — excluding test/vendor paths) Glob: **/*Tests.swift, **/*Test.swift, **/*Spec.swift (test code) For each test file, grep for: - `@testable import` — which production modules are tested - `import XCTest` vs `import Testing` — which framework - `XCUIApplication` — UI test vs unit test
Read key production files to identify:
Match production modules/directories against test files:
Write a brief **Coverage Shape Map** (8-12 lines) summarizing:
Present this map in the output before proceeding.
Run all 5 existing detection categories. For each potential match, read surrounding context to verify it's a real issue before reporting.
**Flaky patterns**:
sleep\( Thread\.sleep usleep\( static var.*= class var.*=
**Speed indicators**:
import XCTest import UIKit|SwiftUI (in unit test files — may not need simulator) XCUIApplication @testable import
**Migration candidates**:
XCTestCase
XCTAssertEqual|XCTAssertTrue|XCTAssertNil
func test.*\(\).*\{**Swift 6 issues**:
@MainActor.*class|struct class.*XCTestCase
**Quality issues**:
func test.*\{ (check for missing assertions in body)
try!|as!
setUp\(|setUpWithError\( (check line count)**AI evaluation gates** (`OS27`):
import Evaluations \.evaluates\( aggregateValue samplingMode|GenerationOptions (is the subject pinned to .greedy?) computeStandardDeviation (is the noise floor even measured?) ModelJudgeEvaluator (judge metrics CANNOT be pinned deterministic) \.enabled\(if: (is the gate guarded on model availability?)
**Search**: `sleep(`, `Thread.sleep`, `usleep(` **Issue**: Arbitrary waits cause timing-dependent failures, especially in CI **Fix**: Use condition-based waiting:
// ✅ Swift Testing
await confirmation { confirm in
observer.onComplete = { confirm() }
await triggerAction() // await it: confirmation checks the count when this
} // closure returns — it never waits for a late callback
// ✅ XCTest
let element = app.buttons["Submit"]
XCTAssertTrue(element.waitForExistence(timeout: 5))**Search**: `static var` or `class var` in test classes **Issue**: Parallel test execution causes race conditions **Fix**: Use instance properties, fresh setup per test
**Detection**: Tests that reference results from other test methods, or setUp that depends on test order **Issue**: Swift Testing randomizes test order; XCTest runs tests deterministically (effectively alphabetical) unless the test plan sets `testExecutionOrdering` to random **Fix**: Make each test independent
**Search**: `\.evaluates\(`, `aggregateValue`, `EvaluationContext` — then check the surrounding test for the three things below **Issue**: An eval gate is a flaky-test generator unless the nondeterminism is pinned and measured. A model isn't a pure function, so `#expect(aggregateValue(...) >= 3.5)` on a small dataset flaps red/green on unchanged code — and a flapping gate gets disabled by the team within two sprints, which is worse than having no gate.
Flag a `.evaluates` test when **any** of these hold:
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…