ag-kit: Skill for Claude Code

.agents/skills/python-patterns/SKILL.md

python-patterns is a skill for Claude Code from vudovn/ag-kit. It costs 30 tokens per session (2,269 once invoked), scanned A, a copy of python-patterns, MIT.

A set of principles for choosing Python project designs and frameworks. It covers decisions such as API versus full-stack application, synchronous versus asynchronous code, type hints, project layout, and background workers.

In plain words
What is it for?
Planning Python APIs, web applications, scripts, learning projects, machine-learning services, and background workers, including framework and async-model selection.
Why use it?
It helps avoid choosing a framework by habit when the project's needs call for something else. The guidance connects the choice to the kind of application being built.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is vudovn/ag-kit's own configuration. It tells Claude Code how to work on ag-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ag-kit configures →

About the project

AG Kit is a toolkit that gives Google Antigravity coding agents a structured workspace with rules, skills, specialist agents, workflows, persistent memory, orchestration, MCP guidance, and a safety hook. It is for building and operating agent workflows in Antigravity, and its catalogue entries provide parts of that workspace contract.

vudovn/ag-kit · 8,250 stars · on GitHub · ag-kit.unikorn.vn

Reuse

Borrowing it

Nothing to install: this file belongs to vudovn/ag-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vudovn/ag-kit/main/.agents/skills/python-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vudovn/ag-kit

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/vudovn/ag-kit/python-patterns/github.svg)](https://agentmods.dev/skills/vudovn/ag-kit/python-patterns)
Your own site
<a href="https://agentmods.dev/skills/vudovn/ag-kit/python-patterns"><img src="https://agentmods.dev/badge/skills/vudovn/ag-kit/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/vudovn/ag-kit/python-patterns"><img src="https://agentmods.dev/badge/skills/vudovn/ag-kit/python-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,269 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 81% copy Near-identical to another mod 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.00030 $0.02269
Opus 5.5 $0.00012 $0.00908
Sonnet 5.5 $0.00006 $0.00454
Haiku 4.5 $0.00003 $0.00227

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

Origin

This is a copy

81% identical to python-patterns — 31 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/python-patterns/SKILL.md · 444 lines

How it starts

The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Patterns

Python development principles and decision-making. Learn to THINK, not memorize patterns.


⚠️ How to Use This Skill

This skill teaches decision-making principles, not fixed code to copy.

  • ASK user for framework preference when unclear
  • Choose async vs sync based on CONTEXT
  • Don't default to same framework every time

1. Framework Selection

Decision Tree

What are you building?
│
├── API-first / Microservices
│   └── FastAPI (async, modern, fast)
│
├── Full-stack web / CMS / Admin
│   └── Django (batteries-included)
│
├── Simple / Script / Learning
│   └── Flask (minimal, flexible)
│
├── AI/ML API serving
│   └── FastAPI (Pydantic, async, uvicorn)
│
└── Background workers
    └── Celery + any framework

Comparison Principles

Factor FastAPI Django Flask
Best for APIs, microservices Full-stack, CMS Simple, learning
Async Native Django 5.0+ Via extensions
Admin Manual Built-in Via extensions
ORM Choose your own Django ORM Choose your own
Learning curve Low Medium Low

Selection Questions to Ask:

  1. Is this API-only or full-stack?
  2. Need admin interface?
  3. Team familiar with async?
  4. Existing infrastructure?

2. Async vs Sync Decision

When to Use Async

async def is better when:
├── I/O-bound operations (database, HTTP, file)
├── Many concurrent connections
├── Real-time features
├── Microservices communication
└── FastAPI/Starlette/Django ASGI

def (sync) is better when:
├── CPU-bound operations
├── Simple scripts
├── Legacy codebase
├── Team unfamiliar with async
└── Blocking libraries (no async version)

The Golden Rule

I/O-bound → async (waiting for external)
CPU-bound → sync + multiprocessing (computing)

Don't:
├── Mix sync and async carelessly
├── Use sync libraries in async code
└── Force async for CPU work

Async Library Selection

Need Async Library
HTTP client httpx
PostgreSQL asyncpg
Redis redis-py (redis.asyncio)
File I/O aiofiles
Database ORM SQLAlchemy 2.0 async, Tortoise

Read the full file on GitHub · 444 lines

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. 3mo ago First seen · 444 lines · 30 tokens per session scan A bab8eb299ef8

Subscribe to this mod's changes

python-patterns is a skill published in the GitHub repository vudovn/ag-kit (8,250 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 2,269 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to python-patterns, differing in 31 lines, and is treated as a copy.

Related

python-patterns compared with skills from other repositories

python-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-patternsvudovn/ag-kitSkill8.3k1mo agoMITA30Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.3ktodayApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill4.0kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill46kyesterdayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill804yesterdayApache-2.0A93Claude Code