From claudio-plugin
Code review a GitLab merge request using multiple specialized agents with confidence-based scoring to filter false positives. Use when the user asks to review an MR, do a code review, or check changes in a merge request.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claudio-plugin:gitlab-code-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automated code review for GitLab merge requests using multiple specialized agents with confidence-based scoring to filter false positives.
Automated code review for GitLab merge requests using multiple specialized agents with confidence-based scoring to filter false positives.
Agent assumptions (applies to all agents and subagents):
To do this, follow these steps precisely:
Verify auth. Do NOT use a subagent — run this directly yourself:
glab auth status. If it fails, tell the user to authenticate (glab auth login) and stop.Launch a fast, lightweight subagent to check if any of the following are true:
glab mr view <MR_IID> -R <owner/repo> --comments for comments left by claude)If any condition is true, stop and do not proceed.
Note: Still review Claude-generated MRs.
Launch a fast, lightweight subagent to return a list of file paths (not their contents) for all relevant CLAUDE.md files including:
Launch a subagent to view the merge request and return a summary of the changes. Use:
glab mr view <MR_IID> -R <owner/repo> -F json for metadataglab mr diff <MR_IID> -R <owner/repo> --color=never --raw for the diffLaunch 4 agents in parallel to independently review the changes. Each agent should return the list of issues, where each issue includes a description and the reason it was flagged (e.g. "CLAUDE.md adherence", "bug"). The agents should do the following:
Agents 1 + 2: CLAUDE.md compliance agents Audit changes for CLAUDE.md compliance in parallel. Note: When evaluating CLAUDE.md compliance for a file, you should only consider CLAUDE.md files that share a file path with the file or parents.
Agent 3: Bug detection agent Scan for obvious bugs in the changed code. Focus exclusively on changes (not pre-existing issues). Look for:
Agent 4: Historical context agent Analyze git blame and history for context-based issues. Check:
Important guidance for ALL review agents:
In addition to the above, each subagent should be told the MR title and description. This will help provide context regarding the author's intent.
For each issue found in the previous step by agents 3 and 4, launch parallel subagents to validate the issue. These subagents should get the MR title and description along with a description of the issue. The agent's job is to review the issue to validate that the stated issue is truly an issue with high confidence. For example, if an issue such as "variable is not defined" was flagged, the subagent's job would be to validate that is actually true in the code. Another example would be CLAUDE.md issues. The agent should validate that the CLAUDE.md rule that was violated is scoped for this file and is actually violated.
Filter out any issues that were not validated in step 6. Filter out any issues with a score less than 80. This step will give us our list of high signal issues for our review.
Output a summary of the review findings to the terminal:
If --comment argument was NOT provided, stop here. Do not post any comments.
If --comment argument IS provided and NO issues were found, post a summary comment using glab mr note <MR_IID> -R <owner/repo> -m "<body>" and stop.
If --comment argument IS provided and issues were found, continue to step 9.
Create a list of all comments that you plan on leaving. This is only for you to make sure you are comfortable with the comments. Do not post this list anywhere.
Post inline comments for each issue. For each comment:
How to post inline comments:
First fetch the MR diff refs:
glab api projects/<url-encoded-fullpath>/merge_requests/<MR_IID> | jq '{base_sha: .diff_refs.base_sha, start_sha: .diff_refs.start_sha, head_sha: .diff_refs.head_sha}'
Then post each inline comment:
glab api projects/<url-encoded-fullpath>/merge_requests/<MR_IID>/discussions -X POST \
-f body="<comment>" \
-f "position[position_type]=text" \
-f "position[base_sha]=<base_sha>" \
-f "position[start_sha]=<start_sha>" \
-f "position[head_sha]=<head_sha>" \
-f "position[new_path]=<file_path>" \
-f "position[new_line]=<line_number>"
IMPORTANT: Only post ONE comment per unique issue. Do not post duplicate comments.
Use this list when evaluating issues in Steps 5 and 6 (these are false positives, do NOT flag):
Notes:
glab CLI to interact with GitLab. Do not use web fetch.--comment argument is provided, post a comment with the following format:## Code Review
No issues found. Checked for bugs and CLAUDE.md compliance.
https://gitlab.com/owner/repo/-/blob/c21d3c10bc8e898b7ac1a2d745bdc9bc4e423afe/path/file.ext#L10-15
$(git rev-parse HEAD) will not work, since your comment will be directly rendered in Markdown./-/blob/ in the pathL<start>-<end> (no second L)L4-7)git remote get-url origin. Parse the host from the URL (HTTPS: https://host/owner/repo.git, SSH: git@host:owner/repo.git). Use this host for all links.npx claudepluginhub aipcc-cicd/claudio-skills --plugin claudio-pluginReviews GitHub pull requests using parallel subagents for CLAUDE.md compliance, bugs, git history context, past feedback, and code comment adherence.
Orchestrates parallel agents to review code changes for CLAUDE.md compliance, bugs, git history, and security with confidence scores. Outputs reports or posts to GitHub PRs.
Reviews GitLab merge requests including metadata, commits, diffs, pipeline status, code suggestions, and approval recommendations. Invoke via /review-mr.