一键导入
pr-review
Automated pull request review — fetch diffs, run checks, post structured comments, enforce quality gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automated pull request review — fetch diffs, run checks, post structured comments, enforce quality gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4) Establishing review and quality gates, (5) Managing async communication and artifact sharing between agents.
Look up any arxiv paper on alphaxiv.org to get a structured AI-generated overview
Socratic questioning protocol + user communication. MANDATORY for complex requests, new features, or unclear requirements. Includes progress reporting and error handling.
Lighthouse-style efficiency audit for OpenClaw. Scores your instance A+ to F across 6 categories (context injection, cron health, session bloat, config, skills, transcripts). Identifies wasted tokens, bloated sessions, misconfigured crons, and model right-sizing opportunities. Zero dependencies (Python stdlib only).
Make your AI agent learn and improve automatically. Reviews sessions, extracts learnings, updates memory files, and compounds knowledge over time. Set up nightly review loops that make your agent smarter every day.
A multi-agent deliberation hub with 3 core agents and extensible extended agents. Can call user workspace skills when needed.
| name | pr-review |
| description | Automated pull request review — fetch diffs, run checks, post structured comments, enforce quality gates. |
Automated PR review workflow. Fetches diffs, runs quality checks, posts structured comments.
# Get PR info
gh pr view 142 --json title,body,state,author,additions,deletions,files
# Get diff
gh pr diff 142 > pr-142.diff
# List changed files
gh pr diff 142 --name-only
# Get commits
gh pr view 142 --json commits --jq '.commits[].message'
# TypeScript type check
npx tsc --noEmit --strict $(gh pr diff 142 --name-only | grep '\.ts$')
# ESLint
npx eslint $(gh pr diff 142 --name-only | grep -E '\.(ts|tsx|js|jsx)$')
# Test changed files
npx vitest run --changed $(gh pr diff 142 --name-only)
gh pr comment 142 --body "
## Review Summary
### Changes
- Files: \`$(gh pr diff 142 --name-only | wc -l)\`
- Additions: +$(gh pr view 142 --json additions --jq '.[].additions')
- Deletions: -$(gh pr view 142 --json deletions --jq '.[].deletions')
### Quality Gate
| Check | Status |
|-------|--------|
| TypeScript | PASS |
| ESLint | PASS |
| Tests | PASS |
| Secrets scan | PASS |
### Feedback
- [Minor] Consider extracting the type guard in \`auth.ts:42\`
- [Suggestion] Add JSDoc to \`validateToken()\`
**LGTM** — ready to merge
"
# Auto-assign code owners
gh api repos/{owner}/{repo}/pulls/142/requested_reviewers \
-X POST \
-f reviewers='["username"]'
# Squash and merge (clean history)
gh pr merge 142 --squash --delete-branch
# Merge with commit
gh pr merge 142 --admin --delete-branch
# Rebase and merge
gh pr merge 142 --rebase --delete-branch
Add .github/pull_request_template.md:
## What does this PR do?
<!-- Describe your changes -->
## Testing
- [ ] Unit tests added/updated
- [ ] Tested locally
- [ ] Works on staging (if applicable)
## Checklist
- [ ] Commits follow conventional commits
- [ ] No console.log/debugger left
- [ ] Types are correct
- [ ] Documentation updated (if needed)
## Related Issues
Closes #
github-actions skill — CI/CD checksguardian skill — security scanningcode-review-graph skill — blast-radius analysis