TDD Fix Skill
When to Use
Activate when the user wants to:
- •Fix a bug using test-driven development
- •Create a failing test that reproduces an issue, then fix it
- •Apply the red-green-refactor cycle to a code problem
User Preferences
Before implementation, resolve the user's Profile:
- •Check for
.github/copilot-preferences.ymlor.vscode/copilot-preferences.ymlin the workspace. - •Apply the resolved Profile's conventions for test frameworks, logging, and coding style.
Steps
- •Prefer
#selection/#file; expand to@workspaceonly if needed. - •Create a failing test (or framework-agnostic test outline) that isolates the bug.
- •Provide the minimal code patch to pass that test, then an optional small cleanup/refactor patch.
- •Add a short root-cause note to the corresponding issue (if provided) under
## Activity. - •Print a change summary listing all files created or modified.
Guardrails
- •Do not call CLIs or the network.
- •Keep diffs minimal and surgical.
- •Follow the resolved Profile's test framework conventions.