Qodo pr resolver

From sbusso/claudeclaw · View interactive version

Qodo pr resolver is an AI agent skill from the GitHub repository sbusso/claudeclaw. Review and resolve PR issues with Qodo - get AI-powered code review issues and fix them interactively (GitHub, GitLab, Bitbucket, Azure DevOps)

How to use this skill

Skill file

Qodo PR Resolver

Fetch Qodo review issues for your current branch's PR/MR, fix them interactively or in batch, and reply to each inline comment with the decision. Supports GitHub, GitLab, Bitbucket, and Azure DevOps.

Prerequisites

Required Tools:

Installation and authentication details: See providers.md for provider-specific setup instructions.

Required Context:

Quick Check:

git --version                                    # Check git installed
git remote get-url origin                        # Identify git provider

See providers.md for provider-specific verification commands.

Understanding Qodo Reviews

Qodo (formerly Codium AI) is an AI-powered code review tool that analyzes PRs/MRs with compliance checks, bug detection, and code quality suggestions.

Bot Identifiers

Look for comments from: pr-agent-pro, pr-agent-pro-staging, qodo-merge[bot], qodo-ai[bot]

Review Comment Types

  1. PR Compliance Guide ๐Ÿ” - Security/ticket/custom compliance with ๐ŸŸข/๐ŸŸก/๐Ÿ”ด/โšช indicators
  2. PR Code Suggestions โœจ - Categorized improvements with importance ratings
  3. Code Review by Qodo - Structured issues with ๐Ÿž/๐Ÿ“˜/๐Ÿ“Ž sections and agent prompts (most detailed)

Instructions

When the user asks for a code review, to see Qodo issues, or fix Qodo comments:

Step 0: Check code push status

Check for uncommitted changes, unpushed commits, and get the current branch.

Scenario A: Uncommitted changes exist
Scenario B: Unpushed commits exist

(no uncommitted changes)

Scenario C: Everything pushed

(both uncommitted changes and unpushed commits are empty)

Step 1: Detect git provider

Detect git provider from the remote URL (git remote get-url origin).

See providers.md for provider detection patterns.

Step 2: Find the open PR/MR

Find the open PR/MR for this branch using the provider's CLI.

See providers.md ยง Find Open PR/MR for provider-specific commands.

Step 3: Get Qodo review comments

Get the Qodo review comments using the provider's CLI.

Qodo typically posts both a summary comment (PR-level, containing all issues) and inline review comments (one per issue, attached to specific lines of code). You must fetch both.

See providers.md ยง Fetch Review Comments for provider-specific commands.

Look for comments where the author is "qodo-merge[bot]", "pr-agent-pro", "pr-agent-pro-staging" or similar Qodo bot name.

Step 3a: Check if review is still in progress
Step 3b: Deduplicate issues

Deduplicate issues across summary and inline comments:

Step 4: Parse and display the issues

Severity mapping

Derive severity from Qodo's action level and position:

  1. Action level determines severity range:
  1. Qodo's position within each action level determines the specific severity:

Example: 7 "Action required" issues would be split as:

Example: 5 "Action required" + 3 "Review recommended" + 2 "Other" issues would be split as:

Action guidelines:

Output format

Display as a markdown table in Qodo's exact original ordering (do NOT reorder by severity - Qodo's order IS the severity ranking):

Qodo Issues for PR #123: [PR Title]

| # | Severity | Issue Title | Issue Details | Type | Action |
|---|----------|-------------|---------------|------|--------|
| 1 | ๐Ÿ”ด CRITICAL | Insecure authentication check | โ€ข **Location:** src/auth/service.py:42<br><br>โ€ข **Issue:** Authorization logic is inverted | ๐Ÿž Bug โ›จ Security | Fix |
| 2 | ๐Ÿ”ด CRITICAL | Missing input validation | โ€ข **Location:** src/api/handlers.py:156<br><br>โ€ข **Issue:** User input not sanitized before database query | ๐Ÿ“˜ Rule violation โ›ฏ Reliability | Fix |
| 3 | ๐ŸŸ  HIGH | Database query not awaited | โ€ข **Location:** src/db/repository.py:89<br><br>โ€ข **Issue:** Async call missing await keyword | ๐Ÿž Bug โœ“ Correctness | Fix |

Step 5: Ask user for fix preference

After displaying the table, ask the user how they want to proceed using AskUserQuestion:

Options:

Based on the user's choice:

Step 6: Review and fix issues (manual mode)

If "Review each issue" was selected:

1. Show a brief header with issue title and location

2. Show Qodo's agent prompt in full so the user can verify the fix matches it

3. Display current code snippet

4. Display proposed change as markdown diff

5. Immediately use AskUserQuestion with these options:

Important notes

Single-step approval with AskUserQuestion:

CRITICAL: Single validation only - do NOT show the diff separately and then ask. Combine the diff display and the question into ONE message. The user should see: brief context โ†’ current code โ†’ proposed diff โ†’ AskUserQuestion, all at once.

Example: Show location, Qodo's guidance, current code, proposed diff, then AskUserQuestion with options (โœ… Apply fix / โญ๏ธ Defer / ๐Ÿ”ง Modify). Wait for user choice, apply via Edit tool if approved.

Step 7: Auto-fix mode

If "Auto-fix all" was selected:

> โœ… Fixed: [Issue Title] at [Location]

> Agent prompt: [the Qodo agent prompt used]

Step 8: Post summary to PR/MR

REQUIRED: After all issues have been reviewed (fixed or deferred), ALWAYS post a comment summarizing the actions taken, even if all issues were deferred.

See providers.md ยง Post Summary Comment for provider-specific commands and summary format.

After posting the summary, resolve the Qodo review comment:

Find the Qodo "Code Review by Qodo" comment and mark it as resolved or react to acknowledge it.

See providers.md ยง Resolve Qodo Review Comment for provider-specific commands.

If resolve fails (comment not found, API error), continue โ€” the summary comment is the important part.

Step 9: Push to remote

If any fixes were applied (commits were created in Steps 6/7), ask the user if they want to push:

Important: If all issues were deferred, there are no commits to push โ€” skip this step.

Special cases

Unsupported git provider

If the remote URL doesn't match GitHub, GitLab, Bitbucket, or Azure DevOps, inform the user and exit.

See providers.md ยง Error Handling for details.

No PR/MR exists

IMPORTANT: Do NOT proceed without a PR/MR

No Qodo review yet

IMPORTANT: This skill only works with Qodo reviews, not manual reviews

Review in progress

If "Come back again in a few minutes" message is found, inform user to wait and try again, then exit.

Missing CLI tool

If the detected provider's CLI is not installed, provide installation instructions and exit.

See providers.md ยง Error Handling for provider-specific installation commands.

Inline reply commands

Used per-issue in Steps 6 and 7 to reply to Qodo's inline comments:

Use the inline comment ID preserved during deduplication (Step 3b) to reply directly to Qodo's comment.

See providers.md ยง Reply to Inline Comments for provider-specific commands and reply format.

Keep replies short (one line). If a reply fails, log it and continue.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.