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 tdd-featuregit 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/tdd-feature)<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/tdd-feature"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/tdd-feature/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/tdd-feature"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/tdd-feature.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.00035 | $0.02304 |
| Opus 5.5 | $0.00014 | $0.00922 |
| Sonnet 5.5 | $0.00007 | $0.00461 |
| Haiku 4.5 | $0.00003 | $0.00230 |
Grade A, and why
tdd-feature 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 27d 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 — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD Feature
Build new features using the red-green-refactor cycle. Tests define the spec, AI generates the implementation, tests verify correctness.
When This Skill Activates
Use this skill when the user:
- Wants to "TDD a new feature" or "build test-first"
- Says "I want tests before code"
- Asks for "red-green-refactor" workflow
- Wants AI to generate code that's provably correct
- Is building a new module, service, or feature from scratch
Why TDD for New Features with AI
Traditional: AI generates code → You hope it's correct → Ship → Find bugs
TDD with AI: You write tests (spec) → AI generates code to pass → Proven correct
The test is your acceptance criteria in code form. AI excels at going from failing test to passing implementation — it's a concrete, unambiguous target.
Process
Phase 1: Define the Feature
Before writing any code or tests, understand:
- What does this feature do? (user story or requirement)
- What are the inputs? (parameters, user actions, data)
- What are the outputs? (return values, state changes, UI updates)
- What are the edge cases? (empty, nil, error, boundary)
- What dependencies does it need? (network, storage, other services)
Phase 2: Design the API Surface
Sketch the public interface before writing tests:
// Example: Designing a FavoriteManager
protocol FavoriteManaging {
func add(_ item: Item) async throws
func remove(_ item: Item) async throws
func isFavorite(_ item: Item) -> Bool
var favorites: [Item] { get }
var count: Int { get }
}
This doesn't need to compile yet — it's the contract you'll test against.
Phase 3: RED — Write Failing Tests
Write tests for each behavior. Start with the simplest case and build up.
Order of Tests (Simple → Complex)
- Construction — can you create the object?
- Happy path — does the basic operation work?
- State verification — does state update correctly?
- Edge cases — empty, nil, boundaries
- Error handling — what fails and how?
- Integration — does it work with dependencies?
What ships with it
1 file 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.
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.
- 27d ago Changed · +2 lines d41735a0f7d0
- 1mo ago First seen · 329 lines · 35 tokens per session scan A 89f8e98028f1
tdd-feature is a skill published in the GitHub repository rshankras/claude-code-apple-skills (927 stars, last pushed 26d ago), licensed MIT. It adds 35 tokens to every session and 2,304 once invoked, about $0.0001 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.
tdd-feature compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tdd-featurershankras/claude-code-apple-skills | Skill | 927 | 26d ago | MIT | A | 35 | Claude Code |
| kotlin-testingaffaan-m/ECC | Skill | 317k | 3d ago | MIT | A | 38 | Claude Code, Kiro |
| cpp-testingaffaan-m/ECC | Skill | 317k | 3d ago | MIT | A | 34 | Claude Code, Kiro |
| image-crop-rotateinstavm/coderunner | Skill | 903 | yesterday | Apache-2.0 | A | 50 | Claude Code, Codex |
| triage-issuesoftspark/ai-toolkit | Skill | 180 | 2d ago | Apache-2.0 | A | 39 | Claude Code |
| tddsoftspark/ai-toolkit | Skill | 180 | 2d ago | Apache-2.0 | A | 33 | Claude Code |
| tdd-workflowFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | 2d ago | CC-BY-SA-4.0 | A | 44 | Claude Code |