github-repo-management

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

1|Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Chia1104/agent-air --skill github-repo-management-chia1104
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/Chia1104/agent-air/tree/main/skills/hermes/github/github-repo-management
Command: npx skills add https://github.com/Chia1104/agent-air --skill github-repo-management-chia1104

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories involves many scattered operations—cloning, forking, configuring settings, protecting branches, setting secrets, and publishing releases—and doing them without the gh CLI requires knowing the exact REST API endpoints and payloads. ## Core Features & Use Cases - Repository Lifecycle: Clone, create, fork, and template-generate repositories, with both gh commands and git + curl fallbacks for every operation. - Configuration & Protection: Edit repo settings, topics, and visibility, and set up branch protection rules with required status checks and PR reviews. - Releases, CI & Secrets: Create releases with assets, list and rerun GitHub Actions workflow runs, and manage Actions secrets via gh secret or encrypted API calls. - Use Case: You need to bootstrap a new project on a machine without the GitHub CLI installed. Use the curl-based commands to create the repo via the API, push your local code, and configure branch protection in one session. ## Quick Start Use the github-repo-management skill to create a private repository named my-new-project, clone it locally, and enable branch protection on main.

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?▼

Run `gh repo create my-project --private --clone` with the GitHub CLI, or POST to https://api.github.com/user/repos with an Authorization token header and a JSON body containing the name, description, and privacy flag.

How to fork a repo and keep it in sync with upstream?▼

Fork with `gh repo fork owner/repo --clone` or POST to the /forks API endpoint, then add the original as an upstream remote. Sync by fetching upstream, merging upstream/main into your main branch, and pushing 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 come from the environment, a Hermes .env file, or git credentials.

How do I set GitHub Actions secrets via the API?▼

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

How do I set up branch protection on main?▼

Send a PUT request to /repos/{owner}/{repo}/branches/main/protection with a JSON body specifying required status checks, required approving review counts, and admin enforcement settings.

Why does setting secrets with curl fail?▼

Secret values must be encrypted with the repository's public key before upload, which requires Python with PyNaCl installed. If encryption is too involved, install the gh CLI just for the secret operation.