MCPInstall

git-fork-clone

Fork a GitHub repo and clone it locally with proper remote setup

Installs
3.4K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/zc277584121/mygitplugin --skill git-fork-clone
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads git-fork-clone automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Git Fork & Clone

Fork 别人的 GitHub 仓库并 clone 到本地,自动配置 official remote。

触发条件

当用户要求 fork 别人的仓库并 clone 到本地时使用此 skill。

输入

用户需要提供目标仓库,格式为 owner/repo。

执行步骤

  1. Fork 仓库:使用 gh repo fork <owner/repo> --clone=false 将仓库 fork 到 zc277584121 账号下。
  2. Clone 仓库:使用 gh repo clone zc277584121/<repo> 将 fork 后的仓库 clone 到本地。
  3. 进入项目目录:cd <repo>。
  4. 添加 official remote:git remote add official https://github.com/<original-owner>/<repo>.git,用于跟踪上游仓库。
  5. 验证 remote 配置:git remote -v,确认 origin 指向自己的 fork,official 指向原始仓库。

注意事项

  • 如果 fork 已存在,gh repo fork 会自动跳过 fork 步骤。
  • 始终使用 official 作为上游 remote 名称(而非 upstream),以保持一致性。
  • Clone 完成后向用户报告 remote 配置结果。

FAQ

What does the git-fork-clone skill do?

Fork a GitHub repo and clone it locally with proper remote setup

How do I install git-fork-clone?

Run npx skills add https://github.com/zc277584121/mygitplugin --skill git-fork-clone in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/git-fork-clone/ (personal) or .claude/skills/git-fork-clone/ (project).

Which AI agents can use git-fork-clone?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is git-fork-clone safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains git-fork-clone?

It is published by zc277584121 in zc277584121/mygitplugin. It has 3,364 recorded installs.

More from zc277584121/mygitplugin

View all →

git-create-repo

zc277584121/mygitplugin

Create a new GitHub repository and clone it locally

git-commit-push

zc277584121/mygitplugin

Commit changes and push to origin without creating a PR

git-commit-pr

zc277584121/mygitplugin

Commit changes and create a pull request to the official upstream repo

git-summarize-weekly

zc277584121/mygitplugin

Summarize weekly GitHub contributions for writing weekly reports

git-get-notification

zc277584121/mygitplugin

Check GitHub notifications and recent Issues/PRs for monitored repos

git-sync-main

zc277584121/mygitplugin

Sync local main branch with the latest code from official upstream or origin remote

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.