Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

testing

/testing

Pisze testy od czerwonego do zielonego, po jednym wycinku naraz, na uzgodnionych granicach, przy budowie funkcji lub naprawie błędu.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
07.11.2026

Ocena i bezpieczeństwo

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

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

Pisze testy od czerwonego do zielonego, po jednym wycinku naraz, na uzgodnionych granicach, przy budowie funkcji lub naprawie błędu.

Oryginalny opis (EN)

Write tests red → green, one slice at a time, at agreed seams. Use when building a feature or fixing a bug test-first, or when another skill needs code driven by tests.

Jak działa

  1. Steps
Sekcje z nagłówków SKILL.md, w oryginale · 19 linii, 283 słów
Podgląd SKILL.md
---
name: testing
description: Write tests red → green, one slice at a time, at agreed seams. Use when building a feature or fixing a bug test-first, or when another skill needs code driven by tests.
---

# Testing

Drive code with tests: each test fails first, then just enough code makes it pass. Tests check **behaviour** through public interfaces, so they survive any refactor that keeps the behaviour.

A **seam** is a public interface where you observe behaviour without reaching inside. Tests live at seams only.

If the project has no test runner, tell the user and stop; this skill does not set one up.

Ask the user every question, including a confirmation, through your harness's interactive question tool when it has one (e.g. `AskUserQuestion` in Claude Code), with the likely replies as options; show anything they must review, such as an issue body, as text first. Only without such a tool, type the question as text.

## Steps

1. **Agree the seams.** Take them from the spec's approach, if the work has a spec that names them. Otherwise propose seams on the critical paths and complex logic, and confirm them with the user. Done when every seam you will test is named and agreed.
2. **Read [TESTS.md](TESTS.md) and [MOCKING.md](MOCKING.md)** before the first test. Done when you have read both.
3. **Loop red → green**, one slice per cycle: write one test at a seam, run it and see it fail for the expected reason, then write only enough code to make it pass. For a bug, the first test reproduces it. Let each test build on what the last cycle taught you, rather than writing all tests up front. Name tests in the project's domain words. Done when every behaviour the work needs has a passing test at a seam, and all tests of the work pass together.

Refactoring stays out of the loop; it belongs to review.
Pliki w paczce (4)
  • LICENSE 1 KB
  • MOCKING.md 1 KB
  • SKILL.md 2 KB
  • TESTS.md 2 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · fynnhaupt/skills90MIT
iuliandita/skills100MIT
wrongstack/wrongstack100MIT
langwatch/langwatch100Apache-2.0
mcouthon/agents100MIT
nteract/nteract100BSD-3-Clause
kettleofketchup/DraftForge100GPL-3.0
skillberry-ai/cap-evolve100Apache-2.0
TheBeardedBearSAS/claude-craft100MIT

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

  • 100tdd
    Pisze najpierw failujący test, a potem kod, po jednym zachowaniu naraz przy budowie funkcji lub naprawie błędu.
  • 100tdd
    Pisze testy najpierw: buduje funkcję od czerwonego do zielonego przy uzgodnionych punktach styku albo naprawia błąd testem regresji.
  • 100tdd
    Stosuje red-green-refactor z jednym testem w cyklu, zanim zmieni kod, przy budowie funkcji lub naprawie błędu.
  • 90enable
    Buduje po jednym wycinku pracy z testami red-before-green na uzgodnionych szwach, ciasnymi pętlami zwrotnymi i recenzją świeżym okiem przy zamknięciu każdego wycinka.
  • 100tdd
    Buduje jedną funkcję lub jedną poprawkę w pętli czerwony, zielony, refaktor, z testami w uzgodnionych punktach styku.
  • 100tdd
    Prowadzi przez test-driven development przy budowie funkcji i naprawie błędów test-first, z testami integracyjnymi i cyklem red-green-refactor.

Uwagi i zgłoszenia

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