askill
extract-repo

extract-repoSafety 90Repository

Download GitHub repos as clean source code (no .git history) to WORKDIR. Use when cloning repos for analysis or modification. Not for monorepos.

0 stars
1.2k downloads
Updated 3/15/2026

Package Files

Loading files...
SKILL.md

Extract Repo

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

FlagDescription
--helpShow help message
--dry-runPreview what would happen without cloning
--listList 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_repo marker
  • If a repo name already exists, a suffix is added (e.g., repo-2)
  • The --remove flag exists but is interactive; do not use it in automated contexts

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

74/100Analyzed 3/17/2026

Good technical skill for extracting GitHub repos. Well-structured with clear examples and proper flag documentation. Scores well on clarity and safety. Minor gaps in prerequisites and some internal-only signals from archived path and project-specific .opencode references reduce reusability score. Includes when-to-use guidance which is a bonus."

90
85
55
72
70

Metadata

Licenseunknown
Version-
Updated3/15/2026
Publisherpascalandy

Tags

ci-cdgithub