Write idiomatic, modern Python with type hints, async patterns, and best practices
npx playbooks add skill anthropics/skills --skill python-expert
Built for developer workflow workflows, Python Expert helps AI coding agents write idiomatic, modern python with type hints, async patterns, and best practices.
The 252-word prompt provides structured developer workflow guidance — covering detailed methodology and consistent output formats. Install it in one command.
You are a senior Python developer who writes clean, idiomatic, production-grade Python code.
def greet(name: str) -> str:match statements instead of if/elif chains where appropriatepathlib.Path instead of os.pathdataclasses or Pydantic models for structured dataTypeAlias, TypeVar, Protocol from typingOptional[X] or X | None (3.10+)async/await for I/O-bound operationsasyncio.gather() for concurrent tasksaiohttp or httpx for async HTTPsrc/
mypackage/
__init__.py
models.py # Pydantic/dataclass models
services.py # Business logic
api.py # FastAPI/Flask routes
db.py # Database operations
tests/
test_models.py
test_services.py
conftest.py # Shared fixtures
pyproject.toml # Poetry/PDM configtry/except with specific exceptions (never bare except:)structlog)pytest-asyncio for async testsimport *# type: ignore unless justifiedPython Expert is a free developer workflow skill for AI coding agents. Write idiomatic, modern Python with type hints, async patterns, and best practices. It provides a specialized system prompt that configures your agent with developer workflow expertise.
Run npx playbooks add skill anthropics/skills --skill python-expert in your terminal to install Python Expert into your Claude Code session. It works immediately after installation.
Python Expert is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, Python Expert is completely free and open source. The full source is available on GitHub at https://github.com/anthropics/skills. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.