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 agentmods add skills/kaushik-holla/agent-skills/python-qualitynpx skills add kaushik-holla/agent-skills --skill python-qualitygit clone --depth 1 https://github.com/kaushik-holla/agent-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/kaushik-holla/agent-skills/python-quality)<a href="https://agentmods.dev/skills/kaushik-holla/agent-skills/python-quality"><img src="https://agentmods.dev/badge/skills/kaushik-holla/agent-skills/python-quality.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 | $0.00080 | $0.03850 |
| Opus 5 | $0.00040 | $0.01925 |
| Sonnet 5 | $0.00016 | $0.00770 |
| Haiku 4.5 | $0.00008 | $0.00385 |
Grade A, and why
python-quality 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 3d 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 — 459 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Quality
A consistent, low-friction baseline for new Python projects. Optimised for fast iteration plus principal-level quality signals (typed strictness on src/, ruff for everything else, tests that don't lie).
Throughout this skill,
myappis a placeholder for your package name. Replace it (and themyappCLI / env / project names) with your own.
When To Use
- Scaffolding a new Python project (sections 1-4).
- Upgrading an older project's tooling (sections 2, 5-6).
- Adding CI (section 7).
- Setting up tests for an agentic / LLM project (section 6 has LLM-specific patterns).
1. Bootstrap the environment
Pick one environment manager and stay consistent across the team and CI. Both options below keep the dependency declaration in one place (pyproject.toml) and install the project itself in editable mode.
- uv: fastest resolver/installer; the modern default for pure-Python and most agentic/LLM projects.
- conda + pip: preferred when you need mixed-binary scientific stacks (CUDA, MKL, GDAL, etc.) or a non-pip-managed interpreter.
Option A: uv (recommended default)
# Create and use a project-local virtual env, pinned to a Python version
uv venv --python 3.11
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install the project in editable mode with dev extras
uv pip install -e ".[dev]"
# Run anything inside the activated env
python -V
pytest
ruff check .
mypy src
uv reads the same pyproject.toml as everything else, resolves fast, and produces a reproducible uv.lock you can commit (uv lock).
Option B: conda + pip
Conda manages the Python interpreter and isolated environment; pip installs the project itself (editable) and all Python deps from pyproject.toml. This pairs well with mixed-binary scientific stacks while keeping the dependency declaration in one place.
# Create an isolated conda env (one-time, from the committed env file)
conda env create -f environment.yml
# Or, if you prefer to bootstrap before committing environment.yml:
# conda create -y -n myapp python=3.11 pip
conda activate myapp
# Install the project in editable mode with dev extras
pip install -e ".[dev]"
# Run anything inside the activated env (no prefix needed)
python -V
pytest
ruff check .
mypy src
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.
- 3d ago First seen · 459 lines · 80 tokens per session scan A 0c0e6e2d6e41
python-quality is a skill published in the GitHub repository kaushik-holla/agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 80 tokens to every session and 3,850 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-testing
Guidelines for writing and running tests in the Agent Framework Python codebase. Use this when creating, modifying, or running tests.
testing-python
Write and evaluate effective Python tests using pytest. Use when writing tests, reviewing test code, debugging test failures, or improving test coverage. Covers test design, fixtures, parameterization, mocking, and async testing.
pytest
Pytest testing patterns for Python. Trigger: When writing or refactoring pytest tests (fixtures, mocking, parametrize, markers). For Prowler-specific API/SDK testing conventions, also use prowler-test-api or prowler-test-sdk.
python-testing
Select and run Python SDK verification with nox, Makefile targets, Ruff, mypy, pytest markers, sanity tests, type inference checks, and build checks. Use when adding Python tests, diagnosing Python CI, or validating Python SDK/provider changes. Do not use for TypeScript-only checks.
pytest-asyncio-httpx-mocking
When masking httpx.AsyncClient with unittest.mock in Pytest, AsyncMock must be used instead of MagicMock for async methods like post/get to prevent TypeError when awaited.
test-writer
How to write pytest tests for modules in this workspace. Load whenever you are about to write or extend tests.