testing-strategy

testing-strategy is a skill for Claude Code, Codex from troyjthomas/ios-agent-skills. It costs 82 tokens per session (1,332 once invoked), scanned B, original, MIT.

A testing guide for iOS apps built with Claude Code, covering build checks, unit tests, manual checks, and continuous integration. Continuous integration automatically builds and tests changes, often on a hosted service.

In plain words
What is it for?
Use it while building and after features are complete to verify simulator builds, test data and business logic, decide what to test manually, and set up GitHub Actions.
Why use it?
It separates problems automated checks can find from crashes, visual defects, and interactions that require a person to try the app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it while building and after features are complete to verify simulator builds, test data and business logic, decide what to test manually, and set up GitHub Actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/troyjthomas/ios-agent-skills/testing-strategy
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 troyjthomas/ios-agent-skills --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/troyjthomas/ios-agent-skills

Made for: Claude Code, Codex.

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 testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/testing-strategy/github.svg)](https://agentmods.dev/skills/troyjthomas/ios-agent-skills/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/testing-strategy"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/testing-strategy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/testing-strategy"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00082 $0.01332
Opus 5 $0.00041 $0.00666
Sonnet 5 $0.00016 $0.00266
Haiku 4.5 $0.00008 $0.00133

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

Security

Grade B, and why

testing-strategy scanned grade B 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 9d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

run: sudo xcode-select -s /Applications/Xcode_26.3.app
skills/testing-strategy/SKILL.md · 178 lines

How it starts

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

Testing Strategy

Three layers of testing, from fully automated to fully manual. Use all three.

Layer 1: Automated Build Verification (Claude Code Does This)

Every time Claude Code finishes work on a screen or feature:

## Build Verification (add to CLAUDE.md)
After every change:
1. Build with XcodeBuildMCP for iPhone simulator
2. If build fails, fix errors and rebuild
3. Do not present work as "done" if the build fails

This catches: syntax errors, missing imports, type mismatches, broken references.

This does NOT catch: runtime crashes, visual bugs, interaction problems.

Layer 2: Automated Unit Tests (Claude Code Writes and Runs These)

When to Add Tests

For v1, you don't need tests on every view. Focus tests on:

  • Data models — Does creating, updating, deleting work correctly?
  • Business logic — Does the stitch counter increment properly? Does progress calculate correctly?
  • State management — Does updating a value in one place propagate everywhere?

Don't test views directly for v1. View testing in SwiftUI is complex and low-ROI for a first release.

Asking Claude Code to Write Tests

Write unit tests for the Project model. Test:
- Creating a project with all required fields
- Updating the stitch count and verifying progress calculates
- Archiving a project
- Deleting a project

Use Swift Testing framework (not XCTest).
Place tests in Tests/[AppName]Tests/
Run the tests with XcodeBuildMCP after writing them.

Test Conventions for CLAUDE.md

## Testing
- Use Swift Testing framework (@Test, #expect) not XCTest
- Test file naming: [ModelName]Tests.swift
- Test location: Tests/[AppName]Tests/
- Run tests after writing them. Fix failures before committing.
- Focus tests on models and business logic, not views.
- Every model should have tests for create, update, delete.

Running Tests

Claude Code with XcodeBuildMCP:

Run all tests. Report results. If any fail, analyze
the failure and fix the code (not the test, unless the
test expectation is wrong).

Read the full file on GitHub · 178 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. 9d ago First seen · 178 lines · 82 tokens per session scan B 58a0d7c40b95

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository troyjthomas/ios-agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 82 tokens to every session and 1,332 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). 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

iOS Testing

Unit testing, UI testing, TDD patterns, mocking, and test doubles for VIP+W architecture.

JordanCoin/ios-skills-collection · 24 tokens

swift-testing-expert

Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and…

JordanCoin/ios-skills-collection · 73 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

writing-tests

Write unit tests, component tests, and integration tests for AiderDesk using Vitest and React Testing Library. Use when creating new tests, adding test coverage, configuring mocks, setting up test files, or debugging failing tests.

hotovo/aider-desk · 48 tokens

java-unit-test

A code-generation guide for Java unit tests in Spring Boot projects. Unit tests check one small piece of code in isolation; Spring Boot is a Java framework for building web applications and services.

hashgraph-online/awesome-codex-plugins · 113 tokens

running-julia-test

Before running tests for a new package, make sure the test environment is already set up. If the package does not have tests yet, follow creating-julia-test-env first. Tests that use using Test must have Test available from the package or test project.

hashgraph-online/awesome-codex-plugins · 10 tokens