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 williamzujkowski/standards --skill pythongit clone --depth 1 https://github.com/williamzujkowski/standardsWrote 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/williamzujkowski/standards/python)<a href="https://agentmods.dev/skills/williamzujkowski/standards/python"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/python/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/williamzujkowski/standards/python"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/python.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.00045 | $0.03106 |
| Opus 5.5 | $0.00018 | $0.01242 |
| Sonnet 5.5 | $0.00009 | $0.00621 |
| Haiku 4.5 | $0.00005 | $0.00311 |
Grade A, and why
python-coding-standards 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 yesterday.
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 — 528 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Coding Standards
Quick Navigation: Level 1: Quick Start (5 min) | Level 2: Implementation (30 min) | Level 3: Mastery (Extended)
Level 1: Quick Start
Core Principles
- Pythonic Code: Write idiomatic Python following "The Zen of Python"
- Type Safety: Use type hints for all public interfaces
- Test-First: Write tests before implementation (TDD)
- Documentation: Docstrings for all public functions
- Modern Python: Use Python 3.10+ features
Essential Checklist
- PEP 8 compliant (Black + isort formatted)
- Type hints on all function signatures
- pytest tests with >80% coverage
- Google-style docstrings
- Specific exception handling (no bare
except:) - No hardcoded secrets
- src layout project structure
- Pinned dependencies in requirements.txt
Quick Example
"""User authentication module."""
from dataclasses import dataclass
from typing import Optional
import bcrypt
@dataclass
class User:
"""User account data."""
username: str
email: str
password_hash: str
def authenticate_user(username: str, password: str) -> Optional[User]:
"""Authenticate user with username and password.
Args:
username: User's username
password: Plain text password to verify
Returns:
User object if authentication succeeds, None otherwise
Raises:
ValueError: If username or password is empty
"""
if not username or not password:
raise ValueError("Username and password required")
user = _fetch_user_from_db(username)
if user and _verify_password(password, user.password_hash):
return user
return None
Level 2: Implementation
Code Style & Formatting
PEP 8 + Black Formatting:
# Good: Black-formatted, clear naming
def calculate_user_discount(
user: User,
purchase_amount: Decimal,
promo_code: Optional[str] = None
) -> Decimal:
"""Calculate discount for user purchase."""
base_discount = _get_loyalty_discount(user)
promo_discount = _validate_promo_code(promo_code) if promo_code else Decimal("0")
return min(base_discount + promo_discount, Decimal("0.5"))
What ships with it
10 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.
- REFERENCE.md 41 KB
- resources/advanced-patterns.md 12 KB
- resources/configs/.pre-commit-config.yaml 3.3 KB
- resources/configs/pyproject.toml 7.6 KB
- resources/README.md 23 B
- scripts/check-code-quality.sh 3.2 KB runs code
- scripts/README.md 21 B
- scripts/setup-project.sh 6.5 KB runs code
- templates/README.md 23 B
- templates/test-template.py 10 KB runs code
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.
- yesterday First seen · 528 lines · 45 tokens per session scan A c71eaa9fa4d4
python-coding-standards is a skill published in the GitHub repository williamzujkowski/standards (18 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 3,106 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-09-29.
Other skills, from other repositories
python
Python development with ruff, mypy, pytest - TDD and type safety.
python-testing
A Python testing guide covering pytest, test coverage, and test-driven development (TDD), a method of writing a failing test before the code that makes it pass.
python-tdd-with-uv
Test-driven development in Python using uv as the package manager. Covers the red-green-refactor cycle, vertical slicing, and uv project setup.
python-tdd
Generate suites that pin behavior instead of implementation. TRIGGER WHEN: writing Python tests, improving coverage, reviewing test quality, or practicing red-green-refactor workflows with pytest. DO NOT TRIGGER WHEN: the target is non-Python (use mattpocock-skills:tdd for other languages, or…
python-testing
Write Python tests with pytest, fixtures, property tests, and test-driven development.
Unit Test Scaffold (Python/pytest)
Generate Python/pytest unit test skeletons from specifications.