gh-review
하는 일
이 스킬은 GitHub 리뷰와 댓글을 작성하는 규칙과 어조를 정합니다. 직접적이고 명확한 피드백을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓에이전트에게 풀 리퀘스트를 리뷰하고 결과를 GitHub에 올리라고 요청할 때.
- ✓리뷰 댓글이 모호하거나 선택 사항처럼 들리지 않고 직접적이기를 원할 때.
- ✓에이전트가 GitHub에 댓글을 올리기 직전에 누가 올리는지 확인하기를 원할 때.
스킬 링크
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/gh-review/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 풀 리퀘스트에 대한 GitHub 리뷰를 작성해 주세요. 요청한 모든 변경을 명확하고 필수로 표시해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트에게 체크리스트를 제공합니다. 게시하는 GitHub 계정을 확인하고, 각 요청을 위치 표시와 이유와 함께 쓰고, 명확한 판정을 올리는 것입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
이 스킬이 댓글을 스스로 올리나요?
아닙니다. 댓글 작성과 게시 방식을 안내하며, 올리기 전에 어떤 GitHub 계정으로 올리는지 확인하도록 요청합니다.
에이전트가 요청을 선택 사항으로 표시할 수 있나요?
아닙니다. 스킬은 선택 사항이나 사소한 지적(nit) 같은 표현을 피하도록 요구하므로, 모든 요청이 분명합니다.
이 스킬은 누구를 위한 것인가요?
GitHub에서 코드를 리뷰하고 일관되고 직접적인 리뷰 댓글을 원하는 사람을 위한 것입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 29k
- 순위
- #9367
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
debugging-difficult-bugs
29k에이전트가 추측이 아니라 실제 프로그램이 실행될 때의 로그를 남겨 어려운 버그를 디버그하도록 돕습니다.
mastra-frontend
29k에이전트가 처음부터 스타일을 만들지 않고, Mastra 플레이그라운드 디자인 시스템의 기성 컴포넌트로 앱 화면을 만들도록 돕습니다.
pr-explainer
29k에이전트가 풀 리퀘스트를 리뷰어가 이해할 수 있도록 독립적인 HTML 페이지로 설명해 줍니다.
pr-splitter
29k에이전트가 크고 복잡한 풀 리퀘스트를 원본 작업을 안전하게 지키면서 더 작고 리뷰하기 쉬운 풀 리퀘스트로 나누도록 돕습니다.