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 writing-pythongit 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/writing-python)<a href="https://agentmods.dev/skills/xonovex/platform/writing-python"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-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/xonovex/platform/writing-python"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-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.00063 | $0.00686 |
| Opus 5.5 | $0.00025 | $0.00274 |
| Sonnet 5.5 | $0.00013 | $0.00137 |
| Haiku 4.5 | $0.00006 | $0.00069 |
Grade A, and why
writing-python 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 9d 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 → applying-fp; class/OO design → applying-oop
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-output.json 2.8 KB
- eval-trigger.json 5.4 KB
- moon.yml 86 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.json 1.0 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.
- 9d ago First seen · 40 lines · 63 tokens per session scan A cdc1bf1dc52e
writing-python is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 686 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-11-21.
writing-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-pythonxonovex/platform | Skill | 6 | yesterday | MIT | A | 63 | Claude Code |
| write-testsGoldziher/ai-rulez | Skill | 182 | 6d ago | MIT | A | 28 | Claude Code |
| pytest Test FrameworkFortiumPartners/ensemble | Skill | 12 | 5d ago | MIT | A | 21 | Claude Code, Codex |
| python-testingtedivm/robs_awesome_python_template | Skill | 315 | 6mo ago | MIT | A | 64 | Claude Code, Codex |
| local-python-toolsdinglebear-ai/soma | Skill | 1 | 6d ago | AGPL-3.0 | A | 21 | Claude Code, Codex |
| pytest-patternsvladkesler/initrunner | Skill | 40 | 1mo ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| pytest-expertBlazkojj/skillhub | Skill | 2 | 3mo ago | none | A | 29 | Claude Code |