šŸ› Bug Report: Agent is unaware of Global Skills due to missing path in System Prompt

Missing global skills directory path (C:\Users\USER\.gemini\antigravity\skills) in the Agent’s <skills> System Prompt.

Description: According to the official documentation at Google Antigravity , the agent should support ā€œGlobal Skillsā€. However, the agent fails to automatically discover or use global skills located in the global directory (e.g., C:\Users\USER\.gemini\antigravity\skills on Windows).

Upon inspecting the AI’s internal System Prompt, the <skills> section only defines the structure of a skill (SKILL.md with YAML frontmatter) but completely omits any directory paths to search for them. In contrast, the <workflows> section correctly specifies exactly where to look for workflows (e.g., {.agents,.agent}/workflows).

Because there is no default path injected for global skills, the agent operates completely blind to them unless the user manually provides the absolute path in the chat prompt.

Environment:

  • OS: Windows 11

  • Antigravity Version: 1.19.6

  • Model: Gemini 3.1 Pro (Low)

  • Feature: Global Skills

Steps to Reproduce:

  1. Create a valid global skill with a SKILL.md file in the global directory: C:\Users\USER\.gemini\antigravity\skills\my-test-skill\SKILL.md.

  2. Start a new chat with the Antigravity agent.

  3. Ask the agent: ā€œList my available skillsā€ or "Do you know about [my-test-skill]".

  4. The agent will respond that it does not know any skills or cannot find them, because it doesn’t know where to look.

Expected Behavior: The Agent’s System Prompt for <skills> should include the absolute paths or relative paths to both local project skills and the global skills directory (C:\Users\USER\.gemini\antigravity\skills\). The agent should automatically scan or be aware of the skills located in this global folder.

Actual Behavior: The <skills> prompt block only contains structural instructions without any path references:

<skills>

You can use specialized 'skills' to help you with complex tasks. Each skill has a name and a description listed below.

Skills are folders of instructions, scripts, and resources that extend your capabilities for specialized tasks...

</skills>

(Notice the lack of path references, unlike the <workflows> block which explicitly states: ā€œThese workflows are defined as .md files in {.agents,.agent,_agents,_agent}/workflowsā€)

Suggested Fix: Update the System Prompt generation logic for the <skills> tag to explicitly include the path to the user’s global skills directory, similar to how local generic paths are provided for <workflows>, or inject a list of available global skills directly into the prompt.

3 Likes

After further testing on Windows 11, the issue appears to be a naming discrepancy between the official documentation and the actual system implementation. The Antigravity Agent is specifically looking for a directory named global_skills instead of the documented skills folder.

Steps to resolve:

  1. Navigate to the Antigravity configuration directory: %USERPROFILE%\.gemini\antigravity\

  2. Locate the skills folder and rename it to global_skills.

  3. Restart the Antigravity Agent to trigger a re-scan.

Once renamed, the Agent should correctly identify and initialize all skills located within that directory. This seems to be a platform-specific implementation detail that differs from the current documentation.

4 Likes