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 AmariahAK/atlarix-skills --skill pythongit clone --depth 1 https://github.com/AmariahAK/atlarix-skillsWrote 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/amariahak/atlarix-skills/python)<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/python"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/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/amariahak/atlarix-skills/python"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/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.00002 | $0.01139 |
| Opus 5.5 | $0.00001 | $0.00456 |
| Sonnet 5.5 | $0.00000 | $0.00228 |
| Haiku 4.5 | $0.00000 | $0.00114 |
Grade A, and why
Python Patterns 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 3mo 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Patterns
When to use this skill
Use this skill when writing or reviewing modern Python code and you want consistent patterns for typing, async, structure, packaging, and correctness (especially in services, scripts, CLIs, and data tooling).
Core patterns
Type hints everywhere (and no bare dict)
Rules:
- Prefer precise types:
dict[str, Any],Mapping[str, Any],Sequence[T] - Use
Anyonly at boundaries, not internally - Prefer
ProtocolorTypedDictfor structural contracts
Examples:
from typing import Any
def parse_payload(payload: dict[str, Any]) -> tuple[str, int]:
user_id = str(payload["user_id"])
count = int(payload.get("count", 0))
return user_id, count
Dataclasses vs TypedDict vs Pydantic
Use:
dataclass: internal domain objects, immutable-ish value typesTypedDict: dict-shaped external payloads (JSON) when you want structural typingpydantic(or similar): validation + parsing at boundaries (API inputs, configs)
Pattern:
- Validate at boundaries, keep core logic on typed objects.
Async patterns (avoid mixing sync/async)
Rules:
- If a call chain is async, keep it async.
- Do not call blocking IO inside
async def(use thread pool or async libs). - Prefer
httpx.AsyncClient, async DB drivers, async queues.
Good:
import httpx
async def fetch_json(url: str) -> dict[str, object]:
async with httpx.AsyncClient(timeout=10.0) as client:
r = await client.get(url)
r.raise_for_status()
return r.json()
Avoid:
requestsinsideasync deftime.sleep()inside async code (useawait asyncio.sleep())
Project structure (src/ layout)
Prefer:
repo/
pyproject.toml
src/
mypkg/
__init__.py
api.py
services/
cli/
tests/
Benefits:
- prevents accidental imports from repo root
- clearer packaging boundaries
Virtual environments
Preferred:
uvfor fast env + installs (if team agrees)
Fallback:
python -m venv .venvpip install -r requirements.txt
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.
- 3mo ago First seen · 155 lines · 2 tokens per session scan A 9936bdc37500
Python Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 2 tokens to every session and 1,139 once invoked, about $0.0000 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-03.
Python Patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Python PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 2 | Claude Code, Codex |
| pythonericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 94 | Claude Code, Codex |
| python-docspledgeandgrow/pledge-skills | Skill | 11 | 4mo ago | MIT | A | 251 | Claude Code, Codex |
| fastapifastapi/fastapi | Skill | 105k | yesterday | MIT | A | 57 | Claude Code, Codex |
| fastapiericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 94 | Claude Code, Codex |
| pytdbotpytdbot/client | Skill | 145 | yesterday | MIT | A | 49 | Claude Code, Codex |
| python-servicesiliaal/ai-skills | Skill | 49 | 6d ago | MIT | A | 55 | Claude Code |