python
Installation
SKILL.md
Python
Readability counts. Explicit is better than implicit. If your code needs a comment to explain its control flow, restructure it.
Python 3.14+ is the baseline. Use modern syntax unconditionally — no backward compatibility with older Python versions unless the project explicitly requires it.
References
| Topic | Reference | Contents |
|---|---|---|
| Type annotation patterns, generics, overloads, TypeVar, variance | [${CLAUDE_SKILL_DIR}/references/typing.md] |
Full annotation examples, generic class patterns, Protocol implementation, TypeVar usage |
| Project layout, pyproject.toml, uv, dependency management | [${CLAUDE_SKILL_DIR}/references/packaging.md] |
pyproject.toml templates, uv workflows, src layout, dependency groups, build backends |
Module system, imports, namespace packages, __init__.py |
[${CLAUDE_SKILL_DIR}/references/modules.md] |
Import resolution order, circular import fixes, lazy imports, namespace packages |
| asyncio, TaskGroup, cancellation, timeouts, threading interop | [${CLAUDE_SKILL_DIR}/references/concurrency.md] |
TaskGroup error handling, timeout scopes, cancellation semantics, to_thread, eager task factory |