/cursor-team-kit:make-pr-easy-to-reviewfrom cursor-team-kit
Prepare PRs for review by cleaning noisy history, improving PR descriptions, and adding reviewer guidance without changing code behavior. Use for "make this easy to review", "tidy this PR", "clean up commits", or "annotate the diff".
Ships in cursor-team-kit. 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.
Prepare a PR so a reviewer can quickly understand the intent, important files, and risk. The default goal is reviewability without behavior changes.
Only rewrite history when the user asks for it or agrees to the plan. Before rewriting, detect the git host CLI and fetch the PR/MR's branch and commit info:
GIT_HOST_CLI=$(bash "$CLAUDE_PLUGIN_ROOT/scripts/git-host.sh") || exit 1
if [ "$GIT_HOST_CLI" = "gh" ]; then
gh pr view <PR> --json title,headRefName,baseRefName,state,commits
else
glab mr view <PR> --output json # title, source_branch, target_branch, state
glab api "projects/:id/merge_requests/<PR>/commits" # commit list, fetched separately
fi
git fetch origin <headRefName> <baseRefName>
ORIGINAL_TREE=$(git rev-parse origin/<headRefName>^{tree})
Two things differ from a straight gh→glab swap here:
gh pr view --json takes a caller-chosen field whitelist. glab mr view --output json
has no field-selection flag — it always dumps the full MR object, under GitLab's own
field names (source_branch for headRefName, target_branch for baseRefName).commits array inline. GitLab's MR object doesn't — the commit
list this workflow needs to plan safe rebase groupings has to come from a separate
merge_requests/<PR>/commits API call.Good commit groupings usually follow dependency order:
After rewriting, verify content identity:
echo "Original tree: $ORIGINAL_TREE"
echo "Current tree: $(git rev-parse HEAD^{tree})"
git diff origin/<headRefName> --stat
Do not push if the tree changed unintentionally.
When code behavior should stay untouched, prefer PR description and review notes:
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/check-compiler-errorsRun compile and type-check commands and report failures/control-cliBuild or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos./control-uiBuild or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.npx claudepluginhub ultish/pstack-claude --plugin cursor-team-kit