Add information about the agent skills lifecycle and clarify docs-writer skill metadata. (#18234)

Co-authored-by: Jenna Inouye <jinouye@google.com>
This commit is contained in:
g-samroberts
2026-02-04 09:52:30 -08:00
committed by GitHub
parent b987e1780d
commit bd156e6832
2 changed files with 9 additions and 3 deletions

View File

@@ -2,8 +2,7 @@
name: docs-writer
description:
Always use this skill when the task involves writing, reviewing, or editing
documentation, specifically for any files in the `/docs` directory or any
`.md` files in the repository.
files in the `/docs` directory or any `.md` files in the repository.
---
# `docs-writer` skill instructions

View File

@@ -89,7 +89,7 @@ gemini skills enable my-expertise
gemini skills disable my-expertise --scope workspace
```
## How it Works (Security & Privacy)
## How it Works
1. **Discovery**: At the start of a session, Gemini CLI scans the discovery
tiers and injects the name and description of all enabled skills into the
@@ -106,6 +106,13 @@ gemini skills disable my-expertise --scope workspace
5. **Execution**: The model proceeds with the specialized expertise active. It
is instructed to prioritize the skill's procedural guidance within reason.
### Skill activation
Once a skill is activated (typically by Gemini identifying a task that matches
the skill's description and your approval), its specialized instructions and
resources are loaded into the agent's context. A skill remains active and its
guidance is prioritized for the duration of the session.
## Creating your own skills
To create your own skills, see the [Create Agent Skills](./creating-skills.md)