cli-review

cli-review is a skill for Claude Code from kellykampen/agent-skills. It costs 61 tokens per session (524 once invoked), scanned C, a copy of cli-review, MIT.

A local command-line code review helper that sends the current branch to Greptile for analysis. Greptile is an external code-review service.

In plain words
What is it for?
It checks the repository, verifies the Greptile command-line tool and sign-in, runs a review, and reports the returned issues.
Why use it?
It lets you request review before opening a pull request and summarizes the service's findings in your local workflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-skills plugin — 25 skills, 7 commands shipped together

Good fit It checks the repository, verifies the Greptile command-line tool and sign-in, runs a review, and reports the returned issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kellykampen/agent-skills/cli-review
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 kellykampen/agent-skills --skill cli-review
Clone the repo
git clone --depth 1 https://github.com/kellykampen/agent-skills

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 25 skills, 7 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kellykampen/agent-skills/cli-review/github.svg)](https://agentmods.dev/skills/kellykampen/agent-skills/cli-review)
Your own site
<a href="https://agentmods.dev/skills/kellykampen/agent-skills/cli-review"><img src="https://agentmods.dev/badge/skills/kellykampen/agent-skills/cli-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.

agentmods 80×15 button for cli-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/kellykampen/agent-skills/cli-review"><img src="https://agentmods.dev/badge/skills/kellykampen/agent-skills/cli-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00061 $0.00524
Opus 5 $0.00030 $0.00262
Sonnet 5 $0.00012 $0.00105
Haiku 4.5 $0.00006 $0.00052

Measured 9d ago against content hash 56a93ea9d5da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

cli-review scanned grade C with 2 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 9d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL "https://greptile.com/cli/install" | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(git:*) Bash(greptile:*) Bash(command:*) Bash(curl:*) Bash(npm:*)
Origin

This is a copy

100% identical to cli-review — 0 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.

skills/engineering/cli-review/SKILL.md · 95 lines

What it actually says

CLI Review

Run a Greptile review from the local checkout and summarize the findings.

Instructions

1. Confirm repository context

Start from the current repository root:

git rev-parse --show-toplevel

If the command fails, tell the user that the Greptile CLI review must be run from a git repository.

2. Check for the Greptile CLI

Check whether greptile is installed:

command -v greptile

If it is missing, do not install it automatically. Ask the user for permission, then show the recommended install command:

npm i -g greptile

If npm is unavailable, offer the shell installer fallback:

curl -fsSL "https://greptile.com/cli/install" | sh

After installation, re-run command -v greptile.

3. Ensure authentication

Check the signed-in account:

greptile whoami

If the CLI reports that authentication is missing, run:

greptile login

Wait for the user to complete the login flow before continuing.

4. Run the review

Prefer JSON output:

greptile review --json

If JSON output is unsupported or fails with a usage error, fall back to:

greptile review --agent

Do not hide the raw command failure if both commands fail. Summarize the failing command and the next action the user needs to take.

5. Summarize results

Parse JSON output when available and report:

  • Review status
  • Number of findings
  • Highest severity findings first
  • Files that need edits
  • Suggested next command or fix path

When output is plain text, preserve the same structure as much as possible. Keep the summary concise and focused on actionable findings.

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. 9d ago First seen · 95 lines · 61 tokens per session scan C 56a93ea9d5da

Subscribe to this mod's changes

cli-review is a skill published in the GitHub repository kellykampen/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 524 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). It is 100% identical to cli-review, differing in 0 lines, and is treated as a copy.