Skip to content

Add new isolated subagent for processing CodeRabbit AI review comments with interactive workflow, severity classification, and verified PR commenting. - #2

Merged
ether-moon merged 7 commits into
mainfrom
coderabbit-review-skill
Nov 11, 2025
Merged

Add new isolated subagent for processing CodeRabbit AI review comments with interactive workflow, severity classification, and verified PR commenting.#2
ether-moon merged 7 commits into
mainfrom
coderabbit-review-skill

Conversation

@ether-moon

@ether-moon ether-moon commented Nov 11, 2025

Copy link
Copy Markdown
Owner

Features

  • Interactive severity-based workflow (CRITICAL/MAJOR/MINOR)
  • Pagination support for 200+ GitHub comments
  • Language-aware user communication with detection logic
  • Triple verification system for PR comment posting
  • Context isolation to prevent main session bloat

Implementation

  • New agents/ directory architecture
  • Agent registration in plugin.json
  • Slash command: /skill-set:coderabbit-feedback
  • Comprehensive workflow documentation in AGENTS.md

Summary by CodeRabbit

  • New Features

    • Added CodeRabbit feedback processor for managing AI review comments with severity-based classification and interactive change application workflow, including PR verification steps.
  • Documentation

    • Enhanced documentation with language handling guidance, multilingual support patterns, and Anthropic best practices for development workflows.

- Converts agent-based CodeRabbit review workflow to reusable skill
- Automatic severity classification (CRITICAL/MAJOR/MINOR)
- Auto-applies CRITICAL/MAJOR, reports MINOR only
- Mandatory 3-phase workflow: analyze → apply → complete
- Includes slash command /review-coderabbit
- Korean output for all user-facing text
- Guaranteed workflow completion (no orphaned changes)
Major improvements:
1. Pagination: Support up to 200 comments with GraphQL/REST API pagination
2. Interactive mode: Conversational workflow with user decisions at each step
3. MINOR analysis: Classify as recommended/optional/unnecessary with rationale
4. PR comment verification: Triple-check system with retry logic
5. Enhanced UX: Show code diffs, allow editing, confirm before applying

Workflow changes:
- Phase 1: Auto (collect/classify)
- Phase 2: Interactive (discuss CRITICAL/MAJOR, analyze MINOR with rationale)
- Phase 3: Auto (apply, commit, verify PR comment)

User benefits:
- Control over what gets applied
- Understand WHY suggestions are classified
- Edit PR comment before posting
- Confidence through verification
- Add language detection logic (user messages > project context > git history > default English)
- Convert all Korean templates to English with [In user's language] markers
- Language applies to: messages, PR comments, reports, errors
- Code/bash/paths always stay in English
- Support any language based on conversation context
- Add language detection priority order
- Define what content should be translated vs kept in English
- Provide template patterns with [In user's language] markers
- Include implementation examples
- Explain why language handling matters for global usage
- All repository content must be in English by default
- Includes: documentation, code comments, commits, PRs, issues
- Exception: Runtime user-facing output adapts to user language
- Clarifies distinction between repository language and runtime language
- Rename skill directory: reviewing-coderabbit-feedback → coderabbit-feedback
- Update skill name in SKILL.md frontmatter
- Rename command: review-coderabbit.md → coderabbit-feedback.md
- Update AGENTS.md to list new skill name
- Shorter, clearer naming convention
Convert the CodeRabbit feedback processing tool from a skill to an
isolated subagent for better context management:

- Move SKILL.md → agents/coderabbit-feedback.md
- Register agent in plugin.json with description
- Update slash command to use Task tool for agent invocation
- Update AGENTS.md to reflect new agent architecture
- Add agents/ directory to project structure

This change provides context isolation for the complex CodeRabbit
review workflow, which can involve processing 200+ comments and
extensive user interaction.
@coderabbitai

coderabbitai Bot commented Nov 11, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

The changes introduce a new CodeRabbit feedback agent workflow with supporting documentation, extend the plugin configuration to register the agent, and enhance AGENTS.md with language handling guidance and Anthropic best practices. The feedback agent processes AI review comments through multi-phase classification, discussion, and application steps.

Changes

Cohort / File(s) Summary
Documentation & Guidance
AGENTS.md
Renamed "Current Skills" to "Current Tools"; added coderabbit-feedback agent entry; reorganized project structure references; introduced "Language Handling in Skills" section with multilingual runtime detection policy; expanded resources section with quality checklists; added Anthropic best practices guidance.
Plugin Configuration
skill-set/.claude-plugin/plugin.json
Added new top-level agents field containing entry for ./agents/coderabbit-feedback.md.
New Agent Workflow
skill-set/agents/coderabbit-feedback.md
New file defining multi-phase CodeRabbit feedback workflow: Phase 1 (collection and classification of unresolved comments by severity), Phase 2 (interactive discussion and user-driven item selection), Phase 3 (application, verification, and PR comment posting with resolve tag).
New Command
skill-set/commands/coderabbit-feedback.md
New command file with front matter and instruction to invoke the coderabbit-feedback agent for processing current PR feedback.

Sequence Diagram

sequenceDiagram
    actor User
    participant Agent as CodeRabbit Feedback<br/>Agent
    participant PR as PR / Git
    participant API as CodeRabbit API

    User->>Agent: Trigger coderabbit-feedback command
    Agent->>API: Fetch unresolved CodeRabbit comments
    API-->>Agent: Return comments with metadata
    Agent->>Agent: Classify by severity<br/>(CRITICAL/MAJOR/MINOR)
    Agent->>User: Present summary & options
    User->>Agent: Select changes to apply<br/>(all or individual review)
    Agent->>Agent: Apply selected changes
    Agent->>PR: Commit & push changes
    Agent->>PR: Post PR comment with<br/>@coderabbitai resolve tag
    Agent->>Agent: Verify comment posted &<br/>contains resolve tag
    Agent-->>User: Workflow complete
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • AGENTS.md: Extensive documentation updates across multiple sections (language handling, best practices, restructuring) require careful review for accuracy and clarity, though changes are primarily additive.
  • coderabbit-feedback.md (agent): Complex multi-phase workflow with detailed state management, verification steps, and user interaction patterns requires validation of logic flow and completeness.
  • plugin.json & command file: Configuration and command registration are straightforward but should be verified for correct path references and integration.

Poem

🐰 A fluffy feedback whisker-izer hops in sight,
With phases tri-folded to make PR comments bright,
From CRITICAL to MINOR, each classified with care,
CodeRabbit reviews now get a helpful affair,
Resolve tags and verities—no stone left bare! 🌟

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch coderabbit-review-skill

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5e939d1 and 6875dc1.

📒 Files selected for processing (4)
  • AGENTS.md (2 hunks)
  • skill-set/.claude-plugin/plugin.json (1 hunks)
  • skill-set/agents/coderabbit-feedback.md (1 hunks)
  • skill-set/commands/coderabbit-feedback.md (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ether-moon
ether-moon merged commit 047dc81 into main Nov 11, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant