Skillpedia
برمجة عامة10k · #12009

cli-review

ما الذي تفعله

تشغّل هذه المهارة مراجعة شيفرة من Greptile على الشيفرة في نسختك المحلية، وتلخّص النتائج. وهي موجهة للمطورين الذين يريدون ملاحظات مراجعة آلية قبل فتح طلب سحب.

متى تستخدمها

  • ✓عندما تريد ملاحظات على فرعك المحلي قبل أن تفتح طلب سحب.
  • ✓عندما تريد تشغيل مراجعة من نسخة محلية بدلًا من مراجعة طلب سحب مستضافة.
  • ✓عندما تحتاج إلى ملخص قصير لنتائج المراجعة بدلًا من مخرجات JSON الخام.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/.agents/skills/cli-review/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“شغّل مراجعة Greptile على فرعي الحالي، وأخبرني بأهم المشكلات قبل أن أفتح طلب السحب.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تتحقق المهارة من أن أداة سطر أوامر 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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة