Agent skill

Conventions Antigravity

by xiaolai in xiaolai/nlpm

Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.

ISCAuto-check passedAgent Workflows

Install Conventions Antigravity

skills CLI
$ npx skills add xiaolai/nlpm --skill conventions-antigravity -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xiaolai/nlpm conventions-antigravity --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xiaolai/nlpm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nlpm/conventions-antigravity .claude/skills/conventions-antigravity && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
conventions-antigravity
GitHub stars
148
Token cost
~3.1k tokens
SKILL.md length
1,266 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
ISC

At a glance

Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.

  • Works in 10 steps: File system layout → SKILL.md (Tier 1, open spec — name,… → gemini-extension.json (extension… → …
  • Tasks that involve Hooks and plugins
  • SKILL.md covers 1. File system layout, 2. SKILL.md (Tier 1, open spec…, 3. gemini-extension.json… and 4. .gemini/commands/.toml…, plus 6 more sections
  • Calls npx and gemini

What it does

Conventions Antigravity is an agent skill from xiaolai/nlpm. Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Hooks and plugins. The repository describes itself as: Natural-Language Programming Manager — scan, lint, and score NL artifacts with Claude-native quality scoring. The licence is ISC.

When your agent uses it

  • Tasks that involve Hooks and plugins

Example prompts

  • “/conventions-antigravity”

Requirements

  • Node.js

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. File system layout
  2. SKILL.md (Tier 1, open spec — name, description required only)
  3. gemini-extension.json (extension manifest, becoming "Antigravity plugin")
  4. .gemini/commands/.toml (slash commands — TOML)
  5. Hook events (Gemini lineage — fundamentally different from Claude/Codex)
  6. GEMINI.md (memory file — sophisticated hierarchy)
  7. MCP integration
  8. Plugin marketplace
  9. Recent material changes (last 6 months)
  10. Scope and uncertainty

What it can do on your machine

Read from SKILL.md and the folder at commit 307328b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • gemini

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • geminicli.com
    • developers.googleblog.com
    • antigravity.google
    • codelabs.developers.google.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Conventions Antigravity loads about 3.1k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 1,266 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xiaolai/nlpm at commit 307328b, republished under its ISC licence (© xiaolai). 1,266 words, ~3,055 tokens.

Download SKILL.mdSave it as .claude/skills/conventions-antigravity/SKILL.md (or your agent's skills folder).
name
conventions-antigravity
description
Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.
version
0.1.0
user-invocable
false

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:


1. File system layout

ArtifactProject 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.jsonsame
Extensions / plugins"Antigravity plugins" — gemini-extension.json (renamed in transition, layout TBD)~/.gemini/extensions/<name>/gemini-extension.jsonsame
Memory fileGEMINI.md (inherited; configurable via context.fileName array)GEMINI.md (workspace + ancestors)~/.gemini/GEMINI.md
System configTBD/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_skill tool invocation (in-agent) to load a skill on demand.
  • Mandatory user-consent prompt before injection (filesystem-access grant).
  • /skills slash command (in-agent) lists installed skills.
  • gemini skills terminal command (list/install/uninstall) — Gemini-only; Antigravity CLI uses npx skills add instead.

Install verbs:

  • Cross-tool: npx skills add github.com/google/skills (per github.com/google/skills repo page).
  • Legacy Cloud Next blog wording: npx skills install (treat as equivalent; add is the canonical command).
  • Gemini CLI: gemini extensions install <github-url|path>.

3. gemini-extension.json (extension manifest, becoming "Antigravity plugin")

json
{
  "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)

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 .gitignore and .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.

EventTrigger
SessionStartSession begin
BeforeAgentBefore each agent turn
BeforeModelBefore LLM invocation
BeforeToolSelectionBefore the model decides which tool to call
BeforeToolBefore tool execution (after selection)
AfterToolAfter tool execution
AfterModelAfter LLM response
AfterAgentAfter agent turn complete
SessionEndSession end
NotificationOn notification
PreCompressBefore context compaction (Gemini's name for Claude's PreCompact)

No 1:1 mapping to Claude Code or Codex events. Specifically:

  • Gemini's BeforeModel vs BeforeToolSelection distinction has no Claude/Codex analog — both fall under Claude's PreToolUse.
  • Gemini has no equivalent of Claude's UserPromptSubmit or PermissionRequest.

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.


Show full SKILL.md (576 more words)Show less

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.md imports via the Memory Import Processor. Verified 2026-05-26 against geminicli.com/docs/reference/memport/: imports nest (configurable max depth, default 5), accept any filename (not just GEMINI.md), and take relative or absolute paths. A GEMINI.md containing only @AGENTS.md resolves to AGENTS.md's full contents. validateImportPath restricts imports to allowed directories (repo-root siblings are fine).
  • Filename is configurable via context.fileName in settings.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.md shim? It works per the import-processor docs, but every documented example uses an explicit @./ / @../ prefix; the bare @AGENTS.md form (which Claude Code accepts natively in CLAUDE.md) is a valid relative path but unconfirmed against a live Gemini run. context.fileName has 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)

DateEvent
2025-11-20Original Antigravity public preview
2026-04 (Cloud Next)github.com/google/skills official registry launched; npx skills cross-agent installer
2026-05Extensions 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:

  1. 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.
  2. npx skills verb — add per repo page, install per Cloud Next blog. add is canonical.
  3. Antigravity directory-rename spec — Google's transition post says "not 1:1 parity" without enumerating gaps. Monitor for an official migration guide.
  4. Antigravity-specific hook events — assumed to inherit Gemini's, but the transition post doesn't confirm.
  5. github.com/google-antigravity/antigravity-cli — research surfaced this org/repo URL but the namespace differs from google/ proper. Verify before citing as authoritative.
  6. "Antigravity plugins" manifest schema — renamed from Gemini "extensions" but full schema delta not published.
  7. 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.

© xiaolai, ISC. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/nlpm/conventions-antigravity of xiaolai/nlpm.

Open the folder on GitHubat commit 307328b

Compare with similar skills

Conventions Antigravity next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Conventions Antigravity compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Conventions Antigravity this skillxiaolai/nlpm148—~3.1kAutomated safety check: PassISC
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Claude Code Agent Developmentanthropics/claude-plugins-official38k7 repos~2.8kAutomated safety check: PassApache-2.0
Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase10k11 repos~3.5kAutomated safety check: PassMIT
Plugin Settings Patternanthropics/claude-plugins-official38k7 repos~3kAutomated safety check: PassApache-2.0
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Skill Developer Guide

    diet103/claude-code-infrastructure-showcase

    A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.

    10k GitHub starsUsed in 11 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    38k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    38k GitHub starsUsed in 10 repos~4.8k tokens
    Agent WorkflowsAuto-check passed

More from xiaolai/nlpm

All 15 skills in this repo
  • Conventions

    xiaolai/nlpm

    Universal NL conventions: SKILL.md open spec, AGENTS.md, vague quantifiers, naming.

    148 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Conventions Codex

    xiaolai/nlpm

    Codex CLI artifact schemas: config.toml, .codex-plugin, skills, hooks, AGENTS.md.

    148 GitHub stars~4.9k tokensUpdated today
    Auto-check passed
  • Orchestration

    xiaolai/nlpm

    Multi-agent workflow patterns: parallel dispatch, pipelines, QC gates, retries.

    148 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Patterns

    xiaolai/nlpm

    NL artifact anti-patterns: vague quantifiers, bare prohibitions, oversized skills.

    148 GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Scoring

    xiaolai/nlpm

    100-point NL artifact rubric: penalty tables per artifact type, calibration cases.

    148 GitHub stars~5.3k tokensUpdated today
    Auto-check passed
  • Testing

    xiaolai/nlpm

    NL artifact test specs for /nlpm:test: spec format, TDD for skills and agents.

    148 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Categories

Questions about Conventions Antigravity

What does Conventions Antigravity do?

Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks. Conventions Antigravity is an agent skill from xiaolai/nlpm.gemini/ paths, extensions, hooks.

When should I use Conventions Antigravity?

Conventions Antigravity fits situations like: tasks that involve Hooks and plugins.

How do I install Conventions Antigravity in Claude Code?

Run `npx skills add xiaolai/nlpm --skill conventions-antigravity -a claude-code`. Or copy the skill folder (skills/nlpm/conventions-antigravity in xiaolai/nlpm) into .claude/skills/conventions-antigravity in your project. Claude Code loads it when a task matches its description.

How do I install Conventions Antigravity in Codex?

Run `npx skills add xiaolai/nlpm --skill conventions-antigravity -a codex`. Or copy the skill folder (skills/nlpm/conventions-antigravity in xiaolai/nlpm) into .agents/skills/conventions-antigravity in your project. Codex loads it when a task matches its description.

Can I use Conventions Antigravity in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xiaolai/nlpm --skill conventions-antigravity -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/conventions-antigravity, .gemini/skills/conventions-antigravity, .github/skills/conventions-antigravity and .opencode/skills/conventions-antigravity in your project.

What does Conventions Antigravity need to run?

Going by SKILL.md and its folder, Conventions Antigravity needs the command-line tools its instructions call (npx and gemini). Our summary lists: Node.js.

Does Conventions Antigravity access the network?

SKILL.md names 5 domains. As links in the text: geminicli.com, developers.googleblog.com, antigravity.google, codelabs.developers.google.com and github.com. This is read from the text; nothing was executed.

Is Conventions Antigravity safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Conventions Antigravity use?

Conventions Antigravity is published under the ISC licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Conventions Antigravity use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Conventions Antigravity?

Skills that share tags, products or a category with Conventions Antigravity: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Claude Code Agent Development (anthropics/claude-plugins-official, 38k stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars) and Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Conventions Antigravity?

xiaolai (a GitHub user) maintains it in xiaolai/nlpm, which has 148 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 9, 2026.

Source: xiaolai/nlpm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.