python-fastapi-ddd-testing-skill

python-fastapi-ddd-testing-skill is a skill for Claude Code, Codex from iktakahiro/python-fastapi-ddd-skill. It costs 68 tokens per session (428 once invoked), scanned A, original, no licence file.

Testing guidance for Python applications built with FastAPI and domain-driven design, a way to organise software around business rules. It uses pytest, a Python testing tool, and repository mocks, which stand in for data storage during tests.

In plain words
What is it for?
Writing unit tests for domain entities, value objects, and use cases in a layered FastAPI project.
Why use it?
It helps decide what to test, what to replace with mocks, and where tests should live.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the python-fastapi-ddd plugin — 4 skills shipped together

Good fit Writing unit tests for domain entities, value objects, and use cases in a layered FastAPI project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill
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 iktakahiro/python-fastapi-ddd-skill --skill python-fastapi-ddd-testing-skill
Clone the repo
git clone --depth 1 https://github.com/iktakahiro/python-fastapi-ddd-skill

Made for: Claude Code, Codex.

Or install python-fastapi-ddd, the plugin that ships this one along with the rest of its 4 skills.

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-fastapi-ddd-testing-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill/github.svg)](https://agentmods.dev/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill)
Your own site
<a href="https://agentmods.dev/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill"><img src="https://agentmods.dev/badge/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill/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-fastapi-ddd-testing-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill"><img src="https://agentmods.dev/badge/skills/iktakahiro/python-fastapi-ddd-skill/python-fastapi-ddd-testing-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 428 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.00068 $0.00428
Opus 5.5 $0.00027 $0.00171
Sonnet 5.5 $0.00014 $0.00086
Haiku 4.5 $0.00007 $0.00043

Measured 2mo ago against content hash 576b2e11cd15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-fastapi-ddd-testing-skill 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 2mo ago.

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.

skills/python-fastapi-ddd-testing-skill/SKILL.md · 63 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

2 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. 2mo ago First seen · 63 lines · 68 tokens per session scan A 576b2e11cd15

Subscribe to this mod's changes

python-fastapi-ddd-testing-skill is a skill published in the GitHub repository iktakahiro/python-fastapi-ddd-skill (5 stars, last pushed 6d ago), with no licence file. It adds 68 tokens to every session and 428 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

FastAPI Testing Patterns

FastAPI application testing with TestClient, dependency injection overrides, async testing, database testing with SQLAlchemy, and OpenAPI validation.

PramodDutta/qaskills · 31 tokens

python-fastapi-test-conventions

This skill should be used when writing unit tests, integration tests, creating test factories, mocking dependencies, or reviewing test coverage. Covers test pyramid, conventions, factories, and per-layer rules.

aishajv/claude-everything · 45 tokens

pytest-service

Write disciplined backend tests for FastAPI services with pytest. Use this skill when adding tests to a Python/FastAPI service, setting up async SQLAlchemy test fixtures, wiring AsyncClient with DI overrides, mocking external clients, or improving test maintainability. Covers fixture design, factory patterns, async…

robhowley/py-pit-skills · 79 tokens

unit-test

Testing patterns for the Python/FastAPI + React/TypeScript stack. Covers pytest configuration, conftest fixtures, database safety guards, external API mocking, async tests, Celery eager mode, and Vitest for frontend.

LuuOW/meridian-mcp · 57 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

python-sdk

Implement or modify Python SDK behavior under python/composio, including tools, toolkits, sessions, auth configs, connected accounts, client integration, and shared Python models. Use for Python core runtime/API work; pair with python-testing and cross-sdk-parity when TypeScript must match.

ComposioHQ/composio · 60 tokens