mcpField
G
git-create-repo

git-create-repo

github.com/zc277584121Development03.4k installsUpdated 27w ago
Repository

About git-create-repo

A skill for developers who need to create and clone a new GitHub repository. It defaults to a public repository with a README, with options for private visibility and a description.

Key features

  1. 01Create a GitHub repository
  2. 02Default to public with a README
  3. 03Support private repos and descriptions
  4. 04Clone the repository locally
  5. 05Confirm the creation result

Use cases

  1. 01Initialize a new GitHub project
  2. 02Create a private repository on request
  3. 03Create and obtain a local repository copy

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/zc277584121/mygitplugin --skill git-create-repo

After installing, type/git-create-repoin Claude Code to confirm it loaded.

Details

From the project README

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 参数。

Comments

Markdown supported