cli-review

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

A command-line code review using Greptile, a tool that analyzes a local Git branch for possible problems. It returns and summarizes the review findings before a pull request is opened.

In plain words
What is it for?
Use it from a Git repository to check the current branch, confirm Greptile access, run a review, and inspect the reported findings.
Why use it?
It provides an extra review of local changes when a hosted pull-request review is not available yet.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

About the project

OpenPets is a desktop companion platform that displays animated pets and lets plugins add abilities such as focus timers, reminders, games, launch shortcuts, and coding-agent interactions. Developers can create sandboxed JavaScript or TypeScript plugins, while optional integrations let supported agents drive local pet reactions.

alvinunreal/openpets · 1,149 stars · on GitHub · openpets.dev

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.

agentmods
npx agentmods add skills/alvinunreal/openpets/cli-review
Any agent
npx skills add alvinunreal/openpets --skill cli-review
Clone the repo
git clone --depth 1 https://github.com/alvinunreal/openpets

Made for: Claude Code.

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/alvinunreal/openpets/cli-review.svg)](https://agentmods.dev/skills/alvinunreal/openpets/cli-review)
Your own site
<a href="https://agentmods.dev/skills/alvinunreal/openpets/cli-review"><img src="https://agentmods.dev/badge/skills/alvinunreal/openpets/cli-review.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 6d ago against content hash 56a93ea9d5da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

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.

.agents/skills/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. 6d 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 alvinunreal/openpets (1,149 stars, last pushed 7d 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.