Tooluck logoTooluck
SKILL.md

testing

Agent skill fromrshankras/claude-code-apple-skills

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 to install testing

install testing
# install the claude-code-apple-skills pack with the skills CLI
npx skills add rshankras/claude-code-apple-skills

# or add only this skill to Claude Code: copy the folder

skills/testing/

# into

~/.claude/skills/testing/ (all projects)

.claude/skills/testing/ (one project)

skills/testing/SKILL.md

MITFull file
1# Testing & TDD Skills
2
3Test-driven development workflows and testing infrastructure for Apple platform apps. Works with both new and existing codebases.
4
5## When This Skill Activates
6
7Use this skill when the user:
8- Wants to do TDD (test-driven development) with AI-generated code
9- Needs to add tests before refactoring existing code
10- Wants to fix a bug using the red-green-refactor cycle
11- Needs test infrastructure (factories, mocks, contracts)
12- Asks about snapshot/visual regression testing
13- Wants to ensure AI-generated code is correct via tests
14- Wants deterministic gates around agent-written code (architecture invariants, coverage floors, mutation audits)
15
16## Available Skills
17
18### For Existing Codebases
19
20**characterization-test-generator/**
21Capture 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.
22
23**tdd-bug-fix/**
24Reproduce-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.
25
26**tdd-refactor-guard/**
27Pre-refactor safety checklist. Verifies test coverage exists before allowing AI to touch existing code. Prevents the "refactor without a safety net" problem.
28
29### For New Code
30
31**tdd-feature/**
32…

Excerpt shown under the repository's MIT license.

More skills in claude-code-apple-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates