Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

python-standards

/python-standards

Określa standardy kodu Python 3.11+: typowanie, ruff, mypy, uv, pytest, async, Docker oraz konwencje FastAPI i Django.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
16
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

standardbest practice
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

  1. How to use
  2. Core defaults (always in force)
  3. Preferences (opt-in, owned by their own skills)
  4. Which reference to read
  5. Single sources of truth
Sekcje z nagłówków SKILL.md, w oryginale · 37 linii, 393 słów
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

RepozytoriumWynikLicencja
Ta strona · sydasif/claude-python-standards100MIT
sophophilix/agent-skills100MIT

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.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.