github-repo-management

Create, clone, fork, and configure GitHub repositories using gh CLI or REST API.

5|2|Updated May 26, 2026
One-click install
npx skills add https://github.com/perasyudha/Nyxora --skill github-repo-management-perasyudha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/perasyudha/Nyxora/tree/main/packages/core/playbooks/github/github-repo-management
Command: npx skills add https://github.com/perasyudha/Nyxora --skill github-repo-management-perasyudha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories involves many repetitive operations—cloning, forking, configuring settings, managing secrets, and publishing releases—that are tedious to perform manually through the web UI and error-prone when scripted ad hoc. ## Core Features & Use Cases - Repository Lifecycle Management: Clone, create, fork, and sync repositories using the gh CLI with automatic git + curl fallbacks when gh is unavailable. - Configuration & Security: Edit repo settings, manage topics, set branch protection rules, and configure GitHub Actions secrets programmatically. - Releases & CI Operations: Create releases with generated notes, upload assets, list workflow runs, rerun failed CI jobs, and trigger workflow dispatches. - Use Case: You need to bootstrap a new open-source project: create the repo from a template, set branch protection on main, add CI secrets, and publish a v1.0.0 release—all from the terminal in one session. ## Quick Start Ask the agent to create a new private GitHub repository named my-project with an MIT license and clone it locally.

Frequently Asked Questions about github-repo-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub repository from the command line?

Use `gh repo create my-project --public --clone` with the GitHub CLI, or send a POST request to https://api.github.com/user/repos with curl and an Authorization token header containing the repo name, description, and privacy settings.

How to fork a GitHub repo and keep it in sync?

Fork with `gh repo fork owner/repo --clone` or POST to /repos/owner/repo/forks via the API. To sync, add the original repo as an upstream remote, then fetch upstream, merge upstream/main, and push to origin.

Can I manage GitHub repos without the gh CLI installed?

Yes, every operation has a git plus curl fallback using the GitHub REST API with a GITHUB_TOKEN. The token can be loaded from a .env file or git-credentials, and the included API cheatsheet lists all endpoints.

How do I set GitHub Actions secrets via API?

Secrets must be encrypted with the repo's public key before upload. Fetch the key from /actions/secrets/public-key, encrypt the value with PyNaCl's SealedBox, then PUT it to /actions/secrets/NAME. Using `gh secret set` is much simpler.

Why does setting branch protection fail with curl?

Branch protection requires a PUT request to /repos/{owner}/{repo}/branches/{branch}/protection with a complete JSON body including required_status_checks, enforce_admins, required_pull_request_reviews, and restrictions fields. Missing or null fields cause API errors.