Agent Skills7as0nch/mimo2codex › pr-review

pr-review

GitHub

用于系统性审查mimo2codex项目的GitHub Pull Request。通过获取PR详情与代码差异,从质量、安全、兼容性等维度评估合并价值,生成结构化反馈报告,并支持执行合并操作。

.mimocode/skills/pr-review/SKILL.md 7as0nch/mimo2codex

触发场景

用户分享GitHub PR链接 用户请求审查或评估PR是否值得合并

安装

npx skills add 7as0nch/mimo2codex --skill pr-review -g -y
更多选项

非标准路径

npx skills add https://github.com/7as0nch/mimo2codex/tree/main/.mimocode/skills/pr-review -g -y

不安装直接使用

npx skills use 7as0nch/mimo2codex@pr-review

指定 Agent (Claude Code)

npx skills add 7as0nch/mimo2codex --skill pr-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add 7as0nch/mimo2codex --all -g -y

预览 repo 内 skill

npx skills add 7as0nch/mimo2codex --list

SKILL.md

Frontmatter
{
    "name": "pr-review",
    "description": "Review GitHub pull requests for the mimo2codex project. Fetch PR details, analyze code changes, assess merge-worthiness, check for issues, and provide feedback. Use when the user shares a PR URL or asks to review a pull request."
}

PR Review Skill

Review GitHub pull requests systematically for the mimo2codex project.

When to use

Trigger this skill when:

  • User shares a GitHub PR URL (e.g., https://github.com/7as0nch/mimo2codex/pull/XX)
  • User asks "看看这个PR" / "review this PR" / "值得合并吗"
  • User wants to assess merge-worthiness of a contribution
  • User asks to check a PR for issues before merging

Workflow

1. Fetch PR Information

# Get PR details
gh pr view <PR_NUMBER> --json title,body,state,author,additions,deletions,changedFiles,mergeable,reviewDecision

# Get PR diff
gh pr diff <PR_NUMBER>

# Get PR comments/reviews
gh api repos/7as0nch/mimo2codex/pulls/<PR_NUMBER>/comments

2. Analyze Code Changes

Review the diff for:

  • Code quality: naming, structure, error handling
  • Security: credentials, injection, unsafe operations
  • Compatibility: breaking changes, API changes
  • Tests: adequate coverage, test quality
  • Documentation: README updates, comments

3. Assess Merge-Worthiness

Check:

  • Does it solve a real problem?
  • Is the approach sound?
  • Are there simpler alternatives?
  • Will it break existing functionality?
  • Does it follow project conventions?

4. Provide Feedback Structure

## PR #XX: [Title]

**Author**: @username
**Status**: [Open/Merged/Closed]
**Changes**: +XX / -XX lines across XX files

### Summary
[One-paragraph overview of what this PR does]

### Assessment
- **Merge-worthiness**: ✅ Recommended / ⚠️ Needs changes / ❌ Not recommended
- **Quality**: [High/Medium/Low]
- **Risk**: [Low/Medium/High]

### Strengths
- [Positive aspects]

### Issues Found
- [List any issues, concerns, or suggestions]

### Recommendation
[Clear recommendation with reasoning]

5. If Merging

When the user decides to merge:

  1. Preserve author's commit history
  2. Create a new branch if needed
  3. Merge to main with proper commit message
  4. Verify the merge didn't break anything

Example Usage

User: https://github.com/7as0nch/mimo2codex/pull/68 ,你看一下这个pr,值得合并不,有问题没,有的话怎么回复作者

Agent workflow:
1. gh pr view 68 --json title,body,state,author,additions,deletions,changedFiles,mergeable
2. gh pr diff 68
3. Analyze the changes
4. Provide structured assessment
5. If user wants to merge: preserve author commits, merge to main

Key Commands Reference

# View PR
gh pr view <NUMBER>

# Get PR diff
gh pr diff <NUMBER>

# List PR files
gh pr files <NUMBER>

# Check PR checks/status
gh pr checks <NUMBER>

# Merge PR (preserving author commits)
gh pr merge <NUMBER> --merge

# Or merge locally
git fetch origin pull/<NUMBER>/head:pr-<NUMBER>
git checkout pr-<NUMBER>
git checkout main
git merge pr-<NUMBER> --no-ff -m "Merge PR #<NUMBER>: <title>"

Don't Use This Skill For

  • General code review (not tied to a PR)
  • Issues (use issue-investigation skill instead)
  • Non-GitHub code review

版本历史

  • 5cb6f5c 当前 2026-07-24 12:23

同 Skill 集合

.mimocode/skills/codebase-analysis/SKILL.md
.mimocode/skills/issue-investigation/SKILL.md
.mimocode/skills/provider-config/SKILL.md

元信息

文件数
0
版本
5cb6f5c
Hash
3f1cfc36
收录时间
2026-07-24 12:23

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 20:21
浙ICP备14020137号-1 $访客地图$