# Review Memory: Bug-Pattern Checks for Code Review

> Before your agent approves or finishes a code change, it checks the diff against 46 known bug patterns (money, races, auth, migrations, injection, SSRF, tests that test nothing) and reports each as found, fine or can't tell, with file:line.

Review Memory: Bug-Pattern Checks for Code Review is a free AI agent skill on Agensi by Igor Boruch, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Igor Boruch](https://www.agensi.io/creators/igor-boruch)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/review-memory-bug-pattern-checks-for-code-review
- Tags: code-review, security, git, mcp, claude-code

## About this skill

Coding agents review code with whatever they happen to remember. Review Memory gives them a searchable library of the bugs that most often slip past review, each with a concrete "where to look" check, and makes the agent actually run those checks.

### What it does
- Searches 46 general bug patterns across 13 failure modes for the ones that match your diff
- For each match, runs its "where to look" step and reports **Found** (file:line + the failing scenario), **Checked, fine**, or **Can't tell**
- Re-reads a short always-check list: client-supplied idempotency keys, check-then-write races, tests that pin nothing, migrations that lock busy tables, external calls inside database transactions

### Measured, not vibes
Retrieval is evaluated in CI on a blind held-out set of 40 cases: the right pattern is in the top 3 for **80%** of cases, vs **51%** for a flat notes file. Every miss is listed in the repo.

### Setup
Requires the free, open-source review-memory MCP server (Node.js 20+):

`claude mcp add review-memory -- npx -y review-memory-mcp`

Cursor, Windsurf and other MCP clients: command `npx`, args `["-y", "review-memory-mcp"]`.

### Good to know
- Read-only by default. Optionally, your team files its own lessons into the repo (`.review-memory/lessons.json`) and reviews them in PRs like any other change.
- An empty result means no known pattern matched, not that the change is safe.
- Source and eval: the open-source review-memory-mcp project (MIT), on npm and GitHub

## Requires

- Node.js
- Git

## Known limitations

Requires review-memory MCP server. Not useful for UI/CSS-only changes. Write access for new lessons is disabled by default.

## 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 Review Memory: Bug-Pattern Checks for Code Review 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

### How does Review Memory differ from a standard AI code review or linter?

It checks each change against 46 general bug patterns (idempotency, race conditions, auth, migrations, injection and more), and for every pattern that matches it runs a concrete "where to look" check and reports found, fine or can't tell. A linter checks syntax and style rules; this checks for logic failures that usually only show up in production.

### Which AI agents or environments are compatible with this skill?

This skill is designed for any AI agent that supports the Model Context Protocol (MCP); once the server is connected, the agent can autonomously search and apply the pattern library to your diffs.

### Can I add my own custom bug patterns to the review library?

Yes. Run the server with REVIEW_MEMORY_ALLOW_WRITES=1 and your team's lessons are saved to .review-memory/lessons.json in your repo, so new patterns are reviewed in a PR like any other change. Each lesson must be a general pattern with a concrete where-to-look check, or it is rejected.

### Are there specific languages or file types where this skill is most effective?

It is strongest on backend and full-stack changes: payments and money handling, database migrations, auth and permissions, webhooks, background jobs, external API calls and public API contracts. It adds little for CSS, copy or documentation-only changes.

### What do I get, and what does it cost?

It is free. The skill is the SKILL.md that tells your agent when to check a change and how to report. The review-memory MCP server it uses is a separate, free, open-source npm package (review-memory-mcp, MIT) with 46 patterns and an eval suite.

---

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.
