Use when the user wants to review Qodo PR feedback or fix code review comments. Capabilities: view issues by severity, apply fixes interactively or in batch, reply to inline comments, post fix summaries (GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit)
71
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
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, Azure DevOps, and Gerrit.
gh (GitHub), glab (GitLab), curl (Bitbucket/Gerrit), or az (Azure DevOps)Installation and authentication details: See providers.md for provider-specific setup instructions.
git --version # Check git installed
git remote get-url origin # Identify git providerSee providers.md for provider-specific verification commands.
Qodo (formerly Codium AI) is an AI-powered code review tool that analyzes PRs/MRs with compliance checks, bug detection, and code quality suggestions.
Look for comments from: pr-agent-pro, pr-agent-pro-staging, qodo-merge[bot], qodo-ai[bot]
When the user asks for a code review, to see Qodo issues, or fix Qodo comments:
Check for uncommitted changes, unpushed commits, and get the current branch.
Note: Only consider tracked files when checking for uncommitted changes. Untracked files (scripts, local configs, etc.) that are not part of the repository should be ignored. Use git diff --name-only and git diff --cached --name-only rather than git status --porcelain which includes untracked files.
(no uncommitted changes)
git push, inform "Pushed! Qodo will review shortly." Record internally JUST_PUSHED = true. Continue to Step 1 (the Wait for Qodo review flow in Step 3a will handle the waiting).(both uncommitted changes and unpushed commits are empty)
Detect git provider from the remote URL (git remote get-url origin).
See providers.md for provider detection patterns. For Gerrit, also check for .gitreview file, port 29418 in remote URL, or googlesource.com — see gerrit.md.
Find the open PR/MR for this branch using the provider's CLI.
See providers.md § Find Open PR/MR for provider-specific commands. For Gerrit, look up the change using the Change-Id from the HEAD commit message — see gerrit.md § Find Open Change.
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.
Gerrit note: Qodo posts as tagged human comments via /comments with tag: "autogenerated:qodo". Also check change messages (/messages) for the summary comment. Filter by tag field or bot username. See gerrit.md § Fetch Review Comments.
Check if the Qodo review is complete:
If the review is not ready (in progress, not started, or we just pushed/created a PR):
description: "Waiting for Qodo review on PR #"timeout_ms: 600000 (10 minutes)persistent: falsecommand: A polling script that runs in a while true; do ... sleep 30; done loop. The script should use the same provider-specific comment-fetch commands from Step 3 (Fetch Review Comments) to check for Qodo bot comments. If Qodo comments are found AND they do not contain "Come back again in a few minutes" or "An AI review agent is analysing this pull request", output REVIEW_COMPLETE and exit. Use || true on API calls for transient failure resilience.REVIEW_COMPLETE: Inform "Qodo review is ready!" and return to Step 3 to fetch and parse the review comments normally.If the review is ready (Qodo comments found, no "in progress" markers): Proceed directly to Step 3b.
Deduplicate issues across summary and inline comments:
Gerrit deduplication: Qodo inline comments contain an Agent Prompt section (rendered as plain text — Gerrit doesn't support expandable blocks) with detailed fix instructions. When deduplicating, preserve the Agent Prompt from each unique finding.
Qodo re-reviews on every push, so the same code can be flagged across rounds — sometimes with the opposite suggestion of a fix you already applied. Without memory of prior rounds, the resolver flip-flops and the PR never converges. Prevent this by reading your own trail before deciding anything.
First, finalize activation — uniformly for every provider, from the Step 3 comments (no git, no commit metadata):
Generated by Qodo PR Resolver skill. Only this skill writes that marker, so human fix: commits and Qodo's own review comments are invisible to detection.PRIOR_RESOLVER_PASS = true iff at least one such summary exists on this PR; otherwise false (first run — guard dormant, treat every issue as untagged).## Qodo Fix Summary — Round N. Prior round = max(highest N parsed from those headings, count of marker-bearing summaries) (the count floors it if a heading didn't parse; match the heading anywhere in the body, since Gerrit prepends a Patch Set N: line). This round = prior round + 1; first pass = round 1. Use this N in the Step 8 heading.When PRIOR_RESOLVER_PASS = true, build a decision ledger keyed by file + issue title — a stable identity that survives a prior fix shifting line numbers. (The raised line is recorded too, but only to disambiguate multiple same-title findings in one file — never as the primary match key.) Build it from your prior-round records (no new endpoints — reuse the Step 3 comment-fetch commands):
✅ **Fixed** — … / ⏭️ **Deferred** — …) on each thread.Then tag each issue parsed in Step 4 by looking it up in the ledger by its file + title key (use the recorded line only to pick the nearest match when one file has several same-title entries):
file + title matches a ledger entry already fixed in a prior round and is resurfacing.file + title, the new suggestion would reverse a prior applied fix, or re-raises something the user deliberately deferred. This is the oscillation signal.If no prior summary exists (first round), treat all issues as untagged. If the comment fetch fails, say so — do not silently behave as if there is no prior round.
See convergence.md for ledger fields, detection heuristics, and the exact behavior/replies for tagged issues.
Qodo's Git review already classifies every issue. Read these values directly from the comment markup — never compute, rank, or guess them:
Bucket (severity banner) — Qodo groups issues under a banner rendered as a shields.io badge image, e.g. <img src="https://img.shields.io/badge/Action_required-634FD1?style=flat-square" alt="Action required">. The label GitHub actually displays is the URL slug — the text between /badge/ and the color code — with underscores turned into spaces. Take the label from there, not from alt: the two can differ (slug Review_recommended renders as "Review recommended", while alt="Remediation recommended" is only invisible fallback), and the slug is what the user sees, so using it keeps the terminal consistent with the GitHub review. Banners observed, high→low: Action required, Review recommended, Optional. When a bucket has no findings, Qodo may instead print a plain-text banner such as Great, no actions required — surface it verbatim. Treat this as an open set: render whatever label Qodo uses; do not map it onto a fixed list.
Type tag(s) + sub-category — on each issue's summary line the title comes first, followed by <code>-wrapped tags, e.g. 1. Insecure auth check <code>🐞 Bug</code> <code>⛨ Security</code>. Preserve each <code> tag verbatim with its emoji/symbol: the type (e.g. 🐞 Bug, 📘 Rule violation, 📎 Requirement gap, 🔗 Cross-repo conflict, 🧑 Team insight, 📜 Skill insight) and the sub-category symbol (e.g. ≡ Correctness, ✧ Quality, ☼ Reliability, ⚙ Maintainability, ⛨ Security, …). Both sets are open — read new ones literally. Ignore status tags that may also sit on the title line as <code>: <code>✓ Resolved</code> (title is struck through — already fixed) and <code>⭐ New</code> (a novelty marker — not a relevance rating).
Relevance stars — only some reviews include them, inside a separate <summary>Relevance</summary> section as inline code like `⭐⭐ Medium` (⭐⭐⭐ High / ⭐⭐ Medium / ⭐ Low). Many reviews (e.g. open-source deployments) omit relevance entirely — if there is no Relevance section, the issue simply has no stars.
Do NOT invent a severity. There is no CRITICAL/HIGH/MEDIUM/LOW and no 🔴/🟠/🟡/⚪ derivation — Qodo's banner is the severity signal. Qodo changes types, symbols, and banner labels over time and across environments, so always follow by reading the current values literally; never maintain a parallel taxonomy here.
Missing data: if an issue has no stars, no type tag, or no sub-category, omit that field for that issue — never fabricate one.
Ordering & action defaulting — derive both from Qodo's own signals, never from a hardcoded list of label strings:
Fix for every bucket, except a bucket whose banner label signals low priority — a case-insensitive match on optional, advisory, informational, or no action(s) → default Defer. An unrecognized label defaults to Fix (surface it rather than hide it).Action required / Review recommended / Optional) are examples, not a fixed set — do not special-case them beyond the low-priority keyword rule above.IMPORTANT — terminal-safe rendering:
🐞, 📘, ⛨, ⚙, ⭐), NOT GitHub-style shortcodes (:beetle:, :books:, :shield:, :star:) — shortcodes don't render in a terminal. or any HTML entities, and do not use runs of multiple spaces to align columns — Markdown collapses runs of spaces and prints literally in a terminal. Separate fields on the title line with a middot ·, put the title after an em-dash —, and place Location/Action on their own indented - bullet lines.Group issues under Qodo's own bucket headers, preserving Qodo's original order within each bucket. For each issue, put the type tag(s), relevance stars, and the verbatim title on one line, then Location and Action as indented bullets beneath. Only render buckets that contain issues, and omit any field Qodo didn't provide (don't fabricate).
For any issue tagged in Step 3c, prefix its Action line with the tag (🔁 Repeat — or ⚠️ Contradiction — ) so the user sees which findings are resurfacing or flip-flopping.
Dedicated oscillation section. If any issue is tagged ⚠️ Contradiction (or 🔁 Repeat whose file + title ledger entry previously flipped direction), render a section above the main issue list grouping every such candidate, headed by the exact warning:
⚠️ Possible oscillation — Qodo is suggesting the opposite of a prior resolver action at this location.
List each candidate with its file:line, the prior decision + round number, and the new contradicting suggestion. These issues also appear in the main list (with their tag prefix).
Qodo Issues for PR #123: [PR Title]
━━ Action required ━━
1. 🐞 Bug · ⛨ Security · ⭐⭐⭐ — Insecure authentication check
- Location: src/auth/service.py:42
- Action: Fix
━━ Review recommended ━━
2. 🧑 Team insight · ◔ Observability · ⭐⭐⭐ — Provider errors logged as error
- Location: src/services/sync_service.py:314
- Action: Fix
━━ Optional ━━
3. 🧑 Team insight · ⚙ Maintainability — Schema flag lacks description
- Location: src/schemas.py:685
- Action: Defer (low priority)Single-finding shortcut: If exactly one issue was parsed in Step 4, skip this question entirely — "Review each issue" and "Auto-fix all" collapse to the same thing with one finding and are misleading. Proceed directly to Step 6 (manual review) for that single issue, regardless of its Action ("Fix" or "Defer"). If that lone issue is tagged in Step 3c (🔁 Repeat / ⚠️ Contradiction / 🛑 hard stop), Step 6's tagged-issue block handles it — including a hard-stop refusal that routes it to Step 8's "Skipped to prevent oscillation" category — not the normal Fix/Defer prompt. Otherwise Step 6's per-issue prompt surfaces in single-finding mode, so the user is never silently skipped.
Otherwise (two or more issues), ask the user how they want to proceed using AskUserQuestion:
Options:
Based on the user's choice:
If "Review each issue" was selected:
Tagged issues (from Step 3c) come first and follow convergence.md:
⚠️ Contradiction — do NOT auto-apply. Present the prior decision + rationale (with round number) alongside the new contradicting suggestion, and AskUserQuestion defaulting to ⏭️ "Defer" (alternatives: ✅ "Apply" / 🔧 "Modify"). "Defer" holds the prior decision: reply to the thread that it was deliberate and resolve it — this breaks the oscillation.
🔁 Repeat — re-read the current code first. If the prior fix is intact, default to Defer ("addressed in a previous round"). Only treat as a normal fix if the prior fix was lost or genuinely incomplete.
🛑 Hard stop (3rd oscillation cycle) — if a ledger entry (its file + title key) has already flipped direction ≥2 times, refuse to apply any further change at that location even if the user picks ✅ Apply, unless the user gives an explicit override message naming the location. Otherwise resolve the thread and route it to Step 8's "Skipped to prevent oscillation" category. See convergence.md.
For each remaining untagged issue marked as "Fix" (in Qodo's order, starting with the topmost bucket — Qodo lists most-severe first) — plus, in single-finding mode, the lone issue when untagged, even if marked "Defer" (a tagged lone issue is handled by the block above, not here):
git add <modified-files> && git commit -m "fix: <issue title>"git add <modified-files>) but wait until all fixes are applied, then amend into a single commit (see Gerrit note below)Continue until all in-scope issues are addressed or the user decides to stop
After all fixes are applied, reply to all Qodo inline comments in one batch (see Step 8)
Gerrit commit strategy: In Gerrit, each commit becomes a separate change. To keep all fixes as a single new patchset on the existing change:
git add)git commit --amend --no-editDo NOT create individual commits per fix for Gerrit.
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.
If "Auto-fix all" was selected:
Oscillation guard: issues tagged 🔁 Repeat or ⚠️ Contradiction in Step 3c are excluded from automatic application — auto-fix is where unattended flip-flop churn happens. Handle them by tag type (do not lump together): ⚠️ Contradiction → still prompt via AskUserQuestion with the Contradiction options (Defer / Apply / Modify) defaulting to Defer — the one case auto-fix must interrupt for, so never silently apply or silently defer it; 🔁 Repeat → re-read the current code and Defer if the prior fix is intact, else treat as a normal fix; 🛑 hard stop (≥2 flips at a location) → refuse and route to the "Skipped to prevent oscillation" category. Report all held/excluded tagged issues in the Step 8 summary — never silently skip them. See convergence.md.
git add <modified-files> && git commit -m "fix: <issue title>"git add <modified-files>) — do NOT commit yet✅ Fixed: [Issue Title] at
[Location]Agent prompt: [the Qodo agent prompt used]
git commit --amend --no-editREQUIRED: 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.
Round-of-record: the summary comment is how the next round detects this one (Step 3c), so its heading must be ## Qodo Fix Summary — Round N (N from Step 3c) and it must keep the verbatim Generated by Qodo PR Resolver skill footer. Heading + marker are the only prior-round signal — nothing is written to the commit.
Gerrit: Batch the summary comment AND all inline replies into a single API call. This is more efficient and avoids multiple email notifications. Use the unified review endpoint with both message (summary) and comments (inline replies) — see gerrit.md § Post Summary Comment.
Important resolution rules for inline replies:
"unresolved": false (resolves the thread)"unresolved": false (resolves the thread — the next Qodo review will re-evaluate)"unresolved": false, and make the reply state the prior decision was deliberate (see convergence.md) so the rationale is recorded on the thread for the next round. In the summary, list these under a dedicated category titled "Skipped to prevent oscillation — recommend human resolution" (NOT under Deferred), each with file:line and oscillation reason.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.
If any fixes were applied (commits were created in Steps 6/7), ask the user if they want to push:
git push (for Gerrit: git push origin HEAD:refs/for/<target-branch> — this creates a new patchset on the existing change, matched by the Change-Id in the commit message. See gerrit.md § Push Changes)git pushImportant: If all issues were deferred, there are no commits to push — skip this step.
Only run this step if DRAFT_PR_CREATED = true (a draft PR was created earlier in this session). Skip entirely if the PR already existed or was created as a regular PR.
After completing all steps, always echo the PR/MR URL to the user so they can easily navigate to it. Use the PR URL detected in Step 2.
Example output: 🔗 PR: https://github.com/owner/repo/pull/123
For Gerrit: 🔗 Change: https://<gerrit-host>/c/<project>/+/<change-number>
If the remote URL doesn't match GitHub, GitLab, Bitbucket, Azure DevOps, or Gerrit, inform the user and exit.
See providers.md § Error Handling for details.
<branch-name>. A PR is needed to trigger a Qodo review."DRAFT_PR_CREATED = true and save the PR number/ID. Inform "Draft PR created!" then proceed to the Wait for Qodo review flow (Step 3a).DRAFT_PR_CREATED = false. Inform "PR created!" then proceed to the Wait for Qodo review flow (Step 3a).git push origin HEAD:refs/for/<branch> (see gerrit.md § Create Change). Then proceed to the Wait for Qodo review flow (Step 3a). If no, exit skill.IMPORTANT: Do NOT proceed to Step 3b without a PR/MR. This skill only works with Qodo reviews, not manual reviews.
Handled by Step 3a — proceeds to the Wait for Qodo review flow.
If the detected provider's CLI is not installed, provide installation instructions and exit.
See providers.md § Error Handling for provider-specific installation 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. For Gerrit, all replies go through a single unified endpoint and can be batched — see gerrit.md § Reply to Comments.
Keep replies short (one line). If a reply fails, log it and continue.
5c63067
Also appears in
last in sync Mar 3, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.