testing

testing is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 63 tokens per session (1,408 once invoked), scanned A, original, MIT.

A collection of testing guides for iOS and macOS apps, including test-driven development (TDD), where a failing test is written before the code that makes it pass. It also covers refactoring safeguards, snapshots, test infrastructure, and quality checks.

In plain words
What is it for?
Use it to write tests before implementation or refactoring, fix bugs with a reproduce-first workflow, create mocks and test data, compare screenshots, and enforce coverage or design rules.
Why use it?
It provides structured ways to test new code, reproduce bugs, and change existing code without silently breaking it. Tests can also check code written or modified by an AI agent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the apple-skills plugin — 182 skills shipped together , and of apple-skills

Good fit Use it to write tests before implementation or refactoring, fix bugs with a reproduce-first workflow, create mocks and test data, compare screenshots, and enforce coverage or design rules.

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

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 182 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/testing/github.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/testing)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/testing"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/testing/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/testing"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00063 $0.01408
Opus 5.5 $0.00025 $0.00563
Sonnet 5.5 $0.00013 $0.00282
Haiku 4.5 $0.00006 $0.00141

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

Security

Grade A, and why

testing 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 23d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (coverage-ratchet/templates/coverage-gate.sh, coverage-ratchet/templates/crap-report.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/testing/SKILL.md · 121 lines

How it starts

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

Testing & TDD Skills

Test-driven development workflows and testing infrastructure for Apple platform apps. Works with both new and existing codebases.

When This Skill Activates

Use this skill when the user:

  • Wants to do TDD (test-driven development) with AI-generated code
  • Needs to add tests before refactoring existing code
  • Wants to fix a bug using the red-green-refactor cycle
  • Needs test infrastructure (factories, mocks, contracts)
  • Asks about snapshot/visual regression testing
  • Wants to ensure AI-generated code is correct via tests
  • Wants deterministic gates around agent-written code (architecture invariants, coverage floors, mutation audits)

Available Skills

For Existing Codebases

characterization-test-generator/ Capture current behavior of existing code before refactoring. Generates tests that document what code actually does (not what it should do), giving you a safety net for AI-assisted refactoring.

tdd-bug-fix/ Reproduce-first bug fix workflow. Write a failing test that demonstrates the bug, then fix it. Ensures the bug never regresses — critical when AI generates fixes.

tdd-refactor-guard/ Pre-refactor safety checklist. Verifies test coverage exists before allowing AI to touch existing code. Prevents the "refactor without a safety net" problem.

For New Code

tdd-feature/ Red-green-refactor scaffold for new features. Generates the failing test first, then guides implementation to make it pass, then refactors. The core TDD workflow.

test-contract/ Protocol/interface test suites. Define the contract (e.g., "any DataStore must handle empty state, single item, 100 items, and errors"), and it generates a test suite any implementation must pass.

Infrastructure

snapshot-test-setup/ SwiftUI visual regression testing using swift-snapshot-testing. Generates snapshot test boilerplate, configuration, and CI integration.

test-data-factory/ Test fixture factories for your models. Makes writing tests faster by eliminating boilerplate data setup. Supports Builder pattern and static factory methods.

Read the full file on GitHub · 121 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. 23d ago Changed · +34 lines c6d57bc0b04d
  2. 26d ago First seen · 87 lines · 63 tokens per session scan A 8954bf4f3446

Subscribe to this mod's changes

testing is a skill published in the GitHub repository rshankras/claude-code-apple-skills (918 stars, last pushed 22d ago), licensed MIT. It adds 63 tokens to every session and 1,408 once invoked, about $0.0003 per session on Opus 5.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-11-05.

Related

testing compared with skills from other repositories

testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingrshankras/claude-code-apple-skillsSkill91822d agoMITA63Claude Code
image-crop-rotateinstavm/coderunnerSkill903todayApache-2.0A50Claude Code, Codex
tdd-workflowFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A44Claude Code
triage-issuesoftspark/ai-toolkitSkill18012d agoApache-2.0A39Claude Code
tddsoftspark/ai-toolkitSkill18012d agoApache-2.0A33Claude Code
tdd-workflowFlorianBruniaux/claude-code-pluginsSkill475d agoMITA44Claude Code
tdd-with-phpunitdev-toolings/superpowers-symfonySkill23520d agoMITA42Claude Code