github-repo-management

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

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/AvaTar-ArTs/.Agent-skills --skill github-repo-management-avatar-arts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/AvaTar-ArTs/.Agent-skills/tree/main/skills/github/github-repo-management
Command: npx skills add https://github.com/AvaTar-ArTs/.Agent-skills --skill github-repo-management-avatar-arts

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 every common repository operation, with both the gh CLI and a git + curl fallback so it works even when the CLI is unavailable. ## Core Features & Use Cases - Repository Lifecycle: Clone, create, fork, and template-generate repositories, then keep forks in sync with upstream remotes. - Configuration & Security: Edit repo settings, topics, branch protection rules, and encrypted GitHub Actions secrets. - Releases & CI: Create releases with generated notes, upload assets, list and rerun workflow runs, and trigger workflow dispatches. - 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 from the terminal without opening a browser. ## Quick Start Ask the agent to create a new private GitHub repository named my-project with an MIT license and clone it locally.

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 the gh CLI, send a POST request with curl to https://api.github.com/user/repos including your token and a JSON body with the repo name and privacy setting.

How do I 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 and add the original as an upstream remote. Sync later with git fetch upstream, merge upstream/main, and push, or run gh repo sync.

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 be read from ~/.hermes/.env or ~/.git-credentials, and only secrets encryption is notably harder without gh.

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 far simpler and recommended when available.

How do I rerun a failed GitHub Actions workflow?

Run gh run rerun RUN_ID, or add --failed to rerun only failed jobs. With curl, POST to /repos/owner/repo/actions/runs/RUN_ID/rerun or /rerun-failed-jobs using your token.