Skip to content
Back to skills

Extract Repo

ASecurity

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

  • 106 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 12, 2026
ai-agentsbashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add archibate/dotfiles-opencode --skill extract-repo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Extract Repo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Extract Repo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/archibate-extract-repo/badge)](https://www.skillsdirectory.com/skills/archibate-extract-repo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: extract-repo
description: Download GitHub repos as clean source code (no .git history) to WORKDIR. Use when cloning repos for analysis or modification. Not for monorepos.
---

# Extract Repo

Download GitHub repositories as clean source code without git history.

## Usage

Run via subagent:

```bash
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

```bash
# 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

Files in this skill

  • SKILL.md1.4 KB
  • scripts/extract_repo.py8.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.