PR Babysitter
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
Use GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status.
$ npx skills add caarlos0/dotfiles --skill gh-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install caarlos0/dotfiles gh-cli --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gh-cli .claude/skills/gh-cli && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .claude/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cliType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add caarlos0/dotfiles --skill gh-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install caarlos0/dotfiles gh-cli --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/gh-cli .agents/skills/gh-cli && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .agents/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add caarlos0/dotfiles --skill gh-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install caarlos0/dotfiles gh-cli --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/gh-cli .cursor/skills/gh-cli && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .cursor/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/caarlos0/dotfiles.git --path skills/gh-cli--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add caarlos0/dotfiles --skill gh-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install caarlos0/dotfiles gh-cli --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/gh-cli .gemini/skills/gh-cli && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .gemini/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install caarlos0/dotfiles gh-cliInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add caarlos0/dotfiles --skill gh-cli -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/gh-cli .github/skills/gh-cli && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .github/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add caarlos0/dotfiles --skill gh-cli -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install caarlos0/dotfiles gh-cli --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/gh-cli .opencode/skills/gh-cli && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gh-cli" agent skill from https://github.com/caarlos0/dotfiles/tree/main/skills/gh-cli into .opencode/skills/gh-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gh-cli", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gh-cliUse GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status.
Gh CLI is an agent skill from caarlos0/dotfiles. Use GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status. Use when running gh, waiting for CI, commits, reviews or merges, diagnosing a failed check, or monitoring a pull request.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Pull requests. It works with GitHub. The licence is MIT.
Read from SKILL.md and the folder at commit 278c761. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gh CLI loads about 2.5k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 1,491 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from caarlos0/dotfiles at commit 278c761, republished under its MIT licence (© caarlos0). 1,491 words, ~2,530 tokens.
.claude/skills/gh-cli/SKILL.md (or your agent's skills folder).Use native gh commands before custom API queries or polling scripts. Spend
time on the first actionable failure, not on repeated status reads.
-R OWNER/REPO to PR/run commands outside the target repository.
For gh api, put the repository in the endpoint; it has no -R flag.gh pr checks, gh run view, and gh run list over rebuilding them
with REST or GraphQL. Check subcommand help instead of guessing flags or
JSON fields.--json fields and use --jq for a compact result.
Filter lists by commit, workflow, event, or branch before increasing
--limit. Do not fetch a list again to recover an ID it already returned.gh api for data the native command does not expose. Use --method GET
with query fields; adding -f or -F otherwise changes the method to POST.
Paginate when the task needs the full set, not just a recent sample.For PR merge readiness, start this immediately:
gh pr checks NUMBER -R OWNER/REPO --required --watch --fail-fast--required is the default scope for merge blockers. Omit it only when the
user asks for all checks, or when the task explicitly covers non-required
checks. Do not wait for advisory checks before handling a required failure.
Still report a known regression caused by this change, even if it is optional.
sleep N && gh ... to wait for CI, including before a native
watcher. Do not replace --watch with a shell/Python loop or recurring
status tool calls.read_bash, start duplicate watchers, or delegate
an agent just to wait.head/tail, redirect errors away, or append || true. A failed watcher
is not necessarily a failed check: inspect its error before acting.--interval only for a concrete
latency or rate-limit need, not as another arbitrary delay.For one workflow run, when waiting for the whole run is the actual task:
gh run watch RUN_ID -R OWNER/REPO --exit-status --compactgh run watch has no --fail-fast; --exit-status reports failure when the
run finishes. It is not a substitute for PR required-check fail-fast watching.
For a structured snapshot, separate from watch mode:
gh pr checks NUMBER -R OWNER/REPO --required \
--json name,bucket,state,link,workflow--watch cannot be combined with --json. In plain output, exit code 8
means pending checks. With --json, a successful fetch can return zero
even when checks failed; inspect bucket, not just the process exit code.--fail-fast does not treat cancellation as failure. Inspect
the final states before claiming success. Keep skipped/neutral results
distinct from passed tests.--required after an error.gh wait below for those events. For other states with no watcher,
make one focused read per scheduled pass if a schedule is already
authorized. Stop it when the goal is met or the PR is closed. Do not invent
an endless polling loop../setup links gh wait from gh/extensions/ and removes this checkout's
links to the retired push/review extensions. Use gh wait instead of writing
a polling loop or repeatedly reading PR status. Run one watcher per target
in an attached async shell, or wait on the same synchronous process. Reuse its
shell ID and completion notification, as with CI watchers.
It checks immediately, then every 30 seconds, and prints nothing while waiting.
gh wait NUMBER
gh wait https://github.com/OWNER/REPO/pull/NUMBER
gh waitWith a PR number, URL, or branch, gh wait takes a snapshot and exits on the
next observed change: PR metadata updates, title/body edits, head/base changes,
draft status, or review changes. Reviews are read across all pages, so changes
to older reviews also count. It compares snapshots, not an event stream:
changes reverted between polls can be missed. It does not watch CI checks or
guarantee detection of every merge-queue transition.
With no argument, it uses the current branch's PR. On the repository's default
branch (main, or its configured name), it instead waits for the remote branch
head to differ from local HEAD at startup. An already different remote head
counts, even if local HEAD is ahead or has diverged. It does not fetch, pull,
or change the checkout. Update the checkout before starting another wait if you
want to use the new head as the baseline. Detached HEAD requires an explicit PR.
gh wait --merge NUMBER
gh wait --merge https://github.com/OWNER/REPO/pull/NUMBER--merge ignores other changes and succeeds only when the PR is merged,
including an already merged PR. It fails if the PR is closed without merging.
Without a PR argument, it always selects the current branch's PR, even on the
default branch. Use this after enabling auto-merge when the task requires
confirmation of the completed merge; auto-merge enabled is not merged.
gh wait prints one tab-separated EVENT<TAB>URL line on stdout. Events are
changed, merged, closed, or commits; the URL identifies the PR or the
new default-branch commit. With no --merge, already closed or merged PRs
return their terminal event immediately. Read the changed PR before acting;
changed does not mean approval or merge readiness.
It exits 0 on an event, 1 on operational failure, and 2 for invalid usage.
API, auth, permission, and network errors stop it with diagnostics on stderr,
including errors after waiting has started. Use a full URL or
GH_REPO=OWNER/REPO for another repository; there is no -R option.
gh wait --help shows usage without contacting GitHub. Options can appear
before or after the PR; -- ends option parsing.
Use gh wait NUMBER for both pushes and reviews. Check the current PR once
before waiting and handle work already present. PR mode does not compare with
a last-reviewed SHA or match an existing review; it only detects changes after
its initial snapshot. Changes made before that snapshot do not wake it.
On changed, read the PR head and relevant discussion. Review a new head
relative to the last reviewed SHA, or act on new feedback. An unrelated edit
can wake the command; if there is nothing relevant to do, start a new wait.
Do not assume every event is a push, a submitted review, or an approval.
Stop on merged or closed; those are successful events, not API failures.
This command does not replace required-check watching.
Use the failed check's link to identify its run and job. If needed, fetch the run's jobs once:
gh run view RUN_ID -R OWNER/REPO --json headSha,event,attempt,status,jobsFor a completed run, read only the failed steps, narrowed to the known job:
gh run view -R OWNER/REPO --job JOB_ID --log-failedIf the run is still active, gh run view --log-failed can refuse even when
the failing job has finished. Fetch that completed job's log directly:
gh api repos/OWNER/REPO/actions/jobs/JOB_ID/logsDo not wait for the whole matrix merely to read an already failed job. If the log is not available, inspect job details or check annotations and state the limit. Keep large logs in session files and read the relevant section. Do not label an unavailable log a flake.
Name the exact failing step and error before changing code or rerunning. Compare the same workflow, event, and relevant code on the base branch or other heads. "Main is green" means little if that check never runs on main. A local pass or a green retry alone does not prove a flake. Retry only after identifying a transient cause and when the task permits it; do not rerun the whole suite to avoid diagnosing one failure.
Record the PR head being checked. After a push, rerun, base update, or queue entry, do not reuse results from the old head or attempt. Use the run IDs and event for the new state; merge-queue runs can use a different SHA from the PR.
Passing checks, approval, auto-merge enabled, queue entry, and merged are different states. When the task is to merge, finish with a focused read:
gh pr view NUMBER -R OWNER/REPO \
--json headRefOid,state,mergedAt,mergeStateStatus,reviewDecision,autoMergeRequestAn enabled auto-merge request is not a completed merge. Use gh wait --merge
when waiting for that merge, then confirm its final state. Report the actual
blocker or confirmed merged state, not another unchanged status dump.
© caarlos0, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/gh-cli of caarlos0/dotfiles.
Open the folder on GitHubat commit 278c761
Gh CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gh CLI this skillcaarlos0/dotfiles | 220 | — | ~2.5k | Automated safety check: Pass | MIT | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Check PRonyx-dot-app/onyx | 32k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Pull Request Title and Body Writeropeninterpreter/openinterpreter | 69k | 2 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 |
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
onyx-dot-app/onyx
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
openinterpreter/openinterpreter
Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.
prisma/orm
Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.
caarlos0/dotfiles
Design and review command-line interfaces for usability, automation, safety, accessibility, and long-term compatibility.
caarlos0/dotfiles
Review and merge open dependency pull requests from Dependabot, Renovate and similar bots across the goreleaser organization and the caarlos0 user.
caarlos0/dotfiles
Design terminal user interfaces and interactive CLIs that stay usable, accessible, and scriptable.
caarlos0/dotfiles
Design and review dashboards that are informative, honest, accessible, and visually polished, independent of any tool.
caarlos0/dotfiles
Author and revise clear GitHub internal documentation, including design docs, proposals, decision records, runbooks, status updates, and handoffs.
caarlos0/dotfiles
Profile and optimize Go CPU, allocations, GC, concurrency, and I/O with benchmarks and pprof.
Works with
Categories
Use GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status. Gh CLI is an agent skill from caarlos0/dotfiles. Use GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status.
Gh CLI fits situations like: diagnosing a failed check; monitoring a pull request.
Run `npx skills add caarlos0/dotfiles --skill gh-cli -a claude-code`. Or copy the skill folder (skills/gh-cli in caarlos0/dotfiles) into .claude/skills/gh-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add caarlos0/dotfiles --skill gh-cli -a codex`. Or copy the skill folder (skills/gh-cli in caarlos0/dotfiles) into .agents/skills/gh-cli in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add caarlos0/dotfiles --skill gh-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-cli, .gemini/skills/gh-cli, .github/skills/gh-cli and .opencode/skills/gh-cli in your project.
Going by SKILL.md and its folder, Gh CLI needs the command-line tools its instructions call (gh). Our summary lists: Python 3.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Gh CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Gh CLI: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
caarlos0 (a GitHub user) maintains it in caarlos0/dotfiles, which has 220 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 7, 2026.
Source: caarlos0/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.