cli-review

GitHub

在本地仓库运行 Greptile CLI 代码审查,处理安装认证及 JSON 结果解析,汇总关键发现与修复建议,适用于 PR 提交前的本地代码质量检查。

.agents/skills/cli-review/SKILL.md alvinunreal/oh-my-opencode-slim

Trigger Scenarios

用户希望在本地执行代码审查 用户希望获取 Greptile 的反馈 用户准备打开 PR 前进行自查

Install

npx skills add alvinunreal/oh-my-opencode-slim --skill cli-review -g -y
More Options

Non-standard path

npx skills add https://github.com/alvinunreal/oh-my-opencode-slim/tree/master/.agents/skills/cli-review -g -y

Use without installing

npx skills use alvinunreal/oh-my-opencode-slim@cli-review

指定 Agent (Claude Code)

npx skills add alvinunreal/oh-my-opencode-slim --skill cli-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add alvinunreal/oh-my-opencode-slim --all -g -y

预览 repo 内 skill

npx skills add alvinunreal/oh-my-opencode-slim --list

SKILL.md

Frontmatter
{
    "name": "cli-review",
    "license": "MIT",
    "metadata": {
        "author": "greptileai",
        "version": "1.0"
    },
    "description": "Runs a Greptile CLI review for the current local branch, installing or authenticating the CLI when needed, then summarizes JSON findings for the user. Use when the user wants Greptile feedback before opening a PR, outside a hosted PR review flow, or directly from a local checkout.\n",
    "allowed-tools": "Bash(git:*) Bash(greptile:*) Bash(command:*) Bash(curl:*) Bash(npm:*)"
}

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.

Version History

  • 34bffad Current 2026-08-20 11:43

Same Skill Collection

.agents/skills/release-smoke-test/SKILL.md
src/skills/clonedeps/SKILL.md
src/skills/codemap/SKILL.md
src/skills/deepwork/SKILL.md
src/skills/oh-my-opencode-slim/SKILL.md
src/skills/reflect/SKILL.md
src/skills/simplify/SKILL.md
src/skills/verification-planning/SKILL.md
src/skills/worktrees/SKILL.md
src/skills/loop-engineering/SKILL.md

Metadata

Files
0
Version
34bffad
Hash
56a93ea9
Indexed
2026-08-20 11:43

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 18:52
浙ICP备14020137号-1 $방문자$