github-repo-management

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

115|9|Updated Aug 5, 2026
One-click install
npx skills add https://github.com/AtlasOmnia/donna-starter --skill github-repo-management-atlasomnia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/AtlasOmnia/donna-starter/tree/main/skills/github/github-repo-management
Command: npx skills add https://github.com/AtlasOmnia/donna-starter --skill github-repo-management-atlasomnia

SYSTEM DOCUMENTATION & REQUIREMENTS

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 the full repository lifecycle—cloning, creating, forking, configuring settings, managing secrets, releases, and Actions workflows—using either the gh CLI or plain git plus curl against the GitHub REST API. ## Core Features & Use Cases - Repository lifecycle: Clone, create (including from templates and organizations), fork, and sync forks with upstream remotes. - Configuration and protection: Edit repo settings, topics, default branches, and set up branch protection rules with required reviews and status checks. - Releases, secrets, and CI: Create releases with generated notes, upload assets, manage Actions secrets, 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 on main, set an Actions secret, and publish a v1.0.0 release—all from the terminal in one session. ## Quick Start Ask the agent to create a new private GitHub repository named my-project, clone it locally, and enable 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?

Run gh repo create my-project --private --clone to create and clone in one step. Without gh, send a POST request with curl to https://api.github.com/user/repos using your GITHUB_TOKEN, then git clone the new repository.

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.

gh CLI vs git with curl for GitHub repo management?

The gh CLI is simpler for every operation and dramatically easier for secrets, which require public-key encryption over the raw API. The git plus curl fallback works when gh is not installed, using a GITHUB_TOKEN for authentication.

Can I set GitHub Actions secrets without the gh CLI?

Yes, but it is more involved. You must fetch the repository's public key from the API, encrypt the secret value with PyNaCl's SealedBox, then PUT the encrypted value to the actions/secrets endpoint. Installing gh just for gh secret set is recommended.

Why is my profile README not showing on my GitHub profile?

The repository must be public, named exactly after your username, and contain a non-empty README.md on the default branch. If those conditions hold, open the repo in an authenticated browser and click Share to profile; API updates alone may not enable display.

How do I rerun a failed GitHub Actions workflow from the terminal?

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 the rerun-failed-jobs endpoint using your GITHUB_TOKEN.