Skip to content
Agent Orchestration
Command

/repo-init

Create a new GitHub repository with proper setup including directory creation, git initialization, and remote configuration

From plugin
claudekit
76424 skills35 agents24 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/repo-init

Context preview

What this command does when you run it.

Create a new GitHub repository with proper setup including directory creation, git initialization, and remote configuration

Command definition

repo-init.md
allowed-tools: Bash, Write, TodoWrite
description: Create a new GitHub repository with proper setup including directory creation, git initialization, and remote configuration
category: workflow
argument-hint: "<repository-name>"

GitHub Repository Setup

Create a new GitHub repository named "$ARGUMENTS" with proper directory structure and git setup.

**Note:** The repository will be created as **private** by default for security. If you need a public repository, please specify "public" in your request.

Steps to execute:

1. Create a new directory named "$ARGUMENTS" 2. Initialize a git repository in that directory 3. Create the GitHub repository using gh CLI 4. Create a basic README.md file 5. Make an initial commit 6. Set up the remote origin 7. Push to GitHub

Commands:

# Create the directory
mkdir "$ARGUMENTS"
cd "$ARGUMENTS"

# Initialize git repository
git init

# Create GitHub repository using gh CLI (private by default)
gh repo create "$ARGUMENTS" --private

# Create README.md
echo "# $ARGUMENTS" > README.md
echo "" >> README.md
echo "A new repository created with GitHub CLI." >> README.md

# Initial commit
git add README.md
git commit -m "Initial commit"

# Add remote origin (using SSH)
git remote add origin "git@github.com:$(gh api user --jq .login)/$ARGUMENTS.git"

# Push to GitHub
git branch -M main
git push -u origin main

Execute these commands to create the repository.

Read more
Ships withclaudekit

Smart guardrails and workflow automation for Claude Code - catch errors in real-time, save checkpoints, and enhance AI coding with expert subagents

Get the whole plugin

Other commands on claudekit.