mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 21:14:35 -07:00
docs(skills): remove experimental labels and update tutorials (#17714)
This commit is contained in:
@@ -199,8 +199,8 @@ Slash commands provide meta-level control over the CLI itself.
|
|||||||
while others require a restart.
|
while others require a restart.
|
||||||
|
|
||||||
- [**`/skills`**](./skills.md)
|
- [**`/skills`**](./skills.md)
|
||||||
- **Description:** (Experimental) Manage Agent Skills, which provide on-demand
|
- **Description:** Manage Agent Skills, which provide on-demand expertise and
|
||||||
expertise and specialized workflows.
|
specialized workflows.
|
||||||
- **Sub-commands:**
|
- **Sub-commands:**
|
||||||
- **`list`**:
|
- **`list`**:
|
||||||
- **Description:** List all discovered skills and their current status
|
- **Description:** List all discovered skills and their current status
|
||||||
|
|||||||
+2
-2
@@ -29,8 +29,8 @@ overview of Gemini CLI, see the [main documentation page](../index.md).
|
|||||||
in an enterprise environment.
|
in an enterprise environment.
|
||||||
- **[Sandboxing](./sandbox.md):** Isolate tool execution in a secure,
|
- **[Sandboxing](./sandbox.md):** Isolate tool execution in a secure,
|
||||||
containerized environment.
|
containerized environment.
|
||||||
- **[Agent Skills](./skills.md):** (Experimental) Extend the CLI with
|
- **[Agent Skills](./skills.md):** Extend the CLI with specialized expertise and
|
||||||
specialized expertise and procedural workflows.
|
procedural workflows.
|
||||||
- **[Telemetry](./telemetry.md):** Configure observability to monitor usage and
|
- **[Telemetry](./telemetry.md):** Configure observability to monitor usage and
|
||||||
performance.
|
performance.
|
||||||
- **[Token caching](./token-caching.md):** Optimize API costs by caching tokens.
|
- **[Token caching](./token-caching.md):** Optimize API costs by caching tokens.
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
# Agent Skills
|
# Agent Skills
|
||||||
|
|
||||||
_Note: This is an experimental feature enabled via `experimental.skills`. You
|
|
||||||
can also search for "Skills" within the `/settings` interactive UI to toggle
|
|
||||||
this and manage other skill-related settings._
|
|
||||||
|
|
||||||
Agent Skills allow you to extend Gemini CLI with specialized expertise,
|
Agent Skills allow you to extend Gemini CLI with specialized expertise,
|
||||||
procedural workflows, and task-specific resources. Based on the
|
procedural workflows, and task-specific resources. Based on the
|
||||||
[Agent Skills](https://agentskills.io) open standard, a "skill" is a
|
[Agent Skills](https://agentskills.io) open standard, a "skill" is a
|
||||||
|
|||||||
@@ -1,37 +1,10 @@
|
|||||||
# Getting Started with Agent Skills
|
# Getting Started with Agent Skills
|
||||||
|
|
||||||
Agent Skills allow you to extend Gemini CLI with specialized expertise. This
|
Agent Skills allow you to extend Gemini CLI with specialized expertise. This
|
||||||
tutorial will guide you through creating your first skill, enabling it, and
|
tutorial will guide you through creating your first skill and using it in a
|
||||||
using it in a session.
|
session.
|
||||||
|
|
||||||
## 1. Enable Agent Skills
|
## 1. Create your first skill
|
||||||
|
|
||||||
Agent Skills are currently an experimental feature and must be enabled in your
|
|
||||||
settings.
|
|
||||||
|
|
||||||
### Via the interactive UI
|
|
||||||
|
|
||||||
1. Start a Gemini CLI session by running `gemini`.
|
|
||||||
2. Type `/settings` to open the interactive settings dialog.
|
|
||||||
3. Search for "Skills".
|
|
||||||
4. Toggle **Agent Skills** to `true`.
|
|
||||||
5. Press `Esc` to save and exit. You may need to restart the CLI for the
|
|
||||||
changes to take effect.
|
|
||||||
|
|
||||||
### Via `settings.json`
|
|
||||||
|
|
||||||
Alternatively, you can manually edit your global settings file at
|
|
||||||
`~/.gemini/settings.json` (create it if it doesn't exist):
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"experimental": {
|
|
||||||
"skills": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## 2. Create Your First Skill
|
|
||||||
|
|
||||||
A skill is a directory containing a `SKILL.md` file. Let's create an **API
|
A skill is a directory containing a `SKILL.md` file. Let's create an **API
|
||||||
Auditor** skill that helps you verify if local or remote endpoints are
|
Auditor** skill that helps you verify if local or remote endpoints are
|
||||||
@@ -86,7 +59,7 @@ responding correctly.
|
|||||||
.catch((e) => console.error(`Result: Failed (${e.message})`));
|
.catch((e) => console.error(`Result: Failed (${e.message})`));
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Verify the Skill is Discovered
|
## 2. Verify the skill is discovered
|
||||||
|
|
||||||
Use the `/skills` slash command (or `gemini skills list` from your terminal) to
|
Use the `/skills` slash command (or `gemini skills list` from your terminal) to
|
||||||
see if Gemini CLI has found your new skill.
|
see if Gemini CLI has found your new skill.
|
||||||
@@ -99,7 +72,7 @@ In a Gemini CLI session:
|
|||||||
|
|
||||||
You should see `api-auditor` in the list of available skills.
|
You should see `api-auditor` in the list of available skills.
|
||||||
|
|
||||||
## 4. Use the Skill in a Chat
|
## 3. Use the skill in a chat
|
||||||
|
|
||||||
Now, let's see the skill in action. Start a new session and ask a question about
|
Now, let's see the skill in action. Start a new session and ask a question about
|
||||||
an endpoint.
|
an endpoint.
|
||||||
|
|||||||
@@ -225,8 +225,6 @@ file in every session where the extension is active.
|
|||||||
|
|
||||||
## (Optional) Step 6: Add an Agent Skill
|
## (Optional) Step 6: Add an Agent Skill
|
||||||
|
|
||||||
_Note: This is an experimental feature enabled via `experimental.skills`._
|
|
||||||
|
|
||||||
[Agent Skills](../cli/skills.md) let you bundle specialized expertise and
|
[Agent Skills](../cli/skills.md) let you bundle specialized expertise and
|
||||||
procedural workflows. Unlike `GEMINI.md`, which provides persistent context,
|
procedural workflows. Unlike `GEMINI.md`, which provides persistent context,
|
||||||
skills are activated only when needed, saving context tokens.
|
skills are activated only when needed, saving context tokens.
|
||||||
|
|||||||
+2
-2
@@ -56,8 +56,8 @@ This documentation is organized into the following sections:
|
|||||||
commands with `/model`.
|
commands with `/model`.
|
||||||
- **[Sandbox](./cli/sandbox.md):** Isolate tool execution in a secure,
|
- **[Sandbox](./cli/sandbox.md):** Isolate tool execution in a secure,
|
||||||
containerized environment.
|
containerized environment.
|
||||||
- **[Agent Skills](./cli/skills.md):** (Experimental) Extend the CLI with
|
- **[Agent Skills](./cli/skills.md):** Extend the CLI with specialized expertise
|
||||||
specialized expertise and procedural workflows.
|
and procedural workflows.
|
||||||
- **[Settings](./cli/settings.md):** Configure various aspects of the CLI's
|
- **[Settings](./cli/settings.md):** Configure various aspects of the CLI's
|
||||||
behavior and appearance with `/settings`.
|
behavior and appearance with `/settings`.
|
||||||
- **[Telemetry](./cli/telemetry.md):** Overview of telemetry in the CLI.
|
- **[Telemetry](./cli/telemetry.md):** Overview of telemetry in the CLI.
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@
|
|||||||
{
|
{
|
||||||
"label": "Ecosystem and extensibility",
|
"label": "Ecosystem and extensibility",
|
||||||
"items": [
|
"items": [
|
||||||
{ "label": "Agent skills (experimental)", "slug": "docs/cli/skills" },
|
{ "label": "Agent skills", "slug": "docs/cli/skills" },
|
||||||
{
|
{
|
||||||
"label": "Sub-agents (experimental)",
|
"label": "Sub-agents (experimental)",
|
||||||
"slug": "docs/core/subagents"
|
"slug": "docs/core/subagents"
|
||||||
|
|||||||
+3
-3
@@ -91,8 +91,8 @@ Additionally, these tools incorporate:
|
|||||||
|
|
||||||
- **[MCP servers](./mcp-server.md)**: MCP servers act as a bridge between the
|
- **[MCP servers](./mcp-server.md)**: MCP servers act as a bridge between the
|
||||||
Gemini model and your local environment or other services like APIs.
|
Gemini model and your local environment or other services like APIs.
|
||||||
- **[Agent Skills](../cli/skills.md)**: (Experimental) On-demand expertise
|
- **[Agent Skills](../cli/skills.md)**: On-demand expertise packages that are
|
||||||
packages that are activated via the `activate_skill` tool to provide
|
activated via the `activate_skill` tool to provide specialized guidance and
|
||||||
specialized guidance and resources.
|
resources.
|
||||||
- **[Sandboxing](../cli/sandbox.md)**: Sandboxing isolates the model and its
|
- **[Sandboxing](../cli/sandbox.md)**: Sandboxing isolates the model and its
|
||||||
changes from your environment to reduce potential risk.
|
changes from your environment to reduce potential risk.
|
||||||
|
|||||||
Reference in New Issue
Block a user