Skip to content
Agent skills2-0Antigravity AppFeaturesAgent skills Antigravity App FeaturesAntigravity AppAntigravity CLIIDE ExtensionsAntigravity IDE
Available on:
Antigravity AppAntigravity CLIIDE extensionsAntigravity IDE

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.

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.

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

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.

The YAML frontmatter supports the following fields:

FieldRequiredDescription
nameNoA unique identifier for the skill (lowercase, hyphens for spaces). Defaults to the folder name if not provided.
descriptionYesA 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.

Skills follow a progressive disclosure pattern:

  1. Discovery: On every turn, the agent sees a list of available skills with their names and descriptions.
  2. Activation: If a skill looks relevant to your task, the agent reads the full SKILL.md content.
  3. 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.

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:

LimitThresholdBehavior
Per-read file ceiling800 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 limit24 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 budget20,000 tokensAll 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 boundsname: 64 chars, description: 1,024 chars, body: under 500 linesRecommended by the Agent Skills open standard for cross-tool portability and reliable single-read loading.

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 inside references/. Keep reference files one level deep and link to them directly from SKILL.md with 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 in scripts/ (and store templates or static data in resources/ or examples/). Instruct the agent to run the script instead of reading its full source.
  • Split broad skills into focused ones: If one SKILL.md covers 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.md focused on exact commands, decision points, and project-specific edge cases.
  • Keep description concise: Because every skill’s description counts 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.

Each skill should do one thing well. Instead of a “do everything” skill, create separate skills for distinct tasks.

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.

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 description is usually enough to prevent false triggers without inflating your customization token budget.

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.

For complex skills, add a section that helps the agent choose the right approach based on the situation.

Explore how to create and manage skills on your preferred surface:

The Antigravity App loads skills from two primary locations:

LocationScope
<workspace-root>/.agents/skills/<skill-folder>/Workspace-specific
~/.gemini/config/skills/<skill-folder>/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.

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.