Skip to content
Agent Orchestration
Skill

/test-driven-development

Use when implementing a feature, fixing a bug, or changing behavior in Cursor and you want a disciplined red-green-refactor workflow.

BOOST
From plugin
flowpilot
13620 skills
Install
$ npx -y skills add 6BNBN/FlowPilot --skill test-driven-development --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/test-driven-development

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when implementing a feature, fixing a bug, or changing behavior in Cursor and you want a disciplined red-green-refactor workflow.

SKILL.md

test-driven-development.SKILL.md
name: test-driven-development
description: Use when implementing a feature, fixing a bug, or changing behavior in Cursor and you want a disciplined red-green-refactor workflow.

Test-Driven Development

Goal

Write the failing test first, then the smallest implementation that makes it pass.

Workflow

1. Write one failing test for one behavior. 2. Run it and confirm it fails for the right reason. 3. Implement the minimal code needed to pass. 4. Re-run the test and nearby checks. 5. Refactor while keeping everything green. 6. Repeat for the next behavior.

Rules

  • No production code before a failing test unless the user explicitly asks to skip TDD.
  • Keep tests focused on behavior, not incidental implementation details.
  • Prefer real code paths over heavy mocking.
  • If the test passes immediately, you are probably testing existing behavior or the wrong thing.
  • Use `verification-before-completion` before claiming the bug or feature is finished.

Good Test Qualities

  • one behavior
  • clear name
  • obvious expected outcome
  • minimal setup
  • catches the intended regression
Ships withflowpilot

一个文件,一句开发需求,全自动开发。 把 flow.js 丢进任何项目,打开你选择的客户端(Claude Code / Codex / Cursor / snow-cli 等)描述你要做什么,然后去喝杯咖啡。 回来的时候,代码写好了,测试跑完了,git 也提交了。 新增说明:现已兼容 Claude Code、Codex、Cursor、snow-cli 和其他客户端;init 时可直接选择目标客户端并生成对应的 instruction file / 配置。 新增说明:内置 instruction file /

Get the whole plugin

Other skills on flowpilot.