Update pr review

From warpdotdev/oz-for-oss · View interactive version

Update pr review is an AI agent skill from the GitHub repository warpdotdev/oz-for-oss. Update the repo-local review-pr-local and review-spec-local companion skills using human feedback left on pull request conversations. Use when aggregating replies to agent-authored PR review comments, incorporating broader human review comments, extracting repeated reviewer feedback, and refining .a

How to use this skill

Skill file

Update PR Review

Use this skill to improve the repo-local review companions .agents/skills/review-pr-local/SKILL.md and .agents/skills/review-spec-local/SKILL.md from real reviewer feedback. The shared review-pr skill and the repo-local core .agents/skills/review-spec/SKILL.md are the cross-repo contracts and are read-only from this loop.

The repository uses two separate review skills: review-pr for code pull requests and review-spec for spec-only pull requests (PRs where every changed file lives under specs/). Feedback from each category of PR should be routed to the corresponding repo-local companion.

Write surface

This self-improvement loop may only write to:

It must NOT touch:

The self-improvement runner enforces this via a git diff check against allowed prefixes before pushing. A violation aborts the run.

Inputs

Workflow

  1. Verify GitHub CLI auth:
gh auth status
  1. Aggregate the feedback for pull requests updated over the last week with the bundled script:
python3 .agents/skills/update-pr-review/scripts/aggregate_review_feedback.py

By default this targets the current repo, looks back 7 days, and analyzes review comments authored by the bot identities used by the PR review workflow (warp-dev-github-integration[bot]). It also collects broader human review comments from those PRs so the skill can learn from reviewer norms even when they were not replying directly to the bot. The script writes structured JSON to a temporary file and prints the temp-file path. Treat that file as scratch state for this skill, not as a user-facing deliverable or final output. If you need a repository other than the current checkout, pass --repo owner/name. If you need a different author identity, pass --agent-login <login> one or more times.

Each pull request in the output includes a review_type field that is either "spec" (all changed files under specs/) or "code" (any non-spec file changed). Use this field to route feedback to the correct skill.

  1. Read the generated JSON and look for repeated reviewer signals, especially:
  1. Partition the feedback by review_type:
  1. Keep the core review contract stable — never edit the shared review-pr skill or .agents/skills/review-spec/SKILL.md. Only the -local companions evolve from feedback.

Evidence Rules

Intermediary State

The script builds structured JSON that captures:

Use that temporary data as evidence when refining the skills, then remove it before finishing if you wrote it to disk explicitly.

Final Checks

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.