金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

superpowers-tdd

superpowers-tdd 是面向测试与安全的 Agent Skill,来自 anthonylee991/gemini-superpowers-antigravity。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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

SKILL.md

下载 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

来源:anthonylee991/gemini-superpowers-antigravity · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本