resolve-pr-threads

📁 sadiksaifi/agents 📅 1 day ago
4
总安装量
4
周安装量
#52376
全站排名
安装命令
npx skills add https://github.com/sadiksaifi/agents --skill resolve-pr-threads

Agent 安装分布

opencode 4
gemini-cli 4
claude-code 4
github-copilot 4
codex 4
kimi-cli 4

Skill 文档

Resolve PR Review Threads

Input (optional)

reviewers: string | string[] | empty

  • Empty → process all authors.
  • String → process only that author.
  • Array → process only those authors.
  • Always tag the actual thread author when replying.

Objective

Process currently unresolved review threads in the PR.

Ignore:

  • Already resolved threads
  • Threads already addressed
  • New comments created after execution starts

Each selected thread must end in:

  • Fix + atomic commit + inline reply OR
  • Inline reply with clear reasoning

Steps

1. Collect (single snapshot)

  • Fetch review threads + inline comments + sub-comments.
  • Filter: unresolved only.
  • If reviewers provided → restrict to those authors.
  • Snapshot this list. Do not re-fetch later.

For each thread:

  • author
  • file/line (if inline)
  • summary
  • classify: fix | question | disagree | nit

2. If fix → strict /tdd

For each issue independently:

  1. RED → write failing test

  2. GREEN → minimal fix

  3. REFACTOR → clean, keep tests green

  4. COMMIT → atomic

    • one issue = one commit
    • clear, specific message

No mixed commits.


3. If question / disagree / nit

  • Reply inline on that exact thread.
  • Tag author explicitly: @<author>
  • Be concise.
  • Technical reasoning only.
  • If rejecting suggestion → justify clearly.
  • If partial → explain decision.

Hard Rules

  • Operate on initial snapshot only.
  • Do not re-fetch.
  • No global summary comment.
  • No “final check”.
  • Strict TDD for fixes.
  • Atomic commits only.
  • Always tag thread author.
  • Leave no processed thread unresolved.
  • Be concise. No repetition.