Toolverse
All skills

test-driven-development

by obra

Use when implementing any feature or bugfix, before writing implementation code

Installation

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

Installation

Quick info

Author
obra
Category
Testing
Views
41

About this skill

Use when implementing any feature or bugfix, before writing implementation code

How to use

  1. Zainstaluj umiejętność test-driven development w swoim asystencie AI (Claude, Copilot lub innym wspieranym narzędziu), wskazując ścieżkę do repozytorium obra/superpowers/skills/test-driven-development.
  2. Zanim zaczniesz pracę nad nową funkcją, poprawką błędu lub refaktoringiem, aktywuj tę umiejętność w kontekście zadania. Powiedz asystentowi: "Użyj test-driven development dla tego zadania".
  3. Napisz pierwszy test – minimalny test pokazujący, co powinno się stać. Test powinien być nieudany (faza RED). Zweryfikuj, że test pada z właściwego powodu, nie z powodu błędu składni.
  4. Napisz minimalny kod produkcyjny, aby test przeszedł (faza GREEN). Nie dodawaj nic więcej – tylko tyle, ile potrzeba. Upewnij się, że wszystkie testy przechodzą.
  5. Jeśli kod wymaga czyszczenia lub refaktoringu, zrób to teraz (faza REFACTOR), ale upewnij się, że testy wciąż przechodzą. Nigdy nie modyfikuj kodu napisanego przed testem – jeśli napiszesz kod zanim test będzie gotów, usuń go i zacznij od nowa.
  6. Powtarzaj cykl red-green-refactor dla każdej nowej funkcjonalności. Wyjątkami są tylko prototypy jednorazowe – w każdym innym przypadku TDD jest obowiązkowe.

Related skills

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546

langgraph-docs

by langchain-ai

Use this skill for requests related to LangGraph in order to fetch relevant documentation to provide accurate, up-to-date guidance.

Testing
23127

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

wcag-audit-patterns

by wshobson

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

Testing
1893

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190