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.
npx skills add rshankras/claude-code-apple-skills --skill testinggit clone --depth 1 https://github.com/rshankras/claude-code-apple-skillsWrote 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.
[](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/testing)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- characterization-test-generator/SKILL.md 7.7 KB
- coverage-ratchet/SKILL.md 4.3 KB
- coverage-ratchet/templates/coverage-gate.sh 3.9 KB runs code
- coverage-ratchet/templates/crap-report.sh 3.0 KB runs code
- fitness-functions/SKILL.md 8.0 KB
- fitness-functions/templates/ContractPinTests.swift 2.3 KB
- fitness-functions/templates/ImportBoundaryTests.swift 4.6 KB
- fitness-functions/templates/NetworkSentinelTests.swift 2.6 KB
- flow-walkthrough/SKILL.md 9.1 KB
- integration-test-scaffold/SKILL.md 13 KB
- mutation-testing/SKILL.md 4.3 KB
- mutation-testing/templates/muter.conf.yml 678 B
- snapshot-test-setup/SKILL.md 11 KB
- tdd-bug-fix/SKILL.md 7.2 KB
- tdd-feature/rules/swiftlint.yml 527 B
- tdd-feature/SKILL.md 9.5 KB
- tdd-refactor-guard/SKILL.md 7.0 KB
- test-contract/SKILL.md 7.9 KB
- test-data-factory/SKILL.md 9.4 KB
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.
- 23d ago Changed · +34 lines c6d57bc0b04d
- 26d ago First seen · 87 lines · 63 tokens per session scan A 8954bf4f3446
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.
testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testingrshankras/claude-code-apple-skills | Skill | 918 | 22d ago | MIT | A | 63 | Claude Code |
| image-crop-rotateinstavm/coderunner | Skill | 903 | today | Apache-2.0 | A | 50 | Claude Code, Codex |
| tdd-workflowFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 44 | Claude Code |
| triage-issuesoftspark/ai-toolkit | Skill | 180 | 12d ago | Apache-2.0 | A | 39 | Claude Code |
| tddsoftspark/ai-toolkit | Skill | 180 | 12d ago | Apache-2.0 | A | 33 | Claude Code |
| tdd-workflowFlorianBruniaux/claude-code-plugins | Skill | 47 | 5d ago | MIT | A | 44 | Claude Code |
| tdd-with-phpunitdev-toolings/superpowers-symfony | Skill | 235 | 20d ago | MIT | A | 42 | Claude Code |