From rag-reviewer
Reviews code diffs for maintainability risks: complexity, readability, duplication, separation of concerns, and repository conventions. Useful during code review when a maintainability-focused pass is needed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rag-reviewer:maintainability-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standalone: ask the user which diff to review if the scope is not clear:
Standalone: ask the user which diff to review if the scope is not clear:
staged — review only the staged diff;unstaged — review only the unstaged diff;main,
master, develop, trunk);Do not pick a scope yourself unless the user already made it clear. If the resulting diff is empty, stop and say there is nothing to review.
Inside /reviewer_review-pr: the orchestrator provides the diffs of all units (path + patch)
— review those. Call the reviewer MCP tools as needed (search_code,
get_related_symbols, read_file, get_definition, find_callers,
get_changed_file_diff) to check repository context and verify findings.
Look only for maintainability risks in the selected changes. Ignore performance, security, and general correctness unless they directly explain a maintainability concern.
Prioritize findings such as:
Before raising project-practice findings, read the repository-local guidance that governs the current workspace.
Prefer this order:
/reviewer_review-pr, read CLAUDE.md or AGENTS.md via read_file; in standalone,
read them from disk.Do not treat personal preference as a project convention.
suggestion field.Prefer suggestions such as:
Do not suggest refactors that increase indirection without a clear readability win.
Do not raise findings for:
critical / high: the change introduces major complexity, unclear control flow,
or strong convention drift that is likely to cause future bugs or make the code
meaningfully harder to modify safely.medium: the change adds noticeable complexity or weakens readability or
consistency enough that it should probably be simplified before merge.low: the change is acceptable but has a worthwhile simplification or cleanup
opportunity.Return only actionable findings.
Return ONLY the findings JSON used by the review pipeline, with
"category": "maintainability":
{"findings": [{
"category": "maintainability",
"severity": "low|medium|high|critical",
"file": "<path of the reviewed file>",
"line": <line number in the NEW file or null>,
"side": "RIGHT",
"code_quote": "<exact line from the new file>",
"message": "<what increases maintenance cost or conflicts with project practice>",
"suggestion": "<concrete simpler alternative that preserves behavior, or null>",
"fix": {"start_line": N, "end_line": M, "replacement": "<new code>"} | null,
"confidence": 0.0
}]}
The suggestion field replaces what in the original Codex format appeared after
Simplification: — put the concrete simplifying alternative there.
Standalone runs may additionally render the findings as a readable list after the JSON.
If a finding cannot be tied to a specific line, use the closest changed line and
explain the scope in message.
If there are no meaningful maintainability findings, return {"findings": []} and
say so.
Write message and suggestion in the output language given by the orchestrator
(standalone: the user's language).
npx claudepluginhub mimfort/rag_for_gitRuns an unusually strict maintainability review focused on abstraction quality, file size limits, and spaghetti-condition growth. Use for deep code quality audits or harsh structural reviews.
Reviews git diffs or changed files for reuse, quality, efficiency, clarity; applies optional high-confidence, behavior-preserving simplifications.
Performs Maestro-style code reviews on explicit paths, staged changes, or last commit diffs, with findings ordered by severity and concrete file/line references.