Skip to content

[skills] create a skill for reviewing PRs#292

Merged
jonathanpeppers merged 2 commits intomainfrom
dev/peppers/code-review-skill
Mar 4, 2026
Merged

[skills] create a skill for reviewing PRs#292
jonathanpeppers merged 2 commits intomainfrom
dev/peppers/code-review-skill

Conversation

@jonathanpeppers
Copy link
Member

This skill let's you say:

review this PR: https://github.com/dotnet/android-tools/pull/284

Some example code reviews:

This is built off a combination of previous code reviews, saved in docs/CODE_REVIEW_POSTMORTEM.md, and the review rules in references/review-rules.md.

This skill let's you say:

    review this PR: #284

Some example code reviews:

* #283 (review)
* #284 (review)

This is built off a combination of previous code reviews, saved in
`docs/CODE_REVIEW_POSTMORTEM.md`, and the review rules in
`references/review-rules.md`.
Copilot AI review requested due to automatic review settings March 4, 2026 20:24
@jonathanpeppers jonathanpeppers added the copilot `copilot-cli` or other AIs were used to author this label Mar 4, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an android-tools-reviewer GitHub skill to standardize PR reviews for dotnet/android-tools, derived from prior review postmortems and distilled review rules, plus a helper script to validate/submit batched PR review comments via gh api.

Changes:

  • Adds docs/CODE_REVIEW_POSTMORTEM.md capturing key review findings from PRs #274#284.
  • Adds references/review-rules.md as a distilled, actionable checklist for reviews.
  • Adds the android-tools-reviewer skill definition (SKILL.md) and a submit_review.cs helper to validate and post review JSON via gh.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
docs/CODE_REVIEW_POSTMORTEM.md New postmortem document aggregating review learnings used to inform the skill/rules.
.github/skills/android-tools-reviewer/references/review-rules.md New distilled rule set for automated/manual PR review checks.
.github/skills/android-tools-reviewer/SKILL.md Skill workflow/spec and review JSON template for generating batched 🤖 comments.
.github/skills/android-tools-reviewer/scripts/submit_review.cs CLI helper to validate review JSON and submit it to GitHub via gh api.

- Fix broken relative link to CODE_REVIEW_POSTMORTEM.md (../docs -> ../../../docs)
- Fix misleading error message for 'event' field validation
- Add using/dispose on all JsonDocument instances
- Drain stdout/stderr concurrently via ReadToEndAsync to prevent deadlock
- Compress SKILL.md from 172 to 86 lines while preserving all meaning
- Generalize NullProgress rule to null-object pattern for any nullable dependency
- Escape postmortem #N references with backticks to prevent GitHub auto-linking

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers merged commit efb07ab into main Mar 4, 2026
2 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/code-review-skill branch March 4, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot `copilot-cli` or other AIs were used to author this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants