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 xonovex/platform --skill python-guidegit clone --depth 1 https://github.com/xonovex/platformWrote 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/xonovex/platform/python-guide)<a href="https://agentmods.dev/skills/xonovex/platform/python-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/python-guide/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/xonovex/platform/python-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/python-guide.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.00066 | $0.00685 |
| Opus 5.5 | $0.00026 | $0.00274 |
| Sonnet 5.5 | $0.00013 | $0.00137 |
| Haiku 4.5 | $0.00007 | $0.00068 |
Grade A, and why
python-guide 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 7d 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 — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Coding Guidelines
Write typed Python with focused functions, explicit errors, and tests that check observable behavior.
Requirements
- Python ≥ 3.12; pytest ≥ 8.
Essentials
- Data models - Use dataclasses and type hints, see references/dataclasses-type-hints.md, references/type-checking.md
- Iteration - Prefer generators/comprehensions for data processing, see references/generators-comprehensions.md
- Performance - Cache pure functions with
@cache, see references/caching-functions.md - Resource management - Use context managers for cleanup, see references/resource-management.md
- Modern syntax - Use pathlib, f-strings, specific exceptions, see references/pathlib-file-ops.md, references/string-formatting.md, references/exception-handling.md
- Paradigm - Functional style → fp-guide; class/OO design → oop-guide
Gotchas
- Mutable default arguments (
def f(x=[]):) share state across calls: useNoneand assign inside - The GIL serializes pure-Python execution: threads only help on I/O; CPU-bound work needs
multiprocessingor compiled extensions ischecks identity, not equality: small-int caching meansa is bworks for1but fails for300__init__.pyis no longer required for packages (PEP 420), but mixing namespace and regular packages causes silent import-shadowing bugs
Progressive disclosure
- Read references/dataclasses-type-hints.md - Load when defining structured data models or adding type annotations
- Read references/type-checking.md - Load when using Protocols, type aliases, or complex Union types
- Read references/resource-management.md - Load when working with files, connections, or resources needing cleanup
- Read references/caching-functions.md - Load when optimizing expensive computations or repeated function calls
- Read references/generators-comprehensions.md - Load when processing large datasets or streaming data
- Read references/string-formatting.md - Load when formatting output, building messages, or templating
- Read references/pathlib-file-ops.md - Load when reading/writing files or traversing directories
- Read references/exception-handling.md - Load when defining error handling or creating custom exceptions
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.
- eval-queries.json 4.7 KB
- evals.json 2.1 KB
- moon.yml 166 B
- references/caching-functions.md 531 B
- references/dataclasses-type-hints.md 546 B
- references/exception-handling.md 634 B
- references/generators-comprehensions.md 644 B
- references/pathlib-file-ops.md 542 B
- references/resource-management.md 564 B
- references/string-formatting.md 348 B
- references/type-checking.md 579 B
- SOURCES.md 671 B
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.
- 7d ago Changed · +2 lines cc59d357629e
- 1mo ago First seen · 38 lines · 66 tokens per session scan A 7b689fef711e
python-guide is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed 5d ago), licensed MIT. It adds 66 tokens to every session and 685 once invoked, about $0.0003 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-08.
Other skills, from other repositories
local-python-tools
Use when working with local-python-tools provider actions such as pythonruntimecheck.
biopython
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…
python-repl
Interactive Python REPL automation with common helpers and best practices.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
prismer-python-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).
pyarrow-python
Use for writing, reviewing, debugging, testing, or optimizing Python code that uses PyArrow arrays, schemas, Tables, RecordBatches, RecordBatchReaders, compute kernels, Dataset scans, Parquet, or Arrow IPC and C data interfaces. Trigger on schema drift, null/type semantics, chunking, batch streaming, predicate…