Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
zc277584121 avatar

Git Fork Clone

  • 2.3k installs
  • Updated April 27, 2026
  • zc277584121/mygitplugin

Automated GitHub repo fork and local clone with upstream remote tracking via GitHub CLI and git commands.

About

This skill automates forking a GitHub repository to a user account and cloning it locally with proper remote setup. It uses GitHub CLI to fork the target repo, clone the forked version, then add an 'official' remote pointing to the original upstream repository. Developers use it when contributing to open-source projects or when they need a local copy of someone else's repo with both their fork and upstream sources configured. Key workflow: fork via `gh repo fork`, clone the fork, add upstream remote via `git remote add official`, verify remotes with `git remote -v`.

  • Uses GitHub CLI to fork repos to a specified account without manual web UI interaction
  • Automatically clones forked repository locally after forking
  • Adds 'official' remote to track upstream repository for sync and contributions
  • Verifies remote configuration with `git remote -v` to confirm fork and upstream setup
  • Skips fork step if fork already exists, preventing duplicate fork errors

Git Fork Clone by the numbers

  • 2,336 all-time installs (skills.sh)
  • +190 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #36 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Security screen: CRITICAL risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

git-fork-clone capabilities & compatibility

Works with
github
Use cases
code review
Platforms
macOS · Windows · Linux · WSL
Runs
Runs locally
Pricing
Free
npx skills add https://github.com/zc277584121/mygitplugin --skill git-fork-clone

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.3k
Security audit2 / 3 scanners passed
Last updatedApril 27, 2026
Repositoryzc277584121/mygitplugin

What it does

Fork a GitHub repository and clone it locally with upstream remote tracking configured.

Who is it for?

Contributing to open-source projects, maintaining personal forks of external repositories, syncing with upstream changes.

Skip if: Cloning personal repositories, creating new repositories, managing repository permissions or settings.

When should I use this skill?

User requests to fork a GitHub repo and clone it locally, or needs to set up a contribution-ready local copy.

What you get

User has a local clone of their fork with both 'origin' (personal fork) and 'official' (upstream) remotes properly configured.

  • Local directory with cloned fork
  • Two git remotes configured: 'origin' (personal fork) and 'official' (upstream)
  • Remote configuration verification output

By the numbers

  • Executes 5 core commands: gh repo fork, gh repo clone, cd, git remote add, git remote -v
  • Configures 2 git remotes: origin and official

Files

SKILL.mdMarkdownGitHub ↗

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 remotegit 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 配置结果。

Related skills

How it compares

Use git-fork-clone instead of manual git clone when you need both a personal fork remote and an upstream tracking remote in one scripted flow.

FAQ

What is the 'official' remote used for?

The 'official' remote points to the original upstream repository, allowing you to fetch updates from the source repo and create pull requests against it.

What happens if the fork already exists?

The `gh repo fork` command automatically skips the fork step, preventing duplicate fork errors and allowing the skill to proceed directly to cloning.

Is Git Fork Clone safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.