github-repo-init

Create and initialize a GitHub repository from a local git project.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/PPsteven/skills --skill github-repo-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-repo-init
Source: https://github.com/PPsteven/skills/tree/main/github-repo-init
Command: npx skills add https://github.com/PPsteven/skills --skill github-repo-init

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the entire process of creating a new GitHub repository from a local project, including setting up the remote, pushing code, and configuring the repository's About section.

Core Features & Use Cases

  • One-Command Setup: Replaces multiple manual git and gh commands with a single execution.
  • Automatic README Generation: Creates a professional README.md if one doesn't exist.
  • Metadata Configuration: Sets repository description, topics, and homepage URL.
  • Use Case: You've just finished initializing a new local project with git init and made your first commit. Instead of manually creating the repo on GitHub, adding the remote, and pushing, you run this Skill to do it all instantly.

Quick Start

Run the github-repo-init skill with the --auto flag to initialize your current local git repository on GitHub using default settings.

Frequently Asked Questions about github-repo-init

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

FAQPage Schema
How do I create a GitHub repository from a local git project automatically?

Creating a GitHub repository from a local git project is automated by handling prerequisite validation, metadata collection, README.md generation, remote setup, and code pushing in a single execution.

Do I need the gh CLI installed to initialize a GitHub repo from the command line?

Yes, initializing a GitHub repo from the command line requires the gh CLI, git, and jq to be installed and properly authenticated to execute repository creation and configuration commands.

Can I automatically generate a README.md when setting up a new GitHub repository?

Yes, you can automatically generate a README.md when setting up a new GitHub repository if one does not already exist in your local project directory before pushing.

How do I configure the About section description and topics for a new GitHub repo?

Configuring the About section for a new GitHub repo is handled automatically during setup by setting the repository description, topics, and homepage URL via gh CLI commands.

What is the best way to push local code to a new GitHub repository without manual web setup?

The best way to push local code without manual web setup is using a single command that validates prerequisites, creates the remote repository, configures metadata, and verifies the push success.

Why does my automated GitHub repository creation fail during prerequisite validation?

Automated GitHub repository creation fails during prerequisite validation if the required gh CLI, git, or jq dependencies are missing or if the gh CLI is not properly authenticated.