gemini-token-optimization

Official

Slash Gemini API costs.

AuthorDTMC-marketplace
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps users significantly reduce costs and optimize token usage when interacting with the Gemini API, especially for bulk operations.

Core Features & Use Cases

  • Token Caching: Explains how Gemini CLI caches context to save on billing and how to maximize cache hits.
  • Model Selection: Guides users on choosing between gemini-2.5-flash (faster, cheaper) and gemini-2.5-pro (higher quality, more expensive) based on task requirements.
  • Batching Strategies: Provides patterns for combining queries or files to reduce overhead and improve efficiency.
  • Cost Tracking: Offers methods for monitoring token usage per query and across a session.
  • Use Case: Before running a large-scale analysis on thousands of log files using Gemini, you can use this skill to understand how to batch the requests, select the most cost-effective model (likely Flash), and monitor the token usage to stay within budget.

Quick Start

Use the gemini-token-optimization skill to understand how to batch similar queries to reduce Gemini API costs.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gemini-token-optimization
Download link: https://github.com/DTMC-marketplace/governance/archive/main.zip#gemini-token-optimization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.