Toolverse
All skills

tdd-workflows-tdd-red

by sickn33

Generate failing tests for the TDD red phase to define expected behavior and edge cases.

Installation

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

Installation

Quick info

Author
sickn33
Category
Testing

About this skill

Generate failing tests for the TDD red phase to define expected behavior and edge cases.

How to use

  1. Zidentyfikuj zachowania, ograniczenia i przypadki brzegowe funkcji lub modułu, dla którego chcesz napisać testy. Zbierz wymagania i scenariusze testowe, zanim uruchomisz skill.

  2. Uruchom skill z argumentem opisującym funkcjonalność. Przekaż kontekst: jakie zachowanie powinno być testowane, jakie frameworki preferujesz (Jest, pytest, JUnit, Go, RSpec), i jakie przypadki brzegowe są istotne (wartości puste, null, granice, błędy).

  3. Skill generuje zestawu testów, które świadomie padają. Każdy test powinien być strukturyzowany wg wzoru Arrange-Act-Assert, z nazwami typu should_X_when_Y, i zawierać izolowane fixture bez współzależności.

  4. Zweryfikuj, że wszystkie testy padają z właściwych powodów — bo brakuje implementacji, a nie z powodu błędów składni, importów czy konfiguracji. Sprawdź komunikaty błędów — powinny być zrozumiałe i diagnostyczne.

  5. Upewnij się, że dane testowe są izolowane od środowiska produkcyjnego i że testy nie zależą od zewnętrznych serwisów, które mogą być niestabilne. Unikaj flaky'ego kodu w fazie red.

  6. Zapisz testy w repozytorium i przejdź do fazy green — implementuj kod, aby testy przeszły. Dokumentacja powinna zawierać instrukcję uruchomienia testów i weryfikacji, że rzeczywiście padają.

Related skills

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

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

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

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

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226