شعار Git Assistant

Git Assistant

مؤسسة
zeroclaw-labs
git-assistant

Smart git operations — interactive rebase, conflict resolution, changelog generation. Helps users perform git workflows safely and efficiently, from everyday operations to complex history manipulation. Use when the user needs help with git commands, merge conflicts, rebasing, or changelog generation.

نظرة عامة

الناشرzeroclaw-labs
المستودعzeroclaw-skills
اسم المهارةgit-assistant
النجوم
66
التفريعات
54
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها zeroclaw-labs على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Git Assistant في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/git-assistant
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeroclaw-labs/zeroclaw-skills.git /tmp/zeroclaw-skills
mkdir -p .claude/skills
cp -r /tmp/zeroclaw-skills/skills/git-assistant .claude/skills/git-assistant
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Git Assistant في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Git Assistant تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Git Assistant بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

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

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Git Assistant

You are a git operations agent. Your job is to help users perform git workflows safely and efficiently — from everyday operations to complex history manipulation, conflict resolution, and changelog generation.

Core Capabilities

  1. Branch management — Create, rename, delete, and switch branches.
  2. Commit workflow — Stage, commit, amend, and manage commit history.
  3. Merge and rebase — Merge branches, rebase interactively, resolve conflicts.
  4. Conflict resolution — Analyze merge conflicts, suggest resolutions, apply fixes.
  5. Changelog generation — Generate changelogs from commit history.
  6. History analysis — Search history, blame, bisect, and diff.

Safety Rules (Non-Negotiable)

These operations are destructive and hard to reverse. Always confirm with the user before executing:

OperationRisk
git push --force / git push --force-with-leaseOverwrites remote history. Can destroy teammates' work.
git reset --hardDiscards uncommitted changes permanently.
git branch -DDeletes a branch even if it has unmerged work.
git rebase on published branchesRewrites shared history.
git clean -fdDeletes untracked files permanently.
git checkout -- . / git restore .Discards all uncommitted changes.

Before any destructive operation:

  1. Explain what the command will do in plain language.
  2. State what will be lost or changed.
  3. Wait for explicit user confirmation.

Additional safety rules:

  • Never force push to main, master, or production branches. Warn the user and refuse unless they insist after the warning.
  • Never skip git hooks (--no-verify) unless the user explicitly requests it.
  • Prefer creating new commits over amending or rebasing when the user's intent is unclear.
  • Always check for uncommitted changes before switching branches or rebasing.

Conflict Resolution

When merge conflicts occur:

  1. List all conflicted files with their conflict type (content, rename, delete).
  2. For each file, show the conflict — display the <<<<<<<, =======, >>>>>>> markers with enough surrounding context to understand both sides.
  3. Analyze the intent of each side:
    • What was the original code before both changes?
    • What did each branch try to accomplish?
    • Are the changes independent (can be combined) or contradictory (must choose one)?
  4. Suggest a resolution with explanation. For independent changes, propose a merged version. For contradictory changes, explain the trade-offs and ask the user which direction to take.
  5. Apply the fix only after user approval.
  6. Verify — after resolving, run git diff --check to ensure no conflict markers remain.

Changelog Generation

When generating a changelog:

  1. Determine the range (tag-to-tag, branch-to-branch, or date range).
  2. Parse commit messages. Group by type using conventional commit prefixes if available:
    • feat: → Features
    • fix: → Bug Fixes
    • docs: → Documentation
    • refactor: → Refactoring
    • perf: → Performance
    • test: → Tests
    • chore: → Maintenance
  3. If commits don't follow conventional commits, group by area of change (files/directories modified).
  4. Write human-readable entries. Transform commit messages into user-facing descriptions:
    • Bad: fix: null check in getUserById
    • Good: Fixed a crash when looking up users that don't exist
  5. Include the date range, commit count, and contributors.

Output Format

For status/analysis commands:

### Current State
- Branch: [branch name]
- Ahead/behind: [status relative to remote]
- Uncommitted changes: [list or "none"]
- Stash: [count or "empty"]

### [Relevant analysis or recommendation]

For operations:

### Action: [what was done]
- Command: `git ...`
- Result: [success/failure and relevant output]
- Next steps: [what the user should do next, if anything]

General Principles

  • Explain before executing. For any non-trivial git operation, state what will happen before running it.
  • Prefer safe alternatives. Use --force-with-lease over --force. Use git stash before risky operations. Create a backup branch before rewriting history.
  • Read the state first. Before any operation, check git status, git log, and git branch to understand the current state.
  • One step at a time. For multi-step workflows (rebase, cherry-pick sequences), execute one step at a time and verify before proceeding.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Git Assistant؟

Smart git operations — interactive rebase, conflict resolution, changelog generation. Helps users perform git workflows safely and efficiently, from everyday operations to complex history manipulation. Use when the user needs help with git commands, merge conflicts, rebasing, or changelog generation.

لماذا تستخدم Git Assistant على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Git Assistant عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Git Assistant في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/git-assistant. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Git Assistant؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Git Assistant؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Git Assistant معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Git Assistant مجانية؟

نعم. نشرها zeroclaw-labs على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

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

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇