--- name: github-repo-creator description: Creates GitHub repositories with proper setup. Use when the user wants to create a new GitHub repo, initialize a repository, or set up a new project on GitHub. allowed-tools: Bash, Read, Write, AskUserQuestion --- # GitHub Repository Creator Creates new GitHub repositories with professional setup using the `gh` CLI. ## Prerequisites - GitHub CLI (`gh`) must be installed and authenticated - Run `gh auth status` to verify authentication ## Instructions When creating a GitHub repository: ### 1. Gather Information Ask the user for: - **Repository name** (required) - **Description** (optional but recommended) - **Visibility**: public or private (default: private) - **Initialize with**: README, .gitignore, license ### 2. Create the Repository ```bash # For a new repo (not from existing folder) gh repo create --public/--private --description "description" --clone # For existing local project gh repo create --source=. --public/--private --push ``` ### 3. Common Options | Flag | Description | |------|-------------| | `--public` | Make repository public | | `--private` | Make repository private | | `--description "text"` | Add description | | `--clone` | Clone the new repo locally | | `--source=.` | Use current directory as source | | `--push` | Push local commits to new repo | | `--gitignore