install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/github-clone" ~/.claude/skills/majiayu000-claude-skill-registry-github-clone && rm -rf "$T"
manifest:
skills/data/github-clone/SKILL.mdsource content
GitHub Clone Skill
Clone repositories and establish a clean local workspace.
See also: Shared Conventions | Safety Guidelines
Purpose
Set up a local copy of a repository ready for work.
Commands
gh auth status gh repo clone <owner>/<repo> gh repo clone <owner>/<repo> -- --depth 1 # shallow clone git clone <url>
Workflow
-
Verify authentication
gh auth status -
Clone to workspace
cd ~/workspace gh repo clone owner/repo -
Verify clone
cd repo git status git remote -v
Policies
- Clone into
directory~/workspace/ - Verify auth status before cloning private repos
- Use shallow clone (
) for large repos when full history isn't needed--depth 1 - After clone, verify remote is correctly configured