← ClaudeAtlas

tdd-workflows-tdd-refactorlisted

Use when working with tdd workflows tdd refactor
aiskillstore/marketplace · ★ 329 · AI & Automation · score 77
Install: claude install-skill aiskillstore/marketplace
## 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 subagent_type="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 Env