github-repo-management

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

1|Updated Aug 6, 2026
One-click install
npx skills add https://github.com/agtktID/indagis-agent --skill github-repo-management-agtktid
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/agtktID/indagis-agent/tree/main/skills/github/github-repo-management
Command: npx skills add https://github.com/agtktID/indagis-agent --skill github-repo-management-agtktid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories involves many repetitive operations—cloning, forking, configuring settings, protecting branches, managing secrets, and publishing releases. This Skill provides ready-to-run commands for every common repository task, with both the gh CLI and a git + curl fallback for environments where the CLI is unavailable. ## 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 and topics, set branch protection rules, and manage GitHub Actions secrets with encrypted API calls. - Releases & CI: Create and download releases, upload 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 under your account, push an existing local directory, add branch protection on main, set a CI secret, and publish a v1.0.0 release—all with copy-paste 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 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 an Authorization token header and a JSON body containing the name and privacy settings.

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

Fork with `gh repo fork owner/repo --clone` or POST to /repos/owner/repo/forks via the API. To sync, add the original 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 come from the environment, a .env file, or the git credential store.

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

Secrets must be encrypted with the repo's public key using PyNaCl before a PUT to /repos/{owner}/{repo}/actions/secrets/{name}. The `gh secret set` command is much simpler and recommended when 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. Via the API, POST to /repos/{owner}/{repo}/actions/runs/{run_id}/rerun or /rerun-failed-jobs.