Token Efficiency Optimizer
Optimizes file operations to minimize token consumption and reduce operational costs during AI coding sessions.
The Token Efficiency skill provides a set of best practices and implementation patterns designed to minimize token waste when interacting with large codebases. It guides Claude to use targeted tool selection—prioritizing grep and partial reads over full-file ingestion—to keep the context window lean and the execution speed high. By enforcing 'OpenCode Read Protection' and providing clear criteria for choosing between 'edit' and 'write' functions, this skill ensures that modifications remain precise and cost-effective without risking file corruption.
主な機能
01Read-before-edit protection to prevent accidental code corruption
020 GitHub stars
03Context-aware logic for choosing between edit and write operations
04Optimized tool priority workflow using grep and codegraph for discovery
05Intelligent partial file reading using offset and limit parameters
06Anti-pattern detection to avoid redundant or bloated context ingestion
ユースケース
01Modifying specific functions within massive enterprise source files without reading the entire file
02Reducing API latency and costs during long-running development sessions
03Maintaining a high signal-to-noise ratio in the context window for better AI reasoning