Extract repo

From archibate/dotfiles-opencode · View interactive version

Extract repo is an AI agent skill from the GitHub repository archibate/dotfiles-opencode. Download GitHub repos as clean source code (no .git history) to WORKDIR. Use when cloning repos for analysis or modification. Not for monorepos.

How to use this skill

Skill file

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

| 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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.