toolly
登录/注册
返回

superpowers-tdd

🔒 测试与安全
访问 GitHub

践行测试驱动开发流程,通过先编写失败测试再实现功能最后重构的闭环,确保代码行为可验证、变更受保护,适用于新功能开发、缺陷修复及代码重构等场景。

简介

践行测试驱动开发流程,通过先编写失败测试再实现功能最后重构的闭环,确保代码行为可验证、变更受保护,适用于新功能开发、缺陷修复及代码重构等场景。

核心能力速览
✓所属分类:🔒 测试与安全
✓通过 Agent Skills 协议,将「能力」封装为可复用、可安装的 AI 组件
✓支持按需加载领域知识与工具,让通用模型转变为特定任务的专家
适用场景

适用于「🔒 测试与安全」相关场景,可作为可复用的 AI 能力组件,接入支持 Agent Skills 的 AI 客户端(如 Claude、Cursor、Cline 等),按需调用以扩展模型能力。

Skills.MD
namesuperpowers-tdd
descriptionApplies tests-first discipline (red/green/refactor) and adds regression tests for bugs. Use when implementing features, fixing bugs, or refactoring.

TDD Skill

When to use this skill

  • new features that can be unit tested
  • bug fixes (always add a regression test if practical)
  • refactors (protect behavior with tests first)

Rules

  • Prefer red -> green -> refactor.
  • If tests are hard, still add verification: minimal repro script, integration test, or clear manual steps.
  • Keep tests focused: one behavior per test where possible.
  • Name tests by behavior, not implementation details.

Process

  1. Define the behavior change (what should be true after).
  2. Write/adjust a test to capture it (make it fail first if possible).
  3. Implement the minimal change to pass.
  4. Refactor if needed (keep passing).
  5. Run the relevant test suite + any linters.

Output requirements

When you change code, include:

  • what tests you added/changed
  • how to run them
  • what they prove
快捷安装

在终端执行以下命令,即可将本 Skill 安装到本地 AI 客户端:

npx skills add anthonylee991/gemini-superpowers-antigravity

相关推荐