github-repo-management

Clone, create, fork, and manage GitHub repositories using gh CLI and REST API.

33|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/infinition/LaRuche --skill github-repo-management-infinition
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/infinition/LaRuche/tree/main/laruche/skills/github-repo-management
Command: npx skills add https://github.com/infinition/LaRuche --skill github-repo-management-infinition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing GitHub repositories requires memorizing many gh CLI commands and REST API endpoints, and handling authentication, fallbacks, and error cases manually. This Skill provides ready-to-run command patterns for the full repository lifecycle so you can execute operations directly without looking up documentation. ## Core Features & Use Cases - Repository Lifecycle Operations: Clone, create (including from templates), fork, and sync forks using gh CLI with git and curl fallbacks. - Configuration & Security: Edit repository settings, manage topics, configure branch protection rules, and set GitHub Actions secrets with NaCl encryption. - Releases & CI: Create releases, upload binary assets, trigger workflow dispatches, and rerun failed GitHub Actions jobs. - Use Case: You need to fork an open-source project, keep it in sync with upstream, protect the main branch, and publish a v1.0.0 release with compiled binaries. This Skill provides the exact command sequence for each step. ## 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?▼

Use gh repo create with flags like --public, --private, --description, and --clone to create and clone in one step. Without gh, send a POST request to https://api.github.com/user/repos with an Authorization token header and a JSON body containing the repository name and settings.

How do I fork a GitHub repo and keep it in sync?▼

Run gh repo fork owner/repo-name --clone to fork and clone automatically. To sync later, fetch the upstream remote and merge upstream/main into your main branch, or use the gh repo sync shortcut.

Can I manage GitHub repositories without the gh CLI installed?▼

Yes, every operation has a curl fallback that calls the GitHub REST API directly with an Authorization token header. JSON responses are parsed inline with python3 to extract fields like repository names, release IDs, and secret key IDs.

How do I set GitHub Actions secrets with curl?▼

Fetch the repository's public key from the actions/secrets/public-key endpoint, encrypt the secret value with PyNaCl using a SealedBox, then PUT the encrypted value and key_id to the secrets endpoint. Using gh secret set is preferred since it handles encryption automatically.

Why does setting branch protection return a 403 error?▼

A 403 on branch protection means the token lacks the required scope. The token needs the full repo scope rather than a fine-grained token to modify branch protection rules on the repository.