Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

ci-forensics

/ci-forensics

Czyta logi CI i diagnozuje awarie: pobiera logi Actions przez GitHub MCP, klasyfikuje przyczyny i odróżnia flaky testy od prawdziwych regresji.

Repozytorium
claude ↗
Licencja
MIT
Ostatnia zmiana repozytorium
22.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Czyta logi CI i diagnozuje awarie: pobiera logi Actions przez GitHub MCP, klasyfikuje przyczyny i odróżnia flaky testy od prawdziwych regresji.

Oryginalny opis (EN)

This skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and distinguishing flaky tests from real regressions.

Jak działa

  1. Fetching logs — the correct sequence
  2. Failure taxonomy
  3. Establishing "base broken"
  4. Flaky vs real
  5. Sources of nondeterminism
  6. Never
  7. See also
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 545 słów
Podgląd SKILL.md
---
name: ci-forensics
description: This skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and distinguishing flaky tests from real regressions.
version: 1.0.0
trigger_phrases: [CI failing, read CI logs, why is the build red, flaky test, classify failure, drive to green]
categories: [ci, debugging, github-actions, testing]
author: github-orchestrator
created: 2026-08-11
updated: 2026-08-11
---

# CI Forensics

## Fetching logs — the correct sequence

```
1. mcp__github__actions_list   method: "list_workflow_runs", branch: <head ref>
2. mcp__github__get_job_logs   run_id: <run>, failed_only: true
3. mcp__github__get_job_logs   job_id: <job>, return_content: true, tail_lines: 200
```

Known pitfalls in these tools:

- `actions_list` and `actions_get` are multiplexed behind a `method`
  discriminator. Calling either without `method` errors.
- `actions_get` also needs `resource_id` (not `run_id`) and returns metadata,
  not logs. It is the wrong tool for log triage.
- `get_check_run` fetches **one** check run by `checkRunId`; it has no list mode.
  For "is CI green on this sha", use `actions_list` → `list_workflow_runs` and
  filter by `head_sha`.
- `list_workflow_runs` can exceed the token limit and be spilled to a file.
  Parse that file with `node -e`, do not read it inline.

## Failure taxonomy

Classify before changing anything. Fixing an infra flake by editing source code
produces a red PR with extra churn.

| Class | Signals | Action |
| --- | --- | --- |
| **Real regression** | Traces to a file/line in the diff; reproduces locally; the test is new or newly touched | Fix + regression test |
| **Flaky** | Same commit sha, different result; timing/ordering/port/network in the trace | Confirm across ≥3 runs, then quarantine |
| **Infra** | Runner OOM, disk full, image pull failure, registry 5xx, action download timeout | Re-run. Escalate after 2. Never edit code |
| **Base broken** | Same job red on the base at a commit predating the branch point | Report once, wait for recovery |
| **Config drift** | Failure in workflow YAML, action inputs, or a missing secret | Fix the workflow |
| **Dependency** | Appeared with no source change; a transitive package published | Pin or roll back |

## Establishing "base broken"

Do not infer it from error text. Check the base branch's own runs for the same
job at a commit predating this branch's point of divergence. Red there too →
base breakage. Otherwise it is yours.

## Flaky vs real

| Evidence | Strength |
| --- | --- |
| Same commit sha, different results | Conclusive |
| Passed on a neighbouring run, no relevant change | Strong |
| Fails only under parallel execution | Strong — ordering or shared state |
| Fails only on one OS or runtime version | Medium — environment dependence |
| "It passed when I re-ran it" | Weak — never sufficient alone |

A test that has **never** passed is not flaky. It is broken.

Failure rate hints at mechanism: ~50% is usually an async race; ~2% is usually
resource pressure or a real-time dependency.

## Sources of nondeterminism

Real time · unseeded randomness · test ordering and shared module state · fixed
ports · shared database rows · reused temp paths · missing awaits · real network
calls · resource pressure.

## Never

- Never disable, skip, or `.only` a test to make CI pass. `.only` silently
  disables the rest of the file.
- Never re-run a job to make a failure disappear without recording why it failed.
- Never claim CI is fixed without a green run to point at.

## See also

- `actions-authoring` — fixing the workflow itself
- `../commands/ci.md` — the drive-to-green loop

Wersje

RepozytoriumWynikLicencja
Ta strona · TheLobbi/claude100MIT
rpraharaj/forward-deployed-engineer100MIT

Migawka bazy z 13.11.2026 · wersja paczki ce5b624cbbde (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100verify-pr-logs
    Sprawdza logi CI GitHub Actions w pull requeście, diagnozuje porażki i prowadzi agenta przez wdrożenie poprawek, ograniczając się do analizy CI danego PR.
  • 95ci-test-failures
    Pomaga diagnozować błędy testów w GitHub Actions, wyciągać nieudane testy z przebiegów, pobierać logi i tworzyć lub aktualizować zgłoszenia o niedziałających testach.
  • 100investigate-ci
    Bada niepowodzenia workflow GitHub Actions: pobiera ostatnie uruchomienia, wyciąga logi błędów, diagnozuje przyczyny źródłowe i proponuje poprawki.
  • 100github-actions-debugger
    Debuguje i monitoruje przebiegi workflowów GitHub Actions: sprawdza status, pokazuje logi nieudanych zadań i wskazuje przyczynę awarii CI.
  • 100diagnose-ci-failures
    Diagnozuje błędy CI w pull requeście przez GitHub CLI, wyciąga logi błędów i generuje plan naprawy.
  • 100github-workflows
    Obsługuje workflow GitHub Actions: odczytuje aktualną składnię, monitoruje uruchomienia i diagnozuje awarie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.