Skill

AI code review skill for Claude Code and Codex

The Codema.ai AI code review skill is a SKILL.md named ai-code-review that reviews the current branch against main for access control, secrets, dependencies, input handling, errors and scope. It reports findings by severity and does not change code unless you ask after reading the report. The zip is a free download, with no account needed.

Codema.ai's ai-code-review skill reviews a branch diff for access control, secrets, dependencies and errors, then reports findings without changing code.

Version 1.0License: MITUpdated

Download zipSKILL.md

Typographic cover for the Codema AI code review skill. The headline AI code review sits on a dark green-black field with a Coding tools label, the line Reviews a branch for access control, secrets, dependencies and errors, two stylized SKILL.md cards and the codema. wordmark.

The short answer

The Codema.ai AI code review skill is a SKILL.md named ai-code-review that reviews the current branch against main for access control, secrets, dependencies, input handling, errors and scope. It reports findings by severity and does not change code unless you ask after reading the report. The zip is a free download, with no account needed.

If you are new to the format, start with What are agent skills? How to write your first SKILL.md. For how coding agents differ more broadly, see our coding agents guide.

What the skill does

The skill reviews the git diff of the current branch against the base branch, usually main. It works through a fixed order:

  1. Scope the diff, list every changed file, and flag anything that does not relate to the stated task as UNEXPECTED. If the diff is over roughly 800 changed lines, it should say so and suggest splitting the review.
  2. Access control, which it treats as the highest priority, including whether user A can read or change user B's data, and extra checks when the project uses Supabase.
  3. Secrets and the browser boundary, including hard-coded keys and public-prefixed environment variables.
  4. New dependencies in manifests such as package.json or requirements.txt, without installing anything to check them.
  5. Input, output and errors, including SQL, HTML, redirects, file paths, shell commands, empty catch blocks and logs that might include secrets.
  6. Whether the diff does what was asked, including weakened tests and leftover stubs.
  7. Evidence: if the project defines build, test and lint commands, the agent should run them and include the real output. If it cannot run them, it must say so and must not claim they passed.

The report has a verdict (SAFE TO MERGE, MERGE AFTER FIXES, or DO NOT MERGE), a findings table with severity, file and line, unexpected changes, evidence, and a "not checked" list.

The download is ai-code-review.zip, which contains one file, ai-code-review/SKILL.md. The same SKILL.md is also listed on its own in the site manifest. This skill is also one of the five folders in the starter skills pack.

When to use it, and when not to

Use it when you want a structured review of a branch, a pull request, or a security pass over AI-written changes, or when you ask whether a branch is safe to merge. The skill's own description names those triggers. Existing Codema.ai copy also suggests running it in a fresh session so the reviewer is not the same agent that wrote the code.

Do not use it as a substitute for a human review. The skill says findings are leads for a person to confirm. Do not use it if you want the agent to start fixing the branch immediately; it is written to report first. Do not use it as a full Supabase policy audit; for that, use the Supabase RLS audit skill. And do not confuse it with Claude Code's bundled /code-review command; this skill is deliberately named ai-code-review.

What's in the SKILL.md

The front matter, quoted from the file in the repo, is:

markdown
---
name: ai-code-review
description: Reviews the current branch diff for AI-written code risks, in priority order (access control, secrets, dependencies, input handling, errors, scope) and reports findings by severity without changing code. Use when the user asks for a code review, a security review, a PR review, or whether a branch is safe to merge.
metadata:
  author: codema
  version: "1.0"
---

The body opens with: "Review the changes on the current branch against the main branch. Report first. Do not edit, commit, or push anything unless the user explicitly asks after reading the report."

It then lists the steps above, and it closes with: "Treat your own findings as leads for a human to confirm. 'No findings' does not mean the code is safe."

The zip contains only that SKILL.md. There are no bundled scripts. License: MIT.

How to install it

Download ai-code-review.zip from this page. It is free and does not require an account. Unzip it and confirm that SKILL.md sits directly inside a folder named ai-code-review, not under an extra directory the archive may have added. Then copy that folder into the skills location for your agent. Official install docs are the source for the paths below.

Claude Code

Claude Code loads a skill from a folder that contains SKILL.md. Copy ai-code-review/ to:

  • Project (shared with the repo): .claude/skills/ai-code-review/SKILL.md
  • Personal (every project on this machine): ~/.claude/skills/ai-code-review/SKILL.md

Claude Code discovers the skill automatically. Invoke it with /ai-code-review, or ask in plain words that match the description, for example "review this branch before I merge". Personal skills in ~/.claude/skills/ are not loaded in Cowork or cloud sessions; for those, the Claude Code docs describe account-synced skills or a project skill committed to the repo.

Codex

Codex scans .agents/skills from your working directory up to the repository root, and loads personal skills from $HOME/.agents/skills. Copy ai-code-review/ to:

  • Project: .agents/skills/ai-code-review/
  • Personal: $HOME/.agents/skills/ai-code-review/

In Codex CLI or the IDE extension, type $ and the skill name (for example $ai-code-review), or run /skills. Codex can also load the skill when your task matches its description. It detects new skills automatically; if one does not appear, restart Codex. Codex also ships a $skill-installer that can install a skill from a GitHub repo. A public Codema.ai skills repo is not published yet, so copy the folder by hand for now.

Cursor

Cursor discovers skills when it starts, from project folders .agents/skills/ and .cursor/skills/, and from user folders ~/.agents/skills/ and ~/.cursor/skills/. For compatibility, it also loads .claude/skills/, .codex/skills/, ~/.claude/skills/ and ~/.codex/skills/. The name in the front matter must match the folder name, which it does here (ai-code-review).

Copy ai-code-review/ into one of those locations. Then start a new Agent chat and type / to search for ai-code-review. Cursor's docs say skills are not imported from a GitHub repository on their own unless they are packaged as a plugin, so a folder copy is the path that matches the current docs.

How to vet it

Read the SKILL.md before you install it, even though this zip has no scripts. Check that name matches the folder name, and that the description matches what the file actually tells the agent to do. This skill does not set allowed-tools, and it does not tell the agent to hide work from you or to skip confirmation.

For a fuller pass, especially on third-party skills, use the cross-agent security checklist, which ships a 26-question list and a read-only scanner. Install this skill at project level first if you want to try it in one repo only.

A note on provenance: the file's metadata lists author: codema and version: "1.0". When you install from the public GitHub repo, pin a specific commit so the file can't change under you.

Similar skills

Addy Osmani's code review and quality skill reviews a change for correctness, readability, architecture, security and performance. That page describes his MIT-licensed skill at one pinned commit. It is not this Codema.ai skill.

SKILL.md

AI code review

Review the changes on the current branch against the main branch. Report first. Do not edit, commit, or push anything unless the user explicitly asks after reading the report.

0. Scope the diff

  1. Find the base branch (usually main). Run git diff --stat <base>...HEAD and git diff <base>...HEAD.
  2. List every changed file with a one-line summary of what changed.
  3. Flag any changed file that does not relate to the stated task as UNEXPECTED.
  4. If the diff is over roughly 800 changed lines, say so and suggest splitting it before a full review.

1. Access control (highest priority)

For every new or changed route, API handler, server action, query, or database policy, answer: can user A read or change user B's data?

  • Check that each data access is scoped to the signed-in user or an explicit permission.
  • If the project uses Supabase: every table in an exposed schema has Row Level Security enabled; policies name a role (to authenticated); update policies have both using and with check; policies do not trust user_metadata; views use security_invoker = true (Postgres 15+).
  • Look for admin or service-role clients used in code paths that handle user requests.

2. Secrets and the browser boundary

  • Search the diff for hard-coded keys, tokens, passwords, connection strings and Bearer headers, including tests and seed scripts.
  • Flag any secret-looking environment variable with a public prefix (NEXT_PUBLIC_, VITE_, PUBLIC_, EXPO_PUBLIC_).
  • Flag any server-only client (for example a Supabase secret or service_role key) imported into client components.

3. New dependencies

For each dependency added to package.json, requirements.txt, pyproject.toml or similar:

  • Confirm the exact package name exists on the official registry and is the intended one (watch for near-miss spellings).
  • Note whether it is necessary or replaceable with a few lines of code.
  • Do not install anything to check; read the manifest and lockfile only.

4. Input, output and errors

  • User input reaching SQL, HTML, redirects, file paths or shell commands must be validated or parameterized.
  • Look for empty catch blocks, errors swallowed and reported as success, and stack traces returned to users.
  • Check logs do not include secrets or personal data.

5. Does it do what was asked?

  • Compare the diff with the task or acceptance criteria the user gave.
  • Flag weakened test assertions, skipped tests, leftover TODOs, stubs or mocks in production code.
  • Note over-abstraction where a simpler version would do.

6. Evidence

If the project defines build, test and lint commands (see package.json scripts or AGENTS.md), run them and include the real output summary. If you cannot run them, say so; never claim they pass.

Report format

Reply with:

  1. Verdict: SAFE TO MERGE, MERGE AFTER FIXES, or DO NOT MERGE.
  2. Findings table: severity (critical, high, medium, low), file and line, what is wrong, suggested fix.
  3. Unexpected changes: files outside the task.
  4. Evidence: commands run and their results.
  5. Not checked: anything you could not verify, so a human can.

Treat your own findings as leads for a human to confirm. "No findings" does not mean the code is safe.

FAQ

What is the skill actually named?

The SKILL.md front matter sets name to ai-code-review, and the zip folder uses the same name. That is the name you type to invoke it, for example /ai-code-review in Claude Code or Cursor, or $ai-code-review in Codex.

Does it edit my code?

No. The skill tells the agent to report first and not to edit, commit or push anything unless you explicitly ask after reading the report.

Is a clean report enough to merge?

No. The skill itself says to treat findings as leads for a human to confirm, and that no findings does not mean the code is safe.

Which agents can load it?

The pack and the existing Codema.ai resource page document install paths for Claude Code, Codex and Cursor. The SKILL.md does not list product versions.

Is this the same as Claude Code's built-in code review command?

No. Claude Code ships a bundled /code-review skill. This one is named ai-code-review so the folder and command do not clash with that built-in.

Sources

  1. Codema.ai, ai-code-review SKILL.md (version 1.0)
  2. Claude Code docs, Extend Claude with skills
  3. OpenAI Codex docs, Build skills
  4. Cursor docs, Agent Skills