AgentSkillsCN

Review Followup

跟进后续工作

SKILL.md

Review Follow-up Skill

Use this skill when the user says a PR review has been done and asks to process reviewer comments.

Goal

Process GitHub PR review comments end-to-end:

  1. fetch review threads/comments,
  2. assess validity,
  3. implement fixes when appropriate,
  4. push changes,
  5. resolve addressed threads.

Workflow

  1. Identify current branch and linked open PR.
  2. Fetch review threads with:
    • python3 /Users/g1lom/.codex/skills/gh-address-comments/scripts/fetch_comments.py
  3. Build a short numbered list of threads with:
    • issue summary,
    • validity assessment (valid, partially valid, not needed),
    • intended action.
  4. Apply code/test/documentation fixes for valid items.
  5. Run quality gates:
    • uv run ruff check .
    • uv run ty check src tests
    • uv run pytest -m unit
    • uv run pytest -m integration
    • uv run pytest -m end2end
  6. Commit and push.
  7. Resolve threads for addressed comments via GraphQL mutation resolveReviewThread.
  8. Report what was fixed and which threads were resolved.

Thread resolution note

Only resolve a thread when:

  • code or docs were actually updated to address it, or
  • a clear rationale is provided in PR discussion for rejecting it.