ai-code-review-lord

ai-code-review-lord is a skill for Claude Code, Codex from m3taz-ahmed/ai-globals. It costs 42 tokens per session (1,456 once invoked), scanned A, original, MIT.

A guide for using AI to inspect code changes before a pull request, including security checks and detection of made-up APIs or imports. A pull request is a proposed change for review before it is merged into a project.

In plain words
What is it for?
It is for reviewing diffs before pull requests, finding secrets and vulnerable dependencies, checking code behavior, and sending serious issues to a human reviewer.
Why use it?
It catches security issues and plausible-looking mistakes before human review, reducing review bottlenecks and risky changes reaching the codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Cursor.

Good fit It is for reviewing diffs before pull requests, finding secrets and vulnerable dependencies, checking code behavior, and sending serious issues to a human reviewer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m3taz-ahmed/ai-globals/ai-code-review-lord
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 m3taz-ahmed/ai-globals --skill ai-code-review-lord
Clone the repo
git clone --depth 1 https://github.com/m3taz-ahmed/ai-globals

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/ai-code-review-lord/github.svg)](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/ai-code-review-lord)
Your own site
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/ai-code-review-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/ai-code-review-lord/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 ai-code-review-lord

Your own site · 80×15
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/ai-code-review-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/ai-code-review-lord.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,456 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.00042 $0.01456
Opus 5 $0.00021 $0.00728
Sonnet 5 $0.00008 $0.00291
Haiku 4.5 $0.00004 $0.00146

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

Security

Grade A, and why

ai-code-review-lord 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 6d 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/ai-code-review-lord/SKILL.md · 59 lines

How it starts

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

AI Code Review Lord

[OBJ] Automate pre-PR code review with AI tools, security scanning, diff-aware analysis, and hallucination detection — gated by severity, with human escalation for high-risk changes.

Problem

Human code review is slow, inconsistent, and bottlenecked. AI-generated code introduces new failure modes: hallucinated APIs, fabricated imports, and plausible-but-wrong logic that passes human glance. Traditional linters catch style issues but miss semantic bugs. The gap between "merged" and "correct" needs automated, diff-aware, security-conscious review that knows the difference between AI-generated and human-written code.

Rules

  1. [REQ] Automated pre-PR review. Run AI review BEFORE the PR is created or opened. Developer runs review locally (Cursor Bugbot, Copilot self-review, Claude Code review) on the diff. Review feedback is addressed before the PR reaches a human reviewer. No PR opens without a prior AI review pass.
  2. [REQ] Security scanning — three layers. (a) Secret detection (GitLeaks, TruffleHog — scan for API keys, tokens, passwords in diff), (b) Dependency scanning (Dependabot, Snyk — CVEs in new/changed dependencies), (c) Code scanning (Semgrep, CodeQL — static analysis for injection, XSS, SSRF, path traversal). All three run in CI; all three gate the pipeline.
  3. [REQ] AI review tools. Cursor Bugbot (inline review in Cursor IDE), Copilot self-review (GitHub-native, PR comments), Claude Code review (agentic, can read full repo context). Use at least one. Each tool has different strengths — Bugbot for IDE-integrated, Copilot for PR-integrated, Claude for deep-context.
  4. [REQ] Review checklist. Every review covers: correctness (does the code do what it claims?), security (injection, auth bypass, data exposure), performance (N+1 queries, unnecessary allocations, blocking calls), maintainability (readability, complexity, naming), test coverage (are the changed paths tested?).
  5. [REQ] False positive management. Track FP rate per reviewer (AI + human). If an AI reviewer flags >30% false positives, tune its configuration or switch tools. Developers can dismiss AI comments with a reason — dismissed comments feed back into FP tracking. No AI review tool runs untuned.
  6. [REQ] Review severity levels. BLOCK (security vulnerability, data loss, broken functionality — must fix before merge), WARN (code smell, missing test, performance concern — should fix, can override with justification), INFO (style, suggestion, nitpick — optional). CI gate: BLOCK = pipeline fails, WARN = requires override, INFO = no gate.
  7. [REQ] Review integration in CI/CD. AI review runs as a CI job on every PR. Results posted as PR comments (inline on specific lines). BLOCK-level findings fail the CI check. Review runs in parallel with tests — does not extend pipeline time.
  8. [REQ] Human review escalation. Escalate to human review when: (a) AI reviewer confidence is low, (b) change touches security-critical code (auth, crypto, payment), (c) change >500 lines (AI context limits), (d) AI-generated code with novel patterns. No auto-merge on escalated changes.
  9. [REQ] Review metrics. Track: review time (AI + human), defect density (bugs found per 1K lines), escape rate (bugs found post-merge / total bugs), FP rate, override rate. Review metrics dashboard updated weekly. Trend analysis — no metric should be unmeasured.
  10. [REQ] Diff-aware review. Review ONLY changed lines + surrounding context (±10 lines). Full-file review wastes tokens and produces irrelevant findings. AI reviewer receives the git diff, not the full file. Context window is for understanding, not re-reviewing unchanged code.
  11. [REQ] Large diff handling. Diffs >1000 lines: split into logical chunks (by file or by commit) and review each chunk separately. Diffs >5000 lines: require human review + architectural sign-off. No single AI review pass on a 5000-line diff — context window limits guarantee missed findings.
  12. [REQ] Review for AI-generated code. When code is AI-generated (Cursor, Copilot, Claude), apply additional checks: (a) hallucination detection — verify all API calls, function names, and imports exist in the codebase or documented SDK, (b) API verification — check that function signatures match the actual API, (c) import verification — every import resolves to a real module.
  13. [REQ] Hallucination detection. For AI-generated code, cross-reference every API call against: (a) the project's codebase (does this function exist?), (b) the SDK documentation (does this method exist in this version?), (c) the lockfile (is this package version the one with this API?). Flag any mismatch as BLOCK — AI hallucinations compile sometimes but fail at runtime.
  14. [REQ] Review bypass prevention. No developer can bypass BLOCK-level findings without: (a) documented justification, (b) approval from a second reviewer or tech lead, (c) a tracking ticket. Bypass attempts are logged and audited. No silent overrides.
  15. [REQ] Audit trail for reviews. Every review (AI + human) is logged: reviewer, files reviewed, findings, severity, resolution (fixed/dismissed/escalated), timestamp. Audit trail retained per compliance policy. No review happens without a log entry.
  16. [PROHIBIT] Merging AI-generated code without hallucination detection and API verification — AI can write code that looks correct, compiles, and is completely wrong.

Read the full file on GitHub · 59 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. 6d ago First seen · 59 lines · 42 tokens per session scan A cc026f2c7688

Subscribe to this mod's changes

ai-code-review-lord is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 1,456 once invoked, about $0.0002 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-09-06.