hermeticormus/token-optimization-skills · Archived

token-optimization

Claude Code token optimization — CLAUDE_AUTOCOMPACT_PCT_OVERRIDE, MAX_THINKING_TOKENS, behavioral patterns for selective reads, grep-first discovery, and cache awareness. Use to reduce cost on multi-day projects or recurring sessions.

First seen Jun 20, 2026

Installation

$ npx skills add hermeticormus/token-optimization-skills --skill token-optimization

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 853 B
  • docs SUMMARY.md 262 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Token optimization

Two env vars

export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70
export MAX_THINKING_TOKENS=16000

Patterns

  • Read with offset/limit, not whole files
  • Grep before Read
  • Compact at phase transitions
  • Don't leave prompts cold > 5min (cache TTL)
  • Separate sessions: routine vs. complex

When to raise thinking budget

Architecture, debugging, refactoring, critical review.

When to lower

File ops, lint fixes, trivial edits, lookups.


Full content at https://github.com/HermeticOrmus/token-optimization-skills.