code-review

A local Git branch comparison tool for reviewing code changes. Git branches are separate lines of development in a project.

In plain words
What is it for?
Use it for comprehensive reviews between two local branches, including checks for security and other code issues.
Why use it?
It helps find problems in changed files before code from one branch is merged into another.

Skill for Claude CodeCodex

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 skills/abdullahkhawer/devops-skills/code-review
Any agent
npx skills add abdullahkhawer/devops-skills --skill code-review
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

Made for: Claude Code, Codex.

Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 595 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.00056 $0.00595
Opus 5 $0.00028 $0.00298
Sonnet 5 $0.00011 $0.00119
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

code-review 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.

skills/code-review/SKILL.md · 74 lines

How it starts

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

Code Review Skill

Run this skill when asked to review code, compare branches, or perform a code review between a source and target branch using local git. Do NOT use this skill if the user provides a GitLab or GitHub MR/PR URL or MR ID — use the gitlab-cli or github-cli skill instead.

Step 1 — Collect inputs

Ask the user the following two questions together if not already provided:

Kindly let me know:

1. Source Branch: What is the name of the source branch (the branch with new changes)?
2. Target Branch: What is the name of the target branch (usually main/master)?

If the user has already provided either value upfront, skip the corresponding question.


Step 2 — Find changed files

git diff --name-only <TARGET_BRANCH> <SOURCE_BRANCH>

If the output is empty, report that there are no differences between the two branches and stop.


Step 3 — Analyze each changed file

For each file returned in Step 2, read the full diff:

git diff <TARGET_BRANCH> <SOURCE_BRANCH> -- <FILE_PATH>

Perform a comprehensive code review across all changed files covering:

  • Security: Secrets exposure, API keys, tokens, SQL injection, XSS, command injection, insecure dependencies.
  • Performance: Inefficient algorithms, memory leaks, unnecessary computations, N+1 queries.
  • Code quality: Code smells, duplicate code, overly complex functions, trailing whitespace, dead code.
  • Error handling: Missing or incorrect error handling, unhandled exceptions, silent failures.
  • Logging: Missing or excessive logging, sensitive data in logs.
  • Documentation: Missing or outdated comments, unclear variable/function names.

Step 4 — Report findings

For each issue found:

  • State the file path and line number(s).
  • Show the existing code snippet that needs to change.
  • Provide the suggested fix or improvement.

Only include code snippets that actually require changes — do not repeat code that looks fine.

Read the full file on GitHub · 74 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 · 74 lines · 56 tokens per session scan A 6b8dc0b34648

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository abdullahkhawer/devops-skills (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 595 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

docs-manage

Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, and removing libraries from the index. Use when you need to add, update, or delete indexed documentation.

arabold/docs-mcp-server · 53 tokens

docs-search

Search and query the Grounded Docs MCP Server documentation index. Covers listing indexed libraries, searching documentation content, and resolving library versions. Use when you need to look up API references, find code examples, or check which documentation is available in the local index.

arabold/docs-mcp-server · 54 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens

lore

SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated evidence, and interactively forge the chosen ones into skills installed across all your agent harnesses. Use when the user…

specstoryai/getspecstory · 109 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

live-exercise

Use whenever any UI-bearing work touches a running instance — building or fixing a feature, ship-gating, auditing, OR debugging visible bugs (flaky behavior, intermittent rendering, "sometimes does X" reports, hover/focus/animation glitches, layout overflow). Adaptive depth from tactical fix-loop to ship-gate audit.…

gitkraken/vscode-gitlens · 76 tokens