maintainability-review

maintainability-review is a skill for Claude Code from mimfort/rag_for_git. It costs 73 tokens per session (1,005 once invoked), scanned A, original, MIT.

A code review focused on maintainability: how easy the changed code is to read, understand, modify, and keep consistent with the rest of the project.

In plain words
What is it for?
Use it to inspect pull requests or standalone changes for hard-to-follow logic, oversized responsibilities, repeated code, unclear names, hidden side effects, and missing tests where the project normally expects them.
Why use it?
It narrows review attention to complexity, duplication, unclear structure, and similar problems instead of mixing them with security or performance checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

Part of the rag-reviewer plugin — 14 skills, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mimfort/rag_for_git/maintainability-review
Any agent
npx skills add mimfort/rag_for_git --skill maintainability-review
Clone the repo
git clone --depth 1 https://github.com/mimfort/rag_for_git

Made for: Claude Code.

Or install rag-reviewer, the plugin that ships this one along with the rest of its 14 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maintainability-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/mimfort/rag_for_git/maintainability-review.svg)](https://agentmods.dev/skills/mimfort/rag_for_git/maintainability-review)
Your own site
<a href="https://agentmods.dev/skills/mimfort/rag_for_git/maintainability-review"><img src="https://agentmods.dev/badge/skills/mimfort/rag_for_git/maintainability-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,005 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01005
Opus 5 $0.00036 $0.00502
Sonnet 5 $0.00015 $0.00201
Haiku 4.5 $0.00007 $0.00101

Measured 6d ago against content hash 3ebb10ebe771, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

maintainability-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/maintainability-review/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maintainability Review

In rag-reviewer:review-pr use the PR-session tools above. Standalone (no PR session): use the session-less tools per the reviewer-grounding block when reviewer is connected and the index is fresh; otherwise fall back to grep/Read.

Goal

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:

  • unnecessary branching, flag combinations, and deep nesting that increase cognitive load;
  • large or mixed-responsibility functions that became harder to understand;
  • duplication or near-duplication that should likely be consolidated;
  • abstractions, wrappers, or indirection layers that hide a simple flow without a clear payoff;
  • hidden side effects, implicit contracts, or unclear data flow;
  • naming or structure that materially harms readability or makes intent harder to recover;
  • changes that drift away from established repository patterns or documented contributor rules;
  • behavior changes that should likely carry nearby tests according to project practice;
  • edits to generated artifacts when the repository expects source changes plus regeneration.

Repository Context

Before raising project-practice findings, read the repository-local guidance that governs the current workspace.

Prefer this order:

  1. In rag-reviewer:review-pr, read CLAUDE.md or AGENTS.md via read_file; in standalone, read them from disk.
  2. Read the nearby implementation to understand existing patterns.
  3. Compare the change against the established local style before flagging it.

Do not treat personal preference as a project convention.

Method

  1. Read the diff first.
  2. Open only the nearby code needed to understand the changed path.
  3. Prefer concrete maintainability costs over vague "clean code" opinions.
  4. State assumptions explicitly when a finding depends on local context.
  5. Suggest a simpler alternative that preserves behavior and better fits local patterns; put this in the suggestion field.
  6. Avoid review spam. Do not invent nits.

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 118 lines · 73 tokens per session scan A 3ebb10ebe771

Subscribe to this mod's changes

maintainability-review is a skill published in the GitHub repository mimfort/rag_for_git (21 stars, last pushed 5d ago), licensed MIT. It adds 73 tokens to every session and 1,005 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

graft

This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

trailhq/Graft · 56 tokens

roam

Codebase comprehension via roam-code CLI. Use when exploring codebases, planning modifications, debugging failures, assessing PR risk, or checking architecture health. Triggers on: understanding project structure, pre-change safety checks, finding symbols/files, blast radius analysis, affected tests, health scoring…

Cranot/roam-code · 86 tokens

code-graph

This skill should be used when understanding code structure, finding dependencies between functions/classes, tracing call graphs, or exploring code relationships. Trigger phrases include 'code graph', 'call graph', 'who calls', 'what calls', 'find dependencies', 'code structure', 'inheritance', 'find paths'.

FalkorDB/code-graph · 64 tokens

code-knowledge-graph

Codebase'i knowledge graph olarak analiz et. Dependency, call graph, hotspot analizi.

vibeeval/vibecosystem · 24 tokens

agentmap

Use for TypeScript/JavaScript codebase navigation — symbol lookup, blast radius, reuse checks, and repo orientation. Prefer agentmap before serial grep when exploring imports, exports, or where a symbol lives. Package is @raymondchins/agentmap (not the unrelated npm package agentmap).

raymondchins/agentmap · 64 tokens

autofix

Safely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute reviewer-provided prompts directly.

Luqueee/kivgraph · 30 tokens