Copy Skill from GitHub

VerifiedSafe

Downloads and installs Claude Code skills from GitHub repositories into your local .claude/skills directory. Specify a GitHub URL pointing to a skill folder, and the script fetches and copies all files preserving structure. Useful when you find a skill online and want to add it to your Claude Code environment.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#claude-code#github#skill-installation#copy-cli

Recommended for

Automated summary

This tool downloads and installs Claude Code skills from GitHub repositories into the local .claude/skills directory.

Strengths

  • Simplifies skill installation from GitHub
  • Supports various URL formats
  • Recursive download of all skill files
  • Customizable target via --target option

Limitations

  • Requires Node.js 18+ for native fetch
  • Depends on GitHub API (rate limits possible)
  • No version management or update mechanism
When to use it

Use when you want to quickly install a Claude Code skill from a public GitHub repository.

When not to use it

Avoid if you need advanced package management or non-GitHub sources.

Security analysis

Safe
Quality score88/100

The skill only downloads files from GitHub and writes them to a local directory. It does not execute any downloaded code, perform destructive actions, or exfiltrate data. The use of network and file writes is within expected functionality for a downloader tool.

No concerns found

How this analysis is made

Examples

Install skill from GitHub
Install the skill from https://github.com/owner/repo/tree/main/skills/my-skill
Install to custom location
Copy the skill from https://github.com/user/skills/tree/main/my-skill to ~/.claude/skills

name: copy-skill description: Copy Claude Code skills from GitHub repositories into local .claude/skills directory. Use when the user wants to install, download, or copy a skill from GitHub, or mentions a GitHub URL to a skill they want to add.

Copy Skill

Downloads and installs Claude Code skills from GitHub repositories to your local .claude/skills directory.

Quick Start

node scripts/copy-skill.js <github-url> [--target <path>]

Instructions

Step 1: Parse the GitHub URL

Accept URLs in these formats:

  • https://github.com/owner/repo/tree/branch/path/to/skill
  • https://github.com/owner/repo/tree/main/skills/skill-name

Step 2: Run the copy script

# Copy to project .claude/skills (default)
node scripts/copy-skill.js https://github.com/user/repo/tree/main/skills/my-skill

# Copy to user home ~/.claude/skills
node scripts/copy-skill.js https://github.com/user/repo/tree/main/skills/my-skill --target ~/.claude/skills

Step 3: Verify installation

The script will:

  1. Fetch the directory listing from GitHub API
  2. Recursively download all files (SKILL.md, scripts/, references/, etc.)
  3. Create the local directory structure
  4. Write all files preserving the structure

Usage Examples

Copy a skill from a public repository:

node scripts/copy-skill.js https://github.com/owner/repo/tree/main/skills/my-skill

Copy to a custom location:

node scripts/copy-skill.js https://github.com/user/skills/tree/main/my-skill --target /path/to/.claude/skills

Copy to home directory skills:

node scripts/copy-skill.js https://github.com/user/repo/tree/main/skill-name --target ~/.claude/skills

Script Options

| Option | Description | Default | |--------|-------------|---------| | --target, -t | Target directory for skill installation | .claude/skills | | --name, -n | Override skill directory name | Extracted from URL | | --verbose, -v | Enable verbose output | false |

Requirements

  • Node.js 18+ (for native fetch support)
  • Internet connection to access GitHub API

How It Works

  1. URL Parsing: Extracts owner, repo, branch, and path from GitHub URL
  2. API Fetching: Uses GitHub Contents API to list all files recursively
  3. Content Download: Fetches raw content for each file
  4. Directory Creation: Creates local directory structure mirroring the source
  5. File Writing: Writes all files to the target location

Error Handling

The script handles:

  • Invalid GitHub URLs
  • Non-existent repositories or paths
  • Network failures with retry logic
  • Rate limiting (suggests using GITHUB_TOKEN)

Troubleshooting

Rate limit exceeded:

export GITHUB_TOKEN=your_token_here
node scripts/copy-skill.js <url>

Permission denied:

  • Check write permissions on target directory
  • Try with sudo or change target path

Skill not found after install:

  • Restart Claude Code to reload skills
  • Verify SKILL.md exists in the installed directory

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/copy-skill-from-github-mma3jrzj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/copy-skill-from-github-mma3jrzj/download' --output '.skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md.part' && mv '.skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md.part' '.skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Original excerpt: Requirements
  • Node.js 18+ (for native fetch support)
  • Internet connection to access GitHub API

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md' && test -s '.skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/copy-skill' && cp -R '.skill-downloads/copy-skill-from-github-mma3jrzj' '.claude/skills/copy-skill'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/copy-skill-from-github-mma3jrzj'

openskills read 'copy-skill-from-github-mma3jrzj'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/copy-skill-from-github-mma3jrzj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills