Agent Skills › stella/stella › rabbit-round

rabbit-round

GitHub

自动处理来自各类AI代码审查机器人的PR评论,通过捕获状态、分类建议并执行接受或反驳操作,实现自动化代码审查闭环。

.agents/skills/rabbit-round/SKILL.md stella/stella

Trigger Scenarios

收到AI机器人提交的PR评论 需要批量处理代码审查反馈

Install

npx skills add stella/stella --skill rabbit-round -g -y
More Options

Non-standard path

npx skills add https://github.com/stella/stella/tree/main/.agents/skills/rabbit-round -g -y

Use without installing

npx skills use stella/stella@rabbit-round

指定 Agent (Claude Code)

npx skills add stella/stella --skill rabbit-round -a claude-code -g -y

安装 repo 全部 skill

npx skills add stella/stella --all -g -y

预览 repo 内 skill

npx skills add stella/stella --list

SKILL.md

Frontmatter
{
    "name": "rabbit-round",
    "description": "Process one evidence-backed round of automated pull-request review comments from CodeRabbit, Gemini, Copilot, Devin, Greptile, and similar bots."
}

Rabbit Round

Process one round of automated review feedback. Use /finish-pr when the user wants repeated monitoring until a pull request converges. Never request an automated review; handle the threads that arrive on their own.

1. Capture the Review State

Resolve the repository, PR, current head SHA, requester identity, draft state, and applicable comment-attribution rules. Fail visibly if the PR cannot be identified.

Pin every GitHub query and mutation to the resolved full owner/name repository and PR number; never rely on the checkout's implicit repository or branch. Require each fetched PR's repository identity, number, and headRefOid to match the captured identity. Before replying to or resolving feedback, refetch that exact PR and stop if its head changed; results from one head never authorize a mutation on another.

Fetch paginated review threads through GitHub GraphQL so unresolved state and thread replies are preserved. Fetch top-level issue comments separately. Record every participant and reply author in a thread, which comments apply to the current head, and which are stale. Classify participants from a fresh fetch. Record a receipt for every workflow reply and retain those receipts across resume or handoff. A review-thread reply receipt contains the returned review-comment node ID and exact content; a top-level reply receipt contains the returned issue-comment node ID and exact content. On later fetches, exclude a reply only when its surface, node ID, and content exactly match the corresponding receipt; never infer an exclusion from the requester account or an attribution footer. All remaining participants must be confirmed allowed bots; a human, mixed, or uncertain thread follows the human-thread rules.

Do not rely only on the REST review-comments list: it does not represent thread resolution or the complete conversation reliably.

2. Triage Every Actionable Bot Finding

Classify each unresolved bot review thread and each actionable top-level bot comment:

  • Accept: correct and improves safety, behavior, tests, or maintainability.
  • Accept with adjustment: the concern is valid but the proposed fix conflicts with repository structure or a stronger invariant.
  • Already addressed: current code or a pushed commit demonstrably resolves it.
  • Push back: incorrect, stale, speculative, or contrary to documented constraints.
  • Defer: accepted, but landing in a named follow-up PR because the enclosing workflow's review budget is spent. Only with the follow-up PR's URL, and every defer in one run names the same PR. Never for a verified release-blocking defect (security, authorization, data loss, corruption): those are fixed on the current head.

Read the cited code and applicable instructions before deciding. Treat security, authorization, data loss, and compatibility claims as hypotheses to verify, not as votes to accept automatically. Never modify or resolve human review threads.

3. Implement Before Replying

Apply accepted changes, including tests when they cover a real failure mode. Run focused checks while iterating and the repository's canonical affected-change or CI-equivalent verification before publication when practical.

Commit and push the implementation before saying it is fixed. Push a new branch normally; use --force-with-lease only after intentionally rebasing a published branch. Capture the resulting head SHA. A newly published head cannot be clean in the same pass, even when GitHub has not registered checks or reviewers yet; classify it using the Section 5 precedence.

4. Reply With Verifiable Evidence

Reply in the review thread or top-level issue conversation for each handled bot finding. Keep responses short and factual:

  • implemented in <sha> with the relevant behavior
  • implemented with an adjustment and why
  • already addressed, with the code or commit that proves it
  • not changing, with a concrete repository constraint or technical reason
  • deferred to a named follow-up PR, with its URL

Follow repository attribution rules for GitHub comments. Do not claim a check passed unless it ran successfully on the reported head.

After replying, refetch each candidate thread before resolving it. Exclude only exact workflow reply receipts, then require every remaining participant to be a confirmed allowed bot. Triage any new bot finding before resolving; any human, unknown, mixed-participant, or uncertain arrival leaves the thread open. Resolve only when the finding is implemented, already addressed, answered with supported pushback, or deferred to a named follow-up PR. Top-level comments have no thread-resolution state: a reply naming the follow-up PR is the whole disposition there. Do not minimize bot summaries by default.

5. Recheck the Current Head

Refresh the PR after the push and report one status. Apply this precedence: failing_ci > needs_changes > pending_bots > clean.

  • failing_ci: a current-head required check is known to have failed, regardless of pending reviewers, actionable feedback, or a push in this round
  • needs_changes: no required check is known to have failed, but actionable automated feedback remains
  • pending_bots: no required check is known to have failed and no actionable automated feedback remains, but this round pushed the current head or a current-head automated review or required check is still running
  • clean: all current-head automated reviewers are terminal, required checks are green, and no actionable automated finding remains in a review thread or top-level comment. A top-level finding answered with a defer reply carrying the follow-up PR's URL is no longer actionable on later rounds, unless it names a verified release-blocking defect: no defer makes one of those non-actionable, and the status stays needs_changes until it is fixed on the current head

Preserve the PR's explicit draft state. This skill performs one pass; it does not schedule polling, merge, deploy, or bypass protections.

Version History

  • e41bf51 Current 2026-09-22 09:02

    新增验证提交头部一致性及保留对话回执的逻辑,增强对混合线程和 stale 评论的处理能力。

  • 7b52e43 2026-09-09 03:27

    新增对安全等严重缺陷禁止延期的限制,完善延期逻辑及分支解析规则。

  • dd81665 2026-08-16 07:09

    优化工作流以收紧自动化审查收敛逻辑,改进技能隔离与开发工具链。

  • 85792bd 2026-07-24 16:11

Same Skill Collection

.agents/skills/click-around/SKILL.md
.agents/skills/conventions-ai/SKILL.md
.agents/skills/conventions-db/SKILL.md
.agents/skills/conventions-i18n/SKILL.md
.agents/skills/conventions-ingestion/SKILL.md
.agents/skills/conventions-mcp/SKILL.md
.agents/skills/conventions-perf/SKILL.md
.agents/skills/conventions-scale/SKILL.md
.agents/skills/conventions-security/SKILL.md
.agents/skills/conventions-use-effect/SKILL.md
.agents/skills/conventions-ux/SKILL.md
.agents/skills/dev/SKILL.md
.agents/skills/finish-pr/SKILL.md
.agents/skills/new-handler/SKILL.md
.agents/skills/open-pr/SKILL.md
.agents/skills/plan/SKILL.md
.agents/skills/product-deep-think/SKILL.md
.agents/skills/product-think/SKILL.md
.agents/skills/regression-hunt/SKILL.md
.agents/skills/security-audit/SKILL.md
.agents/skills/update-deps/SKILL.md
.ai/local-skills/click-around/SKILL.md
.ai/local-skills/conventions-ai/SKILL.md
.ai/local-skills/conventions-db/SKILL.md
.ai/local-skills/conventions-i18n/SKILL.md
.ai/local-skills/conventions-ingestion/SKILL.md
.ai/local-skills/conventions-mcp/SKILL.md
.ai/local-skills/conventions-perf/SKILL.md
.ai/local-skills/conventions-scale/SKILL.md
.ai/local-skills/conventions-security/SKILL.md
.ai/local-skills/conventions-use-effect/SKILL.md
.ai/local-skills/conventions-ux/SKILL.md
.ai/local-skills/dev/SKILL.md
.ai/local-skills/new-handler/SKILL.md
.ai/local-skills/open-pr/SKILL.md
.ai/local-skills/plan/SKILL.md
.ai/local-skills/product-deep-think/SKILL.md
.ai/local-skills/rabbit-round/SKILL.md
.ai/local-skills/security-audit/SKILL.md
.ai/local-skills/update-deps/SKILL.md
.claude/skills/conventions-ai/SKILL.md
.claude/skills/conventions-db/SKILL.md
.claude/skills/conventions-i18n/SKILL.md
.claude/skills/conventions-ingestion/SKILL.md
.claude/skills/conventions-mcp/SKILL.md
.claude/skills/conventions-perf/SKILL.md
.claude/skills/conventions-scale/SKILL.md
.claude/skills/conventions-security/SKILL.md
.claude/skills/conventions-use-effect/SKILL.md

Metadata

Files
0
Version
d37ba69
Hash
94535b67
Indexed
2026-07-24 16:11

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 01:36
浙ICP备14020137号-1