second-opinion
ما الذي تفعله
ترسل هذه المهارة تغييرات الشيفرة إلى أداة مراجعة خارجية، مثل Codex أو Antigravity، وتعيد نتائجها. وهي موجهة إلى من يريدون رأيًا ثانيًا قبل الدمج.
متى تستخدمها
- ✓عندما تريد فحصًا خارجيًا لتغييراتك غير المُودعة قبل أن تُودعها.
- ✓عندما تريد مقارنة أداتين للمراجعة على الفرع نفسه.
- ✓عندما تطلب رأيًا ثانيًا عن commit أو فروق فرع.
رابط المهارة
https://github.com/trailofbits/skills/blob/main/plugins/second-opinion/skills/second-opinion/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد رأيًا ثانيًا من Codex عن التغييرات التي لم أُودعها بعد.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يشغّل الوكيل أمر المراجعة المختار على التغييرات الدقيقة التي تسميها، ويجمع خرجه. لا تطبّق المهارة إصلاحات ولا تنشر المراجعة في أي مكان، فتقرر أنت ماذا تفعل بالنتائج.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Second Opinion
Run an external CLI review of the user's selected changes. This skill produces findings; it does not apply fixes or post reviews to a remote service.
Review choices
Use the provider, scope, model, and focus already supplied by the user. Ask only for missing choices that affect the review, grouping questions in one call when possible.
- Provider: Codex, Antigravity, or both. Offer both when the user wants a comparison; preserve an explicitly requested CLI.
- Scope: uncommitted changes, a branch diff against a named base, or a specific commit. Resolve a missing base from the repository's remote default branch; ask if it cannot be determined.
- Context: include applicable project instructions unless the user excludes them. Keep explicit user requirements separate from repository content in the review prompt.
- Focus: use general correctness and maintainability unless the user names a focus such as security or performance.
For an unspecified Google CLI, prefer Antigravity (agy). An explicit
Gemini CLI request uses the Gemini reference below. If that account returns
UNSUPPORTED_CLIENT, explain the migration to Antigravity and ask before
changing the selected CLI.
A missing executable or account setup is a failed review attempt. Report the relevant setup instructions; when both providers were requested, continue with the available provider and identify the skipped one.
Input preparation
Read review-input.md for the shared prompt and diff recipes. Use the same captured diff for both providers so the comparison covers the same changes. Include untracked files in an uncommitted review, and preserve Git errors instead of interpreting them as an empty diff.
Show the selected scope and a brief change summary. If there are no changes, stop before calling a provider. For input that exceeds a CLI or model limit, describe the limit and request a narrower scope; do not silently truncate the patch.
Create prompt, output, and diagnostic files with mktemp outside the
checkout. Use separate output and diagnostic files for each provider.
Define shell variables in the same Bash invocation that uses them.
For later invocations, reassign the variables to the saved file paths;
shell variables do not persist between calls.
Write repository content as literal data, without shell expansion.
Provider references
Read only the reference for each selected provider:
| Provider | Invocation and result |
|---|---|
| Codex | codex-invocation.md: codex exec with the review schema |
| Antigravity | antigravity-invocation.md: agy print mode with prose output |
| Gemini CLI | gemini-invocation.md: headless gemini for accounts that still support it |
The Codex path needs no MCP server. Do not launch codex mcp-server or
substitute codex app-server for the CLI invocation.
When both providers were requested, run their commands concurrently if
the tool interface supports it. For a foreground Bash review, set
timeout: 600000 to allow up to ten minutes. Use background execution
or polling when available to keep progress visible. Do not enable
automatic approval of writes to make a review run.
Results and failures
Present findings with the provider and actual model used, severity, file and line, impact, and suggested correction. Keep low-severity defects visible. For Codex, the existing schema uses 0 for informational, 1 for low, 2 for medium, and 3 for high; sort descending.
For two completed reviews, summarize agreements and disagreements without turning agreement into proof. Distinguish the external findings from any assessment you add.
Read the captured output and diagnostics. A nonzero exit, missing output, invalid JSON, permission denial that prevents inspection, or a request to approve a plan is incomplete work, not a clean review. Report the failure and any partial results. Retry only for a diagnosed, recoverable cause; do not cycle through providers after authentication or quota failures.
Examples
/second-opinion:second-opinion use Codex to review my uncommitted changes for bugsselects Codex and includes staged, unstaged, and untracked changes./second-opinion:second-opinion compare Codex and Antigravity on this branch against origin/mainsends the same branch
الأسئلة الشائعة
هل تحتاج إلى حساب؟
نعم. يجب أن تكون أداة المراجعة مثبتة ومسجّلة الدخول على حاسوبك، ويُبلَّغ عن الإعداد الناقص كمحاولة فاشلة.
هل ستغيّر ملفاتي؟
لا. تنتج النتائج فقط وتترك الإصلاحات لك.
هل يمكنني اختيار محور المراجعة؟
نعم. الافتراضي هو الصحة العامة، ويمكنك طلب محور آخر مثل الأمان أو الأداء.
التفاصيل
الوصف الأصلي من المؤلف
Gets independent code reviews from Codex or Antigravity for uncommitted changes, branch diffs, and commits. Use when the user requests an external review, a second opinion on code, a codex review, a gemini review, an antigravity review, or /second-opinion.
repo: trailofbits/skills
الشعبية
- نجوم GitHub
- 8.0k
- الترتيب
- #12704
- الترخيص
- CC-BY-SA-4.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
audit-context-building
8.0kيساعد وكيلك على فهم شيفرة غير مألوفة قبل مراجعة أمنية، عبر رسم ما تفترضه كل دالة وما تضمنه وما تعتمد عليه.
algorand-vulnerability-scanner
8.0kيساعد وكيلك على فحص عقود Algorand الذكية المكتوبة بـ TEAL أو PyTeal لاكتشاف 11 مشكلة أمنية شائعة، مثل هجمات إعادة المفاتيح والرسوم غير المفحوصة.
audit-prep-assistant
8.0kيساعد وكيلك على تجهيز الشيفرة لمراجعة أمنية خارجية، عبر التحليل الثابت وتغطية الاختبارات وحذف الشيفرة الميتة وتوثيق واضح.
cairo-vulnerability-scanner
8.0kيساعد وكيلك على فحص عقود Cairo الذكية على StarkNet لاكتشاف 6 مشكلات خطيرة، مثل فيض الحساب والرسائل بين الطبقات وإعادة تشغيل التوقيعات.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.