Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OSnpx agentmods add skills/dds-solutions/ai-tadpole-os/python-patternsWrote 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/dds-solutions/ai-tadpole-os/python-patterns)<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/python-patterns"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/python-patterns/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/dds-solutions/ai-tadpole-os/python-patterns"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/python-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00024 | $0.01094 |
| Opus 5.5 | $0.00010 | $0.00438 |
| Sonnet 5.5 | $0.00005 | $0.00219 |
| Haiku 4.5 | $0.00002 | $0.00109 |
Grade A, and why
python-patterns 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 1mo 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.
- **Golden Rule**: Never execute blocking sync calls (`time.sleep`, `requests.get`) inside an `async def` function. Use `asyncio.sleep` or `httpx.AsyncClient`. How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[!IMPORTANT] AI Context & Knowledge Heritage
- Subsystem: Agent Skills Registry / python-patterns
- Architecture:
@docs ARCHITECTURE:Documentation- Failure Path: Blocking calls inside async loops, bare exception masking, or mutable default arguments.
- Observability: Traceability via
execution/parity_guard.py([SKILL])
Python Development Patterns & Architecture
Philosophy: Explicit is better than implicit. Asynchronous for I/O; synchronous threadpools for compute. Type hints at every public boundary.
Workflow Bindings: Integrated into/create,/refactor, and/audit.
🎯 Progressive Disclosure & L3 Reference Index
Read the core Sovereign rules below; consult deep L3 Reference Guides on demand:
| L3 Reference Guide | Purpose | Trigger / When to Load |
|---|---|---|
references/framework_cheatsheets.md |
FastAPI vs Django vs Flask, async drivers, test fixtures | Framework selection & database setup |
scripts/python_linter.py |
Automated static auditor for bare except:, mutable defaults, and async blocking |
Auditing Python scripts and execution tools |
🧭 1. Framework & Concurrency Selection
What are you building?
├── High-concurrency API / ML Serving ➔ FastAPI (Async, Pydantic v2, ASGI)
├── Full-Stack / Admin Backoffice ➔ Django 5.0+ (Batteries-included, ORM)
├── Lightweight CLI / Script / Worker ➔ Python Standard Library / Click / Typer
└── Background Distributed Tasks ➔ Celery / ARQ (Redis backend)
Async vs Sync Rules
- Use
async deffor: I/O-bound operations (Database queries, REST API requests, WebSockets, File streams). - Use
def(Sync) for: CPU-bound computation, image processing, or blocking legacy libraries. - Golden Rule: Never execute blocking sync calls (
time.sleep,requests.get) inside anasync deffunction. Useasyncio.sleeporhttpx.AsyncClient.
What ships with it
2 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.
- 1mo ago Changed 84ec0305fb68
- 1mo ago Changed · +9 lines · -6 tokens per session 63e22628022c
- 3mo ago First seen · 82 lines · 30 tokens per session scan A 7d73e74704dc
python-patterns is a skill published in the GitHub repository DDS-Solutions/AI-TadPole-OS (9 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 1,094 once invoked, about $0.0001 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-09-03.
python-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| python-patternsDDS-Solutions/AI-TadPole-OS | Skill | 9 | 2d ago | MIT | A | 24 | Claude Code |
| langgraph-docslangchain-ai/deepagents | Skill | 32k | today | MIT | A | 62 | Claude Code, Codex |
| stripe-projectse2b-dev/E2B | Skill | 15k | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| dd-code-generationDataDog/pup | Skill | 1.1k | today | Apache-2.0 | A | 16 | Claude Code |
| consuming-endpoints-from-client-codePostHog/posthog | Skill | 41k | today | none | A | 105 | Claude Code, Codex |
| creating-an-endpointPostHog/posthog | Skill | 41k | today | none | A | 184 | Claude Code, Codex |
| query-clickhouse-via-metabasePostHog/posthog | Skill | 41k | today | none | A | 79 | Claude Code, Codex |