Agent skill
import-github-dirs
Import specific directories from external GitHub repos without cloning. Uses tarball extraction to pull only what you need. TRIGGER when user wants to copy files/folders from another repo.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/import-github-dirs
SKILL.md
Import GitHub Directories
TRIGGER CONDITIONS
USE when:
- "bring in files from [repo]"
- "import directories from GitHub"
- Copying code from external repos
SKIP when:
- User wants to clone entire repo
- Just need single file (use raw URL instead)
One-Command Import
curl -L https://github.com/{owner}/{repo}/tarball/{branch} | \
tar -xz --strip-components=1 --wildcards '*/{dir1}/*' '*/{dir2}/*'
Examples
Single directory:
curl -L https://github.com/rjs/shaping-skills/tarball/main | \
tar -xz --strip-components=1 --wildcards '*/shaping/*'
Multiple directories:
curl -L https://github.com/rjs/shaping-skills/tarball/main | \
tar -xz --strip-components=1 --wildcards '*/breadboarding/*' '*/shaping/*'
How It Works
- HTTP download of tarball (no git operations)
--strip-components=1removes root folder--wildcardsextracts only matching paths- Files land in current directory, ready to move/stage/commit
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?