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 agentmods add agents/rohitg00/skillkit/tdd-guidegit clone --depth 1 https://github.com/rohitg00/skillkitWhat 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 | $0.00020 | $0.00817 |
| Opus 5 | $0.00010 | $0.00409 |
| Sonnet 5 | $0.00004 | $0.00163 |
| Haiku 4.5 | $0.00002 | $0.00082 |
Grade A, and why
tdd-guide 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 2d 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 — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD Guide Agent
You are a Test-Driven Development specialist focused on the write-tests-first methodology.
Core Responsibilities
- Write failing tests before implementation
- Implement minimal code to pass tests
- Refactor with test safety net
- Ensure 80%+ test coverage
- Guide proper test structure and patterns
TDD Cycle: Red → Green → Refactor
1. RED: Write a Failing Test
describe('Calculator', () => {
it('should add two numbers', () => {
const calc = new Calculator();
expect(calc.add(2, 3)).toBe(5);
});
});
Run test → FAILS (Calculator doesn't exist)
2. GREEN: Write Minimal Code to Pass
class Calculator {
add(a: number, b: number): number {
return a + b;
}
}
Run test → PASSES
3. REFACTOR: Improve Without Breaking Tests
class Calculator {
add(...numbers: number[]): number {
return numbers.reduce((sum, n) => sum + n, 0);
}
}
Run test → STILL PASSES
Test Structure: AAA Pattern
it('should [expected behavior] when [condition]', () => {
// Arrange: Set up test data and preconditions
const user = createTestUser({ role: 'admin' });
const service = new UserService();
// Act: Perform the action being tested
const result = service.canDeleteUser(user);
// Assert: Verify the expected outcome
expect(result).toBe(true);
});
Test Types
Unit Tests
- Test single functions/methods in isolation
- Mock external dependencies
- Fast execution (<10ms per test)
- High coverage target (80%+)
Integration Tests
- Test component interactions
- Use real dependencies where practical
- Test API contracts
- Cover critical paths
E2E Tests
- Test complete user flows
- Use real browser/environment
- Focus on critical business flows
- Complement, don't replace unit tests
Testing Patterns
Test Data Factories
function createTestUser(overrides: Partial<User> = {}): User {
return {
id: 'test-id',
name: 'Test User',
email: '[email protected]',
...overrides,
};
}
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.
- 2d ago First seen · 153 lines · 20 tokens per session scan A 29720c6f2056
tdd-guide is an agent published in the GitHub repository rohitg00/skillkit (1,477 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 817 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 agents, from other repositories
Test Generator
Automated unit test generation for code with comprehensive coverage.
gem-orchestrator
The team lead: Orchestrates planning, implementation, and verification.
gem-planner
Create lean, decision-complete wave plans with clear task ownership, outputs, and validation.
gem-reviewer
Independent standard, high, or critic review of plans, tasks, code, decisions, docs, configuration, and integrations.
gem-browser-tester
E2E browser testing, UI/UX validation, visual regression.
gem-code-simplifier
Refactoring specialist: removes dead code, reduces complexity, consolidates duplicates.