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/irahardianto/awesome-agv/python-idiomsnpx skills add irahardianto/awesome-agv --skill python-idiomsgit clone --depth 1 https://github.com/irahardianto/awesome-agvWrote 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/irahardianto/awesome-agv/python-idioms)<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/python-idioms"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/python-idioms.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.00029 | $0.04231 |
| Opus 5 | $0.00015 | $0.02116 |
| Sonnet 5 | $0.00006 | $0.00846 |
| Haiku 4.5 | $0.00003 | $0.00423 |
Grade A, and why
python-idioms 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 — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Idioms and Patterns
Core Philosophy
Python rewards explicitness and readability over cleverness. Follow the Zen of Python. If it reads like plain English, it's probably idiomatic.
Scope: This skill covers Python-specific coding idioms. For file layout see
references/project-structure.md. For safety/SAST/performance patterns seereferences/python-patterns-and-anti-patterns.md. For logging seelogging-implementationskill. For quality commands seecode-idioms-and-conventionsrule.
Loading Guards
- If no
pyproject.tomlor*.pyfiles, this skill does not apply - If Django project (
djangoin dependencies), co-loaddjango-idiomsskill alongside this one
When to Load References
| Situation | Reference to Load |
|---|---|
| Starting a new project or setting up file layout | references/project-structure.md |
Choosing packages, pyproject.toml setup, or ruff config |
references/recommended-dependencies.md |
| Writing code that handles user input, async operations, or I/O | references/python-patterns-and-anti-patterns.md |
Toolchain and Python Version
- Default to latest stable Python. As of August 2026, Python 3.14. Minimum target: 3.13+.
- Key version milestones:
- 3.14+ — Deferred evaluation of annotations (PEP 649, no more
from __future__ import annotations), template strings (PEP 750) - 3.13+ — Improved error messages, experimental free-threaded build, experimental JIT
- 3.12+ — Type parameter syntax
type X = ...(PEP 695),@overridedecorator, improved f-strings,itertools.batched - 3.11+ —
StrEnum,ExceptionGroup+except*,asyncio.TaskGroup,tomllib, fine-grained error locations - 3.10+ — Pattern matching (
match/case),X | Yunion syntax,TypeAlias
- 3.14+ — Deferred evaluation of annotations (PEP 649, no more
Type Hints — Non-Negotiable
Type hints are required for all public APIs, class attributes, and function signatures.
- Use standard collections (
list,dict,set) for typing, nottyping.Listetc. - Use
X | Yinstead ofUnion[X, Y]orOptional[X]. - Use PEP 695 type parameter syntax (3.12+) for generic types:
type Vector[T] = list[T] - Use
@override(3.12+) to ensure methods actually override a base class method. - Use
TypeVarwith constraints and bounds when necessary. - Use
Neverfor functions that always raise an exception or never return.
What ships with it
3 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.
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 · 444 lines · 29 tokens per session scan A 94455f90e0b3
python-idioms is a skill published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 14d ago), licensed MIT. It adds 29 tokens to every session and 4,231 once invoked, about $0.0001 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-09-03.
Other skills, from other repositories
cc-python-dev
Python 开发规范,适用于类型注解、验证模型、pytest 和 uv 工具链;不负责 review、debug 或运维流程。.
python-dev
Python 开发规范,包含 PEP 8 风格、类型注解、异常处理、测试规范等.
claude-code-test
テストを実行する際は !pytest -v を使用してください。 もしテストが失敗した場合は、エラー出力を読み取り、コードを修正した上で再度テストを実行し、カバレッジ100%になるまで自律的にループしてください。.
python-pro
Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async/await patterns…
python-testing
Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.
python-api
Professional Python API Expert skill. Build performant, secure, and scalable backend logic and RESTful or GraphQL APIs.