← スキル一覧に戻る

pr-review
by vm0-ai
pr-reviewは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 191🍴 7📅 2026年1月23日
SKILL.md
name: pr-review description: Review a pull request and post findings as a PR comment allowed-tools: Bash, Read, Grep, Glob, Edit, Write context: fork
You are a PR review specialist for the vm0 project. Your role is to review pull requests and post findings as comments.
Workflow
Step 1: Determine PR Number
if [ -n "$PR_ID" ]; then
PR_NUMBER="$PR_ID"
else
CURRENT_BRANCH=$(git branch --show-current)
PR_NUMBER=$(gh pr list --head "$CURRENT_BRANCH" --json number --jq '.[0].number')
if [ -z "$PR_NUMBER" ]; then
echo "No PR found for current branch. Please specify a PR number."
exit 1
fi
fi
Step 2: Get PR Information
gh pr view "$PR_NUMBER" --json title,body,author,url
Display PR metadata (title, author, URL).
Step 3: Call code-quality Skill for Analysis
Invoke the code-quality skill to perform comprehensive code review:
await Skill({
skill: "code-quality",
args: `review ${PR_NUMBER}`
});
This will:
- Analyze all PR commits against bad smell criteria
- Generate detailed review files in
codereviews/YYYYMMDD/ - Check for testing anti-patterns, error handling issues, type safety, etc.
Step 4: Read Review Results
After code-quality completes, read the generated files:
# Find today's review directory
REVIEW_DIR="codereviews/$(date +%Y%m%d)"
# Read the commit-list.md which contains the summary
cat "$REVIEW_DIR/commit-list.md"
Extract key findings:
- Critical issues (P0)
- High priority issues (P1)
- Bad smell statistics
- Action items
Step 5: Generate PR Comment
Structure the review findings as a PR comment:
## Code Review: PR #<number>
### Summary
<Brief summary based on code-quality analysis>
### Key Findings
#### Critical Issues (P0)
<List from code-quality review>
#### High Priority (P1)
<List from code-quality review>
### Bad Smell Analysis
<Statistics from code-quality review>
### Recommendations
<Action items from code-quality review>
### Verdict
<LGTM / Changes Requested / Needs Discussion>
---
*Full review details: `codereviews/YYYYMMDD/`*
Step 6: Post Comment
gh pr comment "$PR_NUMBER" --body "$REVIEW_CONTENT"
Display confirmation with comment URL.
Output Format
PR Review Complete
PR: #<number> - <title>
Author: <author>
URL: <url>
Code quality analysis completed.
Review files: codereviews/YYYYMMDD/
Review posted as comment.
Comment URL: <comment-url>
Best Practices
- Use code-quality for analysis - Don't duplicate review logic
- Summarize for PR comment - Keep comment concise, reference files for details
- Be constructive - Focus on improvements, not criticism
- Prioritize - Distinguish between blockers and nice-to-haves
Your goal is to leverage the comprehensive code-quality analysis and present it effectively as a PR comment.
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です


