Token-cutting rewriter that applies 52 research-backed rules to prompts, docs, and agent instructions.

skills.sh installs
2.1K
GitHub stars
40
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers prompts, docs, and agent instructions across 8 rule categories, from Claude behavior to aggressive lossy compression
  • Targets a 20–40% token reduction while preserving meaning, with medium mode by default and deep mode for whole directories
  • Runs on a single file or a whole directory via /text-optimize, with -d switching to deep mode
  • Designed for cutting API costs and sharpening LLM instruction quality, including reducing hallucinations

Install

$ npx -y skills add kochetkov-ma/claude-brewcode --skill text-optimizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Token-cutting rewriter that applies 52 research-backed rules to prompts, docs, and agent instructions. Covers prompts, docs, and agent instructions across 8 rule categories, from Claude behavior to aggressive lossy compression. Targets a 20–40% token reduction while preserving meaning, with medium mode by default and deep mode for whole directories. Runs on a single file or a whole directory via /text-optimize, with -d switching to deep mode. Designed for cutting API costs and sharpening LLM instruction quality, including reducing hallucinations.

Browse the repository on GitHub

Details

Repository
github.com/kochetkov-ma/claude-brewcode
Categories
Agent Workflow & Planning, Memory & Context

More from kochetkov-ma/claude-brewcode

All 2

Similar to Text Optimizer

More Agent Workflow & Planning