Agent skill
github
Use when working with GitHub PRs via the gh CLI: fixing failing CI checks, addressing review comments, inspecting PR status, or debugging GitHub Actions workflows. Trigger on: fix CI, failing checks, PR comments, address review, GitHub Actions.
Install this agent skill to your Project
npx add-skill https://github.com/jjeremycai/claudekit/tree/main/skills/github
SKILL.md
GitHub PR Workflows
Tools for managing GitHub PRs using the gh CLI. Covers CI debugging and review comment handling.
Prerequisites
gh auth status # Verify authenticated (repo + workflow scopes)
# If not: gh auth login
Part 1: Fix Failing CI Checks
Debug and fix failing GitHub Actions checks on a PR.
Quick Start
python "<path-to-skill>/scripts-ci/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"
# Add --json for machine-friendly output
Workflow
- Resolve the PR —
gh pr view --json number,url(current branch) or use provided PR number - Inspect failing checks (GitHub Actions only):
- Preferred: run the bundled script (handles field drift and job-log fallbacks)
- Manual fallback:
bash
gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow gh run view <run_id> --log
- Scope external checks — If
detailsUrlis not GitHub Actions, report the URL only. Don't attempt Buildkite or other providers. - Summarize failures — Check name, run URL, concise log snippet. Call out missing logs.
- Create a fix plan — Draft concise plan, request approval before implementing.
- Implement after approval — Apply fixes, summarize diffs/tests.
- Recheck —
gh pr checksto confirm.
Bundled Scripts
scripts-ci/inspect_pr_checks.py— Fetch failing checks, pull GitHub Actions logs, extract failure snippets. Exits non-zero when failures remain.bashpython "<path-to-skill>/scripts-ci/inspect_pr_checks.py" --repo "." --pr "123" --json python "<path-to-skill>/scripts-ci/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40
Part 2: Address PR Review Comments
Find the open PR for the current branch and address its review comments.
Workflow
- Fetch comments — Run
scripts-comments/fetch_comments.pyto print all comments and review threads - Present to user — Number all threads with a short summary of what each fix requires
- User selects which comments to address
- Apply fixes for selected comments
Bundled Scripts
scripts-comments/fetch_comments.py— Print all comments and review threads on the PR
Notes
- If
ghhits auth/rate issues mid-run, prompt user to re-authenticate withgh auth login, then retry.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
himalaya
Use when the user asks to read, send, search, or manage email from the terminal. Himalaya is a CLI email client supporting IMAP, Maildir, Notmuch, SMTP, and Sendmail backends. Trigger on: email, inbox, send email, check mail, reply to email, forward email, email folders.
gh-fix-ci
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
ashby
This skill should be used when the user asks about "Ashby API", "how to use Ashby tools", "Ashby authentication", "recruiting workflows", "candidate pipeline", "interview scheduling", "hiring process", "move candidate through pipeline", "schedule an interview", "manage applications", "track hiring progress", "source candidates", or "advance to next stage". Provides complete API reference and recruiting workflow guidance for the Ashby ATS integration.
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
Didn't find tool you were looking for?