token-saver-adaptive-ratio

Installation
SKILL.md

Token Saver Adaptive Ratio

Computes adaptive skeleton ratio based on corpus token count for context compression.

Purpose

This skill provides the computeAdaptiveRatio function that determines the optimal compression ratio based on the size of the context corpus:

  • <8K tokens: Returns 0.8 (keep 80% of content)
  • 8-32K tokens: Returns 0.5 (keep 50% of content)
  • 32-100K tokens: Returns 0.2 (keep 20% of content)
  • >100K tokens: Returns 0.1 (keep 10% of content)

Usage

const { computeAdaptiveRatio } = require('./scripts/main.cjs');
Installs
5
GitHub Stars
37
First Seen
Jul 5, 2026
token-saver-adaptive-ratio — oimiragieo/agent-studio