Claude Code Skill + Agents · Open Source

Review AI-written code
before you push.

AI-written code tends to repeat itself, leave dead code behind and skip tests. AI Code Checker reviews your branch for duplicate and dead code, bugs, security issues and missing tests, returns PASS or NEEDS_CHANGES — and an opt-in fixer agent applies only the fixes you approve.

Duplicate CodeDead CodeSecurityMissing Tests
~/projects/shop-api — Claude Code
## ai-code-checker report Reviewed: src/routes/users.js Method: manual Base: origin/main @ 4e1c9a2 Head: 9b07d13 Unpushed commits: 2 ### BLOCKING (must fix before push) B1 users.js:4 hardcoded API key → move to env B2 users.js:7 SQL built from `id` → use a parameter ### WARNING (should fix) W1 users.js:11 findUser() duplicates getUser() → reuse it W2 getUser() no test for the changed function ### NOTE (optional) N1 users.js:1 readFile is imported but never used ### Not checked Tests not run: no safe test command found Verdict: NEEDS_CHANGES
Any BLOCKING item = NEEDS_CHANGES
Fixes only what you approve
7 Checks
From duplicates to missing tests
1 Skill + 2 Agents
Checker, reviewer, fixer
1 Verdict
PASS or NEEDS_CHANGES
MIT
Open source licence
Why We Built It

Catch it on your machine, not in review

AI assistants write a lot of code quickly — and some of it repeats logic that already exists, leaves unused imports behind, or skips the test. AI Code Checker checks the code before it leaves your machine, and because it installs once into your Claude Code setup, it works in every project.

What It Checks

Seven checks, one report

Each finding is filed as BLOCKING, WARNING or NOTE, with the file and line.

Duplicate Logic

Duplicate and near-duplicate code, with the existing function you could reuse instead.

Dead Code

Unused imports, variables and functions, and commented-out code left behind.

Bugs & Edge Cases

Logic errors and the edge cases the change doesn't handle.

Security

Hardcoded secrets, injection, missing auth checks and unvalidated input.

Performance

N+1 queries, unbounded queries and calls repeated in a loop.

Naming & Conventions

Names and patterns that don't match how the rest of the project is written.

Missing Tests

Changed code with no test — and it says when it did not run your tests.

The Real Diff

Fetches first and compares to origin/<base>, not a stale local main, and reports what's unpushed.

Any BLOCKING item — a hardcoded secret, injection, missing auth on a changed route or a definite crash — means NEEDS_CHANGES.
How You Use It

From install to a clean push

It works in the Claude Code CLI, the IDE extensions and the Code tab of the Claude desktop app.

01

Install once

As a plugin, with the install script, or by hand — then restart Claude Code.

02

Review

Run /ai-code-checker on the branch, a file or a folder.

03

Or before a push

Before a push, merge or deploy, Claude asks once whether to run it.

04

Approve fixes

Hand the report to the fixer agent and name the items to fix.

05

Push

On NEEDS_CHANGES it does not push until you say so.

In Your Terminal

What a review looks like

The sample file in the repo is deliberately bad: a duplicate function, an unused import, SQL injection, a fake hardcoded key and no tests.

~/projects/shop-api — Claude Code
> /ai-code-checker examples/sample.js ● git fetch origin --prune ● Comparing HEAD with origin/main (2 commits unpushed) ● Reading examples/sample.js … ● Searching the repo for similar functions … ✕ duplicate function WARNING ✕ unused import NOTE ✕ SQL injection BLOCKING ✕ hardcoded key (fake) BLOCKING ✕ no tests WARNING Verdict: NEEDS_CHANGES
/ai-code-checker on examples/sample.js — every planted problem found
Install

Three ways to install

Restart Claude Code after installing. It needs git on your PATH.

1. As a Claude Code plugin

Add the marketplace and install. Components are namespaced, e.g. /ai-code-checker:ai-code-checker.

/plugin marketplace add technestra/ai-code-checker
/plugin install ai-code-checker@ai-code-checker

2. With the install script

Copies the skill to ~/.claude/skills/ and the agents to ~/.claude/agents/. It won't overwrite an existing install unless forced.

git clone https://github.com/technestra/ai-code-checker.git
cd ai-code-checker
./install.sh        # macOS / Linux
.\install.ps1       # Windows

3. By hand

Copy the skill folder and the two agent files into your Claude Code setup, then restart Claude Code.

skills/ai-code-checker/  →  ~/.claude/skills/
agents/*.md              →  ~/.claude/agents/
Limits, Honestly

A review aid, not a security audit

Read-Only Review

The review only reads, because its instructions say so. For a hard gate on git push, add a PreToolUse hook.

Never Commits or Pushes

The fixer changes only the items you approve and leaves committing and pushing to you.

Says What It Skipped

Anything it could not check — tests it didn't run, tools that aren't installed — is listed under Not checked.

FAQ

Common Questions

Open Source · MIT

Push code you've
actually reviewed.

Install it from GitHub in a minute, or talk to us about code-quality gates for your team.