IA Dev Learn

Antigravity: rules, skills and workflows

Antigravity keeps its customisations in one folder, .agents/, split by who triggers them.

Three kinds of files

FolderTriggered byWhen
.agents/rules/Nobody: always onLoaded in every conversation
.agents/skills/The agentWhen your request matches the skill's description
.agents/workflows/YouWhen you type /name in the chat

Antigravity also reads AGENTS.md and GEMINI.md from the working folder up to the repository root. Your personal versions live in ~/.gemini/GEMINI.md, ~/.gemini/AGENTS.md and ~/.gemini/config/ (with the same rules/ and skills/ folders). Older projects may use .agent/ (singular), which it still accepts.

Desktop app or terminal

Antigravity comes as a desktop app and as a terminal agent, agy. Both read the same files, so a rule or skill you commit works in either. In agy, /skills reload picks up a skill you just wrote, and agy -p "..." answers once and exits. Since June 2026, agy is also what personal Google accounts use instead of Gemini CLI.

A workflow

markdown
---
description: Prepare a release
---
1. Update the changelog: add a `## [Unreleased]` section with the latest changes.
2. Run `pnpm test` and make sure everything passes.

Saved as .agents/workflows/release.md, it runs when you type /release.

Workflow or skill?

Use a workflow for a procedure you start on purpose, at a moment you choose: a release, a deploy, a weekly cleanup. Use a skill for know-how the agent should apply whenever it fits, without being asked.