github-repo-management

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories requires juggling many operations—cloning, forking, creating repos, setting branch protection, managing secrets, and publishing releases—often across environments where the gh CLI may or may not be installed. This Skill provides a complete command reference with both gh and git + curl fallbacks for every operation. ## Core Features & Use Cases - Repository Lifecycle: Clone, create (including from templates and organizations), fork, and sync forks with upstream remotes. - Configuration & Security: Edit repo settings, manage topics, configure branch protection rules, and set encrypted GitHub Actions secrets. - Releases & CI: Create releases with auto-generated notes, upload binary assets, list and rerun 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, add branch protection requiring CI checks, set an API key secret, and publish a v1.0.0 release—all with copy-paste-ready commands. ## Quick Start Ask the agent to create a new private GitHub repository named my-project, clone it locally, and set up 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?

Use gh repo create my-project --public --clone with the GitHub CLI, or POST to https://api.github.com/user/repos with curl and an Authorization token header. The curl approach also supports creating repos under organizations via /orgs/{org}/repos.

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

Fork with gh repo fork owner/repo --clone or by POSTing to /repos/{owner}/{repo}/forks via the API. To sync, add the original repo as an upstream remote, then fetch and merge upstream/main, or run gh repo sync.

Can I manage GitHub repos without the gh CLI installed?

Yes, every operation has a git + curl fallback using the GitHub REST API with a GITHUB_TOKEN. The token can be read from ~/.hermes/.env or ~/.git-credentials, and JSON responses are parsed with python3.

How do I set GitHub Actions secrets via the API?

Secrets must be encrypted with the repo's public key before the PUT request, which requires Python with PyNaCl to create a SealedBox. Because this is complex, gh secret set KEY is strongly recommended when the CLI is available.

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. With curl, POST to /repos/{owner}/{repo}/actions/runs/{run_id}/rerun or /rerun-failed-jobs.