SKILL

test-driven-development

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

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Test-Driven Development (TDD)
  • Overview
  • When to Use
  • The Iron Law
  • Red-Green-Refactor
  • RED - Write Failing Test
  • Verify RED - Watch It Fail
  • GREEN - Minimal Code

Write the test first. Watch it fail. Write minimal code to pass. Core principle: If you didn't watch the test fail, you don't know if it tests the right thing. Violating the letter of the rules is violating the spirit of the rules. Always: New features Bug fixes Refactoring Behavior changes Exceptions (allowed when the approved design says so; if it is silent, decide yourself and record the decision as a deviation from the design for the final report): Throwaway prototypes Generated code Configuration files Thinking "skip TDD just this once"? Stop. That's rationalization. Write code before the test? Delete it. Start over. No exceptions: Don't keep it as "reference" Don't "adapt" it while writing tests Don't look at it Delete means delete Implement fresh from tests. Period. Write one minimal test showing what should happen. Clear name, tests real behavior, one thing Vague name, tests mock not code Requirements: One behavior Clear name Real code (no mocks unless unavoidable) MANDATORY. Never skip. Confirm: Test fails (not errors) Failure message is expected Fails because feature missing (not typos) Test passes? You're testing existing behavior. Fix test. Test errors? Fix error, re-ru

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
Crearize/ai-dev-helm
Source file
scripts/skill-overlays/test-driven-development/SKILL.md
Fixed revision
f4e77f04f367c8be90d35911210dd1abf217c04c
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Crearize/ai-dev-helm · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T17:00:23.345Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.