This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
RepoLauncher is a Python CLI tool that automates Git repository initialization and GitHub repository creation. It streamlines the workflow of setting up new projects by handling git initialization, GitHub API calls, and remote configuration in a single command.
# Install dependencies using uv
uv sync
# Run the application
uv run main.py [path] [--private]# Initialize current directory
uv run main.py
# Initialize specific directory
uv run main.py /path/to/project
# Create private repository
uv run main.py --private- main.py: Single-file application containing all functionality
run_command(): Shell command execution wrappercreate_github_repo(): GitHub API integration for repository creationpush_to_github(): Git remote configuration and push logicinit_git(): Git repository initialization with branch renaming to 'main'
- python-dotenv: Environment variable management
- requests: GitHub API HTTP calls
- uv: Modern Python package manager (preferred over pip)
- Environment variables loaded from
.envfile - Requires
GITHUB_TOKENwithrepopermissions - Uses Tsinghua University PyPI mirror for faster downloads in China
- Validates target directory exists
- Initializes git repository (renames branch to 'main' if new)
- Creates GitHub repository via API
- Configures remote origin
- Commits uncommitted changes
- Pushes current branch to GitHub
- No test framework: Project lacks automated testing setup
- No linting configuration: No code quality tools configured
- Single-file architecture: All logic contained in main.py
- GitHub API dependency: Requires valid personal access token
- Branch handling: Automatically detects and pushes current branch (main/master/etc.)
- Error handling: Basic error handling with sys.exit() on failures