Repository inventory

guanyang/antigravity-skills

Skills indexed from this repository, with install-style signals scoped to the repo.
4 skills1.3K GitHub stars0 weekly installsPythonGitHubOwner profile

Overview

This skill encodes a disciplined Test-Driven Development (TDD) workflow to use before implementing features or bug fixes. It enforces writing a failing test first, implementing the minimal code to pass, and refactoring while keeping tests green. The aim is higher confidence, clearer design, and repeatable verification for every change.

How this skill works

The skill guides you through the Red-Green-Refactor loop: write one minimal failing test (RED), verify it fails for the expected reason, implement just enough code to make the test pass (GREEN), and then refactor while ensuring all tests remain green. It includes concrete checklists, anti-pattern warnings, and patterns for writing clear, behavior-focused tests rather than implementation-focused ones.

When to use it

  • Always when adding new features
  • Whenever fixing a bug
  • During refactoring that changes behavior
  • When changing public APIs or behavior
  • Before committing changes that affect logic

Best practices

  • Write one behavior-focused test at a time with a clear name
  • Verify each new test fails for the intended reason before implementing
  • Implement the smallest possible change to make the test pass
  • After green, refactor for clarity without changing behavior and keep tests passing
  • Avoid over-engineering: add features only when a test requires them
  • Delete exploratory code and re-implement from tests to avoid bias

Example use cases

  • Add a retry mechanism: write a test asserting three attempts, see it fail, implement minimal retry logic
  • Bug fix: reproduce the bug with a failing test, fix code so test passes and prevents regression
  • Refactor a module: add tests for current behavior first, then refactor while maintaining green tests
  • Design new API: write tests for the desired API behavior before implementing methods
  • Validate input rules: write failing tests for edge cases (empty or invalid inputs) then implement validation

FAQ

If a new test passes immediately, you are testing existing behavior not the missing feature. Fix the test so it fails for the intended reason, or delete any pre-existing implementation and start the cycle fresh.

When are exceptions allowed to strict TDD?

Only for throwaway prototypes or code you explicitly plan to discard. For production work, follow TDD. If unsure, ask your human partner — the default is no exceptions.

4 skills

More from this maintainer
Other repositories and skills published under the same GitHub owner.
Skills library
Jump back to the full directory or explore grouped topics.
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational