Borrowing it
Nothing to install: this file belongs to yi-john-huang/sdd-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yi-john-huang/sdd-mcp/master/.claude/skills/sdd-test-gen/SKILL.mdgit clone --depth 1 https://github.com/yi-john-huang/sdd-mcpWrote 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/yi-john-huang/sdd-mcp/sdd-test-gen)<a href="https://agentmods.dev/skills/yi-john-huang/sdd-mcp/sdd-test-gen"><img src="https://agentmods.dev/badge/skills/yi-john-huang/sdd-mcp/sdd-test-gen/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/yi-john-huang/sdd-mcp/sdd-test-gen"><img src="https://agentmods.dev/badge/skills/yi-john-huang/sdd-mcp/sdd-test-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00049 | $0.02049 |
| Opus 5 | $0.00024 | $0.01025 |
| Sonnet 5 | $0.00010 | $0.00410 |
| Haiku 4.5 | $0.00005 | $0.00205 |
Grade A, and why
sdd-test-gen 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 11d 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 — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SDD Test Generation
Generate comprehensive tests following Test-Driven Development (TDD) methodology. Write tests that serve as living documentation and ensure code correctness.
TDD Philosophy
"Write a failing test before you write the code to make it pass."
Tests are not an afterthought—they're a design tool that:
- Document behavior - Tests show how code is intended to be used
- Prevent regressions - Catch bugs before they ship
- Enable refactoring - Change with confidence
- Drive design - Writing tests first leads to better interfaces
The TDD Cycle
┌─────────────────────────────────────┐
│ │
│ ┌─────────┐ Write failing test │
│ │ RED │◄──────────────────────┤
│ └────┬────┘ │
│ │ │
│ ▼ Make it pass │
│ ┌─────────┐ │
│ │ GREEN │ │
│ └────┬────┘ │
│ │ │
│ ▼ Improve code │
│ ┌─────────┐ │
│ │REFACTOR │───────────────────────┘
│ └─────────┘
└─────────────────────────────────────┘
Workflow
Step 1: Identify Test Scope
/sdd-test-gen src/services/UserService.ts # Generate tests for file
/sdd-test-gen UserService.createUser # Generate for specific method
/sdd-test-gen src/services/ --integration # Integration tests for module
Step 2: Analyze the Code
Before generating tests:
- Read the source file to understand its behavior
- Check existing tests (if any) to avoid duplication
- Review related requirements in
.spec/specs/ - Identify dependencies that need mocking
Step 3: Test File Structure
Generate tests with this structure:
import { UserService } from '../UserService';
import { UserRepository } from '../../repositories/UserRepository';
import { EmailService } from '../../services/EmailService';
// Mock dependencies
jest.mock('../../repositories/UserRepository');
jest.mock('../../services/EmailService');
describe('UserService', () => {
let userService: UserService;
let mockUserRepo: jest.Mocked<UserRepository>;
let mockEmailService: jest.Mocked<EmailService>;
beforeEach(() => {
jest.clearAllMocks();
mockUserRepo = new UserRepository() as jest.Mocked<UserRepository>;
mockEmailService = new EmailService() as jest.Mocked<EmailService>;
userService = new UserService(mockUserRepo, mockEmailService);
});
describe('createUser', () => {
it('should create a user with valid input', async () => {
// Arrange
const input = { email: '[email protected]', name: 'Test User' };
mockUserRepo.save.mockResolvedValue({ id: '1', ...input });
// Act
const result = await userService.createUser(input);
// Assert
expect(result.id).toBeDefined();
expect(mockUserRepo.save).toHaveBeenCalledWith(expect.objectContaining(input));
});
it('should throw error when email already exists', async () => {
// Arrange
mockUserRepo.findByEmail.mockResolvedValue({ id: '1', email: '[email protected]' });
// Act & Assert
await expect(userService.createUser({ email: '[email protected]' }))
.rejects.toThrow('Email already exists');
});
});
});
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.
- 11d ago First seen · 296 lines · 49 tokens per session scan A d37c0df646ee
sdd-test-gen is a skill published in the GitHub repository yi-john-huang/sdd-mcp (51 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 2,049 once invoked, about $0.0002 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
cpp-testing
Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest, diagnosing failing or flaky tests, or adding coverage/sanitizers.
rust-testing
Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage. Follows TDD methodology.
write-vibe-tests
Write or refactor Mistral Vibe tests with proper decoupling. Use when adding behavior coverage, testing ports/adapters, replacing brittle mocks, creating fakes, adding characterization tests before refactors, or changing tests under tests/ for vibe/core, vibe/cli, vibe/acp, tools, config, sessions, skills, hooks, MCP…
composing-matchers
Build compound Gomega assertions by combining matchers — And/SatisfyAll (all pass), Or/SatisfyAny (any pass), Not (negate), WithTransform to map the actual before matching, Satisfy for an ad-hoc predicate, HaveValue to dereference pointers/interfaces, HaveField for struct fields and method results, HaveEach for every…
nw-fp-clojure
Clojure language-specific patterns, data-first modeling, REPL-driven development, and spec.
nw-fp-fsharp
F# language-specific patterns, Railway-Oriented Programming, and Computation Expressions.