github-repo-management

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

6|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/josoroma/AppLoop --skill github-repo-management-josoroma
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/josoroma/AppLoop/tree/main/.hermes/skills/github/github-repo-management
Command: npx skills add https://github.com/josoroma/AppLoop --skill github-repo-management-josoroma

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories involves many repetitive operations—cloning, forking, creating releases, setting secrets, configuring branch protection—and doing them manually through the web UI or memorizing API endpoints is slow and error-prone. ## Core Features & Use Cases - Repository Lifecycle Management: Clone, create, fork, and sync repositories using either the gh CLI or plain git plus curl against the GitHub REST API. - Configuration & Security: Edit repo settings, manage topics, set branch protection rules, and manage GitHub Actions secrets. - Releases & CI: Create releases with generated notes, upload assets, list and rerun workflow runs, and trigger workflow dispatches. - Use Case: After scaffolding a new project locally, use this Skill to create a private GitHub repo, push the initial commit, enable branch protection on main, 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 set up branch protection on 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?▼

Use `gh repo create my-project --private --clone` with the GitHub CLI, or send a POST request to https://api.github.com/user/repos with curl and an Authorization token header. Both approaches support descriptions, licenses, and organization ownership.

How do I 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 repo 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, the Hermes .env file, or the git credential store.

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

Secrets must be encrypted with the repository's public key using PyNaCl before sending a PUT request to the secrets endpoint. The `gh secret set` command is dramatically simpler and is recommended when the CLI is available.

How do I rerun a failed GitHub Actions workflow?▼

Use `gh run rerun <RUN_ID>` or `gh run rerun <RUN_ID> --failed` for only failed jobs. With curl, POST to /repos/{owner}/{repo}/actions/runs/{run_id}/rerun or the rerun-failed-jobs endpoint.