Generate tests for features using TDD approach. Use when creating test files, generating test cases, implementing RED phase of TDD, or scaffolding test infrastructure.
64
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/ac-test-generator/SKILL.mdThe canonical home for this skill is ac-test-generator in fernandezbaptiste/Skrillz
Generate test files and test cases following TDD principles.
Implements the RED phase of TDD by generating failing tests before implementation, ensuring all features have comprehensive test coverage.
from scripts.test_generator import TestGenerator
generator = TestGenerator(project_dir)
tests = await generator.generate_for_feature(feature)
await generator.write_test_file(tests)# tests/test_auth_001.py
"""Tests for feature auth-001: User can register"""
import pytest
from app.auth import register_user
class TestUserRegistration:
"""Test suite for user registration."""
def test_valid_registration_creates_user(self):
"""Valid registration creates user in database."""
# Arrange
email = "test@example.com"
password = "SecurePass123!"
# Act
result = register_user(email, password)
# Assert
assert result.success
assert result.user.email == email
def test_duplicate_email_returns_error(self):
"""Duplicate email registration returns error."""
# Arrange - create existing user
# Act - try to register same email
# Assert - error returned
pass
def test_weak_password_rejected(self):
"""Weak password is rejected with message."""
pass{
"test_framework": "pytest",
"coverage_target": 80,
"test_patterns": {
"unit": "tests/unit/",
"integration": "tests/integration/",
"e2e": "tests/e2e/"
},
"fixtures": "tests/fixtures/"
}RED → ac-test-generator creates failing tests
GREEN → Claude implements minimum code to pass
REFACTOR → Code cleaned while tests passSee scripts/test_generator.py for full implementation.
93ed392
Canonical home
since Sep 12, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.