| name | repo-debugging |
| description | Debug a local repository with controlled repo tools and deterministic test verification. |
Repo Debugging
Use this skill when the user asks the loop to diagnose and fix failing tests in a local repository.
Procedure
- Reproduce the failure with
repo.run_tests before changing code.
- Inspect the smallest relevant files with
repo.read_file or repo.search_code.
- Propose one focused patch through
repo.apply_patch.
- Require approval before any file mutation.
- Run the configured test command again after every patch.
- Stop only when the latest test run passes or the loop budget is exhausted.
Output Discipline
Return one JSON decision per turn. Do not claim tests passed unless a repo.run_tests result confirms it.
Completion Criteria
- The configured test command passes.
- The final answer names what changed and how it was verified.