python
Skill1 starsChanged 8 months agoMITView on GitHub
Deep fluency in modern Python (3.14+) for production systems. Use when writing Python code, designing APIs, building data pipelines, creating async services, or optimizing performance. Covers typing, tooling (uv/pyright/ruff), FastAPI, Polars, observability, and engineering judgment.
44 other projects use a version of this.
Adopted by
Most recently taken up by
- niksavis/handilytheir own version, first seen Nov 8, 2026
- testdino-hq/google-styleguides-skillstheir own version, first seen Nov 8, 2026
- niksavis/basiclytheir own version, first seen Nov 7, 2026
- its-ash/skillstheir own version, first seen Nov 1, 2026
- shubh3794/claude-code-portabletheir own version, first seen Nov 1, 2026
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 1, 2026
Used with
Projects with it also use android-kotlin, java and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
alinaqiSkillandroid-kotlin
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing
Also in 4 projects that use this
testdino-hqSkilljava
Google's official Java style guide. Covers 2-space indentation, 100-char line limit, naming conventions, braces, imports, Javadoc, exception handling, lambdas, and streams. Enforces @Override annotations and specific imports.
Also in 6 projects that use this
testdino-hqSkillcsharp
Google's official C# style guide. Covers naming conventions, formatting, LINQ, async/await, XML documentation, and .NET best practices.
Also in 4 projects that use this
ffsshhttiikkSkillflutter
Flutter cross-platform framework
Also in 4 projects that use this
mcollinaSkillnode
Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more. Use when setting up Node.js projects with native TypeScript support, configuring type stripping (--experimental-strip-types), writing Node 22+ TypeScript without a build step, or when the user mentions 'native TypeScript in Node', 'strip types', 'Node 22 TypeScript', '.ts files without compilation', 'ts-node alternative', or needs guidance on error handling, graceful shutdown, flaky tests, profiling, or environment configuration in Node.js. Helps configure tsconfig.json for type stripping, set up package.json scripts, handle module resolution and import extensions, and apply robust patterns across the full Node.js stack.
Also in 4 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 7 projects that use this
- +1 more from testdino-hq
Other versions44 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 44
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- Mindrally/skills★ 275same name
- kid-sid/claude-spellbook★ 190same name
- hass-energy/haeo★ 77same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- maroffo/claude-forge★ 17same name
- G1Joshi/Agent-Skills★ 15same name
- kissgyorgy/coding-agents★ 15same name
- testdino-hq/google-styleguides-skills★ 15same name
34 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- documentation-auditSkill
- fresh-eyes-reviewSkill
- frontend-designSkill
- landing-page-designSkill
- session-reflectionSkill
The file
Files
Python Development Skill
This skill provides expert-level Python development practices for building production systems.
When This Skill Activates
- Writing or reviewing Python code
- Designing typed APIs and data models
- Building data pipelines or ETL workflows
- Creating async services or web APIs
- Optimizing Python performance
- Setting up Python project tooling
Core Principles
- Types as documentation — Public APIs are fully typed;
Anyis a code smell - Static analysis gates —
pyrightandruffblock merges, not just warn - Reproducible environments —
uv+pyproject.tomlas single source of truth - Measure before optimizing — Profile first, then fix the actual bottleneck
- Explicit over magical — Prefer boring, readable code over clever metaprogramming
Quick Reference
Project Setup
# Initialize new project
uv init my-project
cd my-project
# Add dependencies
uv add fastapi pydantic httpx
# Add dev dependencies
uv add --dev pytest pyright ruff
# Sync environment
uv syncRequired pyproject.toml Configuration
[project]
requires-python = ">=3.14"
[tool.pyright]
pythonVersion = "3.14"
typeCheckingMode = "strict"
[tool.ruff]
target-version = "py314"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "A", "C4", "PT", "RUF"]Type Annotations Pattern
from typing import Protocol, Self
from collections.abc import Sequence, Mapping
# Use protocols for duck typing
class Serializable(Protocol):
def to_dict(self) -> Mapping[str, object]: ...
# Use Self for fluent APIs
class Builder:
def with_name(self, name: str) -> Self:
self._name = name
return self
# Prefer collections.abc over typing module
def process(items: Sequence[str]) -> list[str]:
return [item.upper() for item in items]FastAPI Service Pattern
from fastapi import FastAPI, HTTPException, status
from pydantic import BaseModel, Field
import httpx
app = FastAPI()
class CreateUserRequest(BaseModel):
email: str = Field(..., pattern=r"^[\w\.-]+@[\w\.-]+\.\w+$")
name: str = Field(..., min_length=1, max_length=100)
class UserResponse(BaseModel):
id: str
email: str
name: str
@app.post("/users", response_model=UserResponse, status_code=status.HTTP_201_CREATED)
async def create_user(request: CreateUserRequest) -> UserResponse:
# Implementation with proper error handling
...Async with Proper Lifecycle
import asyncio
from contextlib import asynccontextmanager
from collections.abc import AsyncIterator
@asynccontextmanager
async def managed_client() -> AsyncIterator[httpx.AsyncClient]:
"""Always use context managers for async resources."""
async with httpx.AsyncClient(timeout=30.0) as client:
yield client
async def fetch_with_timeout(url: str) -> bytes:
"""Explicit timeouts, never fire-and-forget."""
async with managed_client() as client:
response = await client.get(url)
response.raise_for_status()
return response.contentData Pipeline Pattern (Polars + Prefect)
import polars as pl
from prefect import flow, task
@task(retries=3, retry_delay_seconds=60)
def extract_data(path: str) -> pl.LazyFrame:
return pl.scan_parquet(path)
@task
def transform_data(lf: pl.LazyFrame) -> pl.LazyFrame:
return lf.filter(pl.col("status") == "active").select(
pl.col("id"),
pl.col("value").cast(pl.Float64),
)
@flow(log_prints=True)
def etl_pipeline(input_path: str, output_path: str) -> None:
raw = extract_data(input_path)
transformed = transform_data(raw)
transformed.collect().write_parquet(output_path)Decision Framework
When to Use What
| Need | Tool/Approach |
| DataFrames (analytics) | Polars (lazy mode) |
| DataFrames (compatibility) | pandas (explicit choice) |
| Local SQL analytics | DuckDB |
| Columnar interchange | Apache Arrow |
| HTTP client | httpx (with timeouts) |
| Web API | FastAPI + Pydantic v2 |
| Task orchestration | Prefect |
| Package management | uv only |
| Type checking | pyright (strict mode) |
| Linting + formatting | ruff |
Concurrency Model Selection
| Workload | Model |
| I/O-bound, many connections | asyncio |
| CPU-bound, parallelizable | multiprocessing |
| CPU-bound, need shared state | threading (with locks) |
| Mixed I/O + CPU | ProcessPoolExecutor from async |
Anti-Patterns to Avoid
- Untyped public APIs — Every public function needs type hints
- Bare
except:— Always catch specific exceptions - Fire-and-forget tasks — Use
asyncio.TaskGroupfor lifecycle management - Mutable default arguments — Use
Noneand initialize inside function - requirements.txt as source of truth — Use
pyproject.toml+ lockfile - Implicit timeouts — Every network call needs explicit timeout
- pandas for everything — Use Polars for performance, pandas for compatibility
Testing Strategy
import pytest
from hypothesis import given, strategies as st
# Unit test for logic
def test_normalize_email() -> None:
assert normalize_email("USER@Example.COM") == "user@example.com"
# Property-based test for invariants
@given(st.emails())
def test_email_normalization_is_idempotent(email: str) -> None:
normalized = normalize_email(email)
assert normalize_email(normalized) == normalized
# Integration test with real dependencies
@pytest.mark.integration
async def test_user_creation_flow(test_db: Database) -> None:
user = await create_user(test_db, email="test@example.com")
assert user.id is not NoneDetailed References
For comprehensive coverage of specific topics, see:
- references/typing.md — Advanced typing patterns (PEPs 484, 544, 589, 695)
- references/async.md — Concurrency deep dive, structured concurrency
- references/data-engineering.md — Pipeline patterns, Prefect flows
- references/performance.md — Profiling, optimization, native extensions
- references/security.md — Supply chain, secrets, input validation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

