/skillcraft:skill-downloaderfrom skillcraft
Download specific folders from GitHub repositories with automated sparse-checkout, interactive destination selection, and complete cleanup of git artifacts. Supports .claude/skills, .gemini/skills, .agents/, or custom paths. Use this skill whenever you need to fetch a specific directory from a monorepo on GitHub.
Ships in skillcraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Automated utility for downloading specific subdirectories from Git repositories without cloning the entire project. Features interactive prompts for configuration, comprehensive validation, and thorough cleanup of all git artifacts.
.claude/skills, .gemini/skills, .agents/, or custom pathsThe skill provides an automated workflow that:
.claude/skills but allows .gemini/skills, .agents/, or custom paths.git directories, .gitignore, and other git artifactsAlways invoke the Python script with --project-dir set to the current project root. This anchors all relative destination paths (e.g. .claude/skills) to the correct location regardless of shell CWD:
python3 /path/to/skills/skill-downloader/scripts/download_repo.py \
--project-dir /absolute/path/to/your/project
When running via Claude Code's Bash tool, the safest form is:
python3 /path/to/skills/skill-downloader/scripts/download_repo.py \
--project-dir "$(pwd)"
The script will guide you through:
main)If Python isn't available, run the bash script from the project root. The script captures pwd at startup, so the working directory at invocation time determines where relative destinations resolve:
cd /absolute/path/to/your/project
bash /path/to/skills/skill-downloader/scripts/download_repo.sh
The workflow is identical, with the same interactive prompts.
When prompted, choose your preferred destination:
| Option | Path | Use When |
|---|---|---|
| 1 (Default) | .claude/skills | You want Claude Code-specific skills |
| 2 | .gemini/skills | You want Gemini CLI-specific tools |
| 3 | .agents/ | You want custom agents |
| 4 | Custom Path | You need a different location |
Goal: Download the brainstorming skill from the superpowers repository
$ python3 scripts/download_repo.py --project-dir "$(pwd)"
📦 Repository Details
GitHub repository URL: https://github.com/anthropics/superpowers.git
Path in repository: skills/brainstorming
Branch name (press Enter for 'main'): [press Enter]
📂 Destination
Select destination for downloaded files:
1) .claude/skills (Default)
2) .gemini/skills
3) .agents/
4) Custom path
Choose [1-4] (default: 1): [press Enter]
🔍 Validating repository...
✓ Repository accessible
🔧 Setting up temporary workspace...
✓ Workspace created: /tmp/skill_download_XXXXXX
📥 Initializing sparse checkout...
✓ Sparse checkout configured
📡 Pulling skills/brainstorming from main...
✓ Content pulled successfully
📦 Extracting content...
✓ Extracted to: .claude/skills/brainstorming
🧹 Cleaning git artifacts...
✓ Removed X git-related items
🧹 Cleaning empty directories...
✓ Empty directories cleaned
🗑️ Removing temporary workspace...
✓ Temporary workspace cleaned up
============================================================
✓ Download completed successfully!
============================================================
Content available at: /absolute/path/to/your/project/.claude/skills/brainstorming
The skill provides clear error messages for common issues:
| Error | Cause | Solution |
|---|---|---|
Repository not found or not accessible | Invalid URL or no internet | Check URL and connection |
Path not found in repository | Incorrect path or branch | Verify path exists in branch |
Git not installed or not in PATH | Git isn't available | Install git or use alternative approach |
Destination already exists | Folder already present | Choose to overwrite or use different path |
Timeout | Network issues | Check internet connection and retry |
Pass --project-dir to anchor all relative destination paths to a specific directory:
python3 scripts/download_repo.py --project-dir /path/to/project
You can also call it programmatically:
from pathlib import Path
from download_repo import RepoDownloader
downloader = RepoDownloader(project_dir=Path("/path/to/project"))
downloader.repo_url = "https://github.com/your/repo.git"
downloader.repo_path = "path/to/folder"
downloader.branch = "main"
downloader.destination = ".claude/skills"
downloader.run()
Q: The script seems slow
Q: My destination is nested (e.g., .claude/skills/category/skill)
.claude/skills and the folder will be placed inside.Q: What gets removed from the downloaded content?
.git/ directories, .gitignore, .gitattributes, .gitmodules, .github/ directories, CODEOWNERS, and any empty directories created by the extraction process.Q: Can I download multiple paths from one repo?
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub takfes/indie-marketplace --plugin skillcraft5 skills in this plugin
/agent-developmentAgent DevelopmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./find-skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill./Other plugins' skills for the same job