python-patterns

python-patterns is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 24 tokens per session (1,094 once invoked), scanned A, original, MIT.

A guide to making sound choices when developing Python applications, including frameworks, asynchronous code, type hints, and project structure. Python is a general-purpose programming language.

In plain words
What is it for?
Use it when selecting between FastAPI, Django, Flask, or simpler tools, and when planning APIs, workers, background tasks, and database access.
Why use it?
It helps avoid choosing an unsuitable framework or architecture for the kind of application being built.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Workflow Bindings**: Integrated into [`/create`](../../workflows/create.md), [`/refactor`](../../workflows/refactor.md), and [`/audit`](../../workflows/audit..

Good fit Use it when selecting between FastAPI, Django, Flask, or simpler tools, and when planning APIs, workers, background tasks, and database access.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS
agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/python-patterns

Made for: Claude Code.

Wrote 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.

agentmods badge for python-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/python-patterns/github.svg)](https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/python-patterns)
Your own site
<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.

agentmods 80×15 button for python-patterns

Your own site · 80×15
<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>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 84ec0305fb68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/python_linter.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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`.
.agent/skills/python-patterns/SKILL.md · 91 lines

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 def for: 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 an async def function. Use asyncio.sleep or httpx.AsyncClient.

Read the full file on GitHub · 91 lines

Files

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.

Changes

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.

  1. 1mo ago Changed 84ec0305fb68
  2. 1mo ago Changed · +9 lines · -6 tokens per session 63e22628022c
  3. 3mo ago First seen · 82 lines · 30 tokens per session scan A 7d73e74704dc

Subscribe to this mod's changes

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.

Related

python-patterns compared with skills from other repositories

python-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-patternsDDS-Solutions/AI-TadPole-OSSkill92d agoMITA24Claude Code
langgraph-docslangchain-ai/deepagentsSkill32ktodayMITA62Claude Code, Codex
stripe-projectse2b-dev/E2BSkill15ktodayApache-2.0A51Claude Code, Codex
dd-code-generationDataDog/pupSkill1.1ktodayApache-2.0A16Claude Code
consuming-endpoints-from-client-codePostHog/posthogSkill41ktodaynoneA105Claude Code, Codex
creating-an-endpointPostHog/posthogSkill41ktodaynoneA184Claude Code, Codex
query-clickhouse-via-metabasePostHog/posthogSkill41ktodaynoneA79Claude Code, Codex