github-repo-management

Create, clone, fork, and configure GitHub repositories using gh CLI or git with curl.

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/luckybbjason1/trading --skill github-repo-management-luckybbjason1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/luckybbjason1/trading/tree/main/.hermes/skills/github/github-repo-management
Command: npx skills add https://github.com/luckybbjason1/trading --skill github-repo-management-luckybbjason1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories involves many repetitive operations—cloning, forking, creating repos, setting branch protection, managing secrets, and publishing releases—and doing them manually through the web UI or memorizing raw REST API calls is slow and error-prone. ## 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, configure branch protection rules, and set encrypted GitHub Actions secrets. - Releases & CI Operations: Create releases with generated notes, upload assets, list and rerun GitHub Actions workflow runs, and trigger workflow dispatches. - Use Case: You need to bootstrap a new open-source project: create a private repo from a template, push existing local code, protect the main branch with required CI checks, set an API key secret, and publish a v1.0.0 release—all from the terminal. ## Quick Start Ask the agent to create a new private GitHub repository named my-project, clone it locally, and protect its main branch with a required CI status check.

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 with flags like --public, --private, --clone, or --source to create and optionally push a local directory. Without gh, send a POST request with curl to https://api.github.com/user/repos using your GITHUB_TOKEN.

How do I fork a GitHub repo and keep it in sync?

Run gh repo fork owner/repo --clone, or POST to the /forks API endpoint with curl, then add the original repo as an upstream remote. Sync later with git fetch upstream and git merge upstream/main, or use gh repo sync.

Can I manage GitHub repos without the gh CLI installed?

Yes, every operation in this skill has a git + curl fallback that calls the GitHub REST API directly with a GITHUB_TOKEN. The token is loaded from the environment, a .env file, or ~/.git-credentials.

How do I set GitHub Actions secrets via the API?

Secrets must be encrypted with the repo's public key before a PUT request to /actions/secrets/{name}, which requires Python with PyNaCl. The gh secret set command is dramatically simpler and is recommended when available.

How do I set up branch protection on GitHub with curl?

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