Skill 詳細

token-optimization

Direct Claude Code token-saving practices for recurring sessions.

一致度直接一致トークン最適化 向けにレビュー済み
出典hermeticormus/token-optimization-skills外部ソース
報告インストール数1人気度の参考値

使用前に確認

自動レビューは関連性のみを確認し、安全性や推奨を保証しません。使用前に出典の説明を読んでください。

保存された出典プレビュー

SKILL.md

これはレビュー時に保存された抜粋です。完全で最新の内容は外部ソースを確認してください。

---
name: token-optimization
description: 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.
license: MIT
---

# Token optimization

## Two env vars

```bash
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.
GitHub で全文を読む (外部ページ)
関連情報

関連する仕事