Skillpedia
برمجة عامة12k · #11525

prepare-branch-context

ما الذي تفعله

تجعل هذه المهارة الذكاء الاصطناعي يقرأ التغييرات في فرع الشيفرة الحالي، وطلب الدمج المرتبط به وتعليقاته. وهي موجهة للمطورين الذين يريدون أن يستوعب الذكاء الاصطناعي الوضع قبل بدء المهمة.

متى تستخدمها

  • ✓عندما تعود إلى فرع شيفرة وتريد من الذكاء الاصطناعي أن يعرف ما الذي يغيّره.
  • ✓عندما تطلب من الذكاء الاصطناعي شرح ما في الفرع قبل المراجعة.
  • ✓عندما تريد أن يقرأ الذكاء الاصطناعي تعليقات طلب الدمج قبل متابعة العمل.

رابط المهارة

https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“أطلعني على ما في هذا الفرع قبل أن نجري أي تعديلات.”

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

كيف تعمل

تشغّل المهارة أوامر git لمقارنة فرعك مع main، وتقرأ سجل الإيداعات (commits) وطلب الدمج، ثم تقدم لك ملخصًا قصيرًا.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Prepare Branch Context

Build a comprehensive understanding of the current branch so you can handle followup requests with full context.

Steps

  1. Identify the current branch and base branch:

    git branch --show-current
    git merge-base HEAD main
    
  2. Gather the diff from main:

    git diff main...HEAD --stat
    git diff main...HEAD
    

    Read through the full diff carefully. Understand what files were changed, added, or removed, and what the changes do.

  3. Review the commit history on this branch:

    git log main..HEAD --oneline
    

    Read commit messages to understand the progression of changes.

  4. Check for a related PR:

    gh pr list --head "$(git branch --show-current)" --json number,title,body,url,state,comments --jq '.[0]'
    

    If a PR exists, read its title, description, and comments for additional context (acceptance criteria, discussion, review feedback).

  5. Summarize your understanding to the user:

    • What this branch does (high-level purpose)
    • Key files and areas of the codebase affected
    • Notable decisions or patterns visible in the changes
    • Any open review comments or discussion from the PR
    • Current state (clean, uncommitted changes, etc.)
  6. Signal readiness: Tell the user you're ready for followup questions or tasks related to this branch.

Rules

  • Do NOT make any changes to files. This skill is read-only.
  • Read the actual diff content, not just the stat summary. You need to understand the code changes.
  • If there's no PR, that's fine — just skip that step and note it.
  • If the diff is very large, focus on understanding the overall structure first, then read key files in detail.
  • Keep the summary concise but thorough enough that you could confidently make changes to this branch.
  • If the branch is main or has no divergence from main, tell the user there's nothing to analyze.
الأسئلة الشائعة

هل تحتاج هذه المهارة إلى أداة GitHub في سطر الأوامر؟

نعم. تستخدم الأمر gh للعثور على طلب الدمج المرتبط، لذلك يجب تثبيت هذه الأداة.

ماذا يعيد الذكاء الاصطناعي من تقرير؟

يلخص الغرض من الفرع، والملفات الرئيسية المتأثرة، والقرارات المهمة، وتعليقات المراجعة المفتوحة، والحالة الحالية للعمل.

هل تغيّر أي شيفرة؟

لا. الخطوات المذكورة تقرأ معلومات الفرع فقط، مثل الفرق والسجل وطلب الدمج.

التفاصيل

الوصف الأصلي من المؤلف

Analyze the current branch's diff from main and related PR to build context for followup requests. Triggers on "prepare context", "branch context", "catch me up", "what's on this branch".

repo: trycompai/crm

الشعبية

نجوم GitHub
12k
الترتيب
#11525
الترخيص
MIT
آخر تحديث
1‏/11‏/2026

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

0

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

التعليقات

  • …

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

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