python-standards
/python-standards
Określa standardy kodu Python 3.11+: typowanie, ruff, mypy, uv, pytest, async, Docker oraz konwencje FastAPI i Django.
- Autor
- sydasif ↗
- Repozytorium
- claude-python-standards ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 16
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Określa standardy kodu Python 3.11+: typowanie, ruff, mypy, uv, pytest, async, Docker oraz konwencje FastAPI i Django.
Wyzwalacze z opisu
Oryginalny opis (EN)
Python coding standards for modern (3.11+) projects - strict typing, ruff/mypy config, uv packaging, pytest testing, async patterns, error handling, security, docstrings, Docker, and FastAPI/Pydantic/SQLAlchemy/Django/Flask conventions. Use this skill whenever the user writes, reviews, refactors, scaffolds or configures Python code or a Python project (pyproject.toml, ruff, mypy, uv, pytest, Dockerfile for Python, type hints, docstrings, asyncio, logging), or asks what the "standard" or "best practice" is for Python, even if they don't mention standards explicitly.
Jak działa
- How to use
- Core defaults (always in force)
- Preferences (opt-in, owned by their own skills)
- Which reference to read
- Single sources of truth
Podgląd SKILL.md
--- name: python-standards description: Python coding standards for modern (3.11+) projects - strict typing, ruff/mypy config, uv packaging, pytest testing, async patterns, error handling, security, docstrings, Docker, and FastAPI/Pydantic/SQLAlchemy/Django/Flask conventions. Use this skill whenever the user writes, reviews, refactors, scaffolds or configures Python code or a Python project (pyproject.toml, ruff, mypy, uv, pytest, Dockerfile for Python, type hints, docstrings, asyncio, logging), or asks what the "standard" or "best practice" is for Python, even if they don't mention standards explicitly. --- # Python Standards House rules for writing Python. The rules are split into focused reference files so you load only what the task needs. Following them keeps new code consistent with the rest of the codebase and avoids re-deciding the same questions (typing strictness, tooling, error handling) on every task. ## How to use 1. Read `references/index.md` once: each topic has exactly one owning file, so it tells you where a rule lives. 2. Read only the reference file(s) matching the task (table below). For a review or broad refactor, start with `core/conventions.md`, then add the files for the areas the code touches. 3. Apply the rules. When existing project code conflicts with them, follow the project's established style unless the user asks for a migration, and mention the difference briefly. 4. For a one-off script or a legacy codebase (3.8-, untyped), use judgment instead of full strictness; the conventions file explains the tradeoff. ## Core defaults (always in force) - Python 3.11+ floor, 3.12 target; type hints on every signature; `X | Y` unions. - `uv` for environments and dependencies, `ruff` for lint and format, `mypy --strict`, `pytest`. - Specific exceptions only, `raise ... from`, no bare `except`; no hardcoded secrets; `pathlib`, `subprocess.run`, lazy logging, no `print()` in libraries. These defaults are what the code-quality passes enforce: `cleanup-code` prunes first, `modernize-python` applies the mechanical syntax and typing rules, and `review-code` is the final gate. ## Preferences (opt-in, owned by their own skills) Not house rules. Apply them when the task calls for them: - **Function-first / functional core** — plain functions over classes, pure logic separated from I/O: owned by `function-first-refactor`. The rationale, the scope where it is justified, and the refactoring process live there; the short form is in [`references/core/conventions.md#function-first-design`](references/core/conventions.md#function-first-design). ## Which reference to read `references/index.md` is the **only** task → file map. Read it, then open only the file(s) the task needs — do not scan this folder for the right file. ## Single sources of truth - The `pyproject.toml` / `[tool.ruff]` configuration lives only in `references/core/conventions.md` (Canonical tool configuration). Copy it from there; do not invent a second config. - Before/after code examples live only in `references/core/conventions-examples.md`. When asked to add or change an example, edit it there and keep the rule files linking to it. - Keep `references/index.md` in sync when adding, moving or renaming a reference file.
Pliki w paczce (16)
- SKILL.md 3 KB
- references/index.md 2 KB
- references/concurrency/async.md 4 KB
- references/concurrency/performance.md 3 KB
- references/core/conventions-examples.md 9 KB
- references/core/conventions.md 7 KB
- references/core/docstrings.md 2 KB
- references/core/style-toolchain.md 5 KB
- references/core/typing.md 5 KB
- references/core/version.md 3 KB
- references/frameworks/frameworks.md 7 KB
- references/safety/error-handling.md 2 KB
- references/safety/security.md 3 KB
- references/safety/testing.md 5 KB
- references/tooling/docker-management.md 3 KB
- references/tooling/package-management.md 5 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · sydasif/claude-python-standards | 100 | MIT |
| sophophilix/agent-skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 06ca2809d1bc (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90python-craft
Stosuje standardy backendu w Pythonie: FastAPI, Django i Flask, poprawność async, Pydantic v2, SQLAlchemy 2.0, DI oraz ruff, mypy i uv. - 100python
Prowadzi konfigurację projektu Python: pyproject.toml, ruff, mypy, pytest, Pydantic, dobór modelu danych oraz testów. - 100sota-python
Stosuje zasady pisania i audytu kodu w Pythonie: uv, ścisłe typowanie, asyncio, bezpieczeństwo, wydajność oraz praktyki FastAPI, Django i pytest. - 90python-fastapi
Buduje i przegląda usługi w Pythonie na FastAPI, Pydantic v2 i asynchronicznym SQLAlchemy, z typowaniem, uv, ruff i pytest. - 90dev-python-quality
Sprawdza jakość kodu w Pythonie: typowanie, asynchroniczność, pakowanie, pytest, ruff i mypy. - 95python-quality
Dba o jakość kodu Pythona z Ruff, Black, mypy i Pylint: linting, formatowanie, sprawdzanie typów i dobre praktyki w projektach Django, FastAPI i Flask.