Extract Repo
SkillDev toolsDownload GitHub repos as clean source code (no .git history) to WORKDIR. Use when cloning repos for analysis or modification. Not for monorepos.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Extract Repo skill
What this skill tells your AI
The instructions your AI receives, as published by archibate/dotfiles-opencode in optional-skills/extract-repo/SKILL.md and read by ahel’s review.
Download GitHub repositories as clean source code without git history.
Usage
Run via subagent:
uv run .opencode/skill/extract-repo/scripts/extract_repo.py <URL>
then cd into the extract directory.
Available Flags
| Flag | Description |
|---|---|
--help | Show help message |
--dry-run | Preview what would happen without cloning |
--list | List all managed repos (newest first) |
Examples
# Clone a repo
uv run .opencode/skill/extract-repo/scripts/extract_repo.py https://github.com/user/repo
# Works with any GitHub URL (normalizes automatically)
uv run .opencode/skill/extract-repo/scripts/extract_repo.py https://github.com/user/repo/blob/main/README.md
# Preview without cloning
uv run .opencode/skill/extract-repo/scripts/extract_repo.py --dry-run https://github.com/user/repo
# List managed repos
uv run .opencode/skill/extract-repo/scripts/extract_repo.py --list
Notes
- Repos are saved to
WORKDIR/with a.extract_repomarker - If a repo name already exists, a suffix is added (e.g.,
repo-2) - The
--removeflag exists but is interactive; do not use it in automated contexts
Signals
- GitHub stars
- 106
- Forks
- 21
- Last commit
- Apr 2026
Advanced
- Catalog kind
- skill
- Gateway key
extract-repo- Source
- github.com/archibate/dotfiles-opencode