python-tdd

python-tdd is a skill for Claude Code, Codex from Lu1sDV/skillsmd. It costs 61 tokens per session (911 once invoked), scanned A, original, no licence file.

A guide to test-driven development in Python. TDD means writing a failing test first, making it pass, and then improving the code.

In plain words
What is it for?
Use it for test-first Python work, legacy-code tests, pytest or unittest fixtures, mocking, deterministic input and time, and property-based tests with Hypothesis.
Why use it?
It provides ways to reproduce bugs and check behavior without relying on unpredictable files, clocks, or external effects. It also explains limits of coverage and mutation measures.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it for test-first Python work, legacy-code tests, pytest or unittest fixtures, mocking, deterministic input and time, and property-based tests with Hypothesis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lu1sdv/skillsmd/python-tdd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lu1sDV/skillsmd --skill python-tdd
Clone the repo
git clone --depth 1 https://github.com/Lu1sDV/skillsmd

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/lu1sdv/skillsmd/python-tdd/github.svg)](https://agentmods.dev/skills/lu1sdv/skillsmd/python-tdd)
Your own site
<a href="https://agentmods.dev/skills/lu1sdv/skillsmd/python-tdd"><img src="https://agentmods.dev/badge/skills/lu1sdv/skillsmd/python-tdd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-tdd

Your own site · 80×15
<a href="https://agentmods.dev/skills/lu1sdv/skillsmd/python-tdd"><img src="https://agentmods.dev/badge/skills/lu1sdv/skillsmd/python-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00911
Opus 5.5 $0.00024 $0.00364
Sonnet 5.5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

Measured today against content hash 72d3202f2aa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-tdd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

python-tdd/SKILL.md · 72 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 72 lines · 61 tokens per session scan A 72d3202f2aa4

Subscribe to this mod's changes

python-tdd is a skill published in the GitHub repository Lu1sDV/skillsmd (2 stars, last pushed yesterday), with no licence file. It adds 61 tokens to every session and 911 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Other skills, from other repositories

python-rules

Python coding rules: style, patterns, security, testing. Triggers: .py, .pyi, pyproject.toml, requirements.txt, Pipfile, FastAPI, Django, Flask, pytest, SQLAlchemy, ruff, mypy.

softspark/ai-toolkit · 55 tokens

tdd-workflow

Enforce practical Test-Driven Development for code changes in Go services. Use for new features, bug fixes, refactors, API changes, and new modules. Requires Red-Green-Refactor evidence, defect-hypothesis-driven tests, killer cases, and coverage gates (line + risk-path).

johnqtcg/awesome-skills · 65 tokens

bugfix-protocol

Systematic 6-phase debugging protocol. Structured approach to bugs with quick checks, isolated testing, 20-minute rule, and bug report template.

ellmos-ai/skills · 34 tokens

bugfix-protocol

Systematic 6-phase debugging protocol. Structured approach to bugs with quick checks, isolated testing, 20-minute rule, and bug report template.

ellmos-ai/skills · 34 tokens

django-testing

Django testing discipline — TDD workflow for Django/DRF (RED-GREEN-REFACTOR against models, views, serializers, permissions), pytest-django and factory patterns, database and transaction handling in tests, API client testing, AND the verification gates a Django change must pass before it ships (migrations check…

Nmor/the-claude-council · 91 tokens

agent-evaluation

Use when testing skills, commands, or agents for quality. Use after creating new skills, before deploying agents, or when debugging inconsistent agent behavior. Triggers on "evaluate", "test quality", "is this skill working", or QA of AI workflows.

guia-matthieu/clawfu-skills · 55 tokens