Agent 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.

Stars 127
Forks 12

Install this agent skill to your Project

npx add-skill https://github.com/6BNBN/FlowPilot/tree/main/兼容codex@cursor一键安装技能/cursor一键安装技能/skills/test-driven-development

SKILL.md

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

Expand your agent's capabilities with these related and highly-rated skills.

6BNBN/FlowPilot

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

127 12
Explore
6BNBN/FlowPilot

test-driven-development

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

127 12
Explore
6BNBN/FlowPilot

using-superpowers

Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.

127 12
Explore
6BNBN/FlowPilot

ui-ux-pro-max

UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.

127 12
Explore
6BNBN/FlowPilot

requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements.

127 12
Explore
6BNBN/FlowPilot

superpowers

Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.

127 12
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results