Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/DJRHails/dotfilesnpx agentmods add skills/djrhails/dotfiles/python-conventionsWrote 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/djrhails/dotfiles/python-conventions)<a href="https://agentmods.dev/skills/djrhails/dotfiles/python-conventions"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/python-conventions/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.
<a href="https://agentmods.dev/skills/djrhails/dotfiles/python-conventions"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/python-conventions.svg" alt="Reviewed on agentmods" width="80" 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.00057 | $0.03229 |
| Opus 5.5 | $0.00023 | $0.01292 |
| Sonnet 5.5 | $0.00011 | $0.00646 |
| Haiku 4.5 | $0.00006 | $0.00323 |
Grade A, and why
python-conventions 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 1mo 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 — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Conventions
Coding conventions and modern tooling for Python projects. Apply when writing or reviewing Python code, setting up new projects, or migrating from legacy tools. This file is the summary; worked examples and full configs live in references/.
Decision Tree
What are you doing?
|
+- Single-file script with dependencies?
| -> Use PEP 723 inline metadata (./references/pep723-scripts.md)
|
+- New multi-file project (not distributed)?
| -> Minimal uv setup (see Project Setup below)
|
+- New reusable package/library?
| -> Full project setup (see Project Setup below)
|
+- Migrating existing project?
| -> See Migration Guide below
|
+- Writing or reviewing code?
-> See conventions below
Toolchain
| Tool | Purpose | Replaces |
|---|---|---|
| uv | Package/dependency management | pip, virtualenv, pip-tools, pipx, pyenv |
| ruff | Linting and formatting | flake8, black, isort, pyupgrade, pydocstyle |
| ty | Type checking | mypy, pyright |
| pytest | Testing with coverage | unittest |
| prek | Pre-commit hooks | pre-commit (faster, Rust-native) |
uv_build |
Build backend | hatchling, setuptools |
| Loguru | Logging | stdlib logging |
Security Tools
shellcheck, detect-secrets, actionlint, zizmor (pre-commit); pip-audit and Dependabot for dependencies. Configuration: security-setup.md and dependabot.md.
Legacy Tool Migration
| Avoid | Use Instead |
|---|---|
pip install / pip freeze |
uv add / uv export |
python -m venv / source .venv/bin/activate |
uv sync / uv run <cmd> |
pipx install |
uv tool install |
requirements.txt |
pyproject.toml (projects) or PEP 723 (scripts) |
[project.optional-dependencies] for dev tools |
[dependency-groups] (PEP 735) |
[tool.ty] python-version |
[tool.ty.environment] python-version |
uv pip install |
uv add and uv sync |
| Poetry | uv |
| black / isort / flake8 / pylint | ruff |
| mypy / pyright | ty |
| pre-commit | prek |
| hatchling | uv_build |
What ships with it
12 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.
- references/code-style.md 4.5 KB
- references/dependabot.md 1.8 KB
- references/migration-checklist.md 4.1 KB
- references/pep723-scripts.md 5.0 KB
- references/prek.md 5.7 KB
- references/pyproject.md 5.9 KB
- references/ruff-config.md 6.0 KB
- references/security-setup.md 6.4 KB
- references/testing.md 5.0 KB
- references/uv-commands.md 4.8 KB
- templates/dependabot.yml 958 B
- templates/pre-commit-config.yaml 2.2 KB
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.
- 1mo ago First seen · 246 lines · 57 tokens per session scan A 1f084cee5852
python-conventions is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 3,229 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-08-31.
Other skills, from other repositories
ruby-gc
Audit asdf-installed Ruby versions against project pins and remove unreferenced ones. Dry-run by default.
astropy
Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.
scaffold-python
Scaffold a complete Python project with CI/CD, release pipeline, justfile, sr.yaml, pyproject.toml, .envrc, and standard files. Uses uv, ruff, and justfile (Python lacks a native task runner like pnpm scripts, so just fills that gap). Loads on top of scaffold-project (run that first for cross-language standard files).…
google-adk-python
You are an expert guide for Google's Agent Development Kit (ADK) Python - an open-source, code-first toolkit for building, evaluating, and deploying AI agents.
polars
Fast in-memory DataFrame library for datasets that fit in RAM. Use when pandas is too slow but data still fits in memory. Lazy evaluation, parallel execution, Apache Arrow backend. Best for 1-100GB datasets, ETL pipelines, faster pandas replacement. For larger-than-RAM data use dask or vaex.
fluidsim
Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC…