Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/rabee-elkholy/android-harness-kitnpx agentmods add skills/rabee-elkholy/android-harness-kit/test-driven-developmentWrote 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/rabee-elkholy/android-harness-kit/test-driven-development)<a href="https://agentmods.dev/skills/rabee-elkholy/android-harness-kit/test-driven-development"><img src="https://agentmods.dev/badge/skills/rabee-elkholy/android-harness-kit/test-driven-development/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/rabee-elkholy/android-harness-kit/test-driven-development"><img src="https://agentmods.dev/badge/skills/rabee-elkholy/android-harness-kit/test-driven-development.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.00047 | $0.00572 |
| Opus 5.5 | $0.00019 | $0.00229 |
| Sonnet 5.5 | $0.00009 | $0.00114 |
| Haiku 4.5 | $0.00005 | $0.00057 |
Grade A, and why
test-driven-development 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 1mo 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 — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test-Driven Development (TDD) Skill
1. Core Principle: Red-Green-Refactor
Production code is only written in response to a failing test that defines its requirements or reproduces a defect.
2. Four-Phase TDD Protocol
Phase 1: RED (Write the Failing Test)
- Author a concise, focused unit test in
src/test/java/.../*Test.kt. - Test names must clearly describe the scenario and expected outcome (e.g.
loginViewModel_invalidPassword_emitsValidationError()). - Capture both happy paths and boundary/error cases.
Phase 2: PROVE FAILURE (Empirical Verification)
- Execute the targeted unit test task:
python .agents/scripts/run_gradle_task.py :app:testDebugUnitTest --tests "com.package.FeatureTest.testName" - Verify that the test fails for the expected assertion reason (not due to a compilation failure or configuration error).
Phase 3: GREEN (Minimal Implementation)
- Write the minimal amount of production code required to make the failing test pass.
- Re-run the targeted test to verify
BUILD SUCCESSFULand test pass.
Phase 4: REFACTOR & HARDEN
- Improve code readability, remove duplication, and extract reusable helpers.
- Ensure strict adherence to Shift-Left Quality Invariants:
- Single-source
StateFlowunidirectional data flow. - Zero inline FQCNs.
- Zero synchronous I/O on
Dispatchers.Main. - Proper Coroutine cancellation and dispatcher handling (
StandardTestDispatcherwithadvanceUntilIdle()).
- Single-source
3. Test Quality Invariants (Mandatory for Pre-Review Gate)
- Assertion Depth: Every
@Testmethod must have at least $\ge 2$ meaningful assertions (assertEquals,assertTrue,assertNull). Trivial checks (assertTrue(true)) are strictly prohibited. - Coroutines & Turbine: Use
runTestwithStandardTestDispatcherorapp.cash.turbine:turbinefor testing Flows and Channels. - Mock Isolation: Use pure Fakes or explicit
coEvery/everydefinitions withrelaxed = falsefor critical domain assertions. Never leak mock state across tests; reset in@After. - Zero Placeholder Tests: Never commit empty test stubs or
TODO()test bodies.
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.
- 1mo ago First seen · 46 lines · 47 tokens per session scan A de138d0bd65a
test-driven-development is a skill published in the GitHub repository rabee-elkholy/android-harness-kit (3 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 572 once invoked, about $0.0002 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-08-31.
Other skills, from other repositories
python-testing-patterns
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
test-driven-development
Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug…
android-ui-journey-testing
XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.
conductor-implement
Execute tasks from a track's implementation plan following TDD workflow.
skill-tdd
Build a behavior change with observed red, minimal green, and measured test consolidation.
tdd
AI DevKit · Test-driven development — write a failing test before writing production code. Use when implementing new functionality, adding behavior, or fixing bugs during active development.