mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
docs(skills): clarify skill directory structure and file location (#16532)
This commit is contained in:
+16
-1
@@ -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
|
A skill is a directory containing a `SKILL.md` file at its root. This file uses
|
||||||
YAML frontmatter for metadata and Markdown for instructions.
|
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
|
```markdown
|
||||||
---
|
---
|
||||||
@@ -117,6 +130,8 @@ description: <what the skill does and when Gemini should use it>
|
|||||||
|
|
||||||
### Example: Team Code Reviewer
|
### Example: Team Code Reviewer
|
||||||
|
|
||||||
|
Create `~/.gemini/skills/code-reviewer/SKILL.md`:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
---
|
---
|
||||||
name: code-reviewer
|
name: code-reviewer
|
||||||
|
|||||||
Reference in New Issue
Block a user