/nanlabs-forge:gh-fix-cifrom nanlabs-forge
Diagnose failing GitHub Actions checks on a PR via gh, summarize the failure context, propose a plan, and only implement after explicit user approval. External CI providers (Buildkite, CircleCI, etc.) are reported by URL only.
Ships in nanlabs-forge. 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.
Read when SKILL.md points to them; scripts run unread.
Inspect failing GitHub Actions checks on a PR with gh, fetch run logs, extract
a focused failure snippet, and propose a fix plan before making any change.
gh installed and authenticated (gh auth status exits 0).
nan-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.
Run the analyzer:
python3 <skill-root>/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.
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).
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. nanlabs-planning),
delegate the plan structure to it.
Implement after approval. Once the user approves the plan, apply changes,
summarize the diff, and ask whether to push (delegate the push/PR-update step
to github-cli-workflow).
Recheck. Suggest re-running the relevant tests locally and gh pr checks
after the new commit lands.
github-cli-workflow.scripts/inspect_pr_checks.py — failure analyzer (stdlib only). Returns text
by default; --json for machine-readable output.nan-skills check reports the gh and python3 requirements.nan-doctor shows gh auth status under Integrations.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nanlabs/agent-toolkit --plugin nanlabs-forge4 skills in this plugin
/gh-address-commentsTriage and address open GitHub PR review and conversation comments using the gh CLI. Use when the user wants to "address PR comments", "resolve review threads", or "respond to reviewers" on the current branch's pull request./github-cli-workflowHOW — GitHub CLI (gh): push branch, create draft PR with title/body from template or file; fallback untracked PR_DESCRIPTION_*.md. Use when origin is GitHub./gitlab-cli-workflowHOW — GitLab CLI (glab): push branch, create draft MR with title/body; fallback untracked markdown. Use when origin is GitLab.