# CI Log Retrieval

> Retrieve and investigate failing Lean CI job logs. Use when a CI job fails and you need to fetch its logs, or when monitoring a CI run for failures.

- Skill: `leanprover/ci-log-retrieval` (Agent Skill)
- Install (CLI): `npx get-skill add leanprover/ci-log-retrieval`
- Raw SKILL.md: https://api.skillmd.com/api/skills/leanprover/ci-log-retrieval/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: leanprover (https://skillmd.com/u/leanprover)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/leanprover/ci-log-retrieval

---


# CI Log Retrieval

When CI jobs fail, investigate immediately — don't wait for other jobs to complete. Individual job
logs are often available even while other jobs are still running.

Try:

```bash
gh run view <run-id> --log
gh run view <run-id> --log-failed
gh run view <run-id> --job=<job-id>   # target the specific failed job
```

Sleeping is fine when asked to monitor CI and no failures exist yet, but once any job fails,
investigate that failure immediately.

