add-skill
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Add an external skill from a GitHub repository to the current workspace. Use when users want to import, install, or add a skill from a GitHub URL (e.g., `/add-skill https://github.com/OpenHands/skills/tree/main/skills/codereview` or "add the codereview skill from https://github.com/OpenHands/skills/"). Handles fetching the skill files and placing them in .agents/skills/.
5installs
Sourceopenhands/skills
Added on
NPX Install
npx skill4agent add openhands/skills add-skillTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Add Skill
Import skills from GitHub repositories into the current workspace.
Workflow
When a user requests to add a skill from a GitHub URL:
- Parse the URL to extract repository owner, name, and skill path
- Fetch the skill using the bundled script:
bash
python3 <this-skill-path>/scripts/fetch_skill.py "<github-url>" "<workspace-path>" - Verify that SKILL.md exists in the destination
- Inform the user the skill is now available
URL Formats Supported
https://github.com/owner/repo/tree/main/path/to/skillhttps://github.com/owner/repo/skill-namegithub.com/owner/repo/skill-name- (shorthand)
owner/repo/skill-name
Example
User:
/add-skill https://github.com/OpenHands/skills/tree/main/skills/codereviewbash
# Run the fetch script
python3 scripts/fetch_skill.py "https://github.com/OpenHands/skills/tree/main/skills/codereview" "/path/to/workspace"
# Verify installation
ls /path/to/workspace/.agents/skills/codereview/SKILL.mdResponse: "✅ Added to your workspace. The skill is now available."
codereviewNotes
- Creates directory if it doesn't exist
.agents/skills/ - Uses for authentication (required for private repos)
GITHUB_TOKEN - Warns before overwriting existing skills with the same name