Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

address-review

БесплатноБез исполняемых скриптовНе проверен

Use when addressing PR review comments from Copilot, Claude, or human reviewers. Critically assesses each comment, recommends action…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Address PR Review Comments

Load this skill when:

  • A PR has review comments that need addressing
  • User says "address review", "check PR comments", "handle review feedback"
  • After pushing code and wanting to check for automated reviewer feedback

Core Principle: Critical Assessment First

DO NOT blindly implement every suggestion. Review comments—especially from automated reviewers like Copilot—vary widely in quality. Your job is to:

  1. Assess each comment critically
  2. Decide whether it improves the code
  3. Act appropriately (implement, push back, or discuss)

This aligns with CLAUDE.md: "Push back if something feels wrong"


Workflow

Step 1: Fetch ALL Review Comments

IMPORTANT: Reviews come from TWO different sources. You must check BOTH:

# Get PR number from current branch
PR_NUMBER=$(gh pr view --json number -q '.number' 2>/dev/null)

# 1. Fetch inline review comments (Copilot posts here)
gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/comments

# 2. Fetch issue comments (Claude posts here via GitHub Actions)
gh pr view $PR_NUMBER --comments --json comments

Why two sources?

  • Pull request comments (/pulls/.../comments): Inline code review comments attached to specific lines. Copilot uses this.
  • Issue comments (--comments): General PR comments not attached to code lines. Claude (via GitHub Actions) posts here.

If you only check one source, you WILL miss reviews. Always check both.

Step 2: Assess Each Comment

For each comment, evaluate:

Question Assessment
Does this fix a real bug? High value if yes
Does this improve readability significantly? Medium value if yes
Does this improve maintainability? Medium value if yes
Is this a style nitpick with no functional benefit? Low value
Could this suggestion make things worse? Negative value - push back
Is this context-dependent and the reviewer lacks context? Discuss or push back

Step 3: Categorize

Assign each comment to one of:

IMPLEMENT

  • Fixes actual bugs
  • Prevents real security issues
  • Significantly improves clarity
  • Adds missing error handling that matters

PUSH BACK

  • Style nitpicks with no functional benefit
  • Suggestions that reduce debuggability (e.g., combining assertions)
  • Over-engineering for hypothetical scenarios
  • Changes that contradict project patterns
  • Automated suggestions that lack context

DISCUSS

  • Architectural decisions that need human input
  • Trade-offs where both options are valid
  • Changes that might affect other parts of the codebase

Assessment Criteria by Comment Type

Code Style Comments

"Consider renaming X to Y"
"This could be more concise"

Usually PUSH BACK unless the current name is genuinely confusing.

Assertion/Test Comments

"Combine these assertions"
"Simplify this test"

Often PUSH BACK — Separate assertions give better failure messages. Don't sacrifice debuggability for brevity.

Error Handling Comments

"Add error handling for X"
"Handle the case where Y is null"

ASSESS carefully — Is this a real scenario? Don't add defensive code for impossible cases.

Documentation Comments

"Add a docstring"
"Document this behavior"

IMPLEMENT if the code is genuinely unclear. PUSH BACK if the code is self-documenting.

Security Comments

"Validate input X"
"Sanitize before using"

IMPLEMENT if at a trust boundary. PUSH BACK if internal code where input is already validated.

Performance Comments

"This could be optimized by..."
"Consider caching X"

PUSH BACK unless there's evidence of a real performance problem. Premature optimization is the root of all evil.


Response Templates

For IMPLEMENT

Implementing: [brief description]
Reason: [why this improves the code]

Then make the change.

For PUSH BACK

Draft a response for the PR:

Thanks for the suggestion. I'm going to keep the current implementation because:
- [Concrete reason 1]
- [Concrete reason 2]

[Optional: explanation of trade-off considered]

For DISCUSS

Ask the user:

Comment suggests: [summary]
Trade-offs:
- Option A: [pros/cons]
- Option B: [pros/cons]
How would you like to proceed?

Example Assessment

Comment: "These three assertions check for the same constraint. Consider combining them into a single assertion."

Assessment:

  • Does it fix a bug? No
  • Does it improve readability? Marginally
  • Does it improve maintainability? No
  • Could it make things worse? YES — Combined assertion loses specificity. If the test fails, you won't know which pattern was found.

Decision: PUSH BACK

Response: "Keeping separate assertions for better failure diagnostics. When a test fails, we want to know exactly which forbidden pattern was detected, not just that 'one of three patterns' was found."


After Processing All Comments

Provide

Полный SKILL.md на GitHub

Установить address-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл address-review?

Use when addressing PR review comments from Copilot, Claude, or human reviewers. Critically assesses each comment, recommends action (implement/push-back/discuss), and executes appropriately.

Как установить скилл address-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл address-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить address-review с