review-code

review-code is a skill for Claude Code, Codex from encoreshao/encore-skills. It costs 26 tokens per session (766 once invoked), scanned A, original, MIT.

A checklist for reviewing code before opening a GitLab merge request, the GitLab equivalent of a GitHub pull request. It starts by checking whether the change actually solves the reported problem, then examines security, correctness, and simplicity.

In plain words
What is it for?
Use it to review a local code diff or an existing merge request, inspect its changes and comments, and verify that the implementation matches the original issue.
Why use it?
It helps catch unresolved requirements, security issues, bugs, and unnecessarily complicated solutions before someone else reviews the change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a local code diff or an existing merge request, inspect its changes and comments, and verify that the implementation matches the original issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/encoreshao/encore-skills/review-code
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.

Any agent
npx skills add encoreshao/encore-skills --skill review-code
Clone the repo
git clone --depth 1 https://github.com/encoreshao/encore-skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/encoreshao/encore-skills/review-code.svg)](https://agentmods.dev/skills/encoreshao/encore-skills/review-code)
Your own site
<a href="https://agentmods.dev/skills/encoreshao/encore-skills/review-code"><img src="https://agentmods.dev/badge/skills/encoreshao/encore-skills/review-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 766 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.00026 $0.00766
Opus 5 $0.00013 $0.00383
Sonnet 5 $0.00005 $0.00153
Haiku 4.5 $0.00003 $0.00077

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

Security

Grade A, and why

review-code 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 8d 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/review-code/SKILL.md · 103 lines

How it starts

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

Review Code

Self-review before opening an MR. A reviewer's time is expensive — don't waste it on things you could have caught yourself.

Input

# Local diff (self-review before opening MR)
git diff origin/main

# Review an existing MR via API (supports multiple GitLab servers)
GITLAB="$HOME/.claude/skills/gitlab-config/scripts/gitlab_api.py"
python $GITLAB get-mr <project> <mr_iid>      # MR metadata + comments
python $GITLAB get-diff <project> <mr_iid>    # unified diff of all changes

# Fallback with glab
glab mr view <number> --web

Review order

1. Does it actually solve the problem? (most important)

Go back to the issue. Read it again. Ask:

  • Does my change fix the root cause identified in the analysis?
  • Would the user who reported this issue confirm it's resolved?
  • Can I trace from the issue → root cause → my fix and see a clear line?

If the answer is "probably" or "I think so" — that's not good enough. Go verify.

2. Is it the simplest solution?

Before checking anything else, ask: is there a simpler way to fix this?

A 10-line change that's hard to follow is worse than a 30-line change that's obvious. But a 30-line change where 20 lines are unnecessary is worse than both. Cut what isn't needed.

3. Security

  • No secrets, tokens, or credentials in code or comments
  • User input is validated before use — not after, not maybe
  • SQL/queries use parameterized inputs
  • Auth checks exist on any new endpoints or actions
  • No eval, exec, or dynamic code execution with user input

4. Correctness

  • Edge cases covered: empty inputs, nulls, zero, large values
  • Error cases handled — what happens when things fail?
  • No silent failures (exceptions swallowed, errors ignored)
  • Concurrency safe if relevant

5. Code quality

  • Follows existing patterns — you're not the first person in this codebase
  • No dead code, debug logs, or commented-out blocks left in
  • Names describe intent, not implementation
  • No unnecessary abstraction for a one-time use case

Read the full file on GitHub · 103 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 103 lines · 26 tokens per session scan A 7433dae96b30

Subscribe to this mod's changes

review-code is a skill published in the GitHub repository encoreshao/encore-skills (2 stars, last pushed 19d ago), licensed MIT. It adds 26 tokens to every session and 766 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.

Related

Other skills, from other repositories

code-review-and-quality

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

addyosmani/agent-skills · 51 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now…

addyosmani/agent-skills · 67 tokens

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

addyosmani/agent-skills · 51 tokens

chinese-code-review

A Chinese-language code-review communication guide with templates and severity levels for review comments.

jnMetaCode/superpowers-zh · 62 tokens

receiving-code-review

A guide for handling code-review feedback carefully. Code review is the process of checking proposed changes before they are accepted into a project.

jnMetaCode/superpowers-zh · 50 tokens

requesting-code-review

A code-review procedure for checking completed work against its requirements before it spreads or is merged. A code reviewer is a person or agent who looks for defects and missing parts.

jnMetaCode/superpowers-zh · 24 tokens