/marekkirejczyk-skills:finish-pr [manual | auto]from marekkirejczyk-skills
Takes a branch from working code to a reviewed, described, pushed GitHub PR, then monitors it until merge. Supports manual or auto-merge modes.
Ships in marekkirejczyk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Takes the work on the current branch from "it works" to a reviewed, described, pushed pull request on GitHub, and hands it to the baby-sitting skill. Arguments: $ARGUMENTS. If your agent does not fill that in, take them from the user's message.
The one argument is the mode: manual (the default) or auto. Anything else: say so and stop.
The scripts are in scripts/ next to this file; <skill-dir> below is this file's directory, and <baby-dir> is the baby-sitting skill's, its sibling (<skill-dir>/../baby-sitting). If that skill isn't installed, say so and stop. The scripts need gh (signed in), jq and git. Run every command in the checkout that holds the branch.
It has to be fast. Where a step says "in one message", send those calls together so they run side by side, and use the scripts as given: each replaces several calls.
Run <skill-dir>/scripts/status.sh. It fetches the base and prints the branch, its base, its open PR, and what the branch changes.
git config branch.<branch>.gh-merge-base <base>, and run it again.uncommitted lists files: commit the ones that belong to this work, with a message saying what changed and why, and run status.sh again, as head and ui have changed. Ask about any that don't belong.reviewed: yes: an earlier run reviewed this head. Go to step 5.Send all of this in one message:
<baby-dir>/SKILL.md: step 4 ships by its "Shipping" section, and step 5 follows the rest.AGENTS.md, CLAUDE.md or CONTRIBUTING.md names them, and where nothing is written, they are what the PR's required checks run. They run while the review does; step 4 needs them again only if step 3 changes something.git diff origin/<base>...HEAD, and this line: "Work in <checkout path>: cd into it in every call. Read only: change no file, and run no lint or tests, which are running already."
AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and the documents they point to that say how code here is written. Report each place the change breaks a written rule, quoting the rule and naming its file. Then, marked as judgement calls, the smells the change adds: a name that doesn't say what it holds, logic written twice, a function that works mostly on another module's data, abstraction nothing asks for yet. A written rule wins over a smell. Skip what the formatter, linter or type checker enforces. Each finding with file:line and a fix. Under 400 words."ui: yes and the repository documents its design (a design-system document, a tokens file): "Read the changed UI against : a value outside its tokens, a component rebuilt by hand where one exists, type or spacing off its scale, a control too small to tap, an accessibility rule it sets. Each finding with file:line and a fix. Under 300 words."Without sub-agents, review the four axes yourself, one after another, with the same briefs.
Number every finding in one list, each keeping its axis (Standards, Spec, Bugs, Design). A finding is something a sub-agent says should change; a note that something is fine isn't one. Where two axes found the same thing, list it once with both.
Your first message after the review includes <skill-dir>/scripts/timer.sh lap review, beside whatever else it does.
You decide; the developer isn't asked. Every finding ends up fixed or left, with a reason:
Commit the fixes, and anything the checks themselves changed, as one commit whose message lists each fix and why, and note its short SHA for the block.
<skill-dir>/scripts/timer.sh lap fixes, and the checks again when step 3 committed anything..github/pull_request_template.md), filled in. Otherwise three sections: Summary, what changed and why, with the smallest sketch that makes it clear (a call tree, a file tree, a diff of the shape); Evidence, what was run and what it showed, before and after, from what this session already holds; Risk, how to undo it and what it could break;<skill-dir>/scripts/open.sh <base> "<title>" <body-file>. It pushes and leaves the PR ready for review. With no PR yet it creates one; the title follows the base's history, which status printed under base history. A PR that is already open keeps its title and its description, which a reviewer or baby-sitting may have edited: only the block is replaced. Bring by hand what no longer holds there up to date (gh pr edit <n>).The block records the review in the description, between its own two markers, each alone on a line. Baby-sitting adds a block of its own beside it later.
<!-- finish-pr -->
### Self-review
Reviewed `abc1234`: 5 findings, fixed 1, 2, 4 in `def5678`.
<details><summary>Findings</summary>
1. **Standards** `path:line`: the finding. _Fixed._
2. **Bugs** `path:line`: the finding. _Left: the reason._
</details>
<!-- /finish-pr -->
The "Reviewed" line names the commit that was reviewed and the fix commit, and ends "none fixed" or "no findings" when that is so; status reads it on a later run. Every finding is in the details, marked fixed or left with its reason.
Run <skill-dir>/scripts/summary.sh <n>. Then, in one message, write the summary first and start <baby-dir>/SKILL.md from "Start" in the same mode (the PR is already open and ready).
The summary:
Timing line.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub marekkirejczyk/skills --plugin marekkirejczyk-skills11 skills in this plugin
/baby-sittingBaby-sit the current branch's pull request until it is merged. With nothing or manual it keeps the PR rebased, green and answered, working through the review bot's comments you pick, and leaves the merge to you; with auto it turns on GitHub auto-merge./dont-repeat-yourselfFind every concept implemented more than once in a scope (a repository, a PR, a directory, a concept) and give it one well-tested implementation. Identical copies are extracted automatically; behaviour differences and high-stakes code are brought to you for a decision at the end./eval-reportRun a repository's evals and turn the results into one static HTML report for fast review, with pass/fail counts, collapsible files, filters for failed and for new or changed cases, and links to the code. Run it with nothing for the whole repository, with commit or pr to mark what changed, or with only commit|pr to run just what changed./eval-report-install-ciSet up eval-report on GitHub Actions, so every pull request gets an HTML eval report linked at the top of its description and in one comment, built by a script without model tokens. Adds it to the existing eval job, or proposes a lean eval job of its own. Needs the eval-report skill installed next to it./explain-with-slidesBuild a slide deck that walks through a repository, the current one or one at a URL, (architecture and features) or through one pull request (its changes, before/after screenshots, diagrams, key files, diffs, tests and review risks), with screenshots taken from the code actually running. Published as a Claude Slides artifact or as a standalone HTML deck. Use only when the user asks for a repo presentation, onboarding deck or PR walkthrough deck./explain-with-videoMake a narrated explainer video of a repository or a pull request, as an MP4 with captions on a shareable video page. Scenes reveal and highlight item by item while a synthetic voice explains them (macOS say by default; OpenAI or ElevenLabs when configured). Use only when the user asks for a narrated video, screencast or video explainer of a repository, a feature or a pull request.Other plugins' skills for the same job