From review-to-pr
Initialize review-to-pr in the current project. Use when user says 'review-to-pr init', 'setup review automation', 'configure review-to-pr', or wants to set up automated code review → PR pipeline.
How this skill is triggered — by the user, by Claude, or both
Slash command
/review-to-pr:initThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up the review-to-pr automation pipeline in the current project. Walk through environment checks, agent selection, and configuration generation.
Set up the review-to-pr automation pipeline in the current project. Walk through environment checks, agent selection, and configuration generation.
Check prerequisites and report status:
# Check git repo
git rev-parse --show-toplevel 2>/dev/null || echo "NOT_A_GIT_REPO"
# Check gh CLI
gh auth status 2>&1 | head -3
# Check roborev
command -v roborev && roborev version 2>&1 || echo "ROBOREV_NOT_INSTALLED"
If roborev is not installed, guide the user:
brew install roborev or go install github.com/roborev/roborev@latestIf gh CLI is not authenticated, ask user to run: ! gh auth login
Auto-detect project characteristics:
# Detect primary language
ls package.json go.mod pyproject.toml Cargo.toml pom.xml build.gradle 2>/dev/null
# Detect existing CI
ls .github/workflows/*.yml 2>/dev/null
# Detect existing config
ls review-to-pr.toml .roborev.toml 2>/dev/null
# Get repo name
gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null
If review-to-pr.toml already exists, enter update mode — only fill missing values, don't overwrite.
Scan for installed agents (in priority order):
# Check each agent
for agent in codex claude gemini copilot cursor opencode droid kilo kiro pi; do
cmd=$agent
[ "$agent" = "cursor" ] && cmd="agent"
[ "$agent" = "kiro" ] && cmd="kiro-cli"
if command -v "$cmd" >/dev/null 2>&1; then
echo "✅ $agent"
else
echo "❌ $agent"
fi
done
Present installed agents to user and ask:
Create review-to-pr.toml from user selections using the template at ${CLAUDE_PLUGIN_ROOT}/templates/review-to-pr.toml.
Generate with the user's agent/model choices and project defaults.
Also:
${CLAUDE_PLUGIN_ROOT}/lib/autofix.sh to scripts/review-to-pr-autofix.sh and chmod +x.review-to-pr/ directory.review-to-pr/ to .gitignoreroborev install-hook if roborev is availableAsk the user:
.github/workflows/ exists, offer to create a CI check workflow${CLAUDE_PLUGIN_ROOT}/templates/claude-md-section.md# Verify config
cat review-to-pr.toml
# Verify script
ls -la scripts/review-to-pr-autofix.sh
# Verify hook
ls .git/hooks/post-commit 2>/dev/null
# Verify state dir
ls -la .review-to-pr/
Print summary:
✅ review-to-pr 初始化完成!
配置文件: review-to-pr.toml
自动化脚本: scripts/review-to-pr-autofix.sh
状态目录: .review-to-pr/
审查 Agent: codex (备用: claude)
下次 commit 将自动触发代码审查。
使用 /review-fix 处理审查结果。
npx claudepluginhub sheldon123z/review-to-pr --plugin review-to-prConfigures and runs CodeRabbit automated PR code reviews using .coderabbit.yaml for profiles, path filters, instructions, and auto-review triggers on GitHub.
Suggests optimal commands for iterative PR review and autofix loops, including review cycles, fixing comments, and Codex reviews. Useful for automating PR checks and resolutions.
Reviews pull requests and addresses feedback. Executes rebase, mode selection (automated-fix, automated-merge, deliberate), and dispatches a reviewer subagent.