python-quality

python-quality is a skill for Claude Code, Codex from kaushik-holla/agent-skills. It costs 80 tokens per session (3,850 once invoked), scanned A, original, MIT.

A set of setup and quality instructions for Python projects using tools such as uv or conda, Ruff, mypy, pytest, and pre-commit. It covers project structure, testing, and continuous integration.

In plain words
What is it for?
Use it when starting or upgrading a Python project, adding strict type checking and tests, or configuring continuous integration.
Why use it?
It gives a consistent way to set up a Python codebase and check its code quality automatically.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kaushik-holla/agent-skills/python-quality
Any agent
npx skills add kaushik-holla/agent-skills --skill python-quality
Clone the repo
git clone --depth 1 https://github.com/kaushik-holla/agent-skills

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-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaushik-holla/agent-skills/python-quality.svg)](https://agentmods.dev/skills/kaushik-holla/agent-skills/python-quality)
Your own site
<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>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00080 $0.03850
Opus 5 $0.00040 $0.01925
Sonnet 5 $0.00016 $0.00770
Haiku 4.5 $0.00008 $0.00385

Measured 3d ago against content hash 0c0e6e2d6e41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/python-quality/SKILL.md · 459 lines

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, myapp is a placeholder for your package name. Replace it (and the myapp CLI / 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

Read the full file on GitHub · 459 lines

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. 3d ago First seen · 459 lines · 80 tokens per session scan A 0c0e6e2d6e41

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories