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.
npx skills add robhowley/py-pit-skills --skill pytest-servicegit clone --depth 1 https://github.com/robhowley/py-pit-skillsWrote 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.
[](https://agentmods.dev/skills/robhowley/py-pit-skills/pytest-service)<a href="https://agentmods.dev/skills/robhowley/py-pit-skills/pytest-service"><img src="https://agentmods.dev/badge/skills/robhowley/py-pit-skills/pytest-service.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01444 |
| Opus 5 | $0.00039 | $0.00722 |
| Sonnet 5 | $0.00016 | $0.00289 |
| Haiku 4.5 | $0.00008 | $0.00144 |
Grade A, and why
pytest-service 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: pytest-service
Core position
This skill establishes clean, reliable backend testing using pytest.
The goal is to produce tests that are:
- fast
- deterministic
- easy to read
- easy to extend
- free of infrastructure dependencies
Tests should optimize for scanability and maintainability, not clever abstractions.
Core testing stance
Prefer simple local tests with minimal infrastructure.
Rules:
- Use
httpx.AsyncClientwithASGITransportfor FastAPI endpoint tests - All test functions are
async def;asyncio_mode = "auto"eliminates per-test markers - Use
pytest_asynciofixtures for async setup/teardown - Default test databases to async SQLite via SQLAlchemy async fixtures
- Do not introduce Docker databases unless the repository already uses them for testing
- External clients must be mocked, not called
- No test classes — top-level
test_*functions only; fixtures handle all setup - Each test covers a distinct behavior — no redundant assertions across tests
- Avoid mutable default arguments in fixtures and helpers
- Dev deps assumed:
pytest,pytest-asyncio,httpx
Tests must run reliably with a simple pytest. No external services required.
Project structure
Tests should live in a tests/ directory.
tests/
conftest.py
test_health.py
test_users.py
factories/
user_factory.py
conftest.pyholds shared fixtures- test files mirror application modules when possible
- factory fixtures may live in
tests/factories/orconftest.py
Fixture discipline
Shared setup belongs in pytest fixtures, not duplicated code.
- Use
@pytest.fixturefor reusable setup - Inspect existing fixtures before creating new ones
- Prefer composing fixtures instead of duplicating setup logic
- Keep fixture responsibilities narrow and clearly named
Avoid inline setup repeated across tests.
Fixture scope
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.
- 7d ago First seen · 222 lines · 79 tokens per session scan A 2ab29c22a653
pytest-service is a skill published in the GitHub repository robhowley/py-pit-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 79 tokens to every session and 1,444 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
python-backend
Production Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connection pool tuning. Python 3.11+ runtime concerns such as ExceptionGroup, cancellation semantics, and session rollback. Use when building async services, wiring…
python
Use when building FastAPI applications, implementing async endpoints, setting up Pydantic schemas, working with SQLAlchemy, or writing pytest tests for Python backend services.
pytest
Advanced Python unit testing framework for customer support tech enablement, covering FastAPI, SQLAlchemy, PostgreSQL, async operations, mocking, fixtures, parametrization, coverage, and comprehensive testing strategies for backend support systems.
FastAPI Customer Support Tech Enablement
Comprehensive FastAPI skill for building modern Python web APIs with focus on customer support systems, ticket management, real-time chat, and backend operations.
fastapi-expert
Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.
asyncio
Python asyncio - Modern concurrent programming with async/await, event loops, tasks, coroutines, primitives, aiohttp, and FastAPI async patterns.