/agent-toolkit-complete:gh-fix-cifrom agent-toolkit-complete
Diagnoses failing GitHub Actions checks on a PR using gh, summarizes failure context, proposes a fix plan, and implements only after user approval. External CI providers are reported by URL only.
Ships in agent-toolkit-complete. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inspect failing GitHub Actions checks on a PR with gh, fetch run logs, extract
a focused failure snippet, propose a fix plan before making any change, and iterate
until green.
gh installed and authenticated (gh auth status exits 0).
doctor reports this under Integrations.python3 for the bundled analyzer.--repo).Verify auth. gh auth status. If unauthenticated, ask the user to run
gh auth login (repo + workflow scopes typically required).
Resolve the PR. Defaults to the current branch's PR, or pass --pr.
Inspect checks as source of truth. Use gh pr checks as the source of
truth for overall PR CI state (it includes all PR-attached checks, while
gh run list only covers GitHub Actions):
gh pr checks --json name,bucket,state,workflow,link
For pending checks, gh pr checks --watch --fail-fast.
Run the analyzer:
python3 ~/.local/share/agent-toolkit/skills/gh-fix-ci/scripts/inspect_pr_checks.py \
--repo . --pr <number-or-url>
--json for machine-friendly output suitable for further processing.--max-lines <n> / --context <n> to widen the snippet window.The script handles gh pr checks field drift, falls back to job-level logs
when run-level logs are not yet available, and exits non-zero when failures
remain (so it composes in CI / scripts).
Scope external providers. Any check whose detailsUrl is not a GitHub
Actions run is reported as external with only the URL — do not attempt to
fetch logs from Buildkite/CircleCI/etc. Use the check link to identify the
failing command or service when logs are unavailable.
Summarize. For each failing check report: name, run URL, conclusion, workflow, branch/SHA, and the failure snippet (or "logs pending" if the run is still in progress). Identify the primary failing job and root error.
Draft a plan. Propose the fix as a short, numbered plan. Do not edit
files yet. If the project has a planning skill (e.g. planning),
delegate the plan structure to it.
Implement after approval — one failure at a time. Once the user approves
the plan, apply the smallest safe fix. Prefer minimal, low-risk changes
before broader refactors. Summarize the diff and delegate the push/PR-update
step to github-cli-workflow.
Recheck and iterate until green. Re-run gh pr checks after each push;
the check set can change. If checks already failed, diagnose those first; if
pending, watch with --watch --fail-fast. Repeat steps 4-8 for the next
actionable failure until all required checks are green. Suggest re-running
relevant tests locally between iterations.
github-cli-workflow.scripts/inspect_pr_checks.py — failure analyzer (stdlib only). Returns text
by default; --json for machine-readable output.skills check reports the gh and python3 requirements.doctor shows gh auth status under Integrations.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-complete118 skills in this plugin
/adrWHAT — Create and maintain Architecture Decision Records (ADRs) per the process. Covers when to write an ADR, required sections, review, and linking to epics/PRs. English for cross-team artifacts unless the user asks otherwise./agreementWHAT - Capture explicit agreements, terms, parties involved, dates, validity, and linked work items using the Agreement Document structure./architecture-diagramWHAT — Create architecture diagrams of real systems as one self-contained HTML page. Default mode is an interactive, Lucidchart-style explainer built from a JSON model: nested containers (cloud, cluster, namespaces), service boxes with brand icons, numbered flows the reader selects one at a time (user access, operator access over a VPN or tailnet, CI/GitOps deploy, secrets, observability, data), hover cards, an inventory and a "not there yet" list, validated by a build script. Poster mode keeps the static dark HTML+SVG template with a PNG/PDF export toolbar. Also exports Mermaid, D2, draw.io, SVG or PNG. Use for system, infrastructure, cloud, deployment, network, access-flow or security topology diagrams delivered as a shareable visual artifact rather than in-repo text.Other plugins' skills for the same job