Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

build-reliability-quality

/build-reliability-quality

Stosuje zasady niezawodności i jakości kodu: obsługę błędów, limity czasu, ponowienia, testy, typowanie i lint.

Repozytorium
quality-pack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.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
1
Skrypty
0
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.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 sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Stosuje zasady niezawodności i jakości kodu: obsługę błędów, limity czasu, ponowienia, testy, typowanie i lint.

Oryginalny opis (EN)

Shipwright build rules for Reliability and code quality (Reliability, Tests, Code). Use when writing or reviewing code for error handling, timeouts, retries, edge cases, tests (unit, integration, end-to-end), typing, linting, debug leftovers or the README. FR: gestion d'erreurs, cas limites, tests, typage, lint, logs de débogage.

Jak działa

  1. Reliability (REL)
  2. Tests (TST)
  3. Code (COD)
Sekcje z nagłówków SKILL.md, w oryginale · 69 linii, 692 słów
Podgląd SKILL.md
---
name: build-reliability-quality
description: "Shipwright build rules for Reliability and code quality (Reliability, Tests, Code). Use when writing or reviewing code for error handling, timeouts, retries, edge cases, tests (unit, integration, end-to-end), typing, linting, debug leftovers or the README. FR: gestion d'erreurs, cas limites, tests, typage, lint, logs de débogage."
---
<!-- Generated by tools/build.py from the referential YAML. Do not edit by hand. -->

# Reliability and code quality: build rules

Apply these rules while you build. Domains or criteria whose `applies_if` flags are false in `.quality/project.json` do not apply to this project. Before you call a task done, check your work against the criteria of the domains you touched: each one must be true and verifiable.

If a stack module of Shipwright is installed (sw-nextjs, sw-node-api, sw-vps, sw-expo, sw-capacitor, sw-tauri, sw-electron), its rules skill adds stack-specific rules on top of these.

## Reliability (REL)

Errors, interruptions and edge cases.

Rules:

- Every network call has a timeout, error handling and, if idempotent, limited retries.
- Plan edge cases in the spec: empty list, very long list, special characters, double click, expired session, network loss.
- An error in one component does not take down the whole page (error boundary or equivalent).
- The server shuts down cleanly: it finishes in-flight requests and closes its connections.

Done means:

- [BLOCKER] REL-01: No unhandled error that crashes the server or the app. Check: Search for promises without catch, handlers without try/catch, missing error boundaries.
- [major] REL-02: Timeouts and failure handling on all external calls. Check: fetch, HTTP clients, database, Redis: timeout and failure behaviour.
- [major] REL-03: Double submit and concurrent requests without side effects. Check: Double click on payment, sign-up, create: a single result (idempotency or lock).
- [major] REL-04: Correct behaviour offline, on slow network and after session expiry (only if: has_ui). Check: Cut the network, throttle, expire the session mid-flow.
- [minor] REL-05: Extreme inputs handled (empty, very long, emoji, special characters). Check: Enter these values in each field and check display and storage.
- [minor] REL-06: Clean server shutdown (SIGTERM handled) (only if: has_backend). Check: Read the entry point: closing of the HTTP server, sockets and connections.

## Tests (TST)

Validation and regression prevention.

Rules:

- Any logic with a branch, loop, money calculation, parsing or security comes with at least one test.
- Every fixed bug gets a test that would have caught it.
- Main flows have an end-to-end test that runs in CI.
- Never declare a task done without running the tests and reading their output.

Done means:

- [BLOCKER] TST-01: The test suite passes entirely. Check: Run the project's test command; no test skipped without a written reason.
- [major] TST-02: Risky logic is tested (money, permissions, calculations, parsing). Check: List these functions and check a test covers them.
- [major] TST-03: Main flows have an end-to-end test (only if: has_ui). Check: Playwright (or Detox, Maestro on mobile) tests for each main flow.
- [major] TST-04: Tests run automatically before every production release. Check: CI pipeline that blocks deployment when a test fails.
- [minor] TST-05: Tests check behaviour, not implementation. Check: No tests that merely mirror the code or mock everything.

## Code (COD)

Maintainability, typing, linting, no console errors and no leftover debug logs.

Rules:

- The simplest code that fully solves the problem: no unrequested abstraction, option or configuration.
- Reuse what exists in the project before adding a dependency or a helper.
- Change only what the task requires; flag the rest instead of rewriting it.
- Strict typing, no unjustified any; automatic lint and format before each commit.
- No debug console.log, commented-out code or temporary file left behind.

Done means:

- [BLOCKER] COD-01: No type or build error. Check: The stack module's typecheck and build commands.
- [major] COD-02: No lint error. Check: The stack module's lint command.
- [major] COD-03: No error or warning in the browser console (only if: has_ui). Check: Open each main page with Playwright and collect the console.
- [major] COD-04: No debug log, commented-out code or temporary file. Check: Search for console.log, debugger, large commented blocks, *.bak, *.tmp files.
- [minor] COD-05: Strict typing and justified any. Check: strict enabled; every any or ts-ignore has an explaining comment.
- [minor] COD-06: No over-engineering or duplication. Check: Single-use abstractions, unused options, copy-pasted functions.
- [minor] COD-07: Up-to-date README: install, run, environment variables. Check: Follow the README on a clean machine; complete .env.example.

Wersje

W bazie nie ma innych skilli o nazwie build-reliability-quality.

Migawka bazy z 13.11.2026 · wersja paczki d8c6f10ec73b (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

  • 82code-quality
    Pilnuje jakości kodu, komentarzy, testów i dokumentacji przy pisaniu i przeglądzie.
  • 100go-lint
    Uruchamia golangci-lint, aby sprawdzić jakość kodu Go, na prośbę o lint albo przed commitem zmian.
  • 100engineering
    Zawiera podstawowe zasady techniczne, bezpieczeństwa i utrzymywalności przy edycji kodu: refaktoryzację, testy jednostkowe, commity i audyt jakości kodu.
  • 90clade-code-quality
    Podaje zasady jakości kodu: obsługę błędów, bezpieczeństwo powłoki, konwencje językowe i łatwość utrzymania przy refaktoryzacji.
  • 100go-code-audit
    Audytuje jakość kodu Go: zapachy kodu, antywzorce i nieidiomatyczne fragmenty w projekcie, także na pytanie o ogólną jakość kodu.
  • 100python-code-quality
    Uruchamia kontrole jakości kodu, linting, formatowanie i sprawdzanie typów w kodzie Pythona Agent Framework oraz naprawia błędy lintu i problemy CI.

Uwagi i zgłoszenia

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