Antigravity Conventions
Define artifact schemas and paths for Google Antigravity CLI projects.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/conventions-antigravity-xiaolai/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.What this command does
- Makes a new, empty temporary folder.
- Downloads the skill's folder,
codex/skills/conventions-antigravity, fromgithub.com/xiaolai/nlpm(branchmain), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep. - Copies that folder to
~/.claude/skills/conventions-antigravity-xiaolai/. - Deletes the temporary folder.
Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.
Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.
What this skill does
Antigravity Conventions (with Gemini CLI legacy)
Tool-specific overlay for Google Antigravity CLI artifacts, including legacy Gemini CLI paths during the transition window. Loaded by the scorer and checker when an artifact is classified as Tier 2-Antigravity (per agents/scorer.md step 3). The universal floor lives in nlpm:conventions.
Status: Antigravity 2.0 was announced at Google I/O 2026 on 2026-05-19 (six days before this file was written). The directory layout is still settling, the official Antigravity-specific spec doc is sparse, and two authoritative research passes disagreed on .agent/ (singular) vs .agents/ (plural) as the canonical skills path. This skill is advisory-only for Antigravity-specific artifacts. PR-B verification trigger conditions are recorded in analysis/multi-tool-design-2026-05.md.
Transition timeline:
- Now β 2026-06-18: Gemini CLI continues serving AI Pro / Ultra / Free tiers in parallel with Antigravity CLI.
- 2026-06-18: Gemini CLI sunsets for non-enterprise. Enterprise paid licenses retained.
- After sunset: Antigravity CLI is the sole successor;
.gemini/paths fade to legacy.
Primary authoritative sources:
- https://developers.googleblog.com/build-with-google-antigravity-our-new-agentic-development-platform/
- https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/
- https://antigravity.google/
- https://codelabs.developers.google.com/getting-started-with-antigravity-skills
- https://geminicli.com/docs/cli/skills/ (Gemini lineage; transitional)
- https://geminicli.com/docs/hooks/reference/ (Gemini lineage; transitional)
- https://github.com/google/skills
1. File system layout
| Artifact | Project scope (Antigravity) | Project scope (Gemini, legacy) | User scope |
|---|---|---|---|
| Skills | <workspace>/.agent/skills/<name>/SKILL.md (singular β Antigravity per codelab); .agents/skills/<name>/SKILL.md (cross-tool alias, plural) | .gemini/skills/<name>/SKILL.md | ~/.gemini/antigravity/skills/ (transitional global) or ~/.gemini/skills/ (legacy) |
| Slash commands | (under-documented for Antigravity) | .gemini/commands/<name>.toml | ~/.gemini/commands/ |
| Hooks | (under-documented for Antigravity) | .gemini/settings.json β hooks object | ~/.gemini/settings.json |
| MCP servers | (under-documented for Antigravity) | mcpServers JSON key inside .gemini/settings.json | same |
| Extensions / plugins | "Antigravity plugins" β gemini-extension.json (renamed in transition, layout TBD) | ~/.gemini/extensions/<name>/gemini-extension.json | same |
| Memory file | GEMINI.md (inherited; configurable via context.fileName array) | GEMINI.md (workspace + ancestors) | ~/.gemini/GEMINI.md |
| System config | TBD | /etc/gemini-cli/settings.json | β |
Discovery precedence within a tier (Gemini-lineage; assumed to carry over): built-in β extension β user β workspace. .agents/skills/ beats .gemini/skills/ (cross-tool path wins).
Uncertainty (verify before scoring):
<workspace>/.agent/skills/(singular, from Antigravity codelab) vs.agents/skills/(plural, cross-tool alias from agentskills.io) β both may be true (Antigravity-specific singular path + cross-tool plural alias), or one may be a documentation error. Recommend recognizing both as valid skill paths.
2. SKILL.md (Tier 1, open spec β name, description required only)
Antigravity (and Gemini CLI) explicitly adopt the agentskills.io open standard. Required: name, description. Same as every other tool.
Antigravity/Gemini-specific extensions documented to date:
activate_skilltool invocation (in-agent) to load a skill on demand.- Mandatory user-consent prompt before injection (filesystem-access grant).
/skillsslash command (in-agent) lists installed skills.gemini skillsterminal command (list/install/uninstall) β Gemini-only; Antigravity CLI usesnpx skills addinstead.
Install verbs:
- Cross-tool:
npx skills add github.com/google/skills(pergithub.com/google/skillsrepo page). - Legacy Cloud Next blog wording:
npx skills install(treat as equivalent;addis the canonical command). - Gemini CLI:
gemini extensions install <github-url|path>.
3. gemini-extension.json (extension manifest, becoming "Antigravity plugin")
{
"name": "my-extension",
"version": "1.0.0",
"mcpServers": { /* MCP server registrations */ },
"contextFileName": "AGENTS.md",
"excludeTools": ["WebFetch"]
}
Required: name, version. Notable optional: mcpServers, contextFileName, excludeTools. The rename to "Antigravity plugin" is announced; the manifest schema is documented to "preserve" extension semantics but Google hasn't published the full delta.
4. .gemini/commands/<name>.toml (slash commands β TOML)
prompt = """
Review the diff and check for {{args}}.
"""
description = "Custom code review with focus area"
Required field: prompt.
Optional: description (auto-generated from filename if omitted).
Template syntax (Gemini-specific):
{{args}}β raw argument injection.!{shell command}β runs shell, args auto-escaped.@{path}β file/directory injection. Respects.gitignoreand.geminiignore. Supports PNG/JPEG/PDF/audio/video.
Subdirectory layout becomes a namespace: .gemini/commands/ns/cmd.toml β /ns:cmd.
Antigravity CLI status: unclear whether TOML slash commands carry over. Treat as legacy-only for now; Antigravity-specific command format TBD.
5. Hook events (Gemini lineage β fundamentally different from Claude/Codex)
Gemini (and inherited Antigravity) decomposes the lifecycle into Agent/Model/Tool layers, not the tool-centric model Claude and Codex use.
| Event | Trigger |
|---|---|
SessionStart | Session begin |
BeforeAgent | Before each agent turn |
BeforeModel | Before LLM invocation |
BeforeToolSelection | Before the model decides which tool to call |
BeforeTool | Before tool execution (after selection) |
AfterTool | After tool execution |
AfterModel | After LLM response |
AfterAgent | After agent turn complete |
SessionEnd | Session end |
Notification | On notification |
PreCompress | Before context compaction (Gemini's name for Claude's PreCompact) |
No 1:1 mapping to Claude Code or Codex events. Specifically:
- Gemini's
BeforeModelvsBeforeToolSelectiondistinction has no Claude/Codex analog β both fall under Claude'sPreToolUse. - Gemini has no equivalent of Claude's
UserPromptSubmitorPermissionRequest.
I/O contract (Gemini lineage): JSON on stdin with session_id, transcript_path, cwd, hook_event_name, timestamp. JSON on stdout: systemMessage, decision ("allow"/"deny"), reason, continue, suppressOutput. Exit codes: 0 = ok, 2 = block (stderr = reason), other = warning.
Antigravity CLI hook event names: TBD β Google's transition post says "preserves hooks" without enumerating the event set. Treat the Gemini list as the current best guess.
6. GEMINI.md (memory file β sophisticated hierarchy)
GEMINI.md is hierarchical: ~/.gemini/GEMINI.md β workspace + ancestor GEMINI.md files β JIT-discovered GEMINI.md on file access. All concatenated per prompt.
Distinctive features (versus AGENTS.md and CLAUDE.md):
- Supports
@file.mdimports via the Memory Import Processor. Verified 2026-05-26 againstgeminicli.com/docs/reference/memport/: imports nest (configurable max depth, default 5), accept any filename (not justGEMINI.md), and take relative or absolute paths. AGEMINI.mdcontaining only@AGENTS.mdresolves to AGENTS.md's full contents.validateImportPathrestricts imports to allowed directories (repo-root siblings are fine). - Filename is configurable via
context.fileNameinsettings.json, which accepts an array β e.g.,context.fileName: ["AGENTS.md", "CONTEXT.md", "GEMINI.md"]. This is the official interop hook for AGENTS.md (Codex's canonical) and CLAUDE.md (Claude Code's canonical).
Recommended pattern for multi-tool projects (use context.fileName, NOT the @-import shim):
- Set
context.fileName: ["AGENTS.md"]in.gemini/settings.jsonβ makes Gemini/Antigravity read AGENTS.md directly. nlpm decision #5: AGENTS.md is the canonical universal memory file. nlpm itself ships this exact.gemini/settings.json. - Why not rely on a
GEMINI.mdβ@AGENTS.mdshim? It works per the import-processor docs, but every documented example uses an explicit@.//@../prefix; the bare@AGENTS.mdform (which Claude Code accepts natively in CLAUDE.md) is a valid relative path but unconfirmed against a live Gemini run.context.fileNamehas no such ambiguity β Gemini reads the named file directly with no import resolution involved.
7. MCP integration
Gemini reads MCP servers from mcpServers key inside ~/.gemini/settings.json or .gemini/settings.json (NOT a separate .mcp.json file). Standard MCP server shape: command, args, env. Also configurable inside gemini-extension.json for extension-bundled servers.
Slash commands: /mcp list, /mcp auth.
Antigravity CLI MCP layout: TBD.
8. Plugin marketplace
No central JSON marketplace manifest documented for Gemini CLI today. Discovery is via the Extensions Gallery at https://geminicli.com/extensions/ (community/partner/Google), GitHub-stars ranked, installed via gemini extensions install <github-url|path>.
Antigravity CLI marketplace layout: TBD.
github.com/google/skills is the official Google-published skills registry. Organized under skills/cloud/.... Installed via npx skills add google/skills. Cross-tool β targets Antigravity, Gemini CLI, Codex CLI, Claude Code, Cursor, and others.
9. Recent material changes (last 6 months)
| Date | Event |
|---|---|
| 2025-11-20 | Original Antigravity public preview |
| 2026-04 (Cloud Next) | github.com/google/skills official registry launched; npx skills cross-agent installer |
| 2026-05 | Extensions Gallery launched (Dynatrace, Elastic, Figma, Harness as partners) |
| 2026-05-19 (Google I/O) | Antigravity 2.0 announced; Antigravity CLI GA; Gemini CLI deprecation announced |
| 2026-06-18 (pending) | Gemini CLI stops serving AI Pro/Ultra/Free tiers |
10. Scope and uncertainty
This skill covers Antigravity CLI and legacy Gemini CLI conventions during the transition window. It does NOT cover:
- Universal SKILL.md spec β
nlpm:conventions - Penalty tables β
nlpm:scoring - Antigravity desktop IDE or Antigravity SDK (different artifact surfaces)
Major uncertainties β defer deep audit until resolved:
- Singular
.agent/vs plural.agents/β codelab uses singular for Antigravity workspace skills; agentskills.io cross-tool alias uses plural. Auditor should recognize both as valid. npx skillsverb βaddper repo page,installper Cloud Next blog.addis canonical.- Antigravity directory-rename spec β Google's transition post says "not 1:1 parity" without enumerating gaps. Monitor for an official migration guide.
- Antigravity-specific hook events β assumed to inherit Gemini's, but the transition post doesn't confirm.
github.com/google-antigravity/antigravity-cliβ research surfaced this org/repo URL but the namespace differs fromgoogle/proper. Verify before citing as authoritative.- "Antigravity plugins" manifest schema β renamed from Gemini "extensions" but full schema delta not published.
- MCP support in Antigravity β not contradicted in the transition post, but not explicitly confirmed.
PR-B verification trigger: when Google publishes a stable Antigravity directory-layout spec (or when Antigravity overtakes Gemini CLI in real-world repo count), upgrade this skill from advisory to authoritative and add Antigravity-specific penalty rows to nlpm:scoring.
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
Poster & Visual Design
anthropics
Create original posters and visual art in PNG and PDF formats.
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.