# CI Status

> Check CI status for current branch or PR, show failed job logs

- Skill: `denisovav/ci-status` (Agent Skill)
- Install (CLI): `npx skillmds@latest add denisovav/ci-status`
- Raw SKILL.md: https://api.skillmd.com/api/skills/denisovav/ci-status/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: denisovav (https://skillmd.com/u/denisovav)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/denisovav/ci-status

---


# CI Status Check

## Steps

1. Determine target:
   - If argument is a PR number, use that
   - Otherwise, find PR for current branch: `gh pr list --head $(git branch --show-current) --json number -q '.[0].number'`
   - If no PR found, check latest workflow runs: `gh run list --branch $(git branch --show-current) --limit 3`

2. Show check status:
   ```bash
   gh pr checks <PR_NUMBER>
   ```

3. If any checks failed, show failed logs:
   ```bash
   gh run view <RUN_ID> --log-failed 2>&1 | tail -80
   ```

4. Summarize:
   - Which jobs passed/failed/pending
   - For failures: root cause from logs (error message, not full log)
   - Suggest fix if obvious

