monitor-ci
Installation
SKILL.md
Monitor CI for the current branch and diagnose any failures.
Steps
- Identify the run — Get the current branch name and find the latest CI run:
gh run list --branch $(git branch --show-current) --limit 1 --json databaseId,status,conclusion,name
- Poll if in progress — If status is
in_progressorqueued:- Poll every 30 seconds with
gh run view <run-id> --json status,conclusion - Show a brief status each cycle (e.g., "CI still running... 2m elapsed")
- Max wait: 10 minutes — after that, report current state and stop
- Poll every 30 seconds with
- On success — If conclusion is
success:- Report: "All CI checks passed" with run duration
- List the jobs that ran
- On failure — If conclusion is
failure:- Fetch failed job logs:
gh run view <run-id> --log-failed - Categorize the failure as one of:
- Lint/format error — ESLint or Prettier issues
- Type error — TypeScript compilation failure
- Unit test failure — Vitest test assertion failed
- Fetch failed job logs:
Related skills