debug-test-failure
Installation
SKILL.md
Debug Test Failure
Overview
Use this skill to answer one question: did the current branch's changes introduce the observed test failure, or did the failure already exist at the baseline before the user's or agent's changes?
Workflow
-
Capture the current context.
- Read repository instructions and respect prohibited commands.
- Record the current repo path, branch,
git status --short, and test command. - If the user specified test files, test names, or a test command, use that targeted test command.
- If the user did not specify tests, run the repository's full test suite or the closest documented "all tests" command.
-
Identify the comparison baseline.
- Determine "me" from the user's explicit identity if provided; otherwise use
git config user.emailandgit config user.name. - Determine the branch base with the upstream or default branch, for example:
- Determine "me" from the user's explicit identity if provided; otherwise use