Toolverse
All skills

gh

by openclaw

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Security

About this skill

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.

How to use

  1. Zainstaluj GitHub CLI (gh) na swoim systemie, jeśli jeszcze go nie masz, a następnie uwierzytelnij się za pomocą komendy gh auth status — upewnij się, że połączenie z GitHub jest aktywne.

  2. Aby utworzyć nowe prywatne repozytorium, użyj komendy gh repo create OWNER/NAME --private --confirm z opcjonalnym opisem --description; jeśli pracujesz w istniejącym katalogu, dodaj flagi --source . --remote origin --push, aby od razu wysłać kod.

  3. Do klonowania istniejącego repozytorium użyj gh repo clone OWNER/NAME, a do forku (z automatycznym klonowaniem) — gh repo fork OWNER/NAME --clone.

  4. Zarządzaj issues: wyświetl listę za pomocą gh issue list --limit 20, utwórz nowe z gh issue create --title "..." --body "...", lub dodaj komentarz do istniejącego z gh issue comment NUMER --body "...".

  5. Pracuj z pull requestami: utwórz PR z bieżącego brancha komendą gh pr create --title "..." --body "...", wyświetl listę za pomocą gh pr list --limit 20, a następnie merguj z gh pr merge NUMER --merge (zawsze podaj jawną metodę merge).

  6. Publikuj wydania za pomocą gh release create vX.Y.Z --title "vX.Y.Z" --notes "...", zawsze potwierdzając docelowe repozytorium przed operacjami destrukcyjnymi.

Related skills