gh-ci

A set of instructions for using GitHub's command-line tool to check whether automated tests and other checks have passed for a pull request or workflow run.

In plain words
What is it for?
Use it to inspect pull-request checks, wait for them to finish, watch workflow runs, and view logs for failed runs.
Why use it?
It provides a consistent way to see whether CI, the automated build and test process, is still running, has passed, or has failed.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jepegit/issue-flow/gh-ci
Any agent
npx skills add jepegit/issue-flow --skill gh-ci
Clone the repo
git clone --depth 1 https://github.com/jepegit/issue-flow

Made for: Claude Code, Codex, Cursor.

Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00084 $0.00600
Opus 5 $0.00042 $0.00300
Sonnet 5 $0.00017 $0.00120
Haiku 4.5 $0.00008 $0.00060

Measured 2d ago against content hash f866df53b7ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gh-ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/gh-ci/SKILL.md · 61 lines

What it actually says

gh-ci — wait on GitHub CI with gh

Teach agents the concrete gh commands for listing and watching CI. Always pass --repo <owner/repo> (never rely on gh's cwd default).

Primary (PR-attached checks)

Prefer these when a pull request number is known (usual /iflow-close path):

# One-shot snapshot — exit 0 means green (or all pass / skipping)
gh pr checks <number> --repo <owner/repo>

# Wait until checks finish (or fail-fast on red)
gh pr checks <number> --repo <owner/repo> --watch --fail-fast

Budget: honour 15 minutes wall-clock for any --watch (from [issueflow].checks_watch_minutes / ISSUEFLOW_CHECKS_WATCH_MINUTES, default 15). gh has no max-duration flag — the agent stops the watch when the cap hits.

Fallback (workflow runs)

When gh pr checks returns empty, cannot resolve checks, or there is no PR yet but a workflow run id is known:

gh run list --repo <owner/repo> --limit 10
gh run watch <run-id> --repo <owner/repo>

Optional: gh run view <run-id> --repo <owner/repo> --log-failed after a red run to surface failing job logs.

Semantics

Result Meaning Agent action
Exit 0 / all pass or skipping CI green Proceed (merge, report green, etc.)
Fail / --fail-fast CI red Stop hands-off paths; report failing check/run URLs
Still pending past budget Unknown Do not hang; report pending and follow the calling skill (e.g. close yolo may fall back to --auto)

Where this fits

  • /iflow-close owns the merge / yolo watch-then-merge sequence; this skill is the shared cheatsheet for the CI commands themselves.
  • Design record: .issueflows/04-designs-and-guides/gh-list-and-watch.md (issues #172, #220).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 61 lines · 84 tokens per session scan A f866df53b7ec

Subscribe to this mod's changes

gh-ci is a skill published in the GitHub repository jepegit/issue-flow (4 stars, last pushed 20d ago), licensed MIT. It adds 84 tokens to every session and 600 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

multi-agent-release-manager

Cleans up the workspace, formats code, runs presubmit checks, and uploads CLs to Gerrit.

chromium/chromium · 27 tokens

dsh-web-pre-push-checks

Use before pushing, opening or updating a pull request, or claiming dsh-web checks pass. Selects the required repository gates and diff-specific generation, build, and GUI evidence.

zhu1090093659/dsh-web · 45 tokens

babysit

Same-session monitoring loop for PRs, CI runs, tickets, and deployments using the monitorstart / monitorupdate / autonudgestop MCP tools. The loop re-injects your check instructions into THIS session on an idle interval — same context, same tools — and works from dashboard chat, Slack threads, and Discord DMs. Use…

kirodotdev/KiroCrew · 137 tokens

azsdk-common-pipeline-analysis

Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdkanalyzepipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in…

Azure/azure-sdk-for-net · 192 tokens

harness-setup

HAR: Project init, tool setup, agent config, memory setup, skill mirror sync. Trigger: setup, init, new project, CI/Codex setup, harness-mem, mirror. Do NOT load for: implementation, review, release, planning.

Chachamaru127/claude-code-harness · 57 tokens

managing-github-actions-secrets

Creates and updates GitHub Actions secrets for PostHog workflows. Use when adding a new CI secret, rotating an existing secret, wiring a workflow to an API token, package registry credential, deploy key, or any value referenced via ${{ secrets. }} in .github/workflows/.

PostHog/posthog-foss · 67 tokens