reproduce-bug
ما الذي تفعله
يحاول إعادة إنتاج خطأ معروف في مشروع محلي باستخدام الشيفرة الأصلية والمدخلات المخططة، ثم يحفظ الخرج الخام. وهو موجه إلى المطورين والمراجعين الذين يتأكدون من خطأ مبلّغ عنه قبل إصلاحه.
متى تستخدمها
- ✓عندما يحتاج مطور إلى إعادة إنتاج خطأ مسمى في مشروع محلي.
- ✓عندما يريد مراجع معرفة هل يحدث فعلًا خطأ مترجم أو وقت تشغيل مبلّغ عنه.
- ✓عندما يحتاج فريق إلى دليل إعادة الإنتاج قبل كتابة الإصلاح.
رابط المهارة
https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أعد إنتاج هذا التعطل المبلّغ عنه في مشروعي المحلي على الشيفرة الأصلية واحفظ الخرج.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تبني المهارة الشيفرة الحالية بأمر المشروع نفسه، وتشغّل المدخلات المخططة، بما فيها الحالات الضابطة. وتحفظ stdout وstderr وحالة الخروج والتوقيت، ثم تبلغ هل أُعيد الإنتاج أو لم يُعد أو تعذّر.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Reproduce Bug
When to Use
Use for the reproduction step of patching-bugs with one finding.json and a local
baseline checkout. Read the record contract.
Before target commands, follow its project guidance.
When NOT to Use
Do not use for bug discovery, patching, or a claim that cannot be exercised locally. Report a blocker when the build or environment cannot exercise the claim.
Procedure
Select
failure_typefrom the record contract. Build the current baseline with the project's own command. Exercise the planned scoped inputs before any edit and retain their observations, including valid controls. Save raw stdout, stderr, exit status, and timing. If the behavior is absent with trustworthy evidence, reportnot_reproduced; if setup or observations are unreliable, reportblocked.Runtime: exercise the built
target_artifactwith a PoC that recordsPATCH_LOADEDas defined in the contract, then printsPATCH_REACHEDimmediately before the assertion. Exit nonzero for the bug, zero otherwise; a setup crash is inconclusive. Compile: record the targetexpected_diagnosticfrom the failed compiler invocation; use emptypoc_argvand nulltarget_artifact.Save any unchanged PoC source under
reproduce/poc/and raw receipts underreproduce/receipts/. Writereproduce.jsonwith the baseline commit, command argument arrays, artifact path, observed result, outcome, and your agent identity. Setfinding.statustoreproducedornot_reproducedfrom the result. If reproduction isblocked, leavefinding.statusashypothesis.
{
"schema_version": 1,
"failure_type": "runtime",
"outcome": "reproduced",
"baseline_commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"build_argv": ["python", "build.py"],
"poc_argv": ["python", "poc.py"],
"target_artifact": "dist/app.py",
"observed": "The PoC wrote outside uploads after PATCH_REACHED.",
"blocker": null,
"agent": "reproducer-1"
}
- Manifest the complete
reproduce/directory, including the PoC and record, using the record helper: runuv run --no-project <script> manifest <reproduce-step-dir>. Then check the record before handoff. Stateblockedwith the actual failure when build or setup prevents a valid run.
Rationalizations to Reject
| Shortcut | Required action |
|---|---|
| A unit test imitates the bug. | Exercise the target compiler or built runtime artifact. |
| A nonzero exit proves reproduction. | Require the target diagnostic, or runtime marker and assertion. |
الأسئلة الشائعة
ماذا لو لم يحدث الخطأ؟
تبلغ المهارة بأنه لم يُعَد إنتاجه عندما تملك دليلًا موثوقًا على غياب السلوك.
ماذا لو فشل البناء؟
تبلغ المهارة بأن الحالة «تعذّر»، لأن إعدادًا غير موثوق لا يثبت غياب الخطأ.
هل تصلح الخطأ؟
لا. تعيد إنتاجه فقط. الترقيع خطوة منفصلة.
التفاصيل
الوصف الأصلي من المؤلف
Use when a named runtime or compiler bug in a local repository needs independent reproduction.
repo: trailofbits/skills
الشعبية
- نجوم GitHub
- 8.0k
- الترتيب
- #12691
- الترخيص
- 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 مشكلات خطيرة، مثل فيض الحساب والرسائل بين الطبقات وإعادة تشغيل التوقيعات.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.