debug-ci
Debug failed CI tests by fetching workflow logs from GitHub Actions and analyzing failures. Use when the user mentions CI failures, test failures, or wants to understand why their PR's CI is failing.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Debug failed CI tests by fetching workflow logs from GitHub Actions and analyzing failures. Use when the user mentions CI failures, test failures, or wants to understand why their PR's CI is failing.
How to use
Zainstaluj GitHub CLI (
gh) i uwierzytelnij się poleceniemgh auth login. Skill wymaga dostępu do workflow'ów GitHub Actions.Uruchom skill, gdy napotkasz błąd CI w pull requestcie. Skill automatycznie pobierze numer PR z bieżącego brancha lub użyje nazwy brancha, jeśli PR nie istnieje.
Skill pobierze ostatni workflow "Rust" dla Twojego brancha, wylistuje wszystkie zadania (jobs) z ich statusami i ID.
Pobierze logi wszystkich zadań do lokalnego katalogu
ci-logs/pr-<numer>/lubci-logs/branch-<nazwa>/, usuwając kody kolorów ANSI.Przeanalizuje pobrane logi w poszukiwaniu wzorców błędów:
FAILED,error[E,panicked at,assertion failed. Skill wyodrębni nazwy testów i komunikaty błędów.Porówna logi z różnicą PR (
gh pr diff), aby skorelować błędy ze zmianami w kodzie. Skill zaklasyfikuje błędy jako rzeczywiste (błąd w zmienianym kodzie), flaky (znane niestabilne testy) lub infrastrukturalne (timeout, problemy sieciowe).Otrzymasz podsumowanie z numerem PR, tytułem, listą błędów i rekomendacjami dotyczącymi następnych kroków.