gh-review
What it does
This skill sets the rules and tone for writing GitHub reviews and comments. It is for developers who review code and want direct, clear feedback.
When to use it
- āWhen you ask your agent to review a pull request and post the result on GitHub.
- āWhen you want review comments to be direct, with no vague or optional wording.
- āWhen your agent is about to post a comment to GitHub and you want it to check who is posting first.
Skill link
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/gh-review/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āWrite a GitHub review for this pull request, and make every change you ask for clear and required.ā
5 new skills a week. 1 minute to read.
How it works
The skill gives the agent a checklist: confirm the posting account, write each request with a pointer and a reason, and post a clear verdict.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
GitHub review voice
Load this the moment a review or diagnosis is about to become a GitHub comment. The investigation skill owns the evidence; this skill owns what gets written, posting authorization, and how it is posted.
Who is posting
Before drafting, run gh auth status once and record the active account for the target GitHub host in the review record. Do not dump environment variables or expose tokens.
Do not assume the answer. It may be the user's account or a bot account with its own identity; which one it is changes how you act:
- Self-review means the posting account is the PR author. Compare the login above to the PR's
author.login, and decide self-review from that comparison aloneānot from who the user is. - Write in the posting account's voice. If it is not the author's account, do not refer to the PR as "mine".
- The user is accountable for the content regardless of which account posts itāwhich is why the post gate below exists.
Check once per session, not before every post.
The rule
Ask for the changes you want, and every one of them is required. Small requests are still requestsāpost them. What you never do is label them: there is no "optional", no "nit", no "non-blocking", no "follow-up", no "future PR". The author satisfies the list; the review is not a menu.
Hedging is not politeness; it transfers the decision back to the author while pretending not to. A reviewer who has evidence states the request.
Voice
Be direct about required changes and precise about what the evidence establishes:
- Imperative, present tense. "Advance
attemptbefore the comparison." Not "you might want to consider advancingā¦". - Pointer, change, reason. Every request names the file and line, says what to change, and gives the consequence or evidence in one or two sentences.
- No pleasantries. No "Thanks for the PR", "Great work overall", "Nice cleanup", "Let me know if you have questions", "Happy to discuss".
- No softened requests. State required changes directly, not as optional suggestions or politeness questions ("You might want to advance
attempt?", "Consider adding a test"). Preserve qualifications that express actual uncertainty or limits of evidence: "the contract does not guarantee this field" must not become "servers never return this field". - No restated verdict. GitHub already shows "requested changes" or "approved" above the body. Never open with "Request changes." / "Approve." / "Verdict:".
- Questions only when the answer changes the request. State what you believe and what changes if the answer differs: "This drops the retry on 429. If that is intentional, document it in the option's JSDoc; otherwise restore the branch at
client.ts:88." - Evidence over assertion. "Ran
pnpm test:memoryon this branch with the second tool call removed: fails atobserver.test.ts:212." Not "this may break the tests". - Plain about severity. If it corrupts data, say it corrupts data.
- Code, not people. Never characterize the author, their effort, or their experience.
Length is set by the requests, not by a budget. Each request is a pointer, the change, and the reasonānothing elseāand every request you have evidence for is in the body. Eight requests make an eight-item review; do not shrink the list to look concise, and do not park requests in a "secondary" or "candidate" tier to be added if asked.
Structure of a PR review body
Request changes (fictional example):
The new retry setting reaches the normal path, but recovery still uses the old default. Both paths need to honor the same configured limit.
1. `src/client/retry.ts:41` ā Pass the configured limit into the recovery path. It currently retries even when callers disable retries.
2. `src/client/retry.test.ts:88` ā Cover the recovery path with retries disabled. The current test only exercises the normal path.
Verified: a recovery-path probe with retries disabled made three attempts.
Approve:
<Brief reason the approach and implementation satisfy the required outcome.>
Verified: <what you actually ran, only if it adds credibility>.
Lead with the review's central conclusion and why it matters, not the event label. Give each numbered request a clear resolving condition; group changes that must land together or state their dependencies. Put the request that most affects correctness first. If the author needs to make a product decision rather than a code change, say what decisio
FAQ
Does this skill post comments by itself?
It guides how comments are written and posted, and it asks the agent to check which GitHub account is posting first.
Can the agent mark a request as optional?
No. The skill asks the agent to avoid labels like optional or nit, so every request is clear.
Who is this skill for?
It is for people who review code on GitHub and want consistent, direct review comments.
Details
Original description by the author
Draft and post direct, unhedged GitHub PR reviews and issue comments ā every item is a required change with a pointer and reason, PR reviews land as "request changes" or "approve" (never a bare comment), and nothing is marked optional or deferred to a follow-up. Use whenever understand-pr or understand-issue (or any review) is about to draft or post to GitHub.
repo: mastra-ai/mastra
Popularity
- GitHub stars
- 29k
- Ranking position
- #9367
- License
- ā
- Updated
- 11/2/2026
Comments
- ā¦
More skills from this repository
debugging-difficult-bugs
29kHelps your agent debug a hard bug by logging what the real program does at runtime, instead of guessing from tests alone.
mastra-frontend
29kHelps your agent build app screens with the Mastra playground design system by combining its ready-made components, rather than styling from scratch.
pr-explainer
29kHelps your agent turn a pull request into a clear, self-contained HTML page that explains the change to reviewers.
pr-splitter
29kHelps your agent break a large, messy pull request into smaller, reviewable pull requests while keeping the original work safe.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.