gh-ci-watch

gh-ci-watch is a skill for Claude Code, Codex from Unique-Divine/jiyuu. It costs 74 tokens per session (1,439 once invoked), scanned A, original, MIT.

A guide for monitoring GitHub pull-request checks with gh, GitHub's command-line tool. It waits for checks to pass or fail, retrieves failed workflow logs, and summarizes useful errors.

In plain words
What is it for?
Use it to watch pull-request CI, investigate failed GitHub Actions, save logs locally, summarize failures, and handle small, high-confidence fixes.
Why use it?
It removes the need to repeatedly inspect a pull request and search through noisy CI logs manually. When a failure has an obvious safe local fix, it can also apply that fix.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to watch pull-request CI, investigate failed GitHub Actions, save logs locally, summarize failures, and handle small, high-confidence fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unique-divine/jiyuu/gh-ci-watch
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.

Any agent
npx skills add Unique-Divine/jiyuu --skill gh-ci-watch
Clone the repo
git clone --depth 1 https://github.com/Unique-Divine/jiyuu

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-ci-watch

README.md
[![agentmods](https://agentmods.dev/badge/skills/unique-divine/jiyuu/gh-ci-watch/github.svg)](https://agentmods.dev/skills/unique-divine/jiyuu/gh-ci-watch)
Your own site
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/gh-ci-watch"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/gh-ci-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-ci-watch

Your own site · 80×15
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/gh-ci-watch"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/gh-ci-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00074 $0.01439
Opus 5 $0.00037 $0.00720
Sonnet 5 $0.00015 $0.00288
Haiku 4.5 $0.00007 $0.00144

Measured 11d ago against content hash 88b1afd65b91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gh-ci-watch 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 11d 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.

ai-skills/gh-ci-watch/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub CI Watch

Watch GitHub pull request CI until checks pass, fail with actionable logs, or reach a timeout. Keep noisy command output out of the final answer. Save detailed logs locally, then report the important failures clearly. If the logs show a trivial, high-confidence local fix, make it and stage only the files touched by that fix.

Workflow

  1. Identify the PR:

    • If the user gives a PR number or URL, use it.
    • Otherwise use the repository at the current working directory.
    • Infer the PR associated with the current branch using gh pr view.
    • If there is no PR for the current branch, stop and report that blocker.
    • Do not switch branches or repositories unless the user explicitly asks.
  2. Create a local temporary log directory:

    • Use a deterministic base under ${TMPDIR:-/tmp}/<owner>__<repo>/.
    • Prefer this shape: ${TMPDIR:-/tmp}/<owner>__<repo>/pr-<number>-checks/<utc-timestamp>/
    • Sanitize <owner>__<repo> and branch fallback names to lowercase letters, numbers, dots, underscores, and hyphens.
    • Use gh repo view --json nameWithOwner and gh pr view --json number when available.
    • If no PR number is available yet, use branch-<branch-slug> instead of pr-<number>-checks.
    • Create subfiles such as checks.txt, summary.md, and run-<id>-<job>.log as useful.
    • Tell the user the final log directory path.
  3. Check status with short, visible poll turns:

    • Run gh pr checks and save output under the log directory.
    • Default poll interval: 20 seconds.
    • Default timeout: 30 minutes unless the user specifies otherwise.
    • Do not put the entire watch in one long shell loop with a huge block_until_ms / sleep budget. Cursor only surfaces that command's output when the shell finishes or is interrupted, so the chat looks idle while CI is still running.
    • Preferred pattern (multi-turn foreground):
      1. One Shell call: gh pr checks (and optional JSON rollup).
      2. If still pending: briefly tell the user which checks are pending vs done, then Shell sleep 20 (or AwaitShell with ~20s), then poll again in the next turn.
      3. Repeat until green, failed, or timeout. Track elapsed time across turns.
    • Optional background pattern (only if the user asks for background monitoring): start a poller with block_until_ms: 0 that appends to checks.txt and prints clear terminal lines such as CI_STATUS green, CI_STATUS failed, or CI_STATUS timeout. Use notify_on_output for those markers so the agent is woken when the watch ends. Still give an immediate first status in chat after starting it.
    • Between polls, keep chat updates short: pending count / names, any newly finished checks, elapsed time. Do not dump full check tables every turn unless something changed meaningfully.

Read the full file on GitHub · 128 lines

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. 11d ago First seen · 128 lines · 74 tokens per session scan A 88b1afd65b91

Subscribe to this mod's changes

gh-ci-watch is a skill published in the GitHub repository Unique-Divine/jiyuu (6 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 1,439 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

commit-generate

Generate bilingual (English + Traditional Chinese) commit message from git changes.

agenvoy/Agenvoy · 18 tokens

version-generate

A release-note generator that reads changes from the latest Git tag to the current code and recommends a new semantic version. It writes versioned notes and updates a main changelog index.

agenvoy/Agenvoy · 48 tokens

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

check-linters-before-commit

Before any commit, run linters, vet, tests, and build verification; do not commit until checks pass.

dimetron/pi-go · 30 tokens

gh-infra

Overview of gh-infra and command workflow (import, validate, plan, apply). Use when managing GitHub repository settings, labels, actions settings, rulesets, secrets, variables, or files declaratively via YAML manifests.

babarot/gh-infra · 49 tokens

gitlab

Specialized assistant skill for managing repositories and CI/CD in GitLab. Activate when the user asks about GitLab projects or repositories, wants to see merge requests or pipelines, needs to search code or files, asks about CI/CD status or job logs, or wants to browse repository contents. Mentions "GitLab", "glab"…

neverinfamous/memory-journal-mcp · 106 tokens