Using the Add-Skill Action
The quickest way to add a skill is using the/add-skill command in your conversation with OpenHands. This command fetches skills from GitHub repositories and installs them in your workspace.
Basic Usage
Provide a GitHub URL pointing to a skill:- Parse the URL to identify the repository and skill path
- Fetch the skill files from GitHub
- Install the skill in
.agents/skills/directory - Verify the installation
- Make the skill immediately available
Supported URL Formats
The/add-skill command accepts various GitHub URL formats:
- Full GitHub tree URL:
https://github.com/OpenHands/extensions/tree/main/skills/codereview - Repository path:
https://github.com/OpenHands/extensions/skills/codereview - Short form:
github.com/OpenHands/extensions/skills/codereview - Shorthand:
OpenHands/extensions/skills/codereview
Examples
Add the code review skill:Skill Storage Locations
Skills are stored in different locations depending on the platform and scope:- Agent Canvas
- SDK
- OpenHands Cloud
Manage skills under User-level skills (global, available in all conversations):Skills added with
Customize > Skills. Skills are scoped to the active backend.Project-level skills (specific to the conversation workspace):/add-skill are installed in .agents/skills/ of the conversation workspace. Skills load when a conversation starts, so after installing a skill Agent Canvas shows a Start new conversation with this skill banner.See Customize and Settings for details.Manual Installation
You can also manually install skills by copying skill directories into the appropriate location.For Project-Level Skills
-
Create the skills directory if it doesnât exist:
-
Copy or clone the skill directory:
-
Verify the skill structure:
For User-Level Skills
-
Create the global skills directory:
-
Add skills to this directory:
~/.agents/skills/ are available in all your conversations. Start a new conversation after adding them so Agent Canvas picks them up.
Verifying Installation
After adding a skill, verify itâs available:-
Check the file exists: The skill directory should contain at least a
SKILL.mdfile -
Test the trigger: For keyword-triggered skills, use one of the trigger words in your prompt:
- Check skill loading: OpenHands will indicate when a skill is loaded in response to your prompt
Skill Updates
To update a skill to the latest version:-
Remove the old version:
-
Add the updated version:
Authentication for Private Skills
The/add-skill command automatically uses the GITHUB_TOKEN environment variable to access private repositories via the GitHub API.
For manual git clone operations (such as when cloning directly into .agents/skills/), youâll need to handle authentication differentlyâtypically using SSH keys or embedding a personal access token in the clone URL.
Using /add-skill with private repositories:
- Set the
GITHUB_TOKENenvironment variable:
- Use
/add-skillas normal with private repository URLs
Skill Conflicts
If a skill with the same name already exists, OpenHands will warn you before overwriting. To resolve conflicts:- Rename the existing skill: Move or rename the existing skill directory
- Choose a different installation location: Install at user-level vs project-level
- Overwrite: Confirm the overwrite when prompted
Next Steps
- Browse available skills in the official registry
- Create your own skills for custom workflows
- Learn about keyword triggers to make skills activate automatically
- Understand skill structure for the AgentSkills format

