agentleFS
SrejonKhanSrejonKhan/agent-skills/skills/agy-customizations/SKILL.md

agy-customizations

Skill3 starsChanged 2 months agoMITView on GitHub

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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this to share customizations with your team by checking them into version control (VCS).

    line 43
  2. Distinctive:

    When multiple customizations are discovered, they are loaded and applied in a specific order.

    line 59
  3. Distinctive:

    Built-in Customizations: Default skills bundled with the application.

    line 70
  4. Distinctive:

    All customizations (especially rules) are deduplicated by their resolved file paths.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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:

TypeConfig File/FolderScopeBest ForLearn More
RulesGEMINI.md, AGENTS.mdContextual / HierarchicalEnforcing coding styles, API restrictions, and local guidelines.Rules Guide
Skillsskills/<name>/SKILL.mdOn-Demand (Progressive)Teaching the agent multi-step procedures, runbooks, and tool workflows.Skills Guide
Pluginsplugins/<name>/plugin.jsonBundlePackaging related skills, rules, and MCP configs into a single unit.Plugins Guide
Hookshooks.jsonLifecycle EventRunning scripts/commands at specific agent lifecycle points (e.g., pre-tool execution).Hooks Guide
MCP Serversmcp_config.jsonTool IntegrationConnecting 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

  1. 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.
  2. 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.
  3. Global Configuration (Machine-Local):
    • Path: ~/.gemini/config/
    • Applies to all projects and workspaces run on your machine.

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.
  2. Declared Configurations: Customizations explicitly listed in skills.json or plugins.json in your workspace.
  3. Global Discovery: ~/.gemini/config/
  4. Built-in Customizations: Default skills bundled with the application.
  5. 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_decision behave similarly. Only always_on 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.

  • Learn how to configure these in the JSON Configurations Guide.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.