agentleFS
mustafayilmazartmustafayilmazart/kesif-claude-skills/skills/token-optimizer/SKILL.md

token-optimizer

Skill0 starsChanged 7 months agoMITView on GitHub

Uzun prompt veya dosya içeriğini Claude/Gemini/Groq'a göndermeden önce sıkıştırır. Caveman tarzı filler-silme + TR/EN kısa kalıp eşlemeleri ile ortalama %40-60 input token tasarrufu sağlar. Kullanıcı "bu promptu sıkıştır", "token düşür", "maliyet azalt" dediğinde veya 2000+ karakterlik bir metni işlerken devreye gir.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mcp-builder and webapp-testing.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 4 projects that use this

  • JetBrainsSkill

    webapp-testing

    Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

    Also in 3 projects that use this

The file

Files
SKILL.md

Token Optimizer Skill

Kullanım

python <workspace>/mcp-servers/kesif-token-optimizer/src/compressor.py "metin"
# veya
cat uzun.md | python <workspace>/mcp-servers/kesif-token-optimizer/src/compressor.py

Ne zaman otomatik kullan

  1. Bir dosya/metni LLM'e göndermeden önce 2000+ karakterse
  2. Kullanıcı token maliyetinden şikayet ederse
  3. Pipeline'larda batch işlemden önce (her girdi için)

Sıkıştırma stratejisi

  • Filler silme: lütfen, aslında, yani, eee, please, kindly, very, really
  • Uzun→kısa kalıp: "in order to"→"to", "yapabilir misin"→"yap", "approximately"→"≈"
  • Boşluk normalizasyonu: çoklu ws ve nokta birleşimi
  • Agresif mod: gereksiz "that" silme, virgül öncesi ws

Entegrasyon Noktaları

  • instagram-orkestrasyon pipeline'ında her post taslağı → compress
  • udemy-video-pipeline'da script üretiminden önce input compress
  • notebooklm kaynak yüklemeden önce

Ölçüm

Her çağrıda stats döner:

  • char_saving_pct, word_saving_pct — tasarruf oranı
  • Aylık toplam: <workspace>/scripts/connectome/output/token_stats.json

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.