Other v1.0.0

token-efficiency

Avoid unnecessary context burn. Surgical file reads, batched commands, less narration. Every token read is a token...

nubzparmesan 更新于 2026-03-06 1 浏览
下载 SKILL

技能说明

Avoid unnecessary context burn. Surgical file reads, batched commands, less narration. Every token read is a token taxed.

使用场景

Token Efficiency - Avoiding Unnecessary Context Burn

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/token-efficiency
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 14 kB
SKILL.md text/markdown
---
name: Token Efficiency
description: Avoid unnecessary context burn. Surgical file reads, batched commands, less narration. Every token read is a token taxed.
---

# Token Efficiency - Avoiding Unnecessary Context Burn

Every token read is a token taxed. Be surgical.

## Core Rules

- **grep/tail over full reads** — need one section? `grep -A 20 "## Section"`. Need the end? `tail -50`. Don't read 500 lines to find 5.
- **batch API calls** — one curl with multiple params > three separate curls. Combine endpoint checks into single scripts.
- **sub-agents for heavy research** — scraping a thread, summarizing 50 posts, reading a full repo? Spawn a sub-agent. Don't burn main context on bulk work.
- **don't re-read context** — if a file was already read this session, use what you have. Never read it again "just to be sure."
- **summarize before storing** — tool output going to a file? Strip it down first. Store the insight, not the raw dump.

## Anti-Patterns (Observed)

| Bad | Good |
|-----|------|
| Read full 3000-line comment thread | `grep -c ""` for count, tail for recent, grep for keywords |
| 4 separate curl calls to 4 endpoints | One script, four curls, one python parse pass |
| Narrate every grep and read step | Just do it, report the finding |
| Re-read SKILL.md to "refresh" mid-session | Trust what's already in context |
| Store raw JSON API response | Extract the 3 fields you care about, store those |

## When to Use Sub-Agents

- Research tasks > ~10 tool calls
- Bulk reading (threads, repos, feeds)
- Tasks that can run in parallel with main work
- Anything that would dominate your context window

## Quick Heuristics

- If you're about to read a file you've already read → stop
- If you're about to make the same API call twice → cache the result
- If narrating a step takes longer than doing it → just do it
- If a task feels heavy → sub-agent it

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。