gh
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
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
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.
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.
Do klonowania istniejącego repozytorium użyj gh repo clone OWNER/NAME, a do forku (z automatycznym klonowaniem) — gh repo fork OWNER/NAME --clone.
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 "...".
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).
Publikuj wydania za pomocą gh release create vX.Y.Z --title "vX.Y.Z" --notes "...", zawsze potwierdzając docelowe repozytorium przed operacjami destrukcyjnymi.