token-formatter

Community

Compresses verbose docs into token-smart formats.

Authorgeorgekhananaev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It reduces token usage by compressing verbose content into token-efficient formats.

Core Features & Use Cases

  • Token reduction: compress long docs, READMEs, and guides while preserving essential meaning.
  • Flexible transformations: apply rules for abbreviations, symbols, and structured data (lists, parameters).
  • Use Case: load large documentation into an LLM context or chatbot prompt and generate concise summaries or extract key data.

Quick Start

Use the token-formatter to compress a document:

  • Run: python .claude/skills/token-formatter/scripts/compress.py input.md > compressed.md
  • Pipe: cat input.md | python .claude/skills/token-formatter/scripts/compress.py --level 2
  • Check: python .claude/skills/token-formatter/scripts/count_tokens.py input.md

Dependency Matrix

Required Modules

tiktoken

Components

scripts

💻 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: token-formatter
Download link: https://github.com/georgekhananaev/claude-skills-vault/archive/main.zip#token-formatter

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.