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 alexei-led/cc-thingz --skill writing-pythongit clone --depth 1 https://github.com/alexei-led/cc-thingzWrote 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/alexei-led/cc-thingz/writing-python)<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/writing-python"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/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/alexei-led/cc-thingz/writing-python"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/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.00074 | $0.00625 |
| Opus 5.5 | $0.00030 | $0.00250 |
| Sonnet 5.5 | $0.00015 | $0.00125 |
| Haiku 4.5 | $0.00007 | $0.00063 |
Grade A, and why
writing-python scanned grade A with 1 finding 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 22d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Stdlib before packages: `argparse`, `dataclasses`, `pathlib`, `json`, `urllib`, `logging`. Do not add Rich, pydantic, or dotenv only for polish. How it starts
The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Development
pyproject.toml is the source of truth for the Python target, tools, scripts, and dependencies. Check it, .python-version, and CI before using 3.12-only syntax. Project conventions win over these defaults.
Toolchain
- uv for environments and commands (
uv run,uv add); never callpipdirectly. Match the lockfile already in use. - Ruff for lint and format. Pyright for types, or
tyonly when the project has adopted it. - pytest for tests.
Defaults
- Stdlib before packages:
argparse,dataclasses,pathlib,json,urllib,logging. Do not add Rich, pydantic, or dotenv only for polish. - 3.12+ typing:
X | Y, builtin generics, PEP 695 generics andtypealiases. Keep legacyTypeVarstyle when editing pre-3.12 modules. @dataclass(frozen=True, slots=True)for small values;TypedDictwithNotRequiredat recurring JSON boundaries;Protocolowned by the consumer. Keepdict[str, Any]at the boundary only.- Import collection ABCs from
collections.abc. TakeSequence[T]for read-only inputs. - Wrap errors with
raise DomainError(...) from exc. Catch broad exceptions only where they become an exit code, response, log entry, or re-raise. - Async:
asyncio.TaskGroupfor sibling tasks,asyncio.timeoutaround external waits. Keep references to background tasks so their exceptions surface. - Text I/O takes an explicit
encoding. Sort glob results when order reaches output or tests. - Libraries log through
logging; they never print diagnostics.
CLIs
argparsefor small tools; Click or Typer only when the project already uses them.main(argv: Sequence[str] | None = None) -> int; callasyncio.runonly there. Expose it via[project.scripts]and keeppython -m pkgworking.- Config precedence: flag, env, config file, default.
References
- testing.md: read when adding or reshaping tests, or when the suite is slow.
- linting.md: read when changing Ruff or type-checker config, or the lint/type-check commands.
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.
- 22d ago Changed · -17 lines 0e5c9311d8a9
- 1mo ago Changed · +7 tokens per session f9013b0da172
- 1mo ago First seen · 59 lines · 67 tokens per session scan A b257d930e4e9
writing-python is a skill published in the GitHub repository alexei-led/cc-thingz (38 stars, last pushed 11d ago), licensed MIT. It adds 74 tokens to every session and 625 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
plankton-code-quality
Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.
python-authoring
Write, edit, refactor, or review Python in easy-cheese with concise stdlib-first code, Python 3.12, wedge .pyz packaging, and repository test and validation conventions. Use for Python changes under src/, scripts/, .github/scripts/, or tests/, especially when the user asks for Pythonic, succinct, de-slopped…
update-deps
Update Python dependencies or pre-commit hooks while preserving the project's pin and configuration style.
arize-annotation
INVOKE THIS SKILL when creating, managing, or using annotation configs or annotation queues on Arize (categorical, continuous, freeform), or applying human annotations to project spans via the Python SDK. Configs are the label schema for human feedback; queues are review workflows that route records to annotators.…
python-backend-expert
This skill should be used when the user is writing, reviewing, debugging, or architecting Python backend code using Litestar or FastAPI with SQLAlchemy or Advanced Alchemy. Provides expert critique covering SOLID principles, hexagonal architecture, repository/service patterns, dependency injection, async correctness…
splitting-oversized-modules
Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…