SkillsLib.ai

Test Driven Development

Write tests first, then code. Enforces TDD with spec, task, or ad-hoc modes.

4.4(48 reviews)
500+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

You can enforce test-first development across multiple entry points: parse acceptance criteria from spec files and generate test stubs, extract requirements from task files and design test scenarios, or write tests from ad-hoc descriptions. Claude guides you through the complete TDD cycle—RED (failing tests), GREEN (minimal implementation), and REFACTOR (clean code)—while leveraging your existing repository patterns and providing proptest guidance for property-based testing.

Features

Three input modes

spec files with Given/When/Then criteria, task files with requirements, or free-form descriptions

Automatic test stub generation from acceptance criteria with `todo!()` placeholders and spec references
Repository pattern detection to align tests with your codebase structure
RED → GREEN → REFACTOR cycle enforcement with checkpoints and verification steps
Property-based testing guidance using proptest for exhaustive edge-case coverage
Backpressure integration to handle async/concurrent code safely
Test scenario design covering normal operation, edge cases, and error conditions

Example Output

From Spec Mode:

code
/// Spec: authentication.spec.md — Criterion #1
/// Given a user with valid credentials
/// When login is called
/// Then the session token is returned
#[test]
fn authentication_criterion_1_valid_login() {
    todo!("Implement: the session token is returned");
}

From Task Mode: Test scenarios extracted from .code-task.md: normal path (valid input → success), edge case (empty input → validation error), error condition (DB timeout → retry with backoff)

From Description Mode: Prompt: "Add file upload with size validation." → Generated tests: file under limit passes, oversized file rejected, zero-byte file handled

What's Included

  • SKILL.md: Complete TDD workflow instruction with three input mode handlers
  • Test stub templates: Rust test stubs with Given/When/Then comment structure
  • Pattern discovery framework: Guides to identify repository and async patterns in your codebase
  • Proptest checklist: Property-based testing strategy guide with shrinking examples
  • TDD cycle verification: Compilation and test run commands to confirm RED and GREEN states

Who It's For

  • QA engineers — Design comprehensive test scenarios before implementation
  • Backend engineers — Enforce test-first Rust development with async/concurrent code
  • Test automation engineers — Generate test stubs from specs and requirements in bulk
  • DevOps engineers — Write infrastructure tests following TDD discipline
  • Team leads — Ensure consistent TDD adoption across codebases

Best For

  • Converting acceptance criteria (Given/When/Then) into failing test stubs
  • Designing test scenarios from task descriptions with edge cases and error paths
  • Property-based testing strategy for exhaustive input validation
  • Refactoring existing code with tests written first
  • Onboarding new team members into TDD workflows and repository patterns

You might also like

Incident Response & Root Cause Analysis
$35
Incident Response & Root Cause Analysis

Rapidly analyze production incidents by correlating observability signals—logs, metrics, traces, and events—to identify the true root cause instead of symptoms. You'll reconstruct incident timelines, quantify impact scope, and generate both immediate remediation steps and long-term prevention measures.

Git Commit Message Writer
$45
CI/CD4.3(47)
Git Commit Message Writer

Claude analyzes your code diffs and generates standardized commit messages that follow the Conventional Commits specification. The skill automatically determines the correct commit type, scope, and description based on the changes you've made, ensuring your messages are parseable by automation tools while remaining human-readable for code reviewers.

Full-Stack Feature Development Workflow
$30
Full-Stack Feature Development Workflow

You'll transform high-level feature requirements into a complete development plan covering API design, frontend implementation, testing strategy, and documentation. The skill helps you identify dependencies, parallelize work across frontend and backend teams, and establish quality gates that ensure features ship bug-free with proper error handling and logging.

Database Migration Helper
$45
SQL4.1(34)
Database Migration Helper

Transform schema and data changes into production-ready migration packages that protect data integrity and minimize downtime. You can handle column additions, renames, type conversions, and backfills using proven patterns like expand-contract and shadow tables. The skill generates explicit rollback scripts, validation checklists, and phased execution plans that keep applications stable throughout the migration.

Performance Test Strategy & Analysis
$40
Performance Test Strategy & Analysis

You can create comprehensive performance testing strategies tailored to your application's architecture, analyze test results to identify bottlenecks, and generate prioritized recommendations for optimization. The skill helps you design load tests, interpret metrics like latency and throughput, and create action plans for performance improvements.

Performance Test Engineer Assistant
$30
Performance Test Engineer Assistant

You can design comprehensive performance test strategies tailored to your application architecture, analyze performance metrics and logs to identify bottlenecks, and receive specific optimization recommendations. The skill guides you through creating realistic load scenarios, interpreting performance data, and prioritizing fixes based on impact analysis.

Smart Contract Security Audit & Optimizer
$25
Smart Contract Security Audit & Optimizer

You can submit your Solidity smart contracts for comprehensive security analysis, vulnerability detection, and gas optimization recommendations. Claude reviews your code against known attack vectors, design patterns, and best practices—identifying reentrancy risks, overflow/underflow issues, access control flaws, and inefficient operations. You receive actionable fix recommendations with explanations of the security implications and gas savings potential.

Antenna Design & Optimization Skill
$30
Antenna Design & Optimization Skill

You can accelerate your entire antenna design workflow—from initial concept to optimized specifications—by leveraging Claude's knowledge of electromagnetic theory, antenna types, and design trade-offs. Claude helps you parameterize designs, identify optimal configurations for your frequency band and application, and prepare detailed briefs for simulation and manufacturing. You'll generate design reviews, impedance-matching solutions, and validation checklists without context-switching to multiple tools.

$36.00$45.00