ax-testing

ax-testing is a skill for Claude Code from Kasempiternal/axiom-v2. It costs 8 tokens per session (3,048 once invoked), scanned A, original, MIT.

A guide to testing Swift code with Swift Testing, Apple's modern testing framework for writing checks against program behavior.

In plain words
What is it for?
Use it to create test cases and suites, mark tests with traits, test errors and async functions, and run parameterized tests across several inputs.
Why use it?
It provides patterns for organizing tests and checking normal results, errors, asynchronous code, and multiple input values.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the axiom plugin — 40 skills, 8 commands, 12 agents, 2 hooks shipped together

Good fit Use it to create test cases and suites, mark tests with traits, test errors and async functions, and run parameterized tests across several inputs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kasempiternal/axiom-v2/ax-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kasempiternal/axiom-v2 --skill ax-testing
Clone the repo
git clone --depth 1 https://github.com/Kasempiternal/axiom-v2

Made for: Claude Code.

Or install axiom, the plugin that ships this one along with the rest of its 40 skills, 8 commands, 12 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ax-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/kasempiternal/axiom-v2/ax-testing.svg)](https://agentmods.dev/skills/kasempiternal/axiom-v2/ax-testing)
Your own site
<a href="https://agentmods.dev/skills/kasempiternal/axiom-v2/ax-testing"><img src="https://agentmods.dev/badge/skills/kasempiternal/axiom-v2/ax-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,048 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.03048
Opus 5 $0.00004 $0.01524
Sonnet 5 $0.00002 $0.00610
Haiku 4.5 $0.00001 $0.00305

Measured 7d ago against content hash ca8a3d222c90, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ax-testing scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

let user = try await api.fetch(id: 1)
axiom-plugin/skills/ax-testing/SKILL.md · 410 lines

How it starts

The opening of the file, as written. The whole thing — 410 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing

Quick Patterns

Swift Testing Basics

import Testing

@Test("User has correct name") func userName() {
    let user = User(name: "Alice")
    #expect(user.name == "Alice")
}

@Test func fetchUser() async throws {
    let user = try await api.fetch(id: 1)
    #expect(user.isActive)
}

// Unwrap or fail fast
let first = try #require(items.first)
#expect(first.isValid)

// Error testing
#expect(throws: ValidationError.invalidEmail) {
    try validate(email: "bad")
}

Suites and Traits

@Suite("Video Tests")
struct VideoTests {
    let video = Video(named: "sample.mp4") // Fresh per test

    @Test func duration() { #expect(video.duration == 120) }

    @Test(.disabled("Backend not ready")) func upload() async { }
    @Test(.timeLimit(.minutes(1))) func transcode() async { }
    @Test(.bug("https://github.com/org/repo/issues/42")) func edgeCase() { }
}

extension Tag {
    @Tag static var networking: Self
    @Tag static var slow: Self
}

@Test(.tags(.networking, .slow)) func integrationTest() async { }

Parameterized Tests

@Test(arguments: [IceCream.vanilla, .chocolate, .strawberry])
func flavorWithoutNuts(_ flavor: IceCream) {
    #expect(!flavor.containsNuts)
}

// Two collections = all combinations (cartesian product)
@Test(arguments: [1, 2, 3], ["a", "b", "c"])
func allCombinations(number: Int, letter: String) { }

// Paired values only
@Test(arguments: zip([1, 2, 3], ["one", "two", "three"]))
func paired(number: Int, name: String) { }

Async Testing

// Callback -> confirmation (replaces XCTestExpectation)
@Test func notificationFires() async {
    await confirmation { confirm in
        NotificationCenter.default.addObserver(forName: .didUpdate, object: nil, queue: .main) { _ in
            confirm()
        }
        triggerUpdate()
    }
}

// Multiple events
await confirmation("eaten", expectedCount: 10) { confirm in
    jar.onEaten = { confirm() }
    await jar.eatAll()
}

// Verify never happens
await confirmation(expectedCount: 0) { confirm in
    cache.onEviction = { confirm() }
    cache.store("small")
}

// MainActor isolation
@Test @MainActor func viewModelUpdates() async {
    let vm = ViewModel()
    await vm.load()
    #expect(vm.items.count > 0)
}

Read the full file on GitHub · 410 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 410 lines · 8 tokens per session scan A ca8a3d222c90

Subscribe to this mod's changes

ax-testing is a skill published in the GitHub repository Kasempiternal/axiom-v2 (4 stars, last pushed 6mo ago), licensed MIT. It adds 8 tokens to every session and 3,048 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

device-interaction

Verify iOS app behavior on device or simulator via screenshots, UI hierarchy, and touch interactions.

superagents-lab/xcode27-skills · 23 tokens

ios-simulator

Build, install, launch, inspect, and test iOS apps with Simulator and simctl. Use for simulator lifecycle, screenshots, logs, permissions, locations, push payloads, app containers, and repeatable local or CI verification.

thiennc-tesoglobal/ios-skills · 51 tokens

swift-testing

Write, review, or migrate Swift unit tests using Swift Testing, while preserving XCTest/XCUITest where their APIs are still required. Use for test design, async behavior, traits, parameterization, migration boundaries, and version-gated testing APIs.

thiennc-tesoglobal/ios-skills · 52 tokens

workflow-audit

Systematic UI workflow auditing for SwiftUI applications. Discovers entry points, traces user flows, detects dead ends and broken promises, audits data wiring, evaluates from user perspective. Triggers: "workflow audit", "audit flows", "find dead ends", "check navigation".

Terryc21/workflow-audit · 59 tokens

swift-expert

Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.

personamanagmentlayer/pcl · 76 tokens

ios-expert

Expert in iOS development with SwiftUI, UIKit, Combine, and Apple ecosystem integration. Use when the user mentions mobile, Swift, SwiftUI, UIKit, Apple platforms, or Xcode, or when the task involves iOS App Architecture, SwiftUI Fundamentals, UIKit Essentials, or Combine Framework.

personamanagmentlayer/pcl · 64 tokens