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.
npx skills add m3taz-ahmed/ai-globals --skill ai-code-review-lordgit clone --depth 1 https://github.com/m3taz-ahmed/ai-globalsWrote 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.
[](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/ai-code-review-lord)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- [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.
- [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.
- [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.
- [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?).
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [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.
- [PROHIBIT] Merging AI-generated code without hallucination detection and API verification — AI can write code that looks correct, compiles, and is completely wrong.
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.
- 6d ago First seen · 59 lines · 42 tokens per session scan A cc026f2c7688
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.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
full-repo-review
Comprehensive four-wave review of all repo source files, producing a prioritized issue backlog.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…