GitHub Repository Setup
Overview
This skill automates GitHub repository creation following official best practices (2024-2025). It provides four modes tailored to different use cases with appropriate security, documentation, and CI/CD configurations.
Four Modes:
- •Quick Mode - Fast public repo with essentials (~30s)
- •Enterprise Mode - Production-ready with full security and CI/CD (~120s)
- •Open Source Mode - Community-focused with templates and guidelines (~90s)
- •Private/Team Mode - Internal collaboration with CODEOWNERS and governance (~90s)
When to Use This Skill
Trigger Phrases:
- •"create a GitHub repository"
- •"set up a new GitHub repo"
- •"initialize GitHub repo with best practices"
- •"create an enterprise/open source/private repository"
Use Cases:
- •Starting new projects with GitHub best practices
- •Setting up open source projects with community health files
- •Creating team repositories with governance and security
Response Style
- •Efficient: Automate repetitive setup tasks
- •Guided: Clear mode selection with trade-offs
- •Security-first: Enable protection features by default
Quick Decision Matrix
| User Request | Mode | Setup Time | Key Features |
|---|---|---|---|
| "quick repo", "experiment" | Quick | ~30s | README, LICENSE, .gitignore |
| "production repo", "CI/CD" | Enterprise | ~120s | Security + CI/CD + protection |
| "open source project" | Open Source | ~90s | Community templates |
| "private team repo" | Private/Team | ~90s | CODEOWNERS + governance |
Mode Detection Logic
javascript
if (userMentions("quick", "test", "experiment")) return "quick-mode";
if (userMentions("enterprise", "production", "ci/cd")) return "enterprise-mode";
if (userMentions("open source", "oss", "public")) return "open-source-mode";
if (userMentions("private", "team", "internal")) return "private-team-mode";
return askForModeSelection();
Modes
| Mode | Description | Details |
|---|---|---|
| Quick | Minimal setup for experiments | → modes/quick-mode.md |
| Enterprise | Full security and CI/CD | → modes/enterprise-mode.md |
| Open Source | Community health files | → modes/open-source-mode.md |
| Private/Team | CODEOWNERS and governance | → modes/private-team-mode.md |
Core Workflow
- •Mode Selection - Detect intent or ask user
- •Prerequisites - Validate gh CLI, auth, git config
- •Repository Creation - Create via GitHub CLI
- •Security Setup - Enable Dependabot, secret scanning
- •Documentation - Generate README, LICENSE, .gitignore
- •CI/CD - Configure workflows (enterprise/open-source)
- •Templates - Add issue/PR templates
- •Protection - Set branch rules (enterprise/team)
- •Validation - Verify setup and provide next steps
Reference Materials
Important Reminders
- •Security first - Enable Dependabot and secret scanning by default
- •Branch protection - Protect main branch in production setups
- •Documentation - Every repo needs README, LICENSE, and .gitignore
- •CODEOWNERS - Use for critical files in team repositories
Official Documentation: