تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

gh

بواسطة trumppo

Git & GitHub
2.6kالتنزيلات وفق ما يذكره clawskills.sh
4النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull.

الوصف

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

Runs authenticated GitHub operations from the terminal using the gh CLI. Covers repo creation, cloning, forking, issue management, pull requests, and releases. Prefers explicit, idempotent commands and returns URLs for created resources.

Keeps the full GitHub workflow in the terminal, eliminating browser context switches when managing repos, issues, and PRs alongside code.

متى تستخدمها

  • Create a private GitHub repo from a local project directory
  • File and comment on issues without switching to the browser
  • Open a pull request from the current branch
  • Fork a repo and clone it locally for upstream contribution
  • Publish a versioned release with notes

مثال على سير العمل

الإدخال

User asks: open a pull request for my current branch

الوكيل
  1. 1

    Check auth status with gh auth status

  2. 2

    View current repo context to confirm owner and default branch

  3. 3

    Run gh pr create with a title and body based on recent commits

  4. 4

    Return the pull request URL

الإخراج

Pull request URL, e.g. https://github.com/owner/repo/pull/42

المتطلبات

  • GitHub account
  • GitHub CLI (gh) installed

التثبيت

clawhub install trumppo/gh

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط