ワンクリックで
token-efficiency-productivity
Strategies for minimizing token usage while maximizing productivity when working with AI coding agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Strategies for minimizing token usage while maximizing productivity when working with AI coding agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | Token Efficiency & Productivity |
| description | Strategies for minimizing token usage while maximizing productivity when working with AI coding agents. |
This skill provides concrete strategies to reduce token consumption and increase work efficiency when using Claude Code or similar AI coding agents.
Why: Task tool spawns a full sub-agent with its own context window. A single Task call can use 40,000+ tokens for work that could be done with 500 tokens using Edit.
# WRONG (uses 40k+ tokens):
Task tool to replace "blue" with "orange" across files
# RIGHT (uses ~500 tokens):
Edit(file1, "bg-blue-50", "bg-orange-50", replace_all=true)
Edit(file1, "text-blue-600", "text-orange-600", replace_all=true)
Edit(file2, "bg-blue-50", "bg-orange-50", replace_all=true)
# WRONG (reads entire 5000-line file):
Read(file_path="App.jsx")
# RIGHT (reads only relevant section):
Read(file_path="App.jsx", offset=2095, limit=30)
# WRONG (sequential calls, multiple messages):
Read file1
<wait for response>
Read file2
<wait for response>
# RIGHT (parallel reads, single message):
Read file1
Read file2
Read file3
# All in one message block
# WRONG (returns too many results):
Grep pattern="function"
# RIGHT (precise search):
Grep pattern="def run_check\(" output_mode="content"
files_with_matches: When you just need file paths (minimal tokens)content: When you need to see the actual codecount: When you just need to know how many matches# Limit to first 10 matches
Grep pattern="import.*React" head_limit=10
# WRONG (multiple edits):
Edit(file, old="color1", new="color2")
Edit(file, old="color1", new="color2") # Again for 2nd occurrence
Edit(file, old="color1", new="color2") # Again for 3rd...
# RIGHT (single edit):
Edit(file, old="color1", new="color2", replace_all=true)
When making multiple independent edits, do them all in one message to save round-trips.
# WRONG (too broad):
Glob pattern="*.jsx"
# RIGHT (specific location):
Glob pattern="frontend/src/components/charts/*.jsx"
# WRONG (3 separate messages):
Message 1: Read file1.jsx
<wait>
Message 2: Read file2.jsx
<wait>
Message 3: Read file3.jsx
# RIGHT (1 message with 3 tool calls):
Message with:
- Read file1.jsx
- Read file2.jsx
- Read file3.jsx
Instead of asking clarifying questions, provide all necessary context in your first message:
# WRONG:
"Update the colors"
<agent asks which colors>
"The blue ones"
<agent asks to what>
"To violet"
# RIGHT:
"Replace all bg-blue-* classes with bg-violet-* in the frontend/src directory"
The agent should remember what it has read in the current conversation. Don't re-read files unnecessarily.
Reference line numbers and content from earlier in the conversation instead of re-reading.
When committing, use knowledge from the current session instead of:
High-Value (worth tokens):
Low-Value (waste tokens):
Before using any tool, ask:
Remember: Every token saved allows for more productive work later in the session.