Skip to content

fix(cli): install Antigravity skills to the documented directories - #3764

Open
scarletkc wants to merge 1 commit into
upstash:masterfrom
FogMoe:fix/antigravity-skill-paths
Open

scarletkc wants to merge 1 commit into
upstash:masterfrom
FogMoe:fix/antigravity-skill-paths

Conversation

@scarletkc

@scarletkc scarletkc commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

ctx7 setup --antigravity writes skills to:

  • global: ~/.agent/skills
  • project: .agent/skills

According to the Antigravity skills docs, the App, IDE and CLI all read global skills from ~/.gemini/config/skills/<skill-folder>/ and workspace skills from <workspace-root>/.agents/skills/<skill-folder>/. The docs say: "Antigravity defaults to .agents/skills, but still maintains backward compatibility for .agent/skills."

~/.agent/skills is not listed as a location anywhere, so a global ctx7 setup --cli --antigravity installs find-docs into a folder Antigravity never reads.

Changes

  • agents.ts: Antigravity skill dir is now ~/.gemini/config/skills (global) and .agents/skills (project). This also matches the ~/.gemini/config/mcp_config.json path the agent config already uses. setupDescription is updated to match.
  • Docs: updated packages/cli/README.md, docs/clients/cli.mdx and skills/context7-cli/references/setup.md.
  • Added a test that checks both Antigravity skill dirs.
  • Added a patch changeset for ctx7.

Notes

  • detect is unchanged. Adding .agents there would mark Antigravity as detected in any project that uses Codex, Copilot, OpenCode and so on.
  • Skills installed by earlier versions stay where they are: ctx7 remove now looks in the new dirs, so it won't clean up ~/.agent/skills/find-docs or a project's .agent/skills/find-docs. If a user re-runs project setup after upgrading, Antigravity will load both copies, because it still reads the legacy .agent/skills. I kept this PR minimal. I can add a legacy cleanup if you want one.

`ctx7 setup --antigravity` wrote skills to `~/.agent/skills` (global) and
`.agent/skills` (project). Per https://antigravity.google/docs/skills,
Antigravity reads global skills from `~/.gemini/config/skills` and
workspace skills from `.agents/skills`, with `.agent/skills` kept only
for backward compatibility. `~/.agent/skills` is not a documented
location, so globally installed skills were never picked up.
@mintlify

mintlify Bot commented Nov 11, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit efeb566.

Approve preview

@vercel

vercel Bot commented Nov 11, 2026

Copy link
Copy Markdown

@scarletkc is attempting to deploy a commit to the Upstash Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant