Agent skill · software engineering · aiskillstore

tdd-workflows-tdd-refactor

Use when working with tdd workflows tdd refactor

Why this skill is useful

Provides a structured TDD refactoring workflow with specific techniques and patterns that the AI wouldn't reliably generate on its own.

What it needs

About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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. If detailed examples are required, open resources/implementation-playbook.md. Refactor code with confidence using comprehensive test safety net: [Extended thinking: This tool uses the tdd-orchestrator agent (opus model) for sophisticated refactoring while maintaining all tests green. It applies design patterns, improves code quality, and optimizes performance with the safety of comprehensive test coverage.] Usage Use Task tool with subagenttype="tdd-orchestrator" to perform safe refactoring. Prompt: "Refactor this code while keeping all tests green: $ARGUMENTS. Apply TDD refactor phase: Core Process 1. Pre-Assessment Run tests to establish green baseline Analyze code smells and test coverage Document current performance metrics Create incremental refactoring plan 2. Code Smell Detection Duplicated code → Extract methods/classes Long methods → Decompose into focused functions Large classes → Split responsibilities Long parameter lists → Parameter objects Feature Envy → Move methods to appropriate classes Primitive Obsession → Value objects Switch statements → Polymorphism Dead code → Remove 3. Design Patterns Apply Creational (Factory, Builder, Singleton) Apply Structural (Adapter, Facade, Decorator) Apply Behavioral (Strategy, Observer, Command) Apply Domain (Repository, Service, Value Objects) Use patterns only where they add clear value 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/tdd-workflows-tdd-refactor

View the source on GitHub

Browse the @skills marketplace