Agent skill · Testing & QA

testing

TDD and testing skills for iOS/macOS apps. Covers characterization tests, TDD workflows, test contracts, snapshot tests, test infrastructure, and deterministic quality gates (fitness functions, coverage ratchet, mutation testing). Use for test-driven development, adding tests to existing code, or building test infrastructure.

rshankrasgithub.com/rshankrasGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add rshankras/claude-code-apple-skills --skill testing --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 20
SKILL.md size: 4 KB
Bundled scripts: yes
Allowed tools: ReadWriteEditGlobGrepBashAskUserQuestion
Path: skills/testing/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 coverag

What's inside
Steps it walks through
  1. When This Skill Activates
  2. Available Skills
  3. For Existing Codebases
  4. For New Code
  5. Infrastructure
  6. Deterministic Gates
  7. How to Use
  8. Relationship to test-generator
Ships with 19 files
  • characterization-test-generator/SKILL.md
  • coverage-ratchet/SKILL.md
  • coverage-ratchet/templates/coverage-gate.sh
  • coverage-ratchet/templates/crap-report.sh
  • fitness-functions/SKILL.md
  • fitness-functions/templates/ContractPinTests.swift
  • fitness-functions/templates/ImportBoundaryTests.swift
  • fitness-functions/templates/NetworkSentinelTests.swift
  • flow-walkthrough/SKILL.md
  • integration-test-scaffold/SKILL.md
  • mutation-testing/SKILL.md
  • mutation-testing/templates/muter.conf.yml
  • snapshot-test-setup/SKILL.md
  • tdd-bug-fix/SKILL.md
  • tdd-feature/SKILL.md
  • tdd-feature/rules/swiftlint.yml
  • tdd-refactor-guard/SKILL.md
  • test-contract/SKILL.md
  • test-data-factory/SKILL.md
More from claude-code-apple-skills
All skills →
About this skill
What does the testing skill do?

TDD and testing skills for iOS/macOS apps. Covers characterization tests, TDD workflows, test contracts, snapshot tests, test infrastructure, and deterministic quality gates (fitness functions, coverage ratchet, mutation testing). Use for test-driven development, adding tests to existing code, or building test infrastructure.

How do I install it?

Run `npx skills add rshankras/claude-code-apple-skills --skill testing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going