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
+1 -2
View File
@@ -2,8 +2,7 @@
name: docs-writer name: docs-writer
description: description:
Always use this skill when the task involves writing, reviewing, or editing Always use this skill when the task involves writing, reviewing, or editing
documentation, specifically for any files in the `/docs` directory or any files in the `/docs` directory or any `.md` files in the repository.
`.md` files in the repository.
--- ---
# `docs-writer` skill instructions # `docs-writer` skill instructions
+8 -1
View File
@@ -89,7 +89,7 @@ gemini skills enable my-expertise
gemini skills disable my-expertise --scope workspace 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 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 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 5. **Execution**: The model proceeds with the specialized expertise active. It
is instructed to prioritize the skill's procedural guidance within reason. 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 ## Creating your own skills
To create your own skills, see the [Create Agent Skills](./creating-skills.md) To create your own skills, see the [Create Agent Skills](./creating-skills.md)