From agitentic
Clone a GitHub repository locally with the contributor-style two-remote layout when the fork already exists — `upstream` points at the original repo (local default branch tracks it) and `fork` points at an existing fork. Use when the user already has a fork on GitHub (e.g. created earlier, or on another machine) and wants a fresh local clone wired up with upstream + fork remotes, without re-forking or re-applying settings. Keywords - clone fork, clone with upstream, contributor clone, re-clone fork, two-remote clone.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agitentic:git-cloneThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Clone a GitHub repository locally and configure two remotes against an
Clone a GitHub repository locally and configure two remotes against an existing fork:
upstream → the original repository. The local default branch tracks
upstream/<default>.fork → the user's (or a specified org's) pre-existing fork.Unlike agitentic:git-fork, this skill does not create the fork on
GitHub and does not apply repo settings. Use it when the fork already
exists and you just need a local clone wired up the same way.
Use this skill when the user asks to:
Do not use this skill when:
agitentic:git-fork instead — it
creates the fork, clones, and applies repo settings.git clone directly.agitentic:git-create or gh repo create --source=..Run the bundled script:
scripts/git-clone <repo> [account] [directory]
<repo> (required) — the upstream repository. Accepts owner/name or
any GitHub HTTPS / SSH URL (https://github.com/owner/name,
[email protected]:owner/name.git, etc.).[account] (optional) — the owner of the existing fork. Defaults to
the currently authenticated gh user. Pass "" to use the default
while still specifying [directory].[directory] (optional) — local directory to clone into. Defaults to
the repo name.The script:
<account>/<name> exists on GitHub (via
gh repo view). Fails if not found.<repo> into ./<directory> with the original as upstream.
The local default branch tracks upstream/<default>.fork remote pointing at <account>/<name>.The script refuses to overwrite an existing ./<directory>, and refuses
to run if <account> equals the upstream owner (there's no fork to wire
up in that case).
User: "Clone my fork of brevdev/brev-cli"
Run, from the directory where the user wants the clone to land:
scripts/git-clone brevdev/brev-cli
User: "Clone brevdev/brev-cli — my fork lives under the acme org"
scripts/git-clone brevdev/brev-cli acme
User: "Clone brevdev/brev-cli into ~/work/brev (my fork under my user)"
cd ~/work && scripts/git-clone brevdev/brev-cli "" brev
After the script returns, show the user git -C <directory> remote -v
so the two-remote layout is visible.
gitgh (GitHub CLI), authenticated. The skill uses gh api user --jq .login to discover the default account and gh repo view to verify
the fork exists.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub brycelelbach/agitentic --plugin agitentic