# Code Review Lite: Catch Secrets Before You Commit

> Your AI coding agent just committed a secret and nobody noticed. This free 30-second pre-flight check scans your project for leaked keys, silent failures and runaway files, then gives one honest verdict: RED, YELLOW or GREEN — with the exact file and line for every problem.

Code Review Lite: Catch Secrets Before You Commit is a free AI agent skill on Agensi by Mas Boy, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mas Boy](https://www.agensi.io/creators/masboyalexandria)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/code-review-lite-catch-secrets-before-you-commit
- Tags: code-review, testing, static-analysis, lint, secrets-scan, code-quality, devtools, developer-productivity

## About this skill

Your AI coding agent just committed a secret and nobody noticed. This free 30-second pre-flight check scans your project for leaked keys, silent failures and runaway files, then gives one honest verdict: RED, YELLOW or GREEN — with the exact file and line for every problem.

- RED — fix before merge: a secret-pattern hit (reported by type + location only, values never stored or printed) or an empty/swallowing catch block.
- YELLOW — worth a look: debug leftovers, TODO/FIXME markers, files over 500 lines, functions over 60 lines, source files without test siblings, files over 1 MB.
- GREEN — clean by this scan: none of the above.

Every finding carries file:line, ranked red-first, with a machine-readable lite.json for tooling. The scan is deterministic (same code in, same report out), runs offline with zero dependencies, and records per-file read errors instead of silently skipping them. Scanning zero files reports "no files were scanned" — unscanned code is never called clean.

Proof — run on real codebases, 1 Dec 2026. Token Launch Radar (17 files, 1,755 lines): RED — 0 secrets, but 3 empty-catch hits (one at scripts/dashboard/app.js:175, duplicated across generated copies), 1 oversized file, 3 long functions, 6 missing test siblings. PredArena Solana app (34 files, 9,107 lines): RED — 0 secrets, 3 empty catches, TradeBox.tsx oversized at 639 lines, 10 long functions, 27 missing test siblings. And the planted test fixture with a fake Stripe key: RED, key caught and redacted. Real codebases, real verdicts — no demo data.

Honest limits: this is a pattern scan, not a review. It cannot judge correctness, logic bugs, or security paths; secret patterns are heuristics (verify hits; a clean scan is not proof); function-length and catch checks use brace-tracking heuristics; test detection knows conventional names only. A green light means "no obvious pre-review problems", not "this code is right".

Want the deep pass? Code Review Pro does the evidence-first correctness review — findings proven with reproduction steps, injection-path analysis, and regression tests written against each finding. Run Review Lite for the 60-second quick wins; run Pro when the merge matters.

Want the deep pass? **Code Review Pro** does the evidence-first correctness review — a deterministic scanner finds secrets, injection sinks, swallowed errors, and hotspots, then every blocker is confirmed by tracing the actual code path, with a fix order and one regression test per finding. Run Code Review Lite for the 60-second quick wins; run Pro when the merge matters. 👉 https://www.agensi.io/skills/code-review-pro-blockers-risks-and-nits-line-by-line

## Known limitations

Heuristic secret detection may miss encoded keys. Brace-tracking for function length can be skewed by braces in comments. Conventional test naming only.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Code Review Lite: Catch Secrets Before You Commit skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What kind of code issues does this skill detect?

This skill performs a fast, deterministic pattern scan to find hardcoded secrets, empty catch blocks that swallow errors, and maintenance smells like debug leftovers or oversized functions before you begin a manual review.

### Do I need any external accounts or software to run the scan?

The skill requires Node 22 or higher and uses a zero dependency script that runs locally without any API keys or network access. You simply provide the directory or file paths you want to analyze.

### What results will my AI agent provide after the scan?

You receive a traffic light summary (Red, Yellow, or Green) highlighting finding counts, a list of the top 10 issues with exact file and line locations, and a machine readable JSON file containing all findings.

### What are the limitations of the scan results?

This skill cannot determine if code is logically correct, identify injection paths, or reason about design. It is a pattern based scanner meant for quick wins, not a replacement for a deep architectural or security audit.

### Can this skill guarantee that my code is completely free of secrets?

The skill may miss credentials that are split across strings or encoded in unusual formats. Additionally, its function length and catch block detection use brace tracking, which can be skewed by braces appearing inside comments or strings.

### How should I instruct my agent to use this skill?

You can tell your agent to point the skill at a specific directory or a list of files from a recent PR. For example, ask it to perform a pre-review scan on your current branch to check for secrets and debug leftovers before you push your code.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
