Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Python/pytest TDD specialist for test-driven development workflows. Use when writing tests, auditing test quality, running pytest, or generating test reports. Integrates with uv and pyproject.toml configuration.
.claude/skills/aiskillstore-tdd-pytest/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 234% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-02 | ✓→✗ | ▼ Worse | 78% | 0% |
Activate this skill when the user needs help with:
TESTING_REPORT.local.mdpyproject.tomltextproject/ src/ module.py tests/ conftest.py # Shared fixtures test_module.py # Tests for module.py pyproject.toml # Pytest configuration
test_*.py or *_test.pytest_*Test*mock_database, sample_user)pythonimport pytest @pytest.fixture def sample_config(): return {"key": "value"} @pytest.fixture def mock_client(mocker): return mocker.MagicMock()
python@pytest.mark.parametrize("input,expected", [ ("hello", "HELLO"), ("world", "WORLD"), ("", ""), ]) def test_uppercase(input, expected): assert input.upper() == expected
pythonimport pytest @pytest.mark.asyncio async def test_async_function(): result = await async_operation() assert result == expected
pythondef test_raises_value_error(): with pytest.raises(ValueError, match="invalid input"): process_input(None)
bashuv run pytest # Run all tests uv run pytest tests/test_module.py # Run specific file uv run pytest -k "test_name" # Run by name pattern uv run pytest -v --tb=short # Verbose with short traceback uv run pytest --cov=src --cov-report=term # With coverage
-v / --verbose - Detailed output-x / --exitfirst - Stop on first failure--tb=short - Short tracebacks--tb=no - No tracebacks-k EXPR - Run tests matching expression-m MARKER - Run tests with marker--cov=PATH - Coverage for path--cov-report=term-missing - Show missing linestoml[tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"]
toml[tool.pytest.ini_options] asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_functions = ["test_*"] python_classes = ["Test*"] addopts = "-v --tb=short" markers = [ "slow: marks tests as slow", "integration: marks integration tests", ] filterwarnings = [ "ignore::DeprecationWarning", ] [tool.coverage.run] source = ["src"] branch = true omit = ["tests/*", "*/__init__.py"] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "if TYPE_CHECKING:", "raise NotImplementedError", ] fail_under = 80 show_missing = true
The TESTING_REPORT.local.md file should contain:
When the user asks to write tests:
/tdd-pytest:init - Initialize pytest configuration/tdd-pytest:test [path] - Write tests using TDD (context-aware)/tdd-pytest:test-all - Run all tests/tdd-pytest:report - Generate/update TESTING_REPORT.local.md| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | pass→pass | 3,310 | 2,323 | -30% | 1 | 1 | 0% | 513 | 1,556 | +203% | 0 | 0 | — |
case-01 | fail→pass | 12,932 | 6,616 | -49% | 1 | 1 | 0% | 2,253 | 2,465 | +9% | 0 | 0 | — |
case-02 | pass→fail | 13,811 | 15,177 | +10% | 1 | 1 | 0% | 2,445 | 4,351 | +78% | 0 | 0 | — |
case-03 | fail→fail | 3,379 | 4,877 | +44% | 1 | 1 | 0% | 152 | 1,432 | +842% | 0 | 0 | — |
case-04 | pass→pass | 20,559 | 14,967 | -27% | 1 | 1 | 0% | 4,360 | 4,466 | +2% | 0 | 0 | — |
case-05 | pass→fail | 14,128 | 8,125 | -42% | 1 | 1 | 0% | 2,497 | 2,633 | +5% | 0 | 0 | — |
case-06 | pass→pass | 10,045 | 7,336 | -27% | 1 | 1 | 0% | 1,858 | 2,648 | +43% | 0 | 0 | — |
case-07 | fail→fail | 10,470 | 24,678 | +136% | 1 | 1 | 0% | 1,656 | 2,281 | +38% | 0 | 0 | — |
case-08 | pass→pass | 10,598 | 6,204 | -41% | 1 | 1 | 0% | 1,753 | 2,214 | +26% | 0 | 0 | — |
case-14 | pass→pass | 3,024 | 3,060 | +1% | 1 | 1 | 0% | 470 | 1,696 | +261% | 0 | 0 | — |
case-09 | pass→pass | 9,164 | 6,444 | -30% | 1 | 1 | 0% | 1,431 | 2,157 | +51% | 0 | 0 | — |
case-10 | fail→pass | 14,332 | 9,318 | -35% | 1 | 1 | 0% | 2,394 | 3,033 | +27% | 0 | 0 | — |
case-11 | pass→pass | 5,681 | 3,033 | -47% | 1 | 1 | 0% | 987 | 1,759 | +78% | 0 | 0 | — |
case-12 | pass→pass | 11,175 | 6,232 | -44% | 1 | 1 | 0% | 1,760 | 2,348 | +33% | 0 | 0 | — |
case-15 | pass→pass | 8,125 | 2,460 | -70% | 1 | 1 | 0% | 1,355 | 1,575 | +16% | 0 | 0 | — |
case-16 | pass→pass | 8,367 | 6,653 | -20% | 1 | 1 | 0% | 1,477 | 2,445 | +66% | 0 | 0 | — |
case-17 | fail→pass | 3,295 | 2,743 | -17% | 1 | 1 | 0% | 504 | 1,683 | +234% | 0 | 0 | — |
case-18 | fail→pass | 6,272 | 1,448 | -77% | 1 | 1 | 0% | 942 | 1,424 | +51% | 0 | 0 | — |
case-19 | pass→pass | 15,370 | 9,539 | -38% | 1 | 1 | 0% | 2,467 | 2,900 | +18% | 0 | 0 | — |
case-20 | pass→pass | 5,837 | 3,538 | -39% | 1 | 1 | 0% | 1,014 | 1,802 | +78% | 0 | 0 | — |
case-21 | pass→pass | 12,062 | 8,318 | -31% | 1 | 1 | 0% | 2,066 | 2,683 | +30% | 0 | 0 | — |
case-22 | pass→pass | 11,974 | 6,955 | -42% | 1 | 1 | 0% | 1,819 | 2,315 | +27% | 0 | 0 | — |
case-23 | pass→pass | 2,486 | 2,046 | -18% | 1 | 1 | 0% | 356 | 1,485 | +317% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.