integralist/agent-skills

fix-failing-tests

Diagnose and fix test failures from saved test output.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/integralist/agent-skills --skill fix-failing-tests

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Fix Failing Tests

Find the failures in a test-output file, have a read-only subagent diagnose their root causes, then apply the fixes in the main thread, where the user can redirect or stop any fix before work piles up.

  1. Find the output. Use the path the user gave, else /tmp/output. Read

it; if it's missing or empty, ask the user where the output is. Done when you have a non-empty file.

  1. Search for failures. Search for markers rather than reading, because

failures slip past in long output mixed with passing lines and infra logs:

bash
   rg -n 'FAIL|--- FAIL|^panic:|DATA RACE|^not ok|Error Trace|build failed' <path>

If nothing matches, report "no failures found" with the command you ran, and stop. Done when you have the list of failures, or have reported none.

  1. Diagnose in a read-only subagent. Follow the completion and retry

rules in the shared subagent policy. Tell the subagent to:

  • read the output file and the failures you found, then the relevant

source, before reasoning about causes;

  • find the root cause from evidence, saying so when evidence is missing

instead of guessing;

  • stay read-only: no edits, no make test, no workspace changes;
  • prefer fixing the implementation over weakening an assertion;
  • note any docs/**/*.md or **/README.md a fix would touch if it

changes behaviour, public APIs, or usage;

  • note that e2e or integration failures need a running stack for

make test-integration;

  • follow the project's AGENTS.md;
  • return, per failure, the test, the root cause, and the proposed fix.

Done when every failure has a root cause and a proposed fix.

  1. Fix in the main thread. Show the root causes and fixes, then apply

them, flagging any you're unsure of so the user can redirect, skip, or stop. Never weaken an assertion to make a test pass. Update the docs a fix affects. Run make test after applying; if a fix doesn't hold, re-diagnose rather than guess. After 3 runs that still fail, stop editing, name the assumption you haven't verified, and ask one diagnostic question. Leave committing to the user. Done when make test passes or you've stopped after 3 runs.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills