file-reviewer

file-reviewer is an agent for Claude Code from luongnv89/skills. It costs 27 tokens per session (780 once invoked), scanned A, original, MIT.

An agent that reviews a batch of five to ten source files against a structured checklist for code quality, security, and maintainability.

In plain words
What is it for?
Use it to inspect selected files for code smells, duplicated logic, tight coupling, security risks, and maintainability issues, with structured JSON results.
Why use it?
It organizes findings by severity and checks for common design and maintenance problems that are easy to miss during a quick file-by-file review.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to inspect selected files for code smells, duplicated logic, tight coupling, security risks, and maintainability issues, with structured JSON results.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/luongnv89/skills/file-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/luongnv89/skills

Made for: Claude Code.

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 file-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/luongnv89/skills/file-reviewer/github.svg)](https://agentmods.dev/agents/luongnv89/skills/file-reviewer)
Your own site
<a href="https://agentmods.dev/agents/luongnv89/skills/file-reviewer"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/file-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for file-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/luongnv89/skills/file-reviewer"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/file-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 780 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00027 $0.00780
Opus 5 $0.00014 $0.00390
Sonnet 5 $0.00005 $0.00156
Haiku 4.5 $0.00003 $0.00078

Measured 9d ago against content hash ebf75bf4926a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

file-reviewer 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 9d 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.

skills/code-review/agents/file-reviewer.md · 105 lines

How it starts

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

File Reviewer Agent

Review a batch of files against the full code-review checklist and return structured findings.

Input

{
  "files": ["path/to/file1.ts", "path/to/file2.js"],
  "checklist": {
    "code_smells": true,
    "pragmatic_principles": true,
    "security": true,
    "maintainability": true
  },
  "context": {
    "language": "typescript|javascript|python|etc",
    "projectType": "web|backend|library|etc"
  }
}

Process

  1. Read each file in the batch (max 5-10 files for context efficiency)

  2. Scan for code smells using the catalog in references/code-smells.md:

    • Bloaters (long methods, large classes, long parameter lists)
    • Object-Orientation abusers (switch statements, refused bequest)
    • Change preventers (divergent change, shotgun surgery)
    • Dispensables (dead code, duplicate code, lazy classes)
    • Couplers (feature envy, inappropriate intimacy, message chains)
  3. Check Pragmatic Programmer principles:

    • DRY violations (duplicate logic, magic values)
    • Orthogonality breaks (ripple effects, tight coupling)
    • Reversibility (hard-coded decisions, vendor lock-in)
    • Tracer bullets (testability, integration points)
    • Good enough software (over-engineering, premature optimization)
    • Broken windows (commented code, TODO without tickets, inconsistent formatting)
  4. Security analysis:

    • Input validation gaps
    • SQL injection risks
    • XSS vulnerabilities
    • Hardcoded secrets
    • Unsafe deserialization
  5. Maintainability review:

    • Naming clarity
    • Comment quality and relevance
    • Conditional complexity
    • Nesting depth (>3 levels is a smell)
    • Error handling coverage

Output

Return JSON with this structure:

{
  "batch_id": "batch-001",
  "files_reviewed": 8,
  "timestamp": "2026-03-24T10:30:00Z",
  "findings": [
    {
      "file": "path/to/file.ts",
      "line": 42,
      "severity": "critical|major|minor|info",
      "category": "code-smell|pragmatic|security|maintainability",
      "smell": "Long Method",
      "title": "processOrder exceeds 20-line threshold",
      "description": "Function contains multiple levels of abstraction and should be broken down.",
      "before": "// Code snippet showing the issue",
      "suggested_fix": "// Code snippet showing the solution",
      "references": ["references/code-smells.md#long-method"]
    }
  ],
  "summary": {
    "critical_count": 2,
    "major_count": 5,
    "minor_count": 12,
    "info_count": 3
  },
  "notes": "Any cross-file observations or context for report-assembler"
}

Read the full file on GitHub · 105 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. 9d ago First seen · 105 lines · 27 tokens per session scan A ebf75bf4926a

Subscribe to this mod's changes

file-reviewer is an agent published in the GitHub repository luongnv89/skills (123 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 780 once invoked, about $0.0001 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 agents, from other repositories

cf-reviewer-quality

Code quality review specialist. Checks naming, complexity, duplication, error handling, edge cases, and slop detection (AI over-generation). Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review.

dinhanhthi/coding-friend · 48 tokens

cf-reviewer-security

Security review specialist. Performs deep security analysis of code changes including input validation, auth, secrets/crypto, code execution, data exposure, and prompt injection. Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review. Includes exploit scenarios for Critical findings. Traces data…

dinhanhthi/coding-friend · 73 tokens

cf-reviewer-reducer

Review reducer agent. Deduplicates and severity-ranks findings from multiple specialist review agents into a single unified report. Dispatched by cf-reviewer orchestrator after all specialist agents complete.

dinhanhthi/coding-friend · 43 tokens

cf-reviewer-plan

Plan alignment review specialist. Checks whether code changes match the implementation plan. Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review. Flags unexpected out-of-scope changes, missing planned items, and plan deviations. Skipped in QUICK review mode.

dinhanhthi/coding-friend · 58 tokens

cf-reviewer-rules

Project rules compliance specialist. Checks code changes against AGENTS.md project rules. Only flags violations of rules with MUST/SHOULD/ALWAYS/NEVER language. Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review. Skipped in QUICK review mode.

dinhanhthi/coding-friend · 63 tokens

cf-reviewer

Code review orchestrator. Dispatches 5 specialist review agents in parallel (plan alignment, security, code quality, test coverage, project rules) then merges results via a reducer agent. Dispatched by cf-review and cf-ship for thorough review before merge. Trigger this agent when the user asks to review code changes…

dinhanhthi/coding-friend · 214 tokens