Agent skill

Context Mode for Antigravity CLI

by mksglu in mksglu/context-mode

Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

Custom licenceAuto-check passedAgent Workflows

Install Context Mode for Antigravity CLI

skills CLI
$ npx skills add mksglu/context-mode --skill context-mode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mksglu/context-mode context-mode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mksglu/context-mode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/configs/antigravity-cli/skills/context-mode .claude/skills/context-mode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context-mode
GitHub stars
26k
Token cost
~850 tokens
SKILL.md length
361 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

  • Analyzing, counting or comparing file contents without loading them into the conversation
  • SKILL.md covers Tool List, File Reading and Codebase Exploration
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Searching a codebase or indexed web content through the local knowledge base

What it does

This skill sets routing rules for using the context-mode MCP tools from Antigravity CLI (`agy`), where they appear under the context-mode server name followed by a tool name. The agent calls them directly and does not inspect cached schema files or run code just to discover tool names. If agy uses the generic MCP wrapper, `call_mcp_tool` takes the server name, a tool name and the JSON arguments.

The tool list covers running code in a sandbox that prints only the final answer (`ctx_execute`), reading one file into a `FILE_CONTENT` variable and analyzing it there (`ctx_execute_file`), batching repository commands and indexing large output (`ctx_batch_execute`), storing content in a local FTS5 knowledge base and searching it with session memory (`ctx_index`, `ctx_search`), fetching and indexing web pages, plus stats, doctor, upgrade, purge and insight tools. There is no separate read tool: file analysis goes through `ctx_execute_file`, native reads are kept for exact bytes needed in editing, and file content is never printed in full unless you ask.

When your agent uses it

  • Analyzing, counting or comparing file contents without loading them into the conversation
  • Searching a codebase or indexed web content through the local knowledge base
  • Listing which context-mode tools are available
  • Running data-heavy commands without flooding the context window

Example prompts

  • “Count the deprecated function calls in src and summarize which files have the most.”
  • “Fetch the migration guide page and index it, then answer questions from it.”
  • “What context-mode tools are available?”
  • “Run the test suite and tell me only which tests failed.”

Requirements

  • The context-mode MCP server configured in Antigravity CLI

What it can do on your machine

Read from SKILL.md and the folder at commit 2a7a92a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Mode for Antigravity CLI loads about 850 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 361 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~850

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 361 words (~850 tokens).

“context-mode MCP tools are available in agy as context-mode/. Use these tools directly. Do not inspect cached schema files under ~/.gemini/antigravity-cli/mcp/context-mode/*.json, and do not run ctx_execute just to discover tool names or schemas.”

— opening of SKILL.md by mksglu, Custom licence
name
context-mode

Read the full SKILL.md on GitHub

Files

Just SKILL.md in configs/antigravity-cli/skills/context-mode of mksglu/context-mode.

Open the folder on GitHubat commit 2a7a92a

Compare with similar skills

Context Mode for Antigravity CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Mode for Antigravity CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Mode for Antigravity CLI this skillmksglu/context-mode26k—~850Automated safety check: PassCustom licence
Entroly Context Controljuyterman1000/entroly473—~501Automated safety check: PassApache-2.0
Entroly Lobehub Auditjuyterman1000/entroly473—~1.2kAutomated safety check: PassApache-2.0
Claude Code Masteryborghei/Claude-Skills881—~1.9kAutomated safety check: PassMIT
LemmalogJordyZomer/lemmalog329—~2.8kAutomated safety check: PassMIT
Cortex Mem MCPsopaco/cortex-mem312—~2.8kAutomated safety check: PassMIT

Similar skills

  • Entroly Context Control

    juyterman1000/entroly

    Surgically select, compress, and recover codebase context using Entroly's MCP tools.

    473 GitHub stars~501 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Entroly Lobehub Audit

    juyterman1000/entroly

    Audit and remediate Entroly's MCP marketplace quality with evidence, adversarial validation, and no score gaming.

    473 GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Claude Code Mastery

    borghei/Claude-Skills

    A skill your agent uses when the user asks to "optimize CLAUDE.md", "create a new skill", "write a custom agent", "configure hooks", "manage context window", "set up MCP servers", "scaffold a skill…

    881 GitHub stars~1.9k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Lemmalog

    JordyZomer/lemmalog

    Externalize working memory and logical state into the lemmalog Datalog engine (MCP).

    329 GitHub stars~2.8k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Cortex Mem MCP

    sopaco/cortex-mem

    Persistent memory enhancement for AI agents. An agent skill from sopaco/cortex-mem.

    312 GitHub stars~2.8k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • MCP Code Search Tool Selection

    Context-Engine-AI/Context-Engine

    Rules for choosing Qdrant-Indexer semantic search over grep or file reads when exploring code, debugging or asking where and why questions.

    402 GitHub stars~1.3k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed

More from mksglu/context-mode

All 11 skills in this repo
  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated yesterday
    Auto-check passed
  • Context Mode Ops

    mksglu/context-mode

    Runs maintenance for the context-mode project with parallel subagents: issue triage, PR review, releases, bug fixes, announcements and branch syncing.

    26k GitHub stars~6k tokensUpdated yesterday
    Auto-check passed
  • Context Mode Indexer

    mksglu/context-mode

    Indexes a local file or project directory into context-mode's FTS5 knowledge base so later searches return focused snippets instead of rereading whole files.

    26k GitHub stars~328 tokensUpdated yesterday
    Auto-check passed
  • Context Mode Knowledge Purge

    mksglu/context-mode

    Permanently deletes a project's or a single session's indexed context-mode knowledge base, after confirming the scope and warning what will be lost.

    26k GitHub stars~671 tokensUpdated yesterday
    Auto-check passed
  • Context Mode Doctor

    mksglu/context-mode

    Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor

    26k GitHub stars~262 tokensUpdated yesterday
    Auto-check passed
  • Context Mode Search

    mksglu/context-mode

    Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger…

    26k GitHub stars~250 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Context Mode for Antigravity CLI

What does Context Mode for Antigravity CLI do?

Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation. This skill sets routing rules for using the context-mode MCP tools from Antigravity CLI (`agy`), where they appear under the context-mode server name followed by a tool name. The agent calls them directly and does not inspect cached schema files or run code just to discover tool names.

When should I use Context Mode for Antigravity CLI?

Context Mode for Antigravity CLI fits situations like: analyzing, counting or comparing file contents without loading them into the conversation; searching a codebase or indexed web content through the local knowledge base; listing which context-mode tools are available; running data-heavy commands without flooding the context window.

How do I install Context Mode for Antigravity CLI in Claude Code?

Run `npx skills add mksglu/context-mode --skill context-mode -a claude-code`. Or copy the skill folder (configs/antigravity-cli/skills/context-mode in mksglu/context-mode) into .claude/skills/context-mode in your project. Claude Code loads it when a task matches its description.

How do I install Context Mode for Antigravity CLI in Codex?

Run `npx skills add mksglu/context-mode --skill context-mode -a codex`. Or copy the skill folder (configs/antigravity-cli/skills/context-mode in mksglu/context-mode) into .agents/skills/context-mode in your project. Codex loads it when a task matches its description.

Can I use Context Mode for Antigravity CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mksglu/context-mode --skill context-mode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-mode, .gemini/skills/context-mode, .github/skills/context-mode and .opencode/skills/context-mode in your project.

What does Context Mode for Antigravity CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Context Mode for Antigravity CLI is instructions for the agent only. Our summary lists: The context-mode MCP server configured in Antigravity CLI.

Does Context Mode for Antigravity CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Context Mode for Antigravity CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Mode for Antigravity CLI use?

Context Mode for Antigravity CLI has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Context Mode for Antigravity CLI use?

About 850 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Mode for Antigravity CLI?

Skills that share tags, products or a category with Context Mode for Antigravity CLI: Entroly Context Control (juyterman1000/entroly, 473 stars), Entroly Lobehub Audit (juyterman1000/entroly, 473 stars), Claude Code Mastery (borghei/Claude-Skills, 881 stars) and Lemmalog (JordyZomer/lemmalog, 329 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Mode for Antigravity CLI?

mksglu (a GitHub user) maintains it in mksglu/context-mode, which has 25,647 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

Source: mksglu/context-mode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.