跳到正文
Skillpedia
通用编程10k · #12009

cli-review

它能做什么

这个技能对你本地检出的代码运行 Greptile 代码审查,并总结结果。适合希望在提交拉取请求前获得自动审查反馈的开发者。

适用场景

  • ✓你想在提交拉取请求前,获得本地分支的反馈的时候。
  • ✓你想从本地检出运行审查,而不是使用托管的拉取请求审查的时候。
  • ✓你需要审查发现的简短总结,而不是原始 JSON 输出的时候。

技能链接

https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/.agents/skills/cli-review/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/.agents/skills/cli-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请对我当前的分支运行 Greptile 审查,并在我提交拉取请求前告诉我主要问题。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能检查 Greptile 命令行工具是否已安装并登录,运行审查,然后总结发现的问题。安装任何内容前,它会先征求你的许可。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

常见问题

它会不经询问就安装工具吗?

不会。如果缺少 Greptile 命令行工具,这个技能会先征求你的许可。

如果审查命令失败怎么办?

这个技能会报告失败的命令,以及你接下来需要做的步骤。

它需要 Git 仓库吗?

需要。审查必须在 Git 仓库中运行,如果你不在仓库中,这个技能会告诉你。

详情

作者的原始描述

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.

repo: alvinunreal/oh-my-opencode-slim

热度

GitHub 星标
10k
排名
#12009
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能