docs(skills): clarify skill directory structure and file location (#16532)

This commit is contained in:
N. Taylor Mullen
2026-01-13 16:03:45 -08:00
committed by GitHub
parent c7c409c68f
commit 778de55fd8

View File

@@ -98,7 +98,20 @@ gemini skills disable my-expertise --scope project
A skill is a directory containing a `SKILL.md` file at its root. This file uses
YAML frontmatter for metadata and Markdown for instructions.
### Basic Structure
### Folder Structure
Skills are self-contained directories. At a minimum, a skill requires a
`SKILL.md` file, but can include other resources:
```text
my-skill/
├── SKILL.md (Required) Instructions and metadata
├── scripts/ (Optional) Executable scripts/tools
├── references/ (Optional) Static documentation and examples
└── assets/ (Optional) Templates and binary resources
```
### Basic Structure (SKILL.md)
```markdown
---
@@ -117,6 +130,8 @@ description: <what the skill does and when Gemini should use it>
### Example: Team Code Reviewer
Create `~/.gemini/skills/code-reviewer/SKILL.md`:
```markdown
---
name: code-reviewer