Toolverse
All skills

tdd-discipline

by openclaw

Test-Driven Development methodology. Use when implementing features or fixing bugs. Write the test first, watch it fail, write minimal code to pass, then refactor. Prevents untested code from shipping.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Testing

About this skill

Test-Driven Development methodology. Use when implementing features or fixing bugs. Write the test first, watch it fail, write minimal code to pass, then refactor. Prevents untested code from shipping.

How to use

  1. Zanim zaczniesz pisać funkcję lub naprawiać bug, napisz test, który weryfikuje dokładnie jedno zachowanie. Nazwa testu powinna być jasna (np. "rejects empty email"), nie ogólna.

  2. Uruchom test poleceniem npm test path/to/test.test.ts i upewnij się, że faktycznie pada (nie z powodu błędu składni, ale z powodu niezaimplementowanej funkcji). Sprawdź, czy komunikat błędu jest taki, jaki oczekujesz.

  3. Napisz najprostszy możliwy kod, który sprawi, że test przejdzie. Nie dodawaj dodatkowych funkcji, nie refaktoruj — tylko minimum wymagane do zielonego wyniku.

  4. Uruchom test ponownie, aby potwierdzić, że przechodzi (faza GREEN).

  5. Teraz refaktoruj: usuwaj duplikaty, poprawiaj nazwy zmiennych, wyodrębniaj helpery. Cały czas utrzymuj test w stanie GREEN — nie zmieniaj zachowania.

  6. Jeśli naprawiasz istniejącego buga, najpierw napisz test, który go reprodukuje, potem zastosuj powyższe kroki. W ten sposób bug nigdy się nie powróci.

Related skills

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

ad-creative

by alirezarezvani

When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or

Testing
2863

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

differential-review

by trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and

Testing
2510

powershell-windows

by davila7

PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling.

Testing
1074

ppt-creator

by daymade

Create professional slide decks from topics or documents. Generates structured content with data-driven charts, speaker notes, and complete PPTX files. Applies persuasive storytelling principles (Pyramid Principle, assertion-evidence). Supports multiple formats (Marp,

Testing
2739