搜索

PythonReactSEOPDF
GitHub Skill

coderabbit-workflow

Use when the user asks to address, fix, or handle CodeRabbit review feedback on GitHub Pull Requests. Delegates to the specialized coderabbit-fixer sub-agent to fetch new comments, apply fixes, run tests, and push only if tests pass.

CodexForgeBR☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

CodeRabbit Workflow Skill

This skill provides automated handling of CodeRabbit review cycles on GitHub Pull Requests.

When This Skill Activates

Use this skill when you detect the user wants to address CodeRabbit feedback. Common trigger phrases:

  • "Address issues raised by coderabbit on PR #123"
  • "Fix coderabbit comments on pull request 456"
  • "Handle latest coderabbit feedback for PR #789"
  • "Apply coderabbit suggestions from PR #42"
  • "Address latest coderabbit review on PR #123"

Key indicators:

  1. Mentions "coderabbit" or "code rabbit"
  2. References a PR/pull request number
  3. Indicates action: address, fix, handle, apply, resolve

What This Skill Does

When activated, immediately delegate to the coderabbit-fixer sub-agent by using the Task tool:

Use the Task tool with:
- subagent_type: "coderabbit-fixer"
- description: "Fix CodeRabbit feedback on PR #<NUMBER>"
- prompt: "Address CodeRabbit feedback on pull request #<NUMBER>. Fetch comments created after the last commit, apply fixes, run tests, and push only if all tests pass."

Why Delegate to Sub-agent?

The coderabbit-fixer sub-agent is specialized for this workflow and will:

  1. Extract the PR number
  2. Get the last commit timestamp
  3. Fetch only NEW CodeRabbit comments (since last commit)
  4. Apply fixes systematically
  5. Run full test suite
  6. Only push if tests pass ✅
  7. Create detailed GitHub comment tagging @coderabbitai

User Experience

Before this skill:

User: "Address coderabbit issues on PR #123"
Claude: [Asks clarifying questions, manually runs commands, may forget steps]

With this skill:

User: "Address coderabbit issues on PR #123"
Skill: [Auto-activates]
Sub-agent: [Fetches comments, applies fixes, runs tests, pushes, comments]
Result: ✅ Done automatically with safety checks

Safety Features

The coderabbit-fixer sub-agent includes critical safety checks:

  • Never pushes failing tests - Stops and reports if any test fails
  • Filters out old comments - Only processes feedback from latest review
  • Detailed GitHub comments - Provides transparency on what was fixed
  • Respects project patterns - Follows BCL conventions and standards

Supporting Files

This skill directory includes:

  • SKILL.md (this file) - Skill definition and activation logic
  • README.md - Detailed workflow documentation
  • examples/ - Example interactions and use cases

Configuration

No configuration required. The skill uses:

  • Script: get-coderabbit-comments-with-timestamps.sh (must be in PATH or ~/source/cli-tools/bin/)
  • Sub-agent: coderabbit-fixer (must exist in ~/.claude/agents/)
  • GitHub CLI: gh (must be authenticated)

Troubleshooting

If the skill doesn't activate:

  1. Check that the user's message includes both "coderabbit" and a PR number
  2. Ensure the coderabbit-fixer sub-agent exists
  3. Verify the script is executable and in PATH

If tests fail:

  • The sub-agent will NOT push changes
  • Review test failures and fix them manually, or ask the user for guidance

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!