agentleFS
orchnesaiorchnesai/orchnes-360/skills/token-economy/SKILL.md

token-economy

Skill3 starsChanged 11 days agoMITView on GitHub

Minimize token and context usage while keeping answer quality — targeted search before reading, partial file reads, no re-reading, compact tool output, batching, delegation, and terse responses. Use for any long or large-codebase task, when the user mentions tokens, cost, context limits, "be efficient", "save tokens", or when context is filling up.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every token in context is paid for on every later turn.

    line 9
  2. Very specific:

    Search (grep/glob/symbol search) for the exact identifier first.

    line 12
  3. Distinctive:

    Read line ranges around the hit, not whole files.

    line 13
  4. Distinctive:

    Never read generated, vendored, lock, minified or binary files unless the task is about them.

    line 14
  5. Distinctive:

    Do not re-read a file you already have in context and haven't changed.

    line 17
  6. Distinctive:

    Do not re-derive facts already established.

    line 18
  7. Distinctive:

    Run only the relevant test subset during iteration.

    line 23
  8. Distinctive:

    When output is long, keep only the error signature + the minimal context.

    line 24
  9. Very specific:

    Use the cheapest model that can do the sub-task (see the autonomous-loop skill tiers).

    line 29
  10. Distinctive:

    No speculative alternatives unless asked.

    line 34
  11. Distinctive:

    When the done criteria are met, stop.

    line 38
  12. Distinctive:

    If blocked on a user decision, ask one precise question instead of exploring every branch.

    line 39
  13. Distinctive:

    Do I already know this? → don't fetch it.

    line 42

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Token Economy

Every token in context is paid for on every later turn. Spend early tokens to avoid later ones.

1. Locate before you read

  • Search (grep/glob/symbol search) for the exact identifier first; read only matching files.
  • Read line ranges around the hit, not whole files. Expand only if needed.
  • Never read generated, vendored, lock, minified or binary files unless the task is about them.

2. Never pay twice

  • Do not re-read a file you already have in context and haven't changed.
  • Do not re-derive facts already established; reference them.
  • Persist durable facts (build commands, architecture notes, decisions) in a memory/notes file so future sessions don't rediscover them.

3. Shrink tool output

  • Pipe long output through filters: | tail -n 40, | grep -E "FAIL|Error", --quiet, --json | jq '<field>'.
  • Run only the relevant test subset during iteration; the full suite once at the end.
  • When output is long, keep only the error signature + the minimal context.

4. Batch and delegate

  • Issue independent tool calls together in one step.
  • Push broad, exploratory searches to a sub-agent/cheaper model and keep only its conclusion.
  • Use the cheapest model that can do the sub-task (see the autonomous-loop skill tiers).

5. Write less

  • Answer first, no preamble, no restating the question, no recap of what was just shown.
  • Show diffs or changed snippets, not entire files.
  • No speculative alternatives unless asked; give one recommendation.
  • Code comments only where intent isn't obvious.

6. Stop early

  • When the done criteria are met, stop. Don't polish unrequested parts.
  • If blocked on a user decision, ask one precise question instead of exploring every branch.

Quick self-check before each action

  1. Do I already know this? → don't fetch it.
  2. Can I fetch a smaller slice? → do that.
  3. Can these calls run together? → batch them.
  4. Will this output be long? → filter it.

Measured techniques and command recipes: references/recipes.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.