review:peer
БесплатноЗапускает вложенные скриптыНе проверенReview a pull request when requested by a peer. Use when reviewing PRs, providing code review feedback, or analyzing proposed changes. Supports GitHub and…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
Peer Review
Help me review this PR: $ARGUMENTS
The review is done when I have approved a mapped set of comments (or an approval with none) and it is posted as one batch.
Context
Your own login as the reviewer (see tone.md for how to address each party). The platform that doesn't apply reads unavailable.
- GitHub user: !
gh api graphql -f query='{viewer{login}}' --jq .data.viewer.login 2>/dev/null | grep . || echo "unavailable" - GitLab user: !
glab api user 2>/dev/null | jq -r .username 2>/dev/null | grep . || echo "unavailable"
Triage Mode
With --triage, stay read-only and judge scope from the PR body, diff stat, and files touched. Report two things and stop:
- What the PR changes, in one line.
- The review effort on the effort scale, with one-line reasoning.
Guardrails
- Show me the file comments and review comment, and post only on my go.
- When everything looks good, propose approving with no comment.
- Write in my voice. You're commenting as me.
- Ask me about ambiguous code.
- For library introspection, read the source or fetch the docs.
Workflow
Research: gather context and identify participants (see research.md).
Context: private repos use corporate defaults, public repos use open-source. Check with
gh api repos/OWNER/REPO --jq .visibilityorglab api projects/ENCODED_PATH | jq .visibility. Ask me if ambiguous.Review the changed files and existing comments.
Delegate: run
code-review, except on trivial PRs (docs-only, dep bumps). It reads the local diff, sogh pr checkoutfirst. Before invoking, summarize the diff (rough line count, files, sensitive areas) and PR-body signals, propose an effort level, and confirm it viaAskUserQuestion.Think on two separate axes, so a clean diff does not mask a missed requirement: requirement fulfillment (requirements.md) and code quality (priorities.md, smells.md), folding in
code-reviewfindings.Map: write proposed comments to a JSON file (
id,path,start_line,end_line,side,comment_type,content), then map them to platform positions. Skip when approving with no comments.bun ${CLAUDE_SKILL_DIR}/scripts/mapping.ts map --platform <github|gitlab> \ --comments <path> --diff <path> --commit <head-sha>GitLab also needs
--baseand--startfrom the MRdiff_refs. The output is{ payloads, dropped }. Adroppedcomment anchors outside a diff hunk (GitHub rejects it with422 "Line could not be resolved"), so show it to me and re-anchor it.Post: show me the mapped set, then on my go post one batch with Approve, Comment, or Request Changes by severity. GitHub uses a pending review, GitLab draft notes published together.
See tone.md for comment style.
Effort Scale
- low: docs-only, dep bumps, config tweaks, trivial fixes (<50 lines)
- medium: typical features or fixes, single module, ~50–500 lines
- high: large refactors, multi-module, public API or schema changes, ~500–2000 lines
- xhigh: security-sensitive (auth, payments, data access), breaking changes, migrations, or extreme blast radius
Service Support
For GitLab, load gitlab:merge-request for submission and publish draft notes with glab mr note draft publish <iid> --yes, which takes an optional -m summary and --reviewer-state requested_changes.
Post comments through mcp__github, gh, or glab. On follow-up, resolve addressed threads natively: review-threads.ts on GitHub, the resolve flow in gitlab:merge-request on GitLab.
Установить review:peer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(gh:*)Bash(glab:*)Bash(git log:*)Bash(git diff:*)Bash(git show:*)Bash(git branch:*)Bash(git fetch:*)Bash(git checkout:*)Bash(git remote:*)Bash(git rev-parse:*)Bash(git cat-file:*)Bash(git status:*)Bash(jq:*)mcp__githubWebFetchSkill(code-review)Bash(bun ${CLAUDE_SKILL_DIR}/scripts/:*)Bash(grep .)Bash(echo:*)Вложенные файлы
FAQ
Что делает скилл review:peer?
Review a pull request when requested by a peer. Use when reviewing PRs, providing code review feedback, or analyzing proposed changes. Supports GitHub and GitLab. Pass --triage to summarize a PR and estimate its review effort without reviewing it.
Как установить скилл review:peer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review:peer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic