python-patterns

python-patterns is a skill for Claude Code, Codex from erichare/skillroute. It costs 23 tokens per session (104 once invoked), scanned A, original, MIT.

A set of practical patterns for structuring maintainable Python packages, libraries, and command-line tools. It focuses on type hints, data classes, file paths, error handling, and clear module boundaries.

In plain words
What is it for?
Use it when creating or refactoring Python libraries, command-line tools, and modules while keeping the code organized and readable.
Why use it?
It helps prevent Python code from becoming tangled, unclear, or difficult to change. It also favors simple standard-library solutions before adding outside packages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or refactoring Python libraries, command-line tools, and modules while keeping the code organized and readable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/erichare/skillroute/python-patterns
Install

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.

Any agent
npx skills add erichare/skillroute --skill python-patterns
Clone the repo
git clone --depth 1 https://github.com/erichare/skillroute

Made for: Claude Code, Codex.

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/erichare/skillroute/python-patterns/github.svg)](https://agentmods.dev/skills/erichare/skillroute/python-patterns)
Your own site
<a href="https://agentmods.dev/skills/erichare/skillroute/python-patterns"><img src="https://agentmods.dev/badge/skills/erichare/skillroute/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/erichare/skillroute/python-patterns"><img src="https://agentmods.dev/badge/skills/erichare/skillroute/python-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 104 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00023 $0.00104
Opus 5.5 $0.00009 $0.00042
Sonnet 5.5 $0.00005 $0.00021
Haiku 4.5 $0.00002 $0.00010

Measured 1mo ago against content hash e8cbefd64f18, 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 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 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.

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.

examples/skills/python-patterns/SKILL.md · 19 lines

What it actually says

Python Patterns

Use this skill for Python package structure, idiomatic code, error handling, dataclasses, and maintainable module design.

When to Use

  • Build a new Python library or CLI.
  • Refactor Python modules without changing behavior.
  • Choose simple standard-library patterns before adding dependencies.
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 First seen · 19 lines · 23 tokens per session scan A e8cbefd64f18

Subscribe to this mod's changes

python-patterns is a skill published in the GitHub repository erichare/skillroute (41 stars, last pushed 18d ago), licensed MIT. It adds 23 tokens to every session and 104 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

cross-sdk-parity

Keep TypeScript and Python SDK behavior, generated client usage, public API naming, and docs examples aligned. Use when a change affects both SDKs, when generated client pins move, when comparing TS/Python behavior, or when a backend API contract changed. Do not use for single-language internal-only changes.

ComposioHQ/composio · 66 tokens

azure-eventhub-py

Azure Event Hubs SDK for Python streaming. Use for high-throughput event ingestion, producers, consumers, and checkpointing. Triggers: "event hubs", "EventHubProducerClient", "EventHubConsumerClient", "streaming", "partitions".

microsoft/skills · 57 tokens

azure-messaging-webpubsubservice-py

Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".

microsoft/skills · 64 tokens

azure-mgmt-apicenter-py

Azure API Center Management SDK for Python. Use for managing API inventory, metadata, and governance across your organization. Triggers: "azure-mgmt-apicenter", "ApiCenterMgmtClient", "API Center", "API inventory", "API governance".

microsoft/skills · 59 tokens

azure-mgmt-apimanagement-py

Azure API Management SDK for Python. Use for managing APIM services, APIs, products, subscriptions, and policies. Triggers: "azure-mgmt-apimanagement", "ApiManagementClient", "APIM", "API gateway", "API Management".

microsoft/skills · 59 tokens

azure-mgmt-botservice-py

Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".

microsoft/skills · 59 tokens