Two things in here:
template-repo/— boilerplate pushed to GitHub asminiwork/template-repo(template repository)new_repo/— installable CLI (new-repo) to spin up repos from that template
pipx install .Or into the active virtualenv:
pip install -e .Requires: gh CLI installed and authenticated (gh auth login).
# Basic: creates AniruddhaHumane/my-service
new-repo my-service
# Create in miniwork-jp
new-repo team-service --org miniwork-jp
# With options
new-repo ml-pipeline \
--description "Inference pipeline" \
--topics ml,python,internal
# Preview without touching GitHub
new-repo experiment-xyz --dry-run
# Public repo, skip branch protection
new-repo my-open-source-thing --public --no-protect
# Full help
new-repo --helpDefaults to --org AniruddhaHumane and --template template-repo. Pass --org miniwork-jp to create the repo and select the template from the org instead.
| Step | What happens |
|---|---|
| 1 | Creates repo from <selected-owner>/template-repo |
| 2 | Applies branch protection on the default branch (PR required, 1 approval, CI must pass, stale reviews dismissed) |
| 3 | Enables Dependabot alerts + auto security fixes |
| 4 | Sets merge strategy (squash + rebase only), auto-deletes branches, disables wiki/projects |
| 5 | Adds topics if --topics specified |
| 6 | Creates a standard set of issue labels |
template-repo/
├── README.md
├── LICENSE
├── .gitignore # Python/ML + Node + secrets
├── .editorconfig
└── .github/
├── CODEOWNERS
├── CONTRIBUTING.md
├── PULL_REQUEST_TEMPLATE.md
├── dependabot.yml
├── ISSUE_TEMPLATE/
│ ├── bug_report.md
│ └── feature_request.md
└── workflows/
└── ci.yml # lint → test → security scan