/babysit-pr:file-prfrom Babysit PR
Opens 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.
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.
Turn a finished branch into a pull request that a reviewer can judge in one read. The title and description are the product here, so most of the work is deciding what they say.
Look for an existing PR. gh pr list --head <branch> --state all. If one is open,
do not create a second. Update its description if the user asked, or report its link.
A closed or merged one is a fact to mention, not a reason to stop.
Start from the right branch. If you are on the default branch, create a branch first. Never push to the default branch.
Bring the base in. Fetch, then rebase onto the latest base unless someone else has
pushed to the branch, in which case merge it. Push a rebased branch with
--force-with-lease, never --force.
Read the diff against the base (git diff origin/<base>...HEAD) and check it
against the goal the user gave you. A stray debug line, an unrelated formatting change,
or a leftover scratch file is a defect in the PR. Remove it, or tell the user if it is
not yours to remove.
A secret in the diff is worse: dropping it in a new commit leaves it in the branch
history, and pushing publishes that history. Remove the file or line from the commit
that added it (a non-interactive rebase, or git commit --fixup with autosquash),
confirm it is gone from git log <base>..HEAD -p, and tell the user to rotate it. If
the commit was already pushed, stop and ask.
Run the repository's own checks for what changed. A PR that fails them on arrival wastes the first review round.
PR titles usually become the squash commit, so follow the repository's convention. Read
the last 10 merged PRs (gh pr list --state merged --limit 10) and match their form,
including a conventional-commit type and scope when they use one.
Say why the change matters, in words a user would use. Do not describe the mechanism.
# no
fix(cart): round line totals with Math.round after multiplying
# yes
fix(cart): stop totals drifting by a cent on discounted items
If the repo derives releases from the title, pick the type with that in mind: a fix is
fix, a new capability is feat, and neither applies to docs or CI changes.
Use the repository's pull request template when it has one (.github/pull_request_template.md
or the template directory) and fill every section it asks for. Otherwise write this:
# no
Replaced the float multiplication in lineTotal with integer cents and updated the
callers in checkout.ts, invoice.ts, and the CSV export.
# yes
Discounted items could be a cent off at checkout, so invoices did not match the cart.
Totals are now computed in whole cents.
Link the issue the change closes (Closes #123) when there is one. Add screenshots only
when they show something the text cannot.
End with the attribution line that the user's or the harness's instructions call for. If none applies, add none, and never guess a model name.
A description is public as soon as it is posted, and edits stay in the history. Read the title, the description, and anything you attach for:
Remove them before posting. Keep the cause when you quote a log.
Push the branch first, then write the body to a file and pass it with --body-file, so
quotes and backticks survive.
git push -u origin <branch>
gh pr create --base <base> --head <branch> --title "<title>" --body-file <file>
Open a real PR, not a draft, so review bots run. Open a draft only when the user asked for
one. If gh pr create fails because the GraphQL quota is spent, the REST quota is
separate:
gh api repos/<owner>/<repo>/pulls -f title="<title>" -f head=<branch> -f base=<base> -F body=@<file>
If the harness has a tool that links a PR to the current thread, call it with the new URL.
leaving-pr-comments.babysit-pr. Otherwise stop.Report the PR link, the base and head, what you checked before filing, and anything you removed from the diff or left for the user to decide.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 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.
/leaving-pr-commentsFormats 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.
/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.
npx claudepluginhub anolilab/skills --plugin babysit-pr