zhiweiofli

Clone Repo — Git skill for Claude Code

Git community

Clone a GitHub repository into the local knowledge base.

How to install Clone Repo

Installs to ~/.claude/commands/zhiweiofli-github-kb-clone-repo.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/zhiweiofli/github-kb/HEAD/.claude/commands/clone-repo.md -o ~/.claude/commands/zhiweiofli-github-kb-clone-repo.md

Restart Claude Code, or start a new session, for it to be picked up.

What Clone Repo does


description: Clone a GitHub repository into the local knowledge base

/clone-repo

克隆 GitHub 仓库到本地知识库。

Usage

/clone-repo 

Examples

/clone-repo anthropics/claude-code
/clone-repo https://github.com/anthropics/claude-code

Workflow

  1. 解析仓库地址,提取 owner/name
  2. 检查本地是否已存在
  3. 执行 git clone 到 ./github-kb/repos/
  4. 阅读 README,理解项目
  5. 生成 Catalog 条目
  6. 更新 CLAUDE.md

Output

  • 确认克隆位置
  • 项目简要摘要
  • Catalog 条目预览

Alternatives in Git

  • Epic Sync — Sync epic issue bodies, labels, and local coordination snapshots from GitHub 243.5k ★
  • Cc Usage — by ryoppippi - Handy CLI tool for managing and analyzing Claude Code usage, based on analyzing local Claude Co 11.7k ★
  • Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★

Full documentation available on GitHub

View Source Repository