AI Powered Software Development
November 19, 2026 1 min read

learn command

HS
HEMANT SINGH
Technical Writer & Educator

/learn is a Google Antigravity slash command that helps the AI agent learn from corrections, feedback, and solutions discovered during the current session.

It converts useful lessons into permanent project Rules or reusable Skills, so you don't have to explain the same instructions repeatedly in future sessions.

For example:

You tell Antigravity:

  1. Always use Laravel Form Requests for validation.
  2. Never put database queries directly inside Blade views.
  3. Always use TypeScript in React components.
  4. Run tests with a specific command.

Instead of repeating these instructions every time, you can use /learn to propose saving them.


/learn Always use Laravel Form Requests for request validation.

What can /learn save?

There are two important types of knowledge.

A. Rules

Rules are instructions or restrictions that the AI should follow.

Examples:

/learn Always use strict types in PHP files.
/learn Never write database queries directly in Laravel Blade views.
/learn Always use Tailwind CSS for frontend styling in this project.