Check ci
Use this workflow skill for PR CI triage: inspect pending and failed checks for the exact PR head, read live or completed job logs and artifacts, classify causality, reproduce likely failures locally, and summarize the safe next step.From its SKILL.md
npx -y skills add kaeawc/auto-mobile --skill check-ciAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
3.1 KB, as published. Nobody here has run it
Check CI
Use this for PR health checks and failure triage.
- This is narrower than
pr-analysis: prefercheck-ciwhen the main question is why checks are failing or blocked. - This is read-only unless the user also asks to fix the problem.
Workflow
- Resolve the PR number and snapshot
headRefOid,baseRefOid, mergeability, and merge state. Use that SHA for every subsequent query. An empty legacy combined status is inconclusive, not green. - Collect
gh pr checks <pr> --json name,state,bucket,link,workflowplus paginatedrepos/<owner>/<repo>/commits/<head-sha>/check-runs. Branch onbucket: onlyfailis a failure —skippingandcancelare not. Flag duplicate check names with different conclusions on the same head (a cancelled older run beside a successful newer one); the stale one is what parks automerge. - Enumerate runs for that head SHA, then each run's jobs. Ignore runs for older SHAs. Queued and in-progress jobs stay pending — they are never implicitly green.
- For a completed failed job:
gh run view <run-id> --job <job-id> --log-failed, orgh api repos/<owner>/<repo>/actions/jobs/<job-id>/logs— the latter works as soon as that job finishes, even while sibling jobs still run, so it does not wait on the slowest leg. For a job still executing,gh api .../actions/jobs/<job-id>returns per-step status naming the running or failed step.gh api --followdoes not exist; use--paginate. - If the log is truncated or lacks the failure body, list the run's artifacts and read the
relevant one. If
gh run downloadis unauthorized, state that exact blocker — do not infer a root cause from partial evidence. - Classify every red result as PR-caused, pre-existing on main, transient/infrastructure, or
unproven, grounded in the job log, the changed paths, and current
origin/main. Re-run a job only when the evidence supports transience. Never change code for an unrelated or unproven failure. - Reproduce a PR-caused failure locally with the narrowest authoritative command.
- After any push, restart at step 1 — every check, thread, and comment was scoped to the previous SHA.
For PR discussion and review-thread triage, use github-pr-feedback; for the underlying gh
and GraphQL mechanics, github-cli.
Repo Validation Mapping
- TypeScript lint or build:
bun run lint,bun run build - Tests:
bun testorbun test <file> - Fast repo checks:
bash scripts/all_fast_validate_checks.sh - Android:
(cd android && ./gradlew <task>) - iOS:
bash scripts/ios/swift-build.shorbash scripts/ios/swift-test.sh
Output Structure
- Current CI state, scoped to the head SHA
- Run/job ledger, including pending jobs and duplicate or stale checks
- Failing checks, the evidence, and the causal classification
- Mergeability or conflict status
- Artifact or authorization limitations
- Recommended next action