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
- [
${CLAUDE_SKILL_DIR}/references/typing.md] — Type annotation patterns, generics, overloads, TypeVar, variance: full annotation examples, generic class patterns, Protocol implementation, TypeVar usage - [
${CLAUDE_SKILL_DIR}/references/packaging.md] — Project layout, pyproject.toml, uv, dependency management: pyproject.toml templates, uv workflows, src layout, dependency groups, build backends - [
${CLAUDE_SKILL_DIR}/references/modules.md] — Module system, imports, namespace packages,__init__.py: import resolution order, circular import fixes, lazy imports, namespace packages - [
${CLAUDE_SKILL_DIR}/references/concurrency.md] — asyncio, TaskGroup, cancellation, timeouts, threading interop: TaskGroup error handling, timeout scopes, cancellation semantics, to_thread, eager task factory