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 mshadmanrahman/pm-pilot --skill tdd-workflowgit clone --depth 1 https://github.com/mshadmanrahman/pm-pilotWrote 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/mshadmanrahman/pm-pilot/tdd-workflow)<a href="https://agentmods.dev/skills/mshadmanrahman/pm-pilot/tdd-workflow"><img src="https://agentmods.dev/badge/skills/mshadmanrahman/pm-pilot/tdd-workflow.svg" alt="Measured on agentmods" 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.00018 | $0.00652 |
| Opus 5 | $0.00009 | $0.00326 |
| Sonnet 5 | $0.00004 | $0.00130 |
| Haiku 4.5 | $0.00002 | $0.00065 |
Grade A, and why
tdd-workflow 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 7d 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 — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD Workflow
Detailed test-driven development procedure with framework-specific commands.
Relationship to tdd-guide agent: The /tdd command dispatches the tdd-guide agent, which enforces the loop. This skill provides the detailed procedure and framework-specific commands that the agent references.
When to Use
- Referenced by tdd-guide agent during enforcement
- Directly when user needs framework-specific test commands
- Any new feature, bug fix, or refactoring that needs test coverage
Procedure
Phase 1: RED (Write Failing Test)
- Identify the behavior to implement
- Write the test that describes expected behavior
- Run the test: it MUST fail
- If it passes, the test is wrong or the feature already exists
# Framework detection
jest --testPathPattern={test_file} 2>/dev/null || \
pytest {test_file} 2>/dev/null || \
go test -run {test_name} ./... 2>/dev/null || \
mvn test -Dtest={test_class} 2>/dev/null
Phase 2: GREEN (Minimal Implementation)
- Write the minimum code to make the test pass
- No extra features, no premature optimization
- Run the test: it MUST pass
- If it fails, fix the implementation (not the test)
Phase 3: IMPROVE (Refactor)
- Clean up implementation while keeping tests green
- Extract functions, rename variables, remove duplication
- Run full test suite after each change
- Verify no regressions
Phase 4: COVERAGE
- Check coverage meets 80% minimum:
jest --coverage 2>/dev/null || \ pytest --cov={module} 2>/dev/null || \ go test -coverprofile=cover.out ./... 2>/dev/null - If below 80%, identify uncovered paths and add tests
- Focus on branch coverage, not just line coverage
Output Format
TDD Cycle: {feature name}
RED: Test written - {test file}:{test name} - FAILS as expected
GREEN: Implementation - {impl file} - Test PASSES
IMPROVE: Refactored {what changed}
Coverage: {percent}% ({above/below} 80% target)
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.
- 7d ago First seen · 85 lines · 18 tokens per session scan A 43e85cdfa11d
tdd-workflow is a skill published in the GitHub repository mshadmanrahman/pm-pilot (20 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 652 once invoked, about $0.0001 per session on Opus 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-30.
Other skills, from other repositories
test-first
Use when implementing any feature, bugfix, or refactor that has a testable outcome. Activate for keywords like "TDD", "test-first", "red-green", "write the test first", "implement ", "fix ". Enforces the red-green-refactor discipline -- write a failing test, make it pass with the smallest change, refactor with tests…
dev-tdd
TDD development with Red-Green-Refactor cycle. Use to implement a feature by writing tests BEFORE the code. Trigger automatically when the user asks for TDD, wants to write tests first, mentions "test first", or asks to implement, add, create, fix, correct code, a new feature, a bugfix, or a functionality.
forward-derivation
Derive BDD scenarios and TDD test skeletons from approved SDD specifications. ATDD acceptance test tables are optional output for specialized needs. Use when: spec is approved, starting BDD/TDD implementation, generating test structures. Keywords: forward derivation, spec to test, BDD generation, TDD skeleton, test…
bdd-assistant
A guide to Behavior-Driven Development, or BDD, a way to describe software behavior with examples in plain language before building it. It uses Given-When-Then scenarios and Gherkin, a structured format for those examples.
methodology-system
Manage and guide developers through active development methodology workflows. Use when: TDD, BDD, SDD, ATDD, or custom methodology workflows are needed. Keywords: methodology, workflow, TDD, BDD, SDD, ATDD, phase, checkpoint, development process.
logging-guide
A guide for applying a development process such as TDD, BDD, or SDD. TDD means writing tests before the code; BDD describes expected behavior; SDD plans changes in specifications first.