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

code-style

/code-style

Stosuje konwencje stylu kodu Python w repozytorium railtracks przy każdej zmianie w kodzie.

Repozytorium
railtracks ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

96/ 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ść31 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.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

Stosuje konwencje stylu kodu Python w repozytorium railtracks przy każdej zmianie w kodzie.

Oryginalny opis (EN)

Apply railtracks' code-style conventions whenever writing or editing Python code in this repo: new functions, modified signatures, docstrings, comments, imports, error handling. Use this automatically as part of any code change, not just when explicitly asked to clean up code.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 37 linii, 429 słów

Podgląd SKILL.md
---
name: code-style
description: >
  Apply railtracks' code-style conventions whenever writing or editing Python code in this repo:
  new functions, modified signatures, docstrings, comments, imports, error handling. Use this
  automatically as part of any code change, not just when explicitly asked to clean up code.
---

# railtracks Code Style

Code changes in this repo should be reviewed against these rules. Each one comes from a
recurring, repeated PR review comment on railtracks, not a hypothetical style preference.

- **Lint/format**: run `ruff check --fix` and `ruff format`, required for every PR (CI-enforced).
- **Imports**: prefer top-level imports. Local/inline imports are fine when there's a real reason (e.g.
  deferring an expensive or optional dependency like `litellm`); don't add them out of habit, and don't
  let a lint failure be the excuse either way.
- **Tests**: new functionality gets tests in the matching package's `tests/` directory; don't leave a
  behavior change uncovered.
- **Docstrings**: must match the actual signature (param names, types, `| None` / `Iterable[...]` etc.).
  Update the docstring any time a signature changes.
- **Tool docstrings/type hints**: for any `@rt.function_node`-wrapped tool, the docstring is the literal
  tool description the LLM sees and the type hints define its JSON schema parameters; don't write vague
  docstrings or omit type hints on a tool function.
- **Module-level comment strings**: a docstring at the top of a file is welcome. Avoid long inline
  paragraph-style comments in the body of the code; keep inline comments short and targeted.
- **Typing**: no bare `Any` when a concrete type is available or already imported nearby. Don't reach for
  `Any` as a quick fix to silence something that's actually broken, either; fix the real type mismatch.
- **TODOs**: no inline `# TODO` comments. Either fix it now or file a tracked GitHub issue and reference it.
- **Cruft**: no dead/commented-out code, no stray debug/scratch files left in a change.
- **Documentation paragraphs**: keep prose paragraphs on one line, matching the existing docs; do not hard-wrap sentences. Preserve code-block formatting.
- **Mutable defaults**: don't store a mutable default (`x or []`) by reference and mutate it later; copy
  defensively.
- **Errors**: use `repr(e)` rather than `str(e)` in error/log messages.
- **`__init__.py`**: don't add docstrings to `__init__.py` files; not this repo's convention.
- **Consistency with siblings**: when adding a new variant of something that already has 2+ siblings
  (chunkers, loaders, LLM providers, etc.), match their existing shape/behavior rather than introducing an
  ad hoc one-off.
- **Model references in examples**: use current, provider-documented model IDs in user-facing examples and
  bundled CLI skills. Verify IDs against the provider's model catalog and deprecation page when adding or
  refreshing examples. Keep a model-specific reference only when the example demonstrates behavior unique
  to that model, and explain that choice nearby when it would otherwise look stale. Historical upgrade
  guides and tests that intentionally exercise model-name passthrough may retain older IDs.

Wersje

RepozytoriumWynikLicencja
Ta strona · railtownai/railtracks96MIT
automattic/wordpress-activitypub100MIT
bastidood/skills100MPL-2.0
fubits1/svelte-skills100MIT
microsoft/semantic-link-labs100MIT
Casper-Studios/casper-marketplace100MPL-2.0
avsm/ocaml-claude-marketplace100ISC

Migawka bazy z 28.10.2026 · wersja paczki e748c87c03d7 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95python-style
    Stosuje konwencje kodu Pythona przy pisaniu i przeglądzie: docstringi, adnotacje, nazewnictwo i importy.
  • 100python-code-style
    Ustala styl kodu Python: linting, formatowanie, nazewnictwo i docstringi, przy pisaniu nowego kodu, przeglądzie stylu i konfiguracji linterów.
  • 100agent-builder
    Buduje agenta w Pythonie przy użyciu frameworka railtracks: agent AI, przepływ z wywołaniami narzędzi lub system wieloagentowy.
  • 95python-style
    Stosuje konwencje kodu i testów Pythona w repozytorium MLflow przy pisaniu i przeglądzie plików.
  • 100document-code
    Stosuje standardy dokumentowania Google Style w kodzie Python, Go, TypeScript i Terraform: docstringi, komentarze, JSDoc oraz opisy zmiennych i wyjść Terraform.
  • 100check-docs-style
    Sprawdza zgodność zmienionych stron dokumentacji Nx z przewodnikiem stylu astro-docs, automatycznie po każdej edycji plików .mdoc w repozytorium nx.

Uwagi i zgłoszenia

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