跳到正文
cccskills
免费在 GitHub 公开

pair-review

Interactive pair review of a PR. Fetches the diff, scouts for context, then walks through each changed file one at a time. Collects review comments in a bag with conventional comment prefixes, previews them, and posts only after explicit approval. Trigger on: pair review, let's review together, walk me through the PR, review with me.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Pair Review

Interactive file-by-file PR review with a comment bag and preview-before-post.

Parsing arguments

The user provides a PR reference. Parse it:

  • PR number: 123 -> gh pr diff 123, gh pr view 123
  • PR URL: https://github.com/org/repo/pull/123 -> extract number
  • No argument: ask the user for the PR number or URL

Phase 1: Gather context

  1. Fetch PR metadata: gh pr view <number> --json title,body,headRefName,baseRefName,files
  2. Fetch PR diff: gh pr diff <number>
  3. Scout the codebase: read the changed files in full. Focus on:
    • What the changed code does and why
    • Related modules, GenServers, Store operations that the changes touch
    • Overmind patterns the PR should follow (multi-clause, maybe_x, Store isolation)
    • Shell conventions (POSIX, quoting, sourced helpers)
    • Potential concerns (OTP safety, error handling, naming, tests)
  4. Present overview: show PR title, description, file list (numbered), and a brief summary. Then say: "Ready for file-by-file walkthrough. Say 'next' or pick a file number."

Phase 2: File-by-file walkthrough

For each file, present:

  • File path and whether it's new, modified, or deleted
  • The changes (summarize the diff, show key code snippets)
  • Insights: what the change does, why it makes sense (or doesn't)
  • Motivations: how it fits the broader PR goal
  • Concerns: anything worth flagging

Then wait for the user's command. The user may:

  • Say "next" to move to the next file
  • Ask questions about the current file
  • Ask to add a comment to the bag
  • Skip files or jump to a specific file number

Phase 3: Comment bag

Maintain a running table of comments. Comments target specific lines:

| # | File:Line | Comment |
|---|-----------|---------|
| 1 | lib/overmind/mission.ex:14 | **question:** Is this needed? |
| 2 | bin/cli/commands.sh:97 | **suggestion:** Consider using printf here |

The user controls what goes in the bag. Never add comments without the user saying so.

Conventional comment prefixes

Always use one of these (the user specifies which):

  • question: — asking for clarification
  • suggestion: — proposing an alternative
  • issue: — something that needs to change
  • nit: — minor, take it or leave it
  • thought: — sharing context, no action needed
  • praise: — highlighting something well done

Phase 4: Preview and post

After all files are reviewed (or the user says "done"), show the final comment bag and ask:

"Here are the comments ready to post. Want me to post them, edit any, or discard?"

NEVER post comments without explicit approval.

When posting, use gh api to create PR review comments on the correct file and line, using the head commit SHA.

Communication style

  • Direct, human. No filler, no fluff
  • Collaborative tone: "wdyt about...", "consider..."
  • When something is clearly wrong, say it directly: "this will break when X is nil"
  • Keep insights short. The user can read the code

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

bugfix

免费

Bug hunter. Reproduces bugs with failing tests (RED), then fixes with TDD. Accepts a prompt, issue URL, or bug description. Use when: bugfix, fix bug, debug, broken, regression, failing, doesn't work, fix this.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

commit

免费

Create a git commit following project conventions. Use when: commit, commit this, make a commit, commit changes, git commit, save changes, commit my work, stage and commit, detailed commit.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

debug

免费

Elixir debugging workflow and tools. Use when: debug, debugging, pry, inspect, trace, why is this failing, what's wrong, investigate, diagnose.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

dev

免费

Implementer - fetches a GitHub issue, builds an implementation plan, then implements using TDD. Use when: implement, build this, code this, add this feature, TDD, test first, red green refactor, pick a task, next task, dev.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

learn

免费

Extract learnings from the current session and update memory/config. Use when: learn from this, what did we learn, update memory, session retrospective, extract patterns, save learnings.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

overmind

免费

Orchestrator - spawns an autonomous orchestrator agent that decomposes a task into subtasks and drives multiple Claude agents to completion. Use when: overmind, orchestrate, multi-agent, delegate, spawn agents, break down task, run agents.

中文简介正在准备中。当前显示原文说明。

leandronsp/overmind122026年4月13日 更新

查看 leandronsp 的全部技能

报告此技能的问题