Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/pr-review-auditor/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: pr-review-auditor
description: Review the currently checked-out PR by discovering its upstream base branch with GitHub CLI, diffing base..HEAD, and performing a correctness-first code review that enforces repository policy with special priority on *GUIDELINES*.md rules and then AGENTS.md. Use when asked to do a full PR review, /review-style audit, commit-range quality check, or policy-compliance review of branch changes.
description: Review the currently checked-out PR by discovering its upstream base branch with GitHub CLI, diffing merge-base..HEAD, and performing a correctness-first code review that enforces repository policy with special priority on *GUIDELINES*.md rules and then AGENTS.md. Use when asked to do a full PR review, /review-style audit, commit-range quality check, or policy-compliance review of branch changes.
---

# PR Review Auditor
Expand All @@ -20,7 +20,7 @@ policy precedence: `*GUIDELINES*.md` before `AGENTS.md`.
- checked-out branch,
- PR number and base branch (via `gh pr view`),
- merge-base commit,
- review range (`<base_remote>/<base>..HEAD`),
- review range (`<merge_base>..HEAD`),
- changed files,
- available policy files (`*GUIDELINES*.md`, `AGENTS.md`).

Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/pr-review-auditor/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface:
display_name: "PR Review Auditor"
short_description: "Review base..HEAD with GUIDELINES-first policy checks."
default_prompt: "Use $pr-review-auditor to review the current PR from upstream base to HEAD with findings-first output and strict GUIDELINES/AGENTS compliance checks."
short_description: "Review merge-base..HEAD with GUIDELINES-first policy checks."
default_prompt: "Use $pr-review-auditor to review the current PR from merge-base to HEAD with findings-first output and strict GUIDELINES/AGENTS compliance checks."
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Review Scope

- Determine PR base branch and audit `<base_remote>/<base>..HEAD`.
- Determine PR base branch, compute merge-base, and audit `<merge_base>..HEAD`.
- Review full commit messages, changed files, and relevant patches.
- Focus on behavior, CI impact, tests, then style.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fi
rm -f "${fetch_error_file}"

merge_base="$(git merge-base "${base_remote}/${base_ref}" HEAD)"
review_range="${base_remote}/${base_ref}..HEAD"
review_range="${merge_base}..HEAD"

echo "CONTEXT_SOURCE=${context_source}"
echo "PR_NUMBER=${pr_number}"
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/pr-review-auditor/scripts/review_range.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
range="${1:-}"
if [[ -z "${range}" ]]; then
echo "usage: $(basename "$0") <git-range>" >&2
echo "example: $(basename "$0") upstream/main..HEAD" >&2
echo "example: $(basename "$0") <merge-base-sha>..HEAD" >&2
exit 1
fi

Expand Down