docs: Fix skill installation instructions (#57289)

Fixes the skill installation instructions in `docs/src/ai/skills.md`.

The previous steps used a `git sparse-checkout` approach that was
inaccurate — the cloned repo would land nested inside the skills folder,
and the sparse-checkout path was wrong for repos that store skills in a
subdirectory. Replaced with a simple instruction to copy the skill's
folder into the appropriate location.

Release Notes:

- N/A
This commit is contained in:
María Craig 2026-05-20 14:54:47 -03:00 committed by GitHub
parent d2953a2b57
commit 814443a466
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,18 +27,20 @@ See [Skill format](#skill-format) below for the full format reference.
- [`frontend-design`](https://skills.sh/anthropics/skills/frontend-design): production-grade frontend interfaces with design polish
- [`pdf`](https://skills.sh/anthropics/skills/pdf): PDF text extraction, merging, splitting, form filling, and OCR
To install a skill from it, copy or clone its folder into your global or project-local skills folder.
To install a skill, copy the skill's folder into `~/.agents/skills/` for global use, or into your project's `.agents/skills/` folder for project-local use.
For example, to install the `frontend-design` skill from GitHub globally:
## Managing Skills {#managing-skills}
```sh
cd ~/.agents/skills
git clone --filter=blob:none --sparse https://github.com/anthropics/skills
cd skills
git sparse-checkout set frontend-design
```
Open the Settings Editor (`Cmd+,` on macOS, `Ctrl+,` on Linux/Windows) and navigate to **AI > Skills**, or go directly to [agent.skills](zed://settings/agent.skills).
For a project-local install, do the same inside your project's `.agents/skills/` folder.
The **User** tab shows your global skills. The **Project** tab shows skills for the current project.
For each skill you can:
- **Open** — opens the skill's `SKILL.md` file in the editor
- **Delete** — removes the skill folder from disk
If no skills are installed, the page shows a **Create a Skill** button that opens the Skill Creator.
## Managing Skills {#managing-skills}