Respond to review comments

From sillsdev/FieldWorks · View interactive version

Respond to review comments is an AI agent skill from the GitHub repository sillsdev/FieldWorks. Respond to Copilot and human PR reviewer comments: evaluate feedback, fix sensible requests, ask about ambiguity, verify, commit, push, reply to threads, resolve addressed comments, and summarize results. Use when handling review comments, Copilot review feedback, requested changes, unresolved PR th

How to use this skill

Skill file

Respond to Review Comments

Use this skill when the user wants a guided workflow for addressing Copilot or human reviewer comments on a FieldWorks pull request.

This workflow starts from technical evaluation, not automatic agreement. External feedback is input to check against the codebase and repository rules.

Goals

Required Context

Before working on comments:

  1. Load CONTEXT.md and apply the shared language rules.
  2. Load the repo instructions relevant to touched files.
  3. Use the grill-with-docs discipline for ambiguous terminology: challenge fuzzy terms, ground terms in code, and update CONTEXT.md if the workflow exposes durable language decisions.
  4. Apply the code-review reception rule: verify feedback before implementing it.

Useful repo anchors:

Comment Intake

Use the richest available source, in this order:

  1. Active pull request tools in the editor or GitHub extension.
  2. A PR URL, PR number, reviewer filter, or comment ID supplied by the user.
  3. Review comments pasted into chat.

Collect:

If no comments are available, ask the user for the PR, comment text, or review thread details.

Classify Each Comment

Build a short working ledger in chat, grouped by file or thread. For each comment, classify it as one of:

Ask the user one focused question before changing code for any Clarify item. Do not partially implement unclear multi-item feedback while unresolved ambiguity remains.

Fix Workflow

For each Fix item:

  1. Read the comment, the referenced code, and enough nearby context to verify the issue.
  2. Use symbol/reference navigation when the change crosses interfaces, inheritance, build graph, installer topology, native/managed boundaries, or parser/interlinear pipelines.
  3. Apply the smallest change that satisfies the reviewer without unrelated refactoring.
  4. Preserve FieldWorks rules:
  1. Record what changed for the eventual reply.

Verification

Choose validation based on touched files and risk:

Do not claim manual validation unless it was directly performed or the user explicitly confirms it.

Git Workflow

Before staging or committing:

  1. Run git status --short.
  2. Identify pre-existing user changes and changes made by this workflow.
  3. Stage only the intended files explicitly. Do not use broad staging if unrelated or staged-but-deleted files are present.
  4. If unrelated changes are already staged, ask whether to include them in the review-comment commit or leave them staged for a separate commit.

Commit after fixes are validated and no ambiguity remains. Use a concise message that describes the review-response work, for example:

fix: address PR review comments

Push the current branch after committing. If push requires credentials or a force push, stop and ask the user; do not force-push without explicit approval.

Reply and Resolve

For each thread or comment:

Resolve a review thread only when all of these are true:

Do not resolve threads that are ambiguous, disputed, blocked by missing verification, or intentionally deferred.

When using GitHub APIs directly, reply to inline review comments in their thread, not as unrelated top-level PR comments.

PR Description Updates

If review-response work materially changes the PR's scope, validation state, or main reviewer focus, update the PR description's ## Quick Summary before finishing.

Quick Summary maintenance rules:

Final Report

End with:

Keep the report concise, but include enough detail for the user to see which comments still need attention.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.