بنقرة واحدة
spec-review
Iterate on CodeRabbit spec PR reviews until convergence, then label ready-to-build
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Iterate on CodeRabbit spec PR reviews until convergence, then label ready-to-build
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | spec-review |
| description | Iterate on CodeRabbit spec PR reviews until convergence, then label ready-to-build |
Automate the spec review cycle for open spec PRs. Fetch CodeRabbit findings, fix issues, iterate until convergence, and label PRs ready-to-build.
If PR numbers were provided as arguments, use those. Otherwise, find all open PRs matching spec/* branches:
gh pr list --state open --head "spec/" --json number,headRefName,title,labels,updatedAt
If no spec PRs are found, report that and stop.
For each spec PR, gather:
ready-to-build is already applied# Get PR reviews
gh pr view <number> --json reviews,comments,labels,headRefName
# Get inline review comments with file paths
gh api repos/{owner}/{repo}/pulls/<number>/comments --jq '.[] | {path: .path, body: .body, line: .line, created_at: .created_at, in_reply_to_id: .in_reply_to_id}'
Display a summary table showing the status of each spec PR:
| PR | Branch | Title | Actionable | Last Review | Status |
|---|---|---|---|---|---|
| #42 | spec/add-alerts | Add alert providers | 3 | 2h ago | Needs fixes |
| #43 | spec/update-drift | Update drift detection | 0 | 1h ago | Converged |
For PRs with actionable findings, offer to dispatch worktree-isolated agents (one per PR) to:
Use the Agent tool with isolation: "worktree" to prevent cross-PR conflicts.
After fixes are pushed, CodeRabbit will automatically re-review. Wait ~5 minutes for the review. If no review appears, suggest triggering manually:
gh pr comment <number> --body "@coderabbitai review"
Re-run the assessment (step 2) after each fix round. Continue until:
ready-to-buildWhen a PR converges, apply the label:
gh pr edit <number> --add-label "ready-to-build"
Report final status for all PRs.
A spec PR is converged when ANY of:
CodeRabbit may rate-limit reviews on rapid successive pushes. If a review doesn't appear within ~5 minutes after a push:
@coderabbitai review as a PR comment# Review all open spec PRs
/spec-review
# Review specific PRs
/spec-review 42 43
# Review a single PR
/spec-review 42