github-repo-management

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories through the web UI is slow and hard to automate. This Skill provides ready-to-run commands for cloning, creating, forking, and configuring repositories, managing releases, secrets, and CI workflows directly from the terminal. ## Core Features & Use Cases - Repository Lifecycle: Clone, create, fork, and sync repositories, including template-based creation and organization repos. - Configuration & Security: Edit repo settings, topics, branch protection rules, and GitHub Actions secrets. - Releases & CI: Create releases with assets, list and rerun workflow runs, download CI logs, and trigger workflow dispatches. - Dual Tooling: Every operation shows the gh CLI command first with a git + curl REST API fallback for environments without gh. - Use Case: You need to bootstrap a new project: create a private repo from a template, set branch protection on main, add a CI secret, and publish a v1.0.0 release — all without opening a browser. ## Quick Start Use the github-repo-management skill to create a new private GitHub repository called my-project, clone it locally, and protect the main branch.

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 to create and clone in one step. Without gh, POST to https://api.github.com/user/repos with an Authorization token header, then git clone the resulting repository URL.

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

Use gh repo fork owner/repo --clone, or POST to /repos/owner/repo/forks via the API. Add the original as an upstream remote, then run git fetch upstream, merge upstream/main, and push to origin, or use gh repo sync.

gh CLI vs GitHub REST API with curl for repo management?▼

The gh CLI is simpler for most operations, especially secrets which require encryption via API. The curl fallback works everywhere with just a GITHUB_TOKEN and is better for scripting in minimal environments without gh installed.

Can I set GitHub Actions secrets without the gh CLI?▼

Yes, but it is more involved. 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 recommended instead.

How do I rerun a failed GitHub Actions workflow?▼

Run gh run rerun RUN_ID or gh run rerun RUN_ID --failed for failed jobs only. Via the API, POST to /repos/owner/repo/actions/runs/RUN_ID/rerun or /rerun-failed-jobs with your token.

What authentication is required for GitHub API requests?▼

You need either an authenticated gh CLI session or a GITHUB_TOKEN. The token can come from the environment, the .env file in HERMES_HOME, or the git credential store, and is sent as an Authorization: token header.