This repository contains a collection of example Skills for Google Antigravity and Gemini CLI. These examples demonstrate the "Agentic Command" pattern, where natural language requests are routed to specialized instructions, tools, and context.
Read the blog post: https://medium.com/google-cloud/tutorial-getting-started-with-antigravity-skills-864041811e0d
Do a codelab: https://codelabs.developers.google.com/getting-started-with-antigravity-skills?hl=en#0
Also check out the Google Antigravity Community Hub for more resources, articles, and updates on Antigravity.
Antigravity Skills allow you to define how an agent should behave, which tools it should use, and what context it should reference. This project breaks down skill development into 4 progressive levels of complexity.
The skills_tutorial/ directory contains the following examples:
git-commit-formatter
- Concept: Pure prompt engineering.
- Function: Intercepts "commit" requests and formats the message according to the Conventional Commits specification.
- Key File:
SKILL.md
license-header-adder
- Concept: Loading static resources.
- Function: Adds a standard Apache 2.0 license header to source files by reading a template from the
resources/folder. - Key Files:
SKILL.md,resources/HEADER_TEMPLATE.txt
json-to-pydantic
- Concept: Learning by example.
- Function: Converts JSON data into Pydantic models by referencing a "golden example" pair (input JSON → output Python) instead of relying on complex instructions.
- Key Files:
SKILL.md,examples/
database-schema-validator
- Concept: Delegating to deterministic scripts.
- Function: Validates SQL schema files for safety and naming conventions by running a Python script, ensuring accurate results.
- Key Files:
SKILL.md,scripts/validate_schema.py
To use these skills in your Antigravity environment:
- Clone this repository.
- Copy the desired folders from
skills_tutorial/into your workspace's.agent/skills/directory, or into your global~/.gemini/antigravity/skills/directory. - Restart your agent session.
The gemini-cli-skills/ directory contains the following example:
always-verify-gcp
- Concept: Validating GCP commands with the latest official documentation.
- Function: This skill interprets ambiguous Google Cloud commands by first consulting the official documentation via the Developer Knowledge MCP Server, then using the
ask_usertool to provide a validated response. - Key File:
SKILL.md
Apache 2.0