ワンクリックで
token-optimization
Rules to minimize token usage
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Rules to minimize token usage
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use for math calculations.
Use for date/time.
Native macOS built-in screen capture. Saves directly to ~/Desktop using exact system timestamp naming, so agent can automatically detect and read the latest screenshot without manual file paths. macOS only.
Maintain a living context document (plan.md) as a self-note to preserve the original agenda, track progress, and prevent context drift during complex tasks
A meta-skill to create new skills in the default skill directory with proper YAML front matter
A skill for reliably creating files using shell commands
SOC 職業分類に基づく
| name | token-optimization |
| description | Rules to minimize token usage |
State the result. Skip the process. Omit what the user already knows.
Every command can produce unbounded output. Always limit it.
cmd > /tmp/out.txt 2>&1 → grep/head/tail → rmhead -n or tail -n. Use --quiet, --short, --oneline.find, ls -R, cat on unknown files, test suites, git log, builds.Never read entire files. Locate the relevant lines first.
glob → grep -n → sed -n '30,50p' → stop.--include='*.go'), match count (-m 10), or grep -q for boolean checks.Do not dump raw JSON/YAML/XML.
jq '.key', awk '{print $2}', cut -d: -f1.grep -m1 'ERROR\|FAIL' + tail -30.Use git diff -- file first. Read the full file only when diff lacks sufficient context.
Check context before any read. Do not re-read files, re-run searches, or verify what is already known.
cmd1 && cmd2.grep -n 'pat1\|pat2' file.Use targeted replacements (sed -i '' 's/old/new/g'). Never rewrite whole files.