Skip to content

git-create-repo

Create a new GitHub repository and clone it locally

— (0 ratings) 3.4K downloads zc277584121
$ npx skills add https://github.com/zc277584121/mygitplugin --skill git-create-repo

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Git Create Repo

在 GitHub 上创建新的仓库并 clone 到本地。

触发条件

当用户要求创建一个新的 GitHub 仓库时使用此 skill。

执行步骤

  1. 创建仓库:

    gh repo create <repo-name> --public --add-readme
    
    • 默认创建公开仓库(--public)。
    • 如果用户明确要求私有仓库,使用 --private 替代。
    • 默认添加 README 文件。
  2. Clone 仓库:

    gh repo clone zc277584121/<repo-name>
    
  3. 确认结果:进入项目目录,向用户报告仓库创建成功。

注意事项

  • GitHub 账号为 zc277584121。
  • 如果用户没有指定公开或私有,默认使用公开(--public)。
  • 如果用户提供了描述,使用 --description 参数。

Installs: 3.4K | First seen: Apr 27, 2026

Related skills

New

Coding & dev tools

code-review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding

New • 951K
New

Coding & dev tools

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent

New • 594.2K
New

Coding & dev tools

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up

New • 583.3K