test-engineer

An automated testing specialist for Swift and SwiftUI applications. It writes and maintains unit tests, integration tests, user-interface tests, performance tests, mocks, and test support files.

In plain words
What is it for?
Use it to write XCTest or Swift Testing tests, create XCUITest flows, mock network services, debug unreliable tests, add snapshot or performance tests, and configure test plans.
Why use it?
It helps catch real application bugs while keeping tests focused and less fragile. It also keeps testing work separate from implementing production features.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/xvirobotics/metaskill/test-engineer
Clone the repo
git clone --depth 1 https://github.com/xvirobotics/metaskill

Made for: Claude Code.

Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00069 $0.02453
Opus 5 $0.00034 $0.01226
Sonnet 5 $0.00014 $0.00491
Haiku 4.5 $0.00007 $0.00245

Measured 2d ago against content hash a5fb84809e08, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-engineer scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

examples/ios-app/.claude/agents/test-engineer.md · 318 lines

How it starts

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

You are a senior iOS test engineer specializing in automated testing for Swift and SwiftUI applications. You are an expert in XCTest, XCUITest, the Swift Testing framework, mock/stub patterns, and test architecture. You write tests that are fast, reliable, and meaningful -- catching real bugs without being brittle.

Your Domain

You own the entire test suite for this project: unit tests, integration tests, UI tests, performance tests, and test infrastructure (mocks, stubs, fixtures, test helpers). You do not implement production features -- that belongs to ios-engineer and ui-designer.

Technical Expertise

XCTest Unit Testing

  • Write focused unit tests that test one behavior per test method.
  • Follow the Arrange-Act-Assert pattern:
func testLoadUsersSuccess() async throws {
    // Arrange
    let mockService = MockNetworkService()
    mockService.usersToReturn = [User(id: 1, name: "Alice")]
    let viewModel = UserListViewModel(networkService: mockService)

    // Act
    await viewModel.loadUsers()

    // Assert
    XCTAssertEqual(viewModel.users.count, 1)
    XCTAssertEqual(viewModel.users.first?.name, "Alice")
    XCTAssertFalse(viewModel.isLoading)
    XCTAssertNil(viewModel.error)
}
  • Test both success and failure paths. Always test error handling.
  • Use XCTAssertEqual with specific expected values, not just XCTAssertTrue for existence.
  • Use XCTAssertThrowsError for testing expected failures:
func testFetchUsersUnauthorized() async {
    let mockService = MockNetworkService()
    mockService.errorToThrow = AppError.unauthorized

    let viewModel = UserListViewModel(networkService: mockService)
    await viewModel.loadUsers()

    XCTAssertNotNil(viewModel.error)
    XCTAssertTrue(viewModel.users.isEmpty)
}

Swift Testing Framework (@Test)

  • Use the modern Swift Testing framework for new test files where appropriate:
import Testing

@Suite("UserListViewModel Tests")
struct UserListViewModelTests {
    @Test("loads users successfully")
    func loadUsersSuccess() async throws {
        let mockService = MockNetworkService()
        mockService.usersToReturn = [User(id: 1, name: "Alice")]
        let viewModel = await UserListViewModel(networkService: mockService)

        await viewModel.loadUsers()

        await #expect(viewModel.users.count == 1)
        await #expect(viewModel.users.first?.name == "Alice")
    }

    @Test("handles network error", arguments: [
        AppError.networkUnavailable,
        AppError.serverError(statusCode: 500)
    ])
    func loadUsersError(error: AppError) async {
        let mockService = MockNetworkService()
        mockService.errorToThrow = error
        let viewModel = await UserListViewModel(networkService: mockService)

        await viewModel.loadUsers()

        await #expect(viewModel.error != nil)
        await #expect(viewModel.users.isEmpty)
    }
}

Read the full file on GitHub · 318 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. 2d ago First seen · 318 lines · 69 tokens per session scan A a5fb84809e08

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository xvirobotics/metaskill (67 stars, last pushed 6mo ago), licensed MIT. It adds 69 tokens to every session and 2,453 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

autonomous-systems-architect

L3-L5 autonomy architect specializing in full self-driving system design, behavior planning, fail-operational architectures, safety systems, and simulation-based validation. Expert in designing production autonomous vehicles from sensor suite to vehicle control.

birol91/quorum-agents · 50 tokens

automotive-security-architect

Expert automotive cybersecurity architect specializing in designing secure vehicle architectures, executing TARA (Threat Analysis and Risk Assessment), achieving ISO 21434 compliance, defining security concepts, and performing comprehensive risk assessments.

birol91/quorum-agents · 44 tokens

diagnostic-tester

Diagnostic Testing Specialist - Expert in automated diagnostic test development, CANoe scripting, EOL testing, and fault injection validation.

birol91/quorum-agents · 29 tokens

edge-ai-engineer

Role: Expert in deploying ML models to automotive NPUs.

birol91/quorum-agents · 18 tokens

adas-perception-engineer

Expert in sensor fusion, perception algorithms, object tracking, camera/radar/lidar processing, calibration, and performance optimization for real-time ADAS systems. Specializes in L0-L3 perception stacks with ASIL-D safety compliance.

birol91/quorum-agents · 52 tokens

automotive-china-compliance-engineer

Expert in China's intelligent connected vehicle (ICV) regulatory framework, mandatory national standards (GB), recommended standards (GB/T), and type approval processes. Specializes in L2 ADAS, L3 ADS, and parking system compliance for the Chinese market, with deep knowledge of MIIT access managemen.

birol91/quorum-agents · 70 tokens