handle-pr-ci

handle-pr-ci is a skill for Claude Code from tomzx/agents. It costs 28 tokens per session (862 once invoked), scanned A, original, MIT.

A workflow for diagnosing failed automated checks on a GitHub pull request, fixing the underlying problem, and confirming the checks pass. CI, or continuous integration, automatically builds and tests code when changes are submitted.

In plain words
What is it for?
Use it to inspect failed CI logs, implement a fix, push the changes after approval, and monitor the checks until they pass.
Why use it?
It turns failing checks into a structured investigation instead of requiring you to find logs, trace the cause, and monitor reruns manually.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Good fit Use it to inspect failed CI logs, implement a fix, push the changes after approval, and monitor the checks until they pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/handle-pr-ci
View source ↗ tomzx/agents
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 tomzx/agents --skill handle-pr-ci
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

Made for: Claude Code.

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 handle-pr-ci

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/handle-pr-ci.svg)](https://agentmods.dev/skills/tomzx/agents/handle-pr-ci)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/handle-pr-ci"><img src="https://agentmods.dev/badge/skills/tomzx/agents/handle-pr-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 862 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.00028 $0.00862
Opus 5 $0.00014 $0.00431
Sonnet 5 $0.00006 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 4d ago against content hash 65d256a4ed44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

handle-pr-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 4d 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.

skills/handle-pr-ci/SKILL.md · 126 lines

How it starts

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

Handle PR CI

Fetches failing CI check logs for a pull request, diagnoses the root cause of each failure, implements fixes, pushes, and confirms all checks pass.

Prerequisites

  • Apply the shared SDLC conventions in skills/sdlc/references/shared.md.
  • If no argument is provided, target the pull request from $PR_NUMBER (and $REPO).
  • gh CLI authenticated with read/write access to the target repository
  • PR number ($1) identifying an open pull request with at least one failing CI check

Workflow

Fetch CI check status ($1)
        |
        v
  Any failing checks?
     /         \
   Yes           No
    |             |
    v             v
Fetch logs     Report all
per failure    checks green, stop
    |
    v
Diagnose root cause
    |
    v
Implement fix
    |
    v
Present fix to user for approval
     /         \
 Approved     Rejected
    |             |
    v             v
Commit + push   Stop
    |
    v
Monitor CI re-run
    |
    v
All checks green?
   /      \
 Yes       No
  |         |
  v         v
Done     Loop back to
         fetch logs

Steps

  1. Fetch the current CI check status:

    gh pr checks $1 --watch=false
    
  2. If all checks are passing, report success and stop.

  3. For each failing check, fetch its log output:

    gh run view <run-id> --log-failed
    
  4. Diagnose the root cause of each failure. Distinguish between:

    • Flaky/transient failures (network timeouts, rate limits): note as transient, suggest re-running rather than a code fix.
    • Code failures (test failures, lint errors, type errors, build errors): identify the specific file and line causing the failure.
  5. For code failures, implement the fix in the codebase.

  6. Present the diagnosis and proposed fix to the user for approval before committing.

  7. On approval, commit and push:

    git add <changed files>
    git commit -m "<fix description>"
    git push
    
  8. Monitor the CI re-run until checks complete:

    gh pr checks $1 --watch
    

Read the full file on GitHub · 126 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. 4d ago First seen · 126 lines · 28 tokens per session scan A 65d256a4ed44

Subscribe to this mod's changes

handle-pr-ci is a skill published in the GitHub repository tomzx/agents (6 stars, last pushed 4d ago), licensed MIT. It adds 28 tokens to every session and 862 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories