Agent skills
Section titled “Agent skills”Skills are an open standard for extending agent
capabilities. A skill is a folder containing a SKILL.md file with instructions
that the agent can follow when working on specific tasks.
What are skills?
Section titled “What are skills?”Skills are reusable packages of knowledge that extend what the agent can do. Each skill contains:
- Instructions: Explicit protocols for how to approach a specific task.
- Best practices: Conventions, style guidelines, and checklists to follow.
- Scripts and resources: Optional helper scripts and data schemas the agent can execute.
On every turn, the agent sees a list of available skills with their names and descriptions. If a skill looks relevant to your task, the agent reads the full instructions and follows them.
Anatomy of a skill
Section titled “Anatomy of a skill”Skills are organized as directory bundles containing a required SKILL.md file:
my-skill/
├── SKILL.md # Required skill instructions and metadata
├── references/ # Optional detailed docs loaded on demand
├── scripts/ # Optional executable scripts
├── examples/ # Optional reference implementations
└── resources/ # Optional templates, schemas, or data files
Manifest format (SKILL.md)
Section titled “Manifest format (SKILL.md)”Every SKILL.md file begins with YAML frontmatter defining its name and
triggering criteria:
---
name: code-review
description: Reviews code changes for bugs, style issues, and best practices. Use when reviewing pull requests or checking code quality.
---
# Code Review Skill
When reviewing code, follow these steps:
## Review checklist
1. **Correctness**: Verify that the code satisfies specifications.
2. **Edge cases**: Ensure error conditions and boundaries are handled.
3. **Style**: Follow project naming and architectural patterns.
4. **Performance**: Identify potential bottlenecks or inefficiencies.
Frontmatter fields
Section titled “Frontmatter fields”The YAML frontmatter supports the following fields:
| Field | Required | Description |
|---|---|---|
name | No | A unique identifier for the skill (lowercase, hyphens for spaces). Defaults to the folder name if not provided. |
description | Yes | A clear description of what the skill does and when to use it. This is what the agent sees when deciding whether to apply the skill. |
How the agent uses skills
Section titled “How the agent uses skills”Skills follow a progressive disclosure pattern:
- Discovery: On every turn, the agent sees a list of available skills with their names and descriptions.
- Activation: If a skill looks relevant to your task, the agent reads the
full
SKILL.mdcontent. - Execution: The agent follows the skill’s instructions while working on your task.
You don’t need to explicitly tell the agent to use a skill—it decides based on context. However, you can mention a skill by name if you want to ensure it’s used.
Size limits and token budgets
Section titled “Size limits and token budgets”To keep the context window responsive and ensure skills load reliably in a single pass, Antigravity enforces runtime size and budget limits alongside the Agent Skills specification guidelines:
| Limit | Threshold | Behavior |
|---|---|---|
| Per-read file ceiling | 800 lines or 45 KiB (46,080 bytes) | When the agent activates a skill on demand (autonomously or via /<skill-name>), each file read returns at most 800 lines or 46,080 bytes. Content past that threshold requires extra read calls and risks being missed. |
| Preloaded body limit | 24 KB (24,000 bytes) | When Antigravity parses and inlines a skill body directly (for example, for preloaded skills), it truncates the Markdown body after YAML frontmatter at 24,000 bytes from the bottom, keeping the top of the file. Plugin validation also warns when a SKILL.md body exceeds 24,000 bytes. |
| Aggregate customization budget | 20,000 tokens | All active skills share a 20,000-token customization budget with custom subagents, workflows, and MCP tools (separate from the 20,000-token rules budget). Each skill counts its name, path, and description toward this budget. When exceeded, Antigravity evicts the largest items first, reducing evicted skills to name-only entries without descriptions. |
| Recommended standard bounds | name: 64 chars, description: 1,024 chars, body: under 500 lines | Recommended by the Agent Skills open standard for cross-tool portability and reliable single-read loading. |
How to fit skills within limits
Section titled “How to fit skills within limits”If your SKILL.md file is approaching or exceeding these limits, refactor it
using progressive disclosure:
- Offload deep content to
references/: Move API tables, data schemas, long examples, and secondary sub-workflows into focused Markdown files insidereferences/. Keep reference files one level deep and link to them directly fromSKILL.mdwith a short note on when to read each file, so the agent only loads them when needed. - Extract repeatable logic into
scripts/: Replace long inline shell recipes or multi-step code blocks with executable scripts inscripts/(and store templates or static data inresources/orexamples/). Instruct the agent to run the script instead of reading its full source. - Split broad skills into focused ones: If one
SKILL.mdcovers several unrelated workflows, break it into separate single-purpose skills. Each skill stays shorter and triggers more accurately. - Trim boilerplate and generic advice: Remove general coding best practices
or background explanations the agent already knows. Keep
SKILL.mdfocused on exact commands, decision points, and project-specific edge cases. - Keep
descriptionconcise: Because every skill’sdescriptioncounts toward the shared 20,000-token customization budget on every turn, verbose descriptions make your skill the first candidate for eviction when many skills or MCP tools are enabled.
Best practices
Section titled “Best practices”Keep skills focused
Section titled “Keep skills focused”Each skill should do one thing well. Instead of a “do everything” skill, create separate skills for distinct tasks.
Write clear descriptions
Section titled “Write clear descriptions”The description is how the agent decides whether to use your skill. Make it specific about what the skill does and when it’s useful.
Add negative triggers
Section titled “Add negative triggers”As your library of skills grows, overlapping keywords can cause the agent to
activate the wrong skill (over-triggering). Add explicit negative triggers
to your YAML description using phrases like "Don't use for..." or
"Don't trigger when..." to define clear boundaries and steer the agent toward
the right alternative.
---
name: database-migrations
description: >-
Creates, validates, and applies PostgreSQL schema migrations using Prisma.
Use when adding tables, altering columns, or writing migration scripts.
Don't use for ad-hoc read queries, seed data, or ORM query debugging
(use the database-query skill instead).
---
Follow these guidelines when writing negative triggers:
- Call out common look-alike tasks: List adjacent workflows that share vocabulary with your skill but require a different procedure (for example, distinguishing schema migrations from read-only SQL queries).
- Name the right alternative: When another skill handles the excluded task, name it directly in parentheses so the agent routes to it immediately.
- Keep exclusions brief: A single sentence at the end of
descriptionis usually enough to prevent false triggers without inflating your customization token budget.
Use scripts as black boxes
Section titled “Use scripts as black boxes”If your skill includes scripts, encourage the agent to run them with --help
first rather than reading the entire source code. This keeps the agent’s context
focused on the task.
Include decision trees
Section titled “Include decision trees”For complex skills, add a section that helps the agent choose the right approach based on the situation.
Skills by surface
Section titled “Skills by surface”Explore how to create and manage skills on your preferred surface:
Antigravity App
Section titled “Antigravity App”Antigravity App skill locations
Section titled “Antigravity App skill locations”The Antigravity App loads skills from two primary locations:
| Location | Scope |
|---|---|
<workspace- | Workspace-specific |
~/ | Global (all workspaces) |
Each scope serves a distinct purpose:
- Workspace skills: Scoped to a single project and committed to version
control to share across your engineering team. Antigravity also reads
.agents/skills/in each parent folder up to the repository root. - Global skills: Available across all projects on your workstation.
Invoking skills in the Antigravity App
Section titled “Invoking skills in the Antigravity App”You can invoke skills in the Antigravity App in two ways:
- Autonomous invocation: The agent automatically reads and follows relevant skills based on your prompt.
- Manual slash command: Type
/<skill-name>in the message box to explicitly invoke a skill.
Antigravity CLI
Section titled “Antigravity CLI”CLI skill locations
Section titled “CLI skill locations”The Antigravity CLI features full support for local and global agent skills:
| Location | Scope |
|---|---|
<workspace- | Workspace-specific |
~/ | Global (all workspaces, shared with the Antigravity App) |
~/ | Plugin-provided skills (Plugins) |
Antigravity also reads .agents/skills/ in each parent folder up to the
repository root. The Antigravity CLI also loads skills from
~/.gemini/antigravity-cli/skills/ and ~/.gemini/skills/, which the
Antigravity App doesn’t read. For details, see
Customization discovery.
Slash command conversion
Section titled “Slash command conversion”Whenever you define a skill, the CLI automatically converts it into a slash
command inside the interactive TUI. For example, creating a skill named
deploy-staging makes /deploy-staging available in the prompt box. If you
add a skill while the CLI is running, run /skills reload or start a new
conversation to update the slash commands.
Managing skills with plugins
Section titled “Managing skills with plugins”Skills can also be packaged inside plugins and managed with agy plugin:
# List installed plugins (pass --json to include bundled skill names and paths)
agy plugin list
agy plugin list --json
# Install a plugin from the official marketplace (defaults to @antigravity-plugins-official)
agy plugin install <plugin-name>
# Install a skill bundle from a GitHub URL or local plugin path
agy plugin install https://github.com/<owner>/<repo>
agy plugin install ./my-skills-pluginAntigravity IDE
Section titled “Antigravity IDE”Antigravity IDE skill locations
Section titled “Antigravity IDE skill locations”In the standalone Antigravity IDE, skills are discovered from the following locations:
| Location | Scope |
|---|---|
<workspace- | Workspace-specific |
~/ | Global (all workspaces; legacy ~/.gemini/antigravity/skills/ is also supported) |
You can inspect all active skills from the Customizations menu in the agent side panel.
Next steps
Section titled “Next steps”- Prompting and instructions: See how to layer rules, reusable skills, and focused turn prompts.
- Rules: Set persistent workspace constraints and coding standards.
- Learn command (
/learn): Turn hard-won fixes from a session into reusable skills and rules.