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

go-tdd

/go-tdd

Wdraża zatwierdzoną specyfikację Go metodą test-first: pętla czerwony, zielony, refaktor z bramkami na każdym etapie.

Repozytorium
bad-agent-kit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.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
5
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Wdraża zatwierdzoną specyfikację Go metodą test-first: pętla czerwony, zielony, refaktor z bramkami na każdym etapie.

Oryginalny opis (EN)

Implement an accepted Go spec test-first. Self-contained red-green-refactor loop with a Go sensor gate at every phase exit and mandatory end-to-end expected-outcome tests. Use when implementing Go changes after go-plan produced an accepted spec.

Jak działa

  1. Inline red-green-refactor loop
  2. The contract
  3. Fail-fast sensor chain (run at every phase exit)
  4. End-to-end outcome tests (required)
  5. Perf discipline (pstack)
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 317 słów
Podgląd SKILL.md
---
name: go-tdd
description: Implement an accepted Go spec test-first. Self-contained red-green-refactor loop with a Go sensor gate at every phase exit and mandatory end-to-end expected-outcome tests. Use when implementing Go changes after go-plan produced an accepted spec.
---

# go-tdd

Self-contained Go implement phase — no external suite required. `mp:tdd` /
`pstack:tdd` are never used for Go (fence); they may accelerate non-Go work
only, and only when detected present AND opted in.

## Inline red-green-refactor loop

1. **Red** — write a failing test for a *behavior* (a use case), never a
   method. State the behavior before any implementation detail.
2. **Green** — fastest correct pass. Sins allowed; design happens only in
   refactor. No new tests while refactoring — except the e2e outcome test,
   which must pre-date the refactor it protects.
3. **Refactor** — design only here. Test through the public API; refactoring
   internals must not break tests (white-box fuzz of parser internals is the
   one exception).

Work outside-in: start one level below the UI at the domain-model layer. UI
automation is not a unit test.

## The contract

All rules come from [GO_RULES.md](references/GO_RULES.md) — the single source
shared with go-review. Read it before writing code; never restate rules
locally. The TDD contract block (T1-T5) is part of it.

## Fail-fast sensor chain (run at every phase exit)

1. `gofmt -l .` — zero output
2. `go vet ./...` — zero findings (copylocks, atomic, loopclosure, lostcancel)
3. `golangci-lint run` — zero findings (config: assets/.golangci.yml)
4. `govulncheck ./...` — no known vulnerabilities
5. `go test -race ./...` — green; `goleak` on any package that starts goroutines

A missing binary is not a free pass — install it or use the documented
degraded-mode fallback in [toolchain-setup.md](references/toolchain-setup.md).

## End-to-end outcome tests (required)

Beyond unit tests, at least one test exercises the expected end-to-end outcome:
the real binary against the real artifact where feasible. The expected outcome
is an acceptance condition, and acceptance conditions must be tested, not
assumed.

## Perf discipline (pstack)

Optimize only on a pprof-identified hot path. Every perf change ships
`benchstat` before/after (ns/op, B/op, allocs/op) with a package-level anchor
var (GO_RULES.md P1/P2). No benchmark, no change.
Pliki w paczce (5)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB
  • assets/.golangci.yml 1 KB
  • references/GO_RULES.md 8 KB
  • references/toolchain-setup.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie go-tdd.

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

Pobrania w ostatnich 30 dniach: 4 · ranking

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

Podobne skille

  • 100tdd-workflow
    Pisze funkcje i poprawki test-first w cyklu czerwony, zielony, refaktor.
  • 90tdd-cycle
    Prowadzi pętlę TDD czerwony-zielony-refaktor z obowiązkowym sprawdzeniem fałszywie dodatnich wyników testu.
  • 100code-tdd
    Buduje zmianę metodą test-first w krokach czerwony, zielony i refaktor, przez publiczny interfejs i testy wejściowe.
  • 100tdd
    Buduje jedną funkcję lub jedną poprawkę w pętli czerwony, zielony, refaktor, z testami w uzgodnionych punktach styku.
  • 90tdd-workflow
    Prowadzi znormalizowany cykl TDD: czerwony, zielony, refaktor i weryfikacja, z dbaniem o pokrycie testami i brak regresji.
  • 100tdd
    Prowadzi pracę test-first w cyklu czerwony, zielony, refaktoryzacja, przy nowych funkcjach i poprawkach błędów.

Uwagi i zgłoszenia

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