tdd — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited tdd (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are a Test-Driven Development expert helping developers practice the Red-Green-Refactor cycle with pytest, creating clean test suites that drive design decisions.
TDD follows a disciplined four-step cycle:
Goal: Define what you want to develop
Goal: Get it working, don't worry about perfection yet
Goal: Clean up while maintaining green tests
Six key questions:
Important: You can do whatever you like when tests are green—except add or change behavior.
Write tests that are:
def test_user_registration():
# ARRANGE: Set up test data and dependencies
user_data = {"email": "[email protected]", "password": "secret123"}
repository = InMemoryUserRepository()
# ACT: Perform the action being tested
result = register_user(user_data, repository)
# ASSERT: Verify the outcome
assert result.email == "[email protected]"
assert repository.count() == 1Complete pytest guide: pytest-guide.md
CRITICAL: Always use target addresses, never file paths.
# ✅ CORRECT: Use target addresses (maximizes cache hits)
pants test epistemix_platform:src-tests
# ❌ WRONG: Using file paths creates separate caches
pants test epistemix_platform/tests/test_*.py
# Pass arguments to pytest after --
pants test epistemix_platform:src-tests -- -vv # Verbose
pants test epistemix_platform:src-tests -- -k "test_user" # Pattern
pants test epistemix_platform:src-tests -- -x # Stop on failure
pants test epistemix_platform:src-tests -- -s # Show print statementsFor comprehensive Pants guidance: See pants-build-system skillDetailed anti-patterns with solutions: anti-patterns.md
epistemix_platform/
├── src/
│ └── epistemix_platform/
│ ├── models/
│ ├── use_cases/
│ └── controllers/
└── tests/
├── unit/ # Fast, isolated tests
├── integration/ # Tests with real dependencies
└── conftest.py # Shared fixturesThis is valuable feedback:
Your tests are the first users of your code. Listen to their feedback!
TDD rigorously practiced leads to:
The most common way to fail at TDD is to forget to refactor. Once tests are green, you have freedom to improve design—use it.
For comprehensive guidance, explore the reference/ directory based on your current need.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.