/babysit-pr:leaving-pr-commentsfrom Babysit PR
Formats and posts a GitHub comment that an agent writes on the user's behalf: PR and issue comments, inline review comments, thread replies, and the reason given before resolving a thread. Marks it as agent-written, keeps it short, strips secrets and local details, and posts it without shell quoting damage. Use whenever you comment, reply, or review on GitHub. Not for PR descriptions, commit messages, or text the user asks to post word for word.
Ships in Babysit PR. 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.
A comment posted from the user's account reads as the user's own words. Mark it as written by an agent, say one useful thing, and make sure it arrives intact.
Open with a note callout that names the model and the person it speaks for. Put the comment itself below it:
> [!NOTE]
> 🤖 **<model> responding on behalf of <login>**
<the comment>
<model> is the public model name the harness reports for this session. If it
reports none, use the harness name. Never guess.<login> comes from gh api user --jq .login.path:line, a command and its
output, a test name.src/cart.ts:12 already rejects NaN" is a
fact; "a second guard would be noise" is judgment, so say it as one.@name notifies that person. Write one only for a real login you mean to
notify; put roles, placeholders, and package scopes (@types/node) in backticks.Read the whole body, including quoted text and log excerpts, before posting. Remove:
/Users/..., /home/...), worktree names, temp paths, and
session or thread ids;Quote the smallest excerpt of a log that makes the point.
Write the body to a file and pass the file, so backticks, $, and quotes survive:
f=$(mktemp)
cat >"$f" <<'BODY'
...
BODY
gh pr comment <number> --body-file "$f" # top-level PR comment
gh api repos/<owner>/<repo>/issues/<number>/comments -F body=@"$f" --jq .html_url
For a review thread reply, pass the same body to the GraphQL
addPullRequestReviewThreadReply mutation with -F body=@"$f".
Before posting after a restart or a resumed session, check whether the same reply is already there. A second copy of an agent comment is noise.
After posting, confirm GitHub returned the comment's URL or id. Resolve a thread only once its reply has posted.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anolilab/skills --plugin babysit-pr4 skills in this plugin
/babysit-prBabysits a pull request you opened: reads the review findings and CI results that are newer than your last push, fixes the real ones, replies to and resolves the rest, pushes, and repeats until checks pass and reviewers approve. Use when the user says babysit this PR, handle or fix the review comments, fix the pipes or CI, get the PR green, rebase it, or to merge it once it is ready. Honours any stop point the user gives. Merges only when the user asks for it. Not for reviewing someone else's PR, not for writing a PR from scratch.
/file-prOpens a concise pull request for finished work on a branch: checks that no PR exists yet, reviews the diff against the base, writes a title in the repository's own convention and a description that leads with the problem, checks both for secrets and local details, then opens a real PR. Use when the user says file a PR, open a PR, create a pull request, or push this up for review. Opens nothing when the branch already has an open PR. Not for review comments (leaving-pr-comments), and not for work that is still in progress. Hands off to babysit-pr only when the user asked for that.
/pr-stateReports, read-only, where the pull requests in play stand: checks, open review findings, review decision, mergeability, and the decisions still waiting on the user, in one table. Use when the user asks "state?", "what's the state", "where are we", "are the PRs green", "are all comments done", "what decisions are open", or "can we merge them". Never pushes, replies, resolves, or merges; to act on a PR, use babysit-pr.
Other plugins' skills for the same job