Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

write-tests

/write-tests

Pisze lub rozszerza testy dla kodu: jednostkowe, regresyjne dla błędu albo pokrycie nowej funkcji.

Repozytorium
Maxedcode ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

86/ 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ść21 / 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 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Pisze lub rozszerza testy dla kodu: jednostkowe, regresyjne dla błędu albo pokrycie nowej funkcji.

Oryginalny opis (EN)

Use when the user asks to write, add or extend tests for some code (unit tests, regression test for a bug, coverage of a new feature).

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 21 linii, 218 słów

Podgląd SKILL.md
---
name: write-tests
description: Use when the user asks to write, add or extend tests for some code (unit tests, regression test for a bug, coverage of a new feature).
---
# Write tests

What to test: $ARGUMENTS

1. Find how the project tests: existing test folders (`tests/`, `test_*.py`, `*_test.py`, `*.spec.ts`),
   the runner (pytest/unittest config, run_all_tests.py, package.json scripts, Makefile). Read one existing
   test file near the target and copy its style: framework, fixtures, naming, imports, helpers.
   No tests yet: Python - unittest or pytest (whichever is installed), one `tests/test_<module>.py`.
2. Read the code under test. List the cases before writing:
   - the normal path with typical input;
   - edges: empty, None, zero, one item, very large, unicode/Cyrillic, Windows paths with spaces;
   - error paths: invalid input must raise or return the documented error;
   - for a bug: a test that fails on the old code and passes on the fixed code.
3. Write focused tests: one behaviour per test, clear names (`test_<what>_<when>`), exact assertions on
   values, not just "no exception". Mock only external things (network, model API, clock, subprocess);
   use temp dirs for files. No sleeps, no dependence on test order or on the user's machine state.
4. Run only the new tests, then the whole related suite. A new test that fails exposes either a test
   mistake (fix the test) or a real bug (report it, do not change the code under test unless asked).

Report: the test file(s), the cases covered, the run command and its result.

Wersje

RepozytoriumWynikLicencja
Ta strona · maxed4you/Maxedcode86Apache-2.0
onsi/biloba100MIT
runwield/runwield100MIT
dzhng/jevgrep100MIT
lukedj78/dev-flow100MIT
dzhng/skills100MIT
rowansci/rowan-python100MIT
yaohuangguan/agent-playbook100MIT
microsoft/semantic-link-labs100MIT

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

  • 100v1-write-tests
    Pisze testy jednostkowe do zmian w kodzie i nowej funkcjonalności, zanim trafią do przeglądu.
  • 100test-unit
    Pisze testy jednostkowe i integracyjne dla wskazanego modułu lub zmiany, na przykład dla pojedynczej funkcji.
  • 84generate-tests
    Generuje testy jednostkowe, integracyjne i e2e dla kodu, na przykład dla funkcji, endpointów API czy przepływu zakupowego.
  • 100unit-testing
    Pisze i aktualizuje testy jednostkowe dla nowego lub zmienionego kodu, uruchamia je z pokryciem i naprawia błędy.
  • 100unit-tests
    Pisze lub przegląda testy jednostkowe przez eksportowane zachowanie, także testy regresji i kruche sprawdzenia do wymiany.
  • 100playwright-test-writer
    Pisze i rozszerza testy Playwright E2E dla strony lub funkcji, także przy poprawkach istniejących testów przeglądarkowych.

Uwagi i zgłoszenia

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