Agy customizations

From huytran1120/vie-agentic-skills · View interactive version

Agy customizations is an AI agent skill from the GitHub repository huytran1120/vie-agentic-skills. 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.

How to use this skill

Skill file

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 your own customizations by traversing

specific directories. Built-in customizations are not found this way: the agent

config names the ones it mounts.

Discovery Locations

  1. Workspace Customizations (Project-Specific):

your project.

version control (VCS).

root (e.g., the folder containing .git) to find these directories.

  1. Directory & Project Rules (Hierarchical):

to the repository root, loading all rules it finds.

  1. Global Configuration (Machine-Local):

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:

  1. Workspace Project: Hierarchical discovery walking up from the CWD to the

repository root.

  1. Declared Configurations: Customizations explicitly listed in

skills.json or plugins.json in your workspace.

  1. Global Discovery: ~/.gemini/config/
  2. Built-in Customizations: Default skills bundled with the application,

mounted by name rather than discovered.

  1. 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:

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

JSON Configurations Guide.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.