agy-customizations
Comprehensive guide and reference for the Antigravity Customization System. Use to explain how customizations work, their loading priority, discovery mechanisms, and to guide the creation of skills, rules, plugins, hooks, and MCP servers.
- License 许可
- MIT
- 最近更新
- 2026-07-19
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- agy-customizations
- description
- Comprehensive guide and reference for the Antigravity Customization System. Use to explain how customizations work, their loading priority, discovery mechanisms, and to guide the creation of skills, rules, plugins, hooks, and MCP servers.
02 资源文件 6
- 参考文档docs/hooks.md9.7 KB
- 参考文档docs/json_configs.md3.9 KB
- 参考文档docs/mcp_servers.md2.9 KB
- 参考文档docs/plugins.md2.4 KB
- 参考文档docs/rules.md1.0 KB
- 参考文档docs/skills.md2.6 KB
03 SKILL.md 正文
Antigravity Customization System Guide
The Antigravity Customization System allows you to tailor the agent's behavior, teach it new workflows, enforce guidelines, and integrate it with external tools. By customizing the agent, you can transition it from a general-purpose assistant to an expert pair programmer specialized in your project's codebase and processes.
Customization Types: Quick Reference
Choose the right customization type based on your goal:
| Type | Config File/Folder | Scope | Best For | Learn More |
|---|---|---|---|---|
| Rules | GEMINI.md, AGENTS.md |
Contextual / Hierarchical | Enforcing coding styles, API restrictions, and local guidelines. | Rules Guide |
| Skills | skills/<name>/SKILL.md |
On-Demand (Progressive) | Teaching the agent multi-step procedures, runbooks, and tool workflows. | Skills Guide |
| Plugins | plugins/<name>/plugin.json |
Bundle | Packaging related skills, rules, and MCP configs into a single unit. | Plugins Guide |
| Hooks | hooks.json |
Lifecycle Event | Running scripts/commands at specific agent lifecycle points (e.g., pre-tool execution). | Hooks Guide |
| MCP Servers | mcp_config.json |
Tool Integration | Connecting the agent to external services and custom tool providers. | MCP Guide |
Customization Discovery and Locations
Antigravity automatically discovers customizations by traversing specific directories.
Discovery Locations
- Workspace Customizations (Project-Specific):
- Path:
.agents/(or.agent/,_agents/,_agent/) at the root of your project. - Use this to share customizations with your team by checking them into version control (VCS).
- The agent walks from your current working directory up to the repository
root (e.g., the folder containing
.git) to find these directories.
- Path:
- Directory & Project Rules (Hierarchical):
- Paths:
GEMINI.md,AGENTS.md,.agents/rules/*.md - As you open or edit files, the agent walks up from the file's directory to the repository root, loading all rules it finds.
- Paths:
- Global Configuration (Machine-Local):
- Path:
~/.gemini/config/ - Applies to all projects and workspaces run on your machine.
- Path:
Loading Priority and Precedence
When multiple customizations are discovered, they are loaded and applied in a specific order. If there are naming conflicts (e.g., two skills with the same name), the higher-priority customization overrides the lower-priority one.
The priority order (from highest to lowest) is:
- Workspace Project: Hierarchical discovery walking up from the CWD to the repository root.
- Declared Configurations: Customizations explicitly listed in
skills.jsonorplugins.jsonin your workspace. - Global Discovery:
~/.gemini/config/ - Built-in Customizations: Default skills bundled with the application.
- Global Declared Configurations: Explicitly listed in global JSON configs.
How Customizations are Applied
Progressive Disclosure (Skills and Rules)
To prevent overwhelming the model's context window, Antigravity uses progressive disclosure:
- Skills are not loaded into the context window by default. Only their names and descriptions are injected. The full content of a skill is only loaded if the model (or the user) explicitly decides to activate it.
- Rules with
trigger: model_decisionbehave similarly. Onlyalways_onrules are loaded unconditionally.
Deduplication
All customizations (especially rules) are deduplicated by their resolved file paths. A rule file will never be injected more than once in a single conversation turn, even if it matches multiple trigger conditions.
Advanced Management: JSON Configs
For customizations stored in non-standard locations, you can use skills.json
and plugins.json to explicitly register them and inherit from shared
configurations.
- Learn how to configure these in the JSON Configurations Guide.
04 同仓库更多 Skills
Zotero
Use Zotero Desktop from Codex to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX/RIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.
zoom-apps-sdk
Use when using Apps SDK.
youtube
Obtain accurate, timestamped YouTube video transcripts (preferring manual captions over auto-generated) as the primary deliverable, then derive summaries, key claims, or notes from that transcript. Use when the user provides a YouTube URL (or video ID) and wants the transcript, a faithful summary, key claims with attribution, timestamped notes, or "what does this video actually say". The skill is transcript-first: never substitute metadata, title, description, or search snippets for the spoken content. Triggers: "youtube transcript", "get the transcript of this video", "summarize this youtube video", "what did they say in https://youtube.com/...", "key claims from this talk".
yeet
Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.
x-post-creator
Create X-ready post threads and co-located story packages from the active conversation or referenced project material. Use when the user says turn this into an X-post, /x-post, make this into an X thread, or wants plain-language social posts with supporting images saved to docs/x-posts/[story-name]/.
x-api
Search, read, and write X posts through the local X API MCP server (the same backend used by the Codex x-api skill). Use for searching X/x.com, reading threads and replies, creating lists, staging/publishing posts for @alltheputs, finding high-visibility reply targets for research outreach, ingesting public context, or any request that mentions /x-api or "search X".