/dstack-git:make-pr-easy-to-reviewfrom DStack Git
Restructures a pull request into a reviewable commit sequence with risk annotations, without pushing or altering remote branches.
Ships in DStack Git. 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.
A human hands you one pull request and asks for a review surface a stranger could walk through: what it is for, where the risk sits, and a commit story that reads in order. You work on the named local branch only. You never push, publish, touch credentials, or change any remote.
Rewriting history is optional and always gated. If a clear annotation already tells the story, stop there and change nothing.
You need the pull request or local branch, its base ref, and the review outcome the human asked for. Both refs must resolve locally, and the working tree must hold no uncommitted changes that could mix into the pull request. History work additionally needs explicit consent to an exact preview. Annotation alone never needs that consent.
Resolve the named branch and base ref first, then record the branch tip, the merge base, the commit range, the changed paths, and the final tree identifier. If any of those stay ambiguous, or the base is missing, or stray working tree changes are present, stop with blocked and name the unresolved input. No mutation happens on an unclear target.
Read the full diff and the full commit sequence. Assess each risk area and tie what you find to paths and evidence, without inventing either:
| Risk area | What to look for |
|---|---|
| Behavior | What the change does differently |
| Data and migration | Stored data, schema, or migration effects |
| Trust boundary | Security or permission crossings |
| Concurrency and lifecycle | Ordering, races, startup and shutdown effects |
| Compatibility | Breaks for callers, formats, or supported versions |
| Tests and evidence | Which tests or measurements cover each risk above |
Claims with no supporting evidence stay marked unverified. A passing command alone never proves a review is complete.
Draft the purpose of the pull request, put the riskiest areas first, map each risk to its paths and the evidence you actually have, and call out unresolved or unverified claims by name. This draft is the product whether or not history gets rewritten. Keep commit messages and section names short and concrete so the ordering survives on its own.
When annotation alone already gives an accurate surface, return the proposed title, description, review order, and risk notes, and change nothing. That outcome reports as annotated.
When reshaping would materially help, design a sequence where each commit has one coherent purpose, dependency order is preserved, and each change carries the tests or evidence that belong to it. Then preview the exact source commit range, the proposed sequence, the local branch to rewrite, the recovery ref you will create, and the fact that commit identifiers will change.
Without explicit human consent to that exact preview, make no history change. Return the annotation result plus the declined rewrite preview and classify the rewrite as not-authorized.
With consent, create a recovery ref at the original tip and perform only the approved rewrite. Never widen the changed path set or alter the intended final content while splitting, reordering, or combining commits. If the rewrite stops partway, restore the original tip from the recovery ref and report blocked with the failed operation and the recovery state. A partial sequence is never presented as complete.
Recompute the rewritten final tree identifier and compare it byte for byte with the one recorded before the rewrite. Inspect the rewritten range to confirm its order and messages match the approved sequence.
| Outcome | Response |
|---|---|
| Identifiers match | Keep the recovery ref, report the old and new tip identifiers with the identical tree identifier, return the risk oriented review surface, and report ready-local. Do not push the branch. |
| Identifiers differ | Restore the original tip from the recovery ref and report tree-mismatch with both identifiers. |
Dirty worktree input also stops with blocked and the affected paths, before any mutation.
Return the proposed pull request title and description, an ordered reviewer path, and a table mapping each risk to its paths and evidence. For an approved successful rewrite add the original and rewritten tip identifiers, the recovery ref, the identical pre and post rewrite tree identifier, and ready-local. For annotation work return annotated. For failure return exactly the applicable blocked, not-authorized, or tree-mismatch result with recovery status.
This skill makes no forge call. It reads only the local branch and base refs, so it stays provider neutral by construction and needs no merge request counterpart operation. Its title and description feed creation or update steps owned elsewhere. On GitHub that is gh pr create or gh pr edit. On GitLab that is glab mr create --source-branch <branch> --target-branch <base> --title <title> --description-file <file> or glab mr update --description-file <file> with a body file plus -y, only after the exact write preview is approved (glab mr create has no general dry run flag). Bind the GitLab host, project, and IID from the verified remote or request URL. On a fork the head and target projects differ. Any ambiguity stops before any forge command.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/atomic-issues-prsUse when the user says "atomic PRs" or requests one issue or PR per logical change. Don't use for single-change pushes or uncommitted change-sets./commit-push-currentUse when a human explicitly asks to commit and push to the checked-out branch with no branch creation and no pull request. Not for the default branch: use commit-push-main; not for a pull request: use commit-push-pr./commit-push-mainUse when a human explicitly asks to commit and push directly to the default branch, with no feature branch and no pull request. Not for another checked-out branch: use commit-push-current./gate-and-mergeUse when landing a queue of open PRs: gate each PR, sweep its review feedback to root cause, then merge, repair, hold, or close it. Human-only./git-branchlessUse when asked for multi-commit stack edits, rebases, fixups, or stacked-PR publishing with branchless git idioms. Not for plain-git workflows in repos without branchless./git-cleanupUse when the user explicitly invokes branch or worktree cleanup for a repo with accumulated local branches. Don't use for remote branch deletion or force-push operations.npx claudepluginhub gosuda/dstack-skills --plugin dstack-gitOther plugins' skills for the same job