Antigravity Skills: The Ultimate Guide to AI Agent Skills
Learn how to create, integrate, and optimize Agent Skills for AI assistants. A comprehensive tutorial covering SKILL.md format, directory structure, best practices, and Antigravity Skills platform integration.
By Antigravity Skills editorial team · Last updated
Antigravity Skills: The Complete Guide to AI Agent Skills
Welcome to the ultimate guide for Antigravity Skills — the open-format standard for extending AI Agent capabilities with specialized expertise and workflows.
What you'll learn: How to create professional Agent Skills, understand the SKILL.md specification, and leverage Antigravity Skills platform for maximum productivity.
What Are Agent Skills?
Agent Skills are a lightweight, open format for giving AI agents new capabilities and domain expertise. Think of them as "plugins" that teach your AI assistant specialized knowledge and workflows.
Key Characteristics
| Feature | Description |
|---|---|
| Self-documenting | Skills are readable by both humans and agents — easy to audit and improve |
| Extensible | Start with simple text instructions, scale to executable code and templates |
| Portable | Skills are just files — easy to edit, version control, and share |
What Can Skills Do?
| Capability | Description | Example |
|---|---|---|
| Domain Expertise | Package specialized knowledge as reusable instructions | Legal review workflows, data analysis pipelines |
| New Abilities | Give agents entirely new capabilities | Create presentations, build MCP servers, analyze datasets |
| Repeatable Workflows | Convert multi-step tasks into consistent, auditable processes | Code review, document generation |
| Cross-Platform | Reuse the same skill across different AI products | Works with Claude Code, Antigravity, and more |
How Agent Skills Work
Skills follow a three-phase workflow:
flowchart LR
A[Discovery] --> B[Activation] --> C[Execution]Phase 1: Discovery
At startup, the agent loads only the name and description of each available skill — just enough to identify when a skill might be relevant.
Phase 2: Activation
When a user's task matches a skill's description, the agent reads the full SKILL.md instructions into its context.
Phase 3: Execution
The agent follows the instructions, loading referenced files or executing bundled scripts as needed.
Token Efficiency: This progressive disclosure pattern optimizes token usage by loading content only when necessary.
Directory Structure
Minimal Structure
The simplest skill needs just one file:
my-skill/
└── SKILL.md # Required: Instructions + metadataComplete Structure
Complex skills can include optional directories:
my-skill/
├── SKILL.md # Required: Core definition file
├── scripts/ # Optional: Executable code
├── references/ # Optional: Documentation and references
└── assets/ # Optional: Templates and resourcesDirectory Guidelines
| Directory | Purpose | Contents |
|---|---|---|
scripts/ | Executable code | Self-contained scripts with clear dependencies |
references/ | Technical docs | Detailed references, schemas, domain-specific guides |
assets/ | Resources | Templates, images, data files |
[!IMPORTANT] Forbidden Files: Never include
README.md,CHANGELOG.md, orINSTALLATION.mdin skills. These are for humans, not agents — they waste tokens.
SKILL.md File Format
Every skill requires a SKILL.md file with two parts:
- YAML Frontmatter (required) — Metadata
- Markdown Body — Detailed instructions
Frontmatter Specification
---
name: skill-name
description: A description of what this skill does and when to use it.
license: Apache-2.0 # Optional
compatibility: Requires Python 3.10+ # Optional
metadata: # Optional
author: your-name
version: "1.0"
---Required Fields
| Field | Format | Rules |
|---|---|---|
name | 1-64 chars | Lowercase letters and hyphens only. Must match directory name. |
description | 1-1024 chars | Describe what the skill does AND when to use it. Include trigger keywords. |
Name Field Rules
✅ Valid names:
name: pdf-processing
name: code-review
name: data-analysis❌ Invalid names:
name: PDF-Processing # No uppercase
name: -pdf # Can't start with hyphen
name: pdf--processing # No consecutive hyphensDescription Best Practices
The description field is critical — it determines when agents activate your skill.
✅ Good description:
description: Extracts text and tables from PDF files, fills PDF forms, and merges multiple PDFs. Use when working with PDF documents or when the user mentions PDFs, forms, or document extraction.❌ Poor description:
description: Helps with PDFs. # Too vague, missing keywordsBody Content Guidelines
The markdown body is your operational guide for the agent. Include:
| Section | Purpose |
|---|---|
| Step-by-step instructions | Clear execution steps |
| Input/Output examples | Help agent understand expectations |
| Edge cases | Handle exceptions gracefully |
| Role/Expectations | Define agent's role when using this skill |
| Checklists | Step-by-step verification items |
| Protocols | Output formats (e.g., "Always return JSON") |
Example: Code Review Skill
---
name: code-review
description: Review code changes for bugs, style issues, and best practices. Use when handling PRs or checking code quality.
---
# Code Review Skill
When performing code reviews, follow these steps:
## 1. Review Checklist
- **Correctness**: Does the code implement intended functionality?
- **Edge Cases**: Are error conditions and exceptions handled?
- **Style**: Does it follow project naming and structure conventions?
- **Performance**: Any obvious inefficiencies or resource leaks?
## 2. Providing Feedback
- Point to specific line numbers for improvements
- Explain "why to change", not just "what to change"
- Provide refactored code examples when possibleToken Optimization
Antigravity Skills are designed for token efficiency:
| Level | Budget | When Loaded | Content |
|---|---|---|---|
| Metadata | ~100 tokens | At startup | name and description only |
| Instructions | <500 lines | On activation | Full SKILL.md body |
| Resources | On-demand | When needed | Files in scripts/, references/, assets/ |
[!CAUTION] Hard Limit: SKILL.md body must be under 500 lines. Split longer content into
references/directory.
Optimization Tips
- Black-box scripts: Instruct agents to use
--helpinstead of reading script source code - Progressive loading: Put detailed documentation in
references/for on-demand access - Modular design: Create focused, single-purpose skills instead of monolithic ones
Degrees of Freedom
Choose the right implementation approach based on task characteristics:
| Level | Use Case | Implementation |
|---|---|---|
| High Freedom | Creative tasks, exploration | Pure text instructions |
| Medium Freedom | Best practices with flexibility | Pseudocode / Templates |
| Low Freedom | Error-prone, deterministic tasks | Scripts (Python/Bash) |
Examples:
- 🎨 High: Web design, creative writing, brainstorming
- 📝 Medium: Code review, commit message generation
- 🔧 Low: PDF rotation, format conversion, calculations
Google Antigravity: What It Is and How Skills Fit In
Google Antigravity is Google's agent development platform, where AI agents plan and carry out coding tasks for you. According to Google's documentation it comes in several forms: a desktop app, a command-line tool (agy), extensions for popular IDEs, and a Python SDK. You can download it and read the official docs at antigravity.google.
This site is independent and is not run by Google. It covers the skills side: reusable SKILL.md folders that an Antigravity agent can load when a task matches. Put a skill in your project's .agents/skills/ folder, or in the global skills folder, and the agent picks it up from its description. The exact folders and the activation flow are in Platform Integration below, and How to install skills walks through adding one step by step.
Because skills follow an open format, the same folder can also be used by other agents. Check where each tool looks for skills before you copy anything across.
Antigravity Skills Platform Integration
Storage Locations
| Type | Path | Scope |
|---|---|---|
| Project Skills | <workspace-root>/.agents/skills/<skill-name>/ | Current project only |
| Global Skills | ~/.gemini/config/skills/<skill-name>/ | Available across all projects |
Updated November 2026: these are the paths in the official Antigravity docs. Antigravity still reads the older
.agent/skills/(singular) folder, and the IDE also reads~/.gemini/antigravity/skills/, but new skills should use the paths above. For Claude Code and Codex paths, see How to install skills.
File Naming
Each skill is a folder whose name is the skill name, with SKILL.md directly inside it. Scripts, references and data files go in the same folder.
| Pattern | Example | Use Case |
|---|---|---|
| Minimal | skill-name/SKILL.md | Instructions only |
| With resources | skill-name/SKILL.md + scripts/, references/ | Skills that run scripts or load reference files |
Activation Mechanism
Skills are activated through semantic matching. The description field in the SKILL.md frontmatter is required: the agent sees each skill's name and description every turn and loads the full skill only when it is relevant. The agent:
- Scans available skill descriptions
- Matches descriptions to user tasks
- Autonomously activates relevant skills
Security Considerations
When integrating skills, implement these safeguards:
| Measure | Description |
|---|---|
| Sandboxing | Run scripts in isolated environments |
| Allowlisting | Execute only scripts from trusted skills |
| Confirmation | Prompt users before dangerous operations |
| Logging | Record all script executions for audit |
Validation Tools
Use the official skills-ref tool to validate skills:
# Validate a skill
skills-ref validate ./my-skill
# Generate prompt XML
skills-ref to-prompt <path>...Best Practices Summary
| Practice | Benefit |
|---|---|
| Precise descriptions | Better activation matching |
| Modular design | Single-purpose skills are easier to maintain |
| Include decision trees | Clear logic for complex scenarios |
| Control token budget | Keep SKILL.md under 500 lines |
| Use references folder | Store detailed docs separately |
FAQ
Is Antigravity made by Google?
Yes. Google Antigravity is Google's own agent development platform, published at antigravity.google. Antigravityskills.com is an independent skills directory and guide, not an official Google site.
Is Google Antigravity free?
Google's getting-started docs list Free, Pro and Ultra personal plans, plus Enterprise and pay-as-you-go options. Limits and prices change, so check the plans page on antigravity.google for current details. Skills themselves are plain files, so using them costs nothing extra.
Do Antigravity skills work in Claude Code or Codex?
The SKILL.md format is shared, so a well-written skill is often portable, but each tool reads a different folder. Claude Code uses .claude/skills/, while Codex and Antigravity both use .agents/skills/ in a project. See How to install skills for the paths.
Official Resources
| Resource | Link |
|---|---|
| Agent Skills Specification | agentskills.io |
| Specification Repository | GitHub |
| Example Skills | Anthropic Skills |
| Best Practices Guide | Claude Platform |
Next Steps
Ready to create your first Antigravity Skill?
- Start simple — Create a minimal SKILL.md with just name and description
- Test iteratively — Refine your skill based on agent behavior
- Share with the community — Publish to the Antigravity Skills Marketplace
Have questions? Join our community discussion or contact support@antigravityskills.com