github-repo-management

Manage GitHub repositories via gh CLI or REST API.

12|2|Updated Feb 2, 2020
One-click install
npx skills add https://github.com/servitola/dotfiles --skill github-repo-management-servitola
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-management
Source: https://github.com/servitola/dotfiles/tree/main/claude-code/skills/github-repo-management
Command: npx skills add https://github.com/servitola/dotfiles --skill github-repo-management-servitola

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers automate and streamline GitHub repository management tasks such as cloning, creating, forking, configuring remotes, protecting branches, handling secrets, releases, workflows, and gists via the gh CLI or REST API.

Core Features & Use Cases

  • Create, clone, fork repositories for users or organizations.
  • Manage branches, secrets, releases, and workflow configurations from a unified workflow.
  • Use cases include setting up a new project repo, forking an existing one, and configuring protections in CI/CD.

Quick Start

Install and authenticate the GitHub CLI or ensure a GITHUB_TOKEN is available to use REST fallbacks, then follow the examples in SKILL.md to perform common tasks.

Frequently Asked Questions about github-repo-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage GitHub repositories via gh CLI or REST API?

You can manage GitHub repositories by cloning, creating, forking, and configuring remotes through the gh CLI or REST API. This workflow covers branches, secrets, releases, workflows, and gists across user and organization contexts.

What's the best way to automate GitHub branch protection and secrets management?

Automating GitHub branch protection and secrets management is achieved by executing gh CLI or REST API commands within your CI/CD workflows. This unified workflow allows you to configure protections and handle secrets directly from your automation scripts.

Do I need a GITHUB_TOKEN to use REST API fallbacks for repository tasks?

Yes, you need either gh authentication or a GITHUB_TOKEN environment variable to use REST API fallbacks for repository tasks. These prerequisites ensure secure access when managing branches, releases, or workflows across your accounts.

Can I create and fork GitHub repositories for organizations using this workflow?

Yes, you can create and fork GitHub repositories for both individual users and organizations. The workflow supports setting up new project repos and forking existing ones, extending configuration to organization-level branches and secrets.

How do GitHub workflows and releases integrate with repository management tasks?

GitHub workflows and releases integrate directly into repository management by allowing you to configure CI/CD pipelines and publish release artifacts from a unified workflow. You use gh CLI or REST endpoints to trigger and manage these configurations.

What are the limitations of using gh CLI versus REST API for managing gists?

The gh CLI provides a streamlined interface for managing gists, while the REST API offers fallback capabilities when CLI authentication is unavailable. Both methods handle gists effectively, but the REST fallback requires a valid GITHUB_TOKEN.