sickn33 avatar

Tdd Workflows Tdd Refactor

This is a comprehensive TDD refactoring workflow that uses Claude's Opus model as a subagent orchestrator to safely transform code while keeping tests green. It walks through the full refactor phase: detecting code smells, applying design patterns and SOLID principles, optimizing performance, and making incremental changes with test verification at each step. The skill includes specific techniques like extract method, introduce parameter objects, and advanced patterns like Strangler Fig for legacy code. What stands out is the safety focus: it requires a green baseline before starting, runs tests after every change, and includes a rollback protocol if anything breaks. Best used when you have solid test coverage and want to improve code quality without introducing regressions.

skills.sh installs
281
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill tdd-workflows-tdd-refactor --agent claude-code

Installs into .claude/skills of the current project.

Files

Use this skill when

  • Working on tdd workflows tdd refactor tasks or workflows
  • Needing guidance, best practices, or checklists for tdd workflows tdd refactor

Do not use this skill when

  • The task is unrelated to tdd workflows tdd refactor
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • The referenced implementation playbook and tdd-orchestrator agent are not bundled. Use available repository tooling; do not claim a named agent/model ran unless it actually did.

Refactor code with confidence using comprehensive test safety net:

Delegate only when current instructions authorize it, using the selected available model. A green suite does not prove unchanged behavior if its coverage is incomplete.

Usage

Use Task tool with subagent_type="tdd-orchestrator" to perform safe refactoring.

Prompt: "Refactor this code while keeping all tests green: $ARGUMENTS. Apply TDD refactor phase:

Core Process

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Categories
Testing & QA, Code Review & Quality
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708
1everyinc avatartest-browsereveryinc/compound-engineering-pluginRun browser tests on pages affected by current PR or branch239skills.sh installs
2sickn33 avatartdd-workflows-tdd-redsickn33/antigravity-awesome-skillstdd workflows tdd red238skills.sh installs
3sickn33 avatarweb3-testingsickn33/antigravity-awesome-skillsweb3 testing229skills.sh installs
4cap-go avatarcapacitor-testingcap-go/capacitor-skillscapacitor testing216skills.sh installs
5marcelorodrigo avatarspring-boot-testingmarcelorodrigo/agent-skillsExpert Spring Boot 4 testing specialist that selects the best Spring Boot testing techniques for your situation with Junit 6 and AssertJ.215skills.sh installs
6vudovn avatarwebapp-testingvudovn/antigravity-kitwebapp testing212skills.sh installs