local-code-review-tests

A local review command for examining uncommitted code changes, building the project, and running its unit tests.

In plain words
What is it for?
Use it to inspect Git changes, identify supported .NET or Angular projects and test projects, run the build and tests, and summarize the review.
Why use it?
It gathers the relevant changes and project instructions before checking the result. This helps catch build failures and test regressions before the changes are shared.

Command

Part of the local-code-review plugin — 1 skill, 2 commands, 1 agent 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 commands/devmappouras/local-code-review-claude-plugin/local-code-review-tests
Clone the repo
git clone --depth 1 https://github.com/devMappouras/local-code-review-claude-plugin

Or install local-code-review, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,736 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 $0.00013 $0.01736
Opus 5 $0.00006 $0.00868
Sonnet 5 $0.00003 $0.00347
Haiku 4.5 $0.00001 $0.00174

Measured 2d ago against content hash 78b21f6a0c94, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

local-code-review-tests 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 2d 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.

commands/local-code-review-tests.md · 189 lines

How it starts

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

Perform a local code review on uncommitted changes with full build and test verification.

Follow these steps precisely:

  1. Check for uncommitted changes: Run git status to verify there are uncommitted changes. If there are no changes (working tree clean), inform the user and stop.

  2. Detect project type: Use Glob to find:

    • .sln files (search current directory and up to 3 parent levels)
    • angular.json files (indicates Angular project)
    • Store the paths for later use
  3. Detect test projects: Use Glob and Grep to find test projects:

    • Search for .csproj files containing NUnit or xunit or MSTest package references
    • Note: Test projects typically have names ending in .Tests or .UnitTests
    • Store test project paths for later use
  4. Gather CLAUDE.md files: Use a Haiku agent to find all relevant CLAUDE.md files:

    • Root CLAUDE.md (if exists)
    • Any CLAUDE.md files in directories containing modified files
    • Return a list of file paths (not contents)
  5. Get uncommitted changes: Run git diff HEAD to get all uncommitted changes (both staged and unstaged). Use a Haiku agent to summarize what files changed and the nature of changes.

  6. Launch parallel review agents: Launch 4 parallel Sonnet agents to independently review the changes. Each agent should return a list of issues with:

    • Issue description
    • File and line number
    • Reason (CLAUDE.md compliance, bug, security, best practice)
    • Confidence score (0-100)

    Agent #1 - CLAUDE.md Compliance: Audit changes against CLAUDE.md guidelines. Focus on project-specific rules and conventions.

    Agent #2 - Bug Detection: Shallow scan for obvious bugs in the changes only. Focus on:

    • Null reference issues
    • Resource leaks
    • Logic errors
    • Async/await misuse
    • Exception handling problems Ignore pre-existing issues and false positives.

    Agent #3 - .NET Best Practices (if .sln detected): Review for:

    • Clean Architecture violations
    • SOLID principle violations
    • Async/await anti-patterns
    • Dependency injection issues
    • Entity Framework misuse
    • Security vulnerabilities (SQL injection, XSS, etc.)

    Agent #4 - Angular Best Practices (if angular.json detected): Review for:

    • Component design issues
    • RxJS anti-patterns (memory leaks, improper subscriptions)
    • Change detection issues
    • Template security (XSS)
    • Performance issues (large bundles, unnecessary re-renders)
  7. Build .NET project (if .sln detected):

    • Run dotnet restore on the solution
    • Run dotnet build on the solution
    • Capture any build errors or warnings
    • If build fails, report the errors with root cause analysis but continue with the review
  8. Build Angular project (if angular.json detected):

    • Run ng build or npm run build
    • Capture any build errors
    • If build fails, report the errors with root cause analysis but continue with the review
  9. Run .NET unit tests (if test projects detected):

    • Run dotnet test on detected test projects (or entire solution)
    • Use --no-build flag if build already succeeded
    • Capture test results:
      • Total tests
      • Passed tests
      • Failed tests
      • Skipped tests
    • If tests fail, capture failure details (test name, error message, stack trace)
  10. Run Angular tests (if angular.json detected and test scripts available):

    • Run ng test --watch=false --browsers=ChromeHeadless or npm run test -- --watch=false
    • Capture test results
    • If tests fail, capture failure details
  11. Score issues: For each issue found in step 6, launch a parallel Haiku agent to score confidence (0-100):

    • 0: False positive, doesn't stand up to scrutiny, or pre-existing issue
    • 25: Might be real, but could be false positive. Stylistic issue not in CLAUDE.md
    • 50: Real issue but minor or nitpick. Not very important relative to PR
    • 75: Verified real issue that will be hit in practice. Important or explicitly in CLAUDE.md
    • 100: Absolutely certain, confirmed real issue that happens frequently

Read the full file on GitHub · 189 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. 2d ago First seen · 189 lines · 13 tokens per session scan A 78b21f6a0c94

Subscribe to this mod's changes

local-code-review-tests is a command published in the GitHub repository devMappouras/local-code-review-claude-plugin (1 stars, last pushed 8mo ago), licensed MIT. It adds 13 tokens to every session and 1,736 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-31.