Skip to content
Back to skills

Add Skill

ASecurity

Import an existing skill from a GitHub repository URL into the current workspace. Use only when the user provides or references a GitHub URL/repo to fetch from (e.g., `/add-skill https://github.com/OpenHands/extensions/tree/main/skills/codereview` or "add the codereview skill from https://github.com/OpenHands/extensions/"). Handles fetching the skill files and placing them in .agents/skills/. This does not author new skills — to create a new skill from scratch (no source URL), use the skill-c...

  • 151 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
toolspythonshellbashgit

Security analysis

A100/100

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

Scanned September 24, 2026

npx -y skills add OpenHands/extensions --skill add-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Skill?

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

Security grade badge for Add Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openhands-add-skill/badge)](https://www.skillsdirectory.com/skills/openhands-add-skill)

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: add-skill
description: Import an existing skill from a GitHub repository URL into the current workspace. Use only when the user provides or references a GitHub URL/repo to fetch from (e.g., `/add-skill https://github.com/OpenHands/extensions/tree/main/skills/codereview` or "add the codereview skill from https://github.com/OpenHands/extensions/"). Handles fetching the skill files and placing them in .agents/skills/. This does not author new skills — to create a new skill from scratch (no source URL), use the skill-creator skill instead.
---

# Add Skill

Import skills from GitHub repositories into the current workspace.

## Workflow

When a user requests to add a skill from a GitHub URL:

1. **Parse the URL** to extract repository owner, name, and skill path
2. **Fetch the skill** using the bundled script. Run it from this skill's
   directory (the directory containing this SKILL.md file):
   ```bash
   python3 scripts/fetch_skill.py "<github-url>" "<workspace-path>"
   ```
3. **Verify** that SKILL.md exists in the destination
4. **Inform the user** the skill is now available

## URL Formats Supported

- `https://github.com/owner/repo/tree/main/path/to/skill`
- `https://github.com/owner/repo/skill-name`
- `github.com/owner/repo/skill-name`
- `owner/repo/skill-name` (shorthand)

## Example

User: `/add-skill https://github.com/OpenHands/extensions/tree/main/skills/codereview`

```bash
# Run the fetch script
python3 scripts/fetch_skill.py "https://github.com/OpenHands/extensions/tree/main/skills/codereview" "/path/to/workspace"

# Verify installation
ls /path/to/workspace/.agents/skills/codereview/SKILL.md
```

On Windows, use `python` if `python3` is not available and verify with PowerShell, for example: `Test-Path C:\path\to\workspace\.agents\skills\codereview\SKILL.md`.

Response: "✅ Added `codereview` to your workspace. The skill is now available."

## Notes

- Installs workspace-locally into `<workspace>/.agents/skills/<skill-name>/`,
  not globally; that workspace is where the skill becomes available
- Creates `.agents/skills/` directory if it doesn't exist
- Uses `GITHUB_TOKEN` for authentication (required for private repos)
- Warns before overwriting existing skills with the same name

Files in this skill

  • .plugin/plugin.json454 B
  • README.md1.9 KB
  • SKILL.md1.7 KB
  • scripts/fetch_skill.py9.8 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…