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 AmineDjeghri/personal-os-setup --skill github-code-reviewgit clone --depth 1 https://github.com/AmineDjeghri/personal-os-setupWrote 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/aminedjeghri/personal-os-setup/github-code-review)<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/github-code-review"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/github-code-review/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/aminedjeghri/personal-os-setup/github-code-review"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/github-code-review.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.00018 | $0.01014 |
| Opus 5.5 | $0.00007 | $0.00406 |
| Sonnet 5.5 | $0.00004 | $0.00203 |
| Haiku 4.5 | $0.00002 | $0.00101 |
Grade A, and why
github-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 1mo 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.
This is a copy
89% identical to github-code-review — 438 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub Code Review
Plain git for local review; gh for PRs. No gh? Install it (see github-auth) — fallback: github-auth/references/rest-api-fallback.md.
Prerequisites
OWNER_REPO=$(git remote get-url origin | sed -E 's|.*github\.com[:/]||; s|\.git$||')
OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1); REPO=$(echo "$OWNER_REPO" | cut -d/ -f2)
1. Reviewing Local Changes (Pre-Push)
Pure git — works everywhere, no API needed.
Review Strategy
- Scope first:
git diff main...HEAD --statandgit log main..HEAD --oneline. - File by file: read the changed files for context,
git diff main...HEAD -- <path>for one file,git diff main...HEAD --name-onlyto list files,git diff --stagedfor staged-only work. - Check the diff for common issues:
git diff main...HEAD | grep -n "print(\|console\.log\|TODO\|FIXME\|HACK\|XXX\|debugger"
git diff main...HEAD --stat | sort -t'|' -k2 -rn | head -10 # large files accidentally staged
git diff main...HEAD | grep -in "password\|secret\|api_key\|token.*=\|private_key"
git diff main...HEAD | grep -n "<<<<<<\|>>>>>>\|=======" # merge conflict markers
- Present structured feedback in the format owned by
references/review-output-template.md(output format, severity guide, verdict rule).
2. Reviewing a Pull Request on GitHub
View PR Details
gh pr view 123
gh pr diff 123
gh pr diff 123 --name-only
Check Out PR Locally for Full Review
gh pr checkout 123 # then read the changed files, run the tests
git diff main...HEAD
Comment, Inline Comment, and Formal Review
gh pr comment 123 --body "Overall looks good, a few suggestions below."
HEAD_SHA=$(gh pr view 123 --json headRefOid --jq '.headRefOid')
gh api repos/$OWNER/$REPO/pulls/123/comments \
--method POST \
-f body="This could be simplified with a list comprehension." \
-f path="src/auth/login.py" \
-f commit_id="$HEAD_SHA" \
-f line=45 \
-f side="RIGHT"
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.
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.
- 1mo ago Changed 4a74a1d1f51a
- 1mo ago Changed · -79 lines 6fe31bf43a05
- 2mo ago Changed · -293 lines scan C → A 8845b1366c99
- 2mo ago First seen · 482 lines · 18 tokens per session scan C 957c4d454ca7
github-code-review is a skill published in the GitHub repository AmineDjeghri/personal-os-setup (687 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,014 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to github-code-review, differing in 438 lines, and is treated as a copy.
github-code-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| github-code-reviewAmineDjeghri/personal-os-setup | Skill | 687 | today | MIT | A | 18 | Claude Code, Codex |
| pr-monitorantropos17/Aegis | Skill | 162 | 5d ago | MIT | A | 25 | Claude Code, Codex |
| github-pr-workflowtaracodlabs/aiden | Skill | 915 | 1mo ago | AGPL-3.0 | A | 20 | Claude Code, Codex |
| github-pr-flowmgerdov-igt/ai-cookbook | Skill | 2 | 3d ago | none | A | 59 | Claude Code, Codex |
| prYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 47 | Claude Code |
| otto-pr-review-loopomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 17 | Claude Code, Codex |
| engram-branch-prGentleman-Programming/engram | Skill | 8.4k | 6d ago | MIT | A | 37 | Claude Code, Codex |