tdd-refactor-guard
CommunitySafeguard refactoring with test coverage checks.
Authorrshankras
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents regressions by ensuring adequate test coverage exists before AI-assisted code refactoring, reducing the risk of breaking existing functionality.
Core Features & Use Cases
- Pre-Refactor Safety Check: Verifies that unit tests cover the code slated for modification.
- Automated Test Generation: If coverage is insufficient, it can trigger the generation of characterization tests to capture current behavior.
- Use Case: Before asking an AI to "clean up" a critical class, you run this guard. If tests are missing, it guides you to create them first, ensuring the refactoring doesn't introduce bugs.
Quick Start
Run the tdd-refactor-guard skill before asking the AI to refactor any code.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tdd-refactor-guard Download link: https://github.com/rshankras/claude-code-apple-skills/archive/main.zip#tdd-refactor-guard Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.