Works with the AI Agents you already use

    Antigravity & Gemini CLI Doctor & Token Auditor

    by Yucheng Wang

    1

    Local diagnostic and token optimization tool for Google Antigravity and Gemini CLI via agycraft-mcp.

    Free

    Security scanned
    Antigravity & Gemini CLI Doctor & Token Auditor

    Antigravity & Gemini CLI Doctor & Token Auditor

    Example session with this skill installed

    I am hitting 429 errors frequently and my quota is draining. Audit my usage and give me a fix.

    • Read your context and instructions
    • Compiled the antigravity & gemini

    I have analyzed your local telemetry and identified a quota desync issue in the 5h rolling bucket.

    Usage Audit & Diagnostic Report

    MetricValueStatus
    Current 5h Consumption842k tokensCritical (Near 900k limit)
    Thinking Output Ratio42%High
    KV Cache Miss Rate18%Optimized
    Fault DomainQuota/429 DesyncActive
    Primary DriverAutonomous retry loop in subagentAction Required

    Diagnostic Findings

    Your 429 errors are triggered by an autonomous agent loop failing to back off during rate limits. The current Thinking budget is set higher than necessary for the current task (refactoring), causing rapid bucket exhaustion.

    Prescriptions

    1. Reduce Thinking Budget: Modify your session config to cap thinking tokens at 2,048 for the next 2 hours.
    2. Compact Session: Clear the current message history to reset the KV cache context.
    3. Fix Retry Logic: Update your orchestrator settings to implement exponential backoff on 429 responses.

    Next steps

    • Run npx -y agycraft-mcp@latest doctor --json to verify no secondary auth mismatches exist.
    • Use lookup_model_guide --task lightweight to switch the subagent to a more token-efficient worker model.
    • Monitor ~/.config/agycraft/usage.jsonl for the next 30 minutes to ensure consumption flattens.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Stop wasting tokens on inefficient Gemini and Antigravity sessions. This skill provides a specialized diagnostic layer for developers using the agycraft-mcp ecosystem to manage quota, debug transport errors, and optimize model selection.

    What it does

    • Token Auditing Inspects 5h, 24h, 7d, 30d, and all-time rollups (v2 schema) with global/project scope isolation, auth_mode filtering, and shadow cost estimation.
    • Fault Attribution Categorizes errors into five fault domains, Structured Output / Function Calling errors, and 4 granular GCP / Vertex AI rules (gcp-vertex-api-disabled, gcp-adc-expired, gcp-vertex-iam-or-location, gcp-vpc-sc-blocked).
    • KV Cache Analysis Detects implicit cache misses under 4,096 tokens to improve prompt efficiency.
    • Model Pairing Recommends optimal Orchestrator and Worker combinations like Neon and Hydrogen based on task type.
    • Config Validation Audits mcp_config.json and .geminiignore for common syntax or environment variable issues.

    How it works

    1. Health Check Run the offline doctor command to scan local configuration files for mismatches or oversized global rules.
    2. Error Diagnosis Input specific error codes to receive root-cause attribution and copyable fix commands.
    3. Usage Analysis Review telemetry for Thinking output ratios and context utilization percentages.
    4. Optimization Apply generated prescriptions to compact sessions or adjust Thinking budgets.

    Frameworks & tools

    Built for Google Antigravity (AGY) and Gemini CLI (agycraft-mcp v0.2.6+). Integrates via stdio (npx -y agycraft-mcp@latest) and works within Antigravity, Gemini CLI, Claude Code, or Cursor environments.

    Why this beats prompting it yourself

    Generic LLMs lack the domain-specific knowledge of Antigravity's rolling quota buckets and specific MCP transport quirks. This skill uses local telemetry and predefined fault domains to give you actionable fixes instead of "try restarting" advice.

    Use cases

    • Debugging 429 or 503 errors during heavy automated coding sessions.
    • Reducing costs by identifying high Thinking output ratios in simple tasks.
    • Resolving MCP transport issues in Claude Code or Cursor configurations.
    • Selecting the most cost-effective model for lightweight subagent tasks.

    Known limitations

    Requires agycraft-mcp installed locally via npm. Cannot directly fix upstream Google API outages or modify your billing settings.

    Install & Run (v0.2.6+): npx -y agycraft-mcp@latest doctor npx -y agycraft-mcp@latest preflight Register MCP Server: # Antigravity CLI agy mcp add agycraft npx -y agycraft-mcp@latest # Gemini CLI (project-scoped) gemini mcp add --scope project agycraft npx -y agycraft-mcp@latest # mcp_config.json / settings.json {"mcpServers":{"agycraft":{"command":"npx","args":["-y","agycraft-mcp@latest"]}}}

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Software
    Agycraft MCPNode.js

    Permissions

    Terminal / Shell
    Network Access
    Listed8 days ago
    Updatedtoday

    What's inside

    Creator

    Yucheng Wang

    Yucheng Wang

    Frequently Asked Questions

    This skill is a specialized diagnostic layer for the `agycraft-mcp` ecosystem, helping you identify why you're hitting quota limits, why MCP transport is failing, and how to reduce token waste through KV cache analysis.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free