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 Sep 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

Site Monitoring Compliance & Deviation Auditor
$45
Site Monitoring Compliance & Deviation Auditor

This skill enables you to automatically audit your websites against compliance standards and detect deviations from expected baselines. You can track regulatory requirements, identify policy violations, and generate compliance reports with actionable remediation steps. Monitor multiple sites simultaneously and maintain detailed audit trails for compliance documentation.

Chemical Process Safety Analyzer
$40
Chemical Process Safety Analyzer

Analyze chemical processes systematically to identify hazards, assess risks, and generate safety recommendations. You can perform HAZOP analyses, evaluate compliance with industry standards, conduct root-cause analysis of incidents, and develop emergency response procedures. The skill guides you through structured safety reviews that reduce the likelihood of accidents and regulatory violations.

Injectable Formulation Development & Troubleshooting
$40
Injectable Formulation Development & Troubleshooting

You'll develop systematic approaches to injectable formulation design, from API selection through sterilization strategy. Claude helps you troubleshoot failed batches by analyzing root causes, recommends regulatory pathways (505(b)(2), ANDA, NDA), and provides science-backed solutions for stability, compatibility, and manufacturability challenges.

$50
Integration Architecture Assessor

This skill helps you systematically assess integration needs across your systems, design architecture patterns that scale with your organization, and identify technical and operational risks before implementation. You'll receive architecture recommendations aligned to your business constraints, clear integration roadmaps, and risk mitigation strategies that reduce deployment surprises. Get structured decision records suitable for architecture review boards and engineering teams.

Chemical Process Hazard Analysis and Control Design
$30
Chemical Process Hazard Analysis and Control Design

You can conduct comprehensive hazard analyses for chemical processes using industry-standard methodologies like HAZOP and LOPA. The skill helps you assess risks quantitatively, identify control gaps, design engineered safeguards, and generate formal documentation for regulatory compliance and process safety management.

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.

Structured NLP Analysis and Annotation with Claude
$35
NLP3.3(6)
Structured NLP Analysis and Annotation with Claude

You can transform raw text into structured, labeled datasets for machine learning, analysis, and research. This skill performs named entity recognition, sentiment classification, part-of-speech tagging, and dependency parsing—generating consistent, validated annotations at scale. Use it to prepare corpora, extract entities, classify documents, or perform linguistic analysis without manual annotation.

IoT Firmware Analysis & Device Debugger
$40
IoT Firmware Analysis & Device Debugger

Rapidly analyze firmware logs and diagnose hardware issues that cause device failures, connectivity problems, and performance degradation. You'll identify root causes from stack traces, crash dumps, and sensor data, then generate specific optimization recommendations. This skill transforms raw device logs into actionable debugging plans that reduce time-to-resolution from hours to minutes.

$36.00$45.00