Chuyển đến nội dung
Skillpedia
Lập trình chung10k · #12009

cli-review

Skill này làm gì

Skill này chạy đánh giá code Greptile trên mã trong bản sao cục bộ của bạn và tóm tắt kết quả. Skill dành cho developer muốn nhận góp ý tự động trước khi mở pull request.

Khi nào nên dùng

  • ✓Khi bạn muốn có góp ý cho nhánh cục bộ trước khi mở pull request.
  • ✓Khi bạn muốn chạy đánh giá từ một bản sao cục bộ thay vì đánh giá pull request trên máy chủ.
  • ✓Khi bạn cần bản tóm tắt ngắn các phát hiện thay vì kết quả JSON thô.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/.agents/skills/cli-review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chạy đánh giá Greptile trên nhánh hiện tại của tôi và cho tôi biết các vấn đề chính trước khi tôi mở pull request.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill kiểm tra công cụ dòng lệnh Greptile đã được cài và đăng nhập chưa, chạy đánh giá và tóm tắt kết quả. Skill xin phép bạn trước khi cài bất kỳ thứ gì.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Skill có tự cài công cụ mà không hỏi không?

Không. Nếu thiếu công cụ dòng lệnh Greptile, skill sẽ hỏi phép bạn trước.

Nếu lệnh đánh giá lỗi thì sao?

Skill báo lệnh bị lỗi và bước tiếp theo bạn cần làm.

Có cần kho Git không?

Có. Việc đánh giá phải chạy từ một kho Git, và skill sẽ báo nếu bạn không ở trong kho.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
10k
Vị trí xếp hạng
#12009
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự