Clone Repo — Git skill for Claude Code
Clone a GitHub repository into the local knowledge base.
How to install Clone Repo
Installs to ~/.claude/commands/zhiweiofli-github-kb-clone-repo.md
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
- 解析仓库地址,提取 owner/name
- 检查本地是否已存在
- 执行
git clone到./github-kb/repos/ - 阅读 README,理解项目
- 生成 Catalog 条目
- 更新 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 RepositoryRelated Skills
Self Reflect
Extract learnings from recent PR reviews, conversations, and session patterns to update the knowledge base
ClaudeVault
Your distributed knowledge base powered by Claude and Git - access your notes from anywhere, anytime, with int
Cc Inspect
git clone https://github.com/howardpen9/cc-inspect ~/.claude/skills/cc-inspect Inspect all installed Claude Co
Import Project
Bring an existing project into projects/ — clone through scripts/forge-clone.ps1, offering the commit identity
Sayso
Local Windows voice dictation on Whisper. Offline, verbatim, free. One-prompt setup for Claude Code or Codex:
CodeReview
Review local code changes against base branch
Related Agents
Local Brain Search
Local vector search and connection discovery for the Brain. Use for semantic search, finding connections betwe
Kb Reader
Read and summarize relevant Claude Code engineering pattern files from the local knowledge base. Keeps raw fil
Doey Fallback
Focused fallback agent that resolves ambiguous doey invocations — finds local repos, plans gh repo clone / git