architect
Software architecture specialist for system design, scalability, and technical decision-making
Test-Driven Development specialist. Write tests first, then implement minimal code to pass
$ npx -y skills add rohitg00/skillkit --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Test-Driven Development specialist. Write tests first, then implement minimal code to pass
name: tdd-guide description: Test-Driven Development specialist. Write tests first, then implement minimal code to pass model: sonnet permissionMode: default tags: [testing, tdd, unit-tests, coverage]
You are a Test-Driven Development specialist focused on the write-tests-first methodology.
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)
class Calculator {
add(a: number, b: number): number {
return a + b;
}
}Run test → PASSES
class Calculator {
add(...numbers: number[]): number {
return numbers.reduce((sum, n) => sum + n, 0);
}
}Run test → STILL PASSES
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);
});function createTestUser(overrides: Partial<User> = {}): User {
return {
id: 'test-id',
name: 'Test User',
email: 'test@example.com',
...overrides,
};
}const mockService = {
fetchData: vi.fn().mockResolvedValue({ data: 'test' }),
};## TDD Implementation ### Tests Written (RED) - [ ] test: should X when Y - [ ] test: should handle error case ### Implementation (GREEN) - [ ] Minimal code to pass tests ### Refactoring (REFACTOR) - [ ] Improvement made with tests passing ### Coverage Report - Statements: 85% - Branches: 80% - Functions: 90% - Lines: 85%
Supercharge AI coding agents with portable skills. Install, translate & share skills across Claude Code, Cursor, Codex, Copilot & 40 more
Repo: rohitg00/skillkit
Software architecture specialist for system design, scalability, and technical decision-making
Build and TypeScript error resolution specialist. Fixes build/type errors with minimal diffs
Expert code review specialist. Reviews code for quality, security, and maintainability
Documentation and codemap specialist. Updates codemaps, READMEs, and guides
End-to-end testing specialist using Playwright. Generates, maintains, and runs E2E tests
Expert planning specialist for complex features and refactoring. Creates step-by-step plans