Skip to content

Agent Skills

Fresh

Skills are reusable packages that extend the agent's capabilities. Each skill is defined by a SKILL.md file and can include supporting scripts, examples, and resources.

Locations

LevelPathScope
Workspace.agents/skills/Available in the current workspace only
Global~/.gemini/antigravity/skills/Available across all workspaces

Skill Structure

my-skill/
  SKILL.md          # Required -- skill definition
  scripts/           # Optional -- executable scripts
  examples/          # Optional -- usage examples
  resources/         # Optional -- reference data, templates

SKILL.md Frontmatter

yaml
---
name: my-skill          # Optional, defaults to folder name
description: Brief description of what this skill does  # Required
---

Progressive Disclosure

Skills follow a three-phase lifecycle:

PhaseDescription
DiscoveryThe agent finds the skill based on its name and description.
ActivationThe agent reads the full SKILL.md content when the skill is relevant.
ExecutionThe agent uses the skill's instructions, scripts, and resources to complete the task.

Best Practices

  • Keep skills focused -- one skill per domain or task type
  • Write clear descriptions -- the agent uses descriptions to decide when to activate a skill
  • Treat scripts as black boxes -- scripts should be self-contained and executable
  • Include decision trees -- help the agent decide between approaches within the skill

TIP

Skills are the primary way to teach the agent domain-specific knowledge. A well-written skill with decision trees and examples dramatically improves agent performance on specialized tasks.

SOP Documentation Site