en un clic
token-optimization
Rules to minimize token usage
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Rules to minimize token usage
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
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
| 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.