
Git Create Repo
Spin up a new GitHub repository with `gh`, clone it locally, and land in a fresh project folder when you are committing to a new build.
Overview
Git Create Repo is an agent skill for the Validate phase that creates a new GitHub repository with the GitHub CLI, clones it locally, and confirms the project directory is ready.
Install
npx skills add https://github.com/zc277584121/mygitplugin --skill git-create-repoWhat is this skill?
- Creates repo via `gh repo create <repo-name> --public --add-readme` by default
- Switches to `--private` when the user explicitly requests a private repository
- Clones with `gh repo clone zc277584121/<repo-name>` after creation
- Supports optional `--description` when the user supplies one
- Ends by entering the project directory and confirming success to the user
Adoption & trust: 389 installs on skills.sh; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You decided on a new project name but still need a remote repo and local clone before you can start committing code.
Who is it for?
Solo builders standardized on `gh` who want a one-command public starter repo unless they specify private.
Skip if: Importing existing monorepos, enterprise org policies that forbid default public repos, or workflows that require templates, licenses, or branch protection on day one.
When should I use this skill?
When the user asks to create a new GitHub repository (创建新的 GitHub 仓库).
What do I get? / Deliverables
A new GitHub repo exists with README, the clone is on disk, and you are oriented in the project folder ready for Build work.
- New remote GitHub repository with README
- Local clone directory ready for development
Recommended Skills
Journey fit
Repo creation is the scaffolding step once you have decided what you are building and need an isolated codebase. Scope is where you lock the project name and visibility before full implementation in Build.
How it compares
Thin GitHub CLI workflow skill—not a full repository governance or CI bootstrap pack.
Common Questions / FAQ
Who is git-create-repo for?
Indie developers who create new GitHub projects from the terminal with authenticated `gh` and want the agent to handle create-plus-clone in order.
When should I use git-create-repo?
Use it in Validate when scoping a new product or experiment and you need a dedicated repo before Build implementation begins.
Is git-create-repo safe to install?
It runs `gh` and Bash against your GitHub account; review the Security Audits panel on this page and confirm public-vs-private defaults match your policy.
SKILL.md
READMESKILL.md - Git Create Repo
# Git Create Repo 在 GitHub 上创建新的仓库并 clone 到本地。 ## 触发条件 当用户要求创建一个新的 GitHub 仓库时使用此 skill。 ## 执行步骤 1. **创建仓库**: ```bash gh repo create <repo-name> --public --add-readme ``` - 默认创建公开仓库(`--public`)。 - 如果用户明确要求私有仓库,使用 `--private` 替代。 - 默认添加 README 文件。 2. **Clone 仓库**: ```bash gh repo clone zc277584121/<repo-name> ``` 3. **确认结果**:进入项目目录,向用户报告仓库创建成功。 ## 注意事项 - GitHub 账号为 `zc277584121`。 - 如果用户没有指定公开或私有,默认使用公开(`--public`)。 - 如果用户提供了描述,使用 `--description` 参数。