← ClaudeAtlas

pythonlisted

Python language conventions, modern idioms, and toolchain. Invoke whenever task involves any interaction with Python code — writing, reviewing, refactoring, debugging, or understanding Python projects.
xobotyi/cc-foundry · ★ 23 · Code & Development · score 81
Install: claude install-skill xobotyi/cc-foundry
# 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 ## Naming - **Variables, functions, methods** — snake_case: `user_name`, `fetch_data` - **Classes, type aliases** — PascalCase: `UserService`, `HttpClient` - **Constants** — UPPER_SNAKE_CASE: `MAX_RETRIES`, `API_BASE_URL` - **Modules, packages** — snake_case, short: `user_store`, `auth` - **Private attributes/methods** — `_` prefix: `_internal_cac