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.
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
- Write one failing test for one behavior.
- Run it and confirm it fails for the right reason.
- Implement the minimal code needed to pass.
- Re-run the test and nearby checks.
- Refactor while keeping everything green.
- 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-completionbefore claiming the bug or feature is finished.
Good Test Qualities
- one behavior
- clear name
- obvious expected outcome
- minimal setup
- catches the intended regression
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
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.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
using-superpowers
Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.
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.
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements.
superpowers
Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.
Didn't find tool you were looking for?