light-review-existing-diffs

light-review-existing-diffs is a command for Claude Code, Cursor from emaraschio/cursor-commands. It costs 16 tokens per session (410 once invoked), scanned A, original, MIT.

A quick review of the code changes already present in your working area. It does not require the full context of a pull request, which is a proposed code change awaiting review.

In plain words
What is it for?
Use it to check existing changes for issues, while treating minor style concerns as optional and still reporting security risks.
Why use it?
It helps spot important problems quickly without spending time on a complete pull-request review.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

Good fit Use it to check existing changes for issues, while treating minor style concerns as optional and still reporting security risks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/emaraschio/cursor-commands/light-review-existing-diffs
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/emaraschio/cursor-commands

Made for: Claude Code, Cursor.

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 light-review-existing-diffs

README.md
[![agentmods](https://agentmods.dev/badge/commands/emaraschio/cursor-commands/light-review-existing-diffs/github.svg)](https://agentmods.dev/commands/emaraschio/cursor-commands/light-review-existing-diffs)
Your own site
<a href="https://agentmods.dev/commands/emaraschio/cursor-commands/light-review-existing-diffs"><img src="https://agentmods.dev/badge/commands/emaraschio/cursor-commands/light-review-existing-diffs/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 light-review-existing-diffs

Your own site · 80×15
<a href="https://agentmods.dev/commands/emaraschio/cursor-commands/light-review-existing-diffs"><img src="https://agentmods.dev/badge/commands/emaraschio/cursor-commands/light-review-existing-diffs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 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.00016 $0.00410
Opus 5 $0.00008 $0.00205
Sonnet 5 $0.00003 $0.00082
Haiku 4.5 $0.00002 $0.00041

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

Security

Grade A, and why

light-review-existing-diffs 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.

.cursor/commands/light-review-existing-diffs.md · 38 lines

What it actually says

Overview

Quick review of existing diffs without full PR context. Full workflow: .cursor/skill-contracts/light-review-existing-diffs/SKILL.md (user install: ~/.cursor/skill-contracts/light-review-existing-diffs/SKILL.md).

Defaults

None. See skill for workflow defaults.

Steps

  1. Read .cursor/skill-contracts/light-review-existing-diffs/SKILL.md for the full agent contract; if that file is missing, read ~/.cursor/skill-contracts/light-review-existing-diffs/SKILL.md.
  2. Execute the workflow in order; do not skip safety steps.
  3. Report outcomes per skill (summary, tables, or checklist as specified).

Anti-patterns

  • Do not block on nitpicks. Trigger: a quick pass that surfaces minor style or preference issues. Wrong: holding up the change over cosmetic nits. Correct: note nits as optional and let the change proceed. Reason: a light review is meant to be fast, so blocking on cosmetics defeats its purpose.
  • Flag security issues even in a light review. Trigger: spotting a security risk during a quick pass. Wrong: skipping it because the review is meant to be light. Correct: surface the security concern regardless of review depth. Reason: a missed vulnerability is costly no matter how quick the pass was.

Examples

  • /light-review-existing-diffs

Maintainers

Behavioral eval: .cursor/skill-contracts/light-review-existing-diffs/eval/cases.md. Ship gate sections: A before changing SKILL.md or this command.

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 · 38 lines · 16 tokens per session scan A e51d2343025c

Subscribe to this mod's changes

light-review-existing-diffs is a command published in the GitHub repository emaraschio/cursor-commands (9 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 410 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.