Antigravity Skills Tutorial

Extend Your AI Agent's Capabilities

Learn how to create and use Skills โ€” reusable packages of knowledge and instructions that supercharge your Antigravity agent.

๐Ÿ“–

What is a Skill?

Skills are reusable packages of knowledge and instructions that help the agent perform specific tasks more effectively. They allow you to define:

๐ŸŽฏ

Specialized Behaviors

Define specific workflows tailored to your project needs.

๐Ÿ“š

Project Knowledge

Encode domain-specific information the agent can reference.

๐Ÿ”„

Reusable Workflows

Share complex procedures across different projects.

๐Ÿ“

Skill Structure

Skills are organized in folders and can be stored in two locations:

๐Ÿ  Workspace Skills

.agent/skills/<skill-folder>/

Project-specific skills

๐ŸŒ Global Skills

~/.gemini/antigravity/skills/<skill-folder>/

Available across all projects

Folder Structure

directory
.agent/skills/my-skill/
โ”œโ”€โ”€ SKILL.md           # Required: Main instruction file
โ”œโ”€โ”€ scripts/           # Optional: Implementation scripts
โ”œโ”€โ”€ examples/          # Optional: Reference examples
โ””โ”€โ”€ resources/         # Optional: Additional data

SKILL.md Format

markdown
---
name: skill-name (optional)
description: A clear description of what the skill does and when to use it (required)
---

# Skill Instructions
Detailed instructions for the agent go here.
๐Ÿ› ๏ธ

Creating a Skill

1

Create a Folder

Place it in .agent/skills/ (workspace) or ~/.gemini/antigravity/skills/ (global).

2

Create SKILL.md

Define the skill's purpose in the YAML frontmatter's description field.

3

Write Instructions

Add specific, actionable guidelines in markdown format within the SKILL.md file.

โš™๏ธ

How Skills Work

The agent manages skills through a mechanism called Progressive Disclosure:

๐Ÿ”

1. Discovery

The agent scans all available skills and reads their names and descriptions.

โšก

2. Activation

When a task matches a skill's description, the agent "activates" it by loading the full SKILL.md content.

๐ŸŽฏ

3. Application

The agent incorporates the skill's instructions into its reasoning process to complete the task.

โœจ

Best Practices

๐Ÿ“

Be Descriptive

A clear description is crucial for the discovery phase, as it's what the agent uses to decide whether to activate the skill.

๐ŸŽฏ

Be Specific

Provide step-by-step instructions. Vague guidelines lead to inconsistent results.

๐Ÿ’ก

Include Examples

Use the examples/ folder to show the agent the expected output format or behavior.

๐ŸŒณ

Decision Trees

For complex tasks, include sections that help the agent choose the best approach based on specific conditions.

๐Ÿ’ก

Complete Example

Here's a complete example of a Code Review skill:

๐Ÿ“ Location: .agent/skills/code-review/SKILL.md

markdown
---
name: code-review
description: Reviews code changes for bugs, style issues, and best practices. Use when reviewing PRs or checking code quality.
---

# Code Review Skill

When reviewing code, follow these steps:

## Review checklist
1. **Correctness**: Does the code do what it's supposed to?
2. **Edge cases**: Are error conditions handled?
3. **Style**: Does it follow project conventions?
4. **Performance**: Are there obvious inefficiencies?

## How to provide feedback
- Be specific about what needs to change.
- Explain why, not just what.
- Suggest alternatives when possible.
โšก

Superpowers Skills Library

Inspired by Claude Code Superpowers, we have built a complete development workflow skills library for Antigravity:

๐Ÿ“‹ Recommended Workflow

1. brainstormingโ†’2. writing-plansโ†’3. test-driven-developmentโ†’4. code-reviewโ†’5. verification
๐Ÿง 

Planning

brainstorming

Idea generation, requirement clarification & solution design

writing-plans

Create detailed implementation plans

๐Ÿงช

Testing

test-driven-development

RED-GREEN-REFACTOR TDD cycle

๐Ÿ”

Debugging

systematic-debugging

4-phase systematic root cause analysis

verification-before-completion

Thorough verification before task completion

๐Ÿ‘€

Collaboration

code-review

Code review checklist & feedback guidelines

๐Ÿ“

Meta Skills

writing-skills

Guide on how to create new skills

using-superpowers

Introduction to the Superpowers system

๐ŸŽ‰ We have built a complete Superpowers library for Antigravity!

โญ GitHub: antigravity-superpowers โ†’

Clone to your .agent/ directory to start using them.

Ready to Create Your First Skill?

Start enhancing your Antigravity agent with custom skills tailored to your workflow.

Read Official Documentationโ†’