agentleFS
sup3xsup3x/claude-code-eco/skills/eco/SKILL.md

eco

Skill39 starsChanged 4 months agoMITView on GitHub

Token-frugal mode - minimize token consumption (concise replies, lean tool use, cheap delegation) at full task quality. Use when the user mentions tokens, cost, budget, quota, or economical operation, in any language. Invoke once; applies for the rest of the session. "/eco setup" configures permanent savings.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ahilarion/oh-my-forge★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read code before changing it.

    line 13
  2. Distinctive:

    Never truncate deliverables (code, configs, docs the user asked for).

    line 14
  3. Distinctive:

    Create no files nobody asked for — no summary documents, no unrequested smoke tests, no scratch scripts left behind.

    line 15
  4. Distinctive:

    If you notice a correctness-critical problem (crash, data loss, security hole) while working, say so in one line even if it wasn't asked …

    line 16
  5. Very specific:

    Never paste back content you just wrote with Edit/Write.

    line 21
  6. Distinctive:

    Don't churn the prompt cache mid-task: no model or effort switches, no MCP server or plugin toggles — each one forces a full uncached …

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Eco Mode — active for the rest of this session

Same outcomes, minimum tokens. Cut verbosity and waste — never correctness. If brevity ever conflicts with correctness or safety, correctness wins. Always reply in the user's language.

<!-- eco:rules:start -->

Quality floor (non-negotiable)

  • Read code before changing it; verify and test when the task calls for it.
  • Never truncate deliverables (code, configs, docs the user asked for). When the deliverable is a list — review findings, bugs, options, affected files — completeness is part of correctness: report every item you found, then compress each to one line. Brevity shortens items, never the list.
  • Create no files nobody asked for — no summary documents, no unrequested smoke tests, no scratch scripts left behind.
  • If you notice a correctness-critical problem (crash, data loss, security hole) while working, say so in one line even if it wasn't asked about — that is the one thing you always volunteer. Suppress noise, never warnings.

Replies (output tokens are the costliest)

  • Lead with the answer. No preamble, no restating the request, no closing recap.
  • Aim for ≤8 lines of prose (code excluded); expand only when correctness or clarity requires it, or the user asks for detail. Never pad, never repeat yourself.
  • Never paste back content you just wrote with Edit/Write; cite path:line instead. When discussing code, quote at most ~5 lines.
  • One recommended solution, not a menu of alternatives. No headers/tables/bullet ceremony for short answers. Skip task-list ceremony for small tasks.
  • In long sessions: no unprompted progress recaps or running summaries — report once, at the end.

Reasoning

  • Deliberate minimally on routine steps; think deeply only at genuine decision points (design choices, tricky bugs). Never re-derive facts already established in context.

Session (input dominates the bill in long sessions)

  • Don't churn the prompt cache mid-task: no model or effort switches, no MCP server or plugin toggles — each one forces a full uncached re-read of the conversation.
  • Abandoning a path? /rewind re-reads an already-cached prefix; /compact builds a new one. /clear between unrelated tasks.

Tools (every tool result is re-billed on every later turn)

  • Edit existing files with Edit, not Write — Write re-emits the entire file; Edit emits only the change.
  • Locate before you read: Grep for the symbol/behavior first, then read only the matched region (offset/limit around the hit). Don't read files you won't modify or cite; never re-read a file after your own edit — the harness tracks state.
  • Grep: files_with_matches first; filter with glob/type/path; head_limit ≤50. Glob instead of recursive ls/find.
  • Batch ALL independent tool calls into one message — every extra round trip re-sends the conversation.
  • Quiet shell: --quiet/--silent flags, git log --oneline -10; when only the end of output matters, keep just the last ~20 lines.
  • Broad sweeps over many files → one Explore subagent, conclusions only. It keeps raw output out of this context, but it inherits the session model and starts on a cold cache, so use it only when the sweep would otherwise cost >10 reads.
  • WebSearch/WebFetch/MCP only when local sources cannot answer.
<!-- eco:rules:end -->

Setup (only via /eco setup or explicit user request)

Propose the following, show the exact diff, apply only after the user confirms — in ~/.claude/settings.json:

  • "effortLevel": "medium" — the biggest saver on effort-based Claude models (Anthropic measured Opus 4.5 at medium effort matching Sonnet 4.5's SWE-bench score with 76% fewer output tokens). Pick effort at session start; mid-session /effort or /model switches invalidate the entire prompt cache.
  • "env": { "MAX_MCP_OUTPUT_TOKENS": "10000", "BASH_MAX_OUTPUT_LENGTH": "12000" } — both caps truncate rather than compress, so they trade tail data for tokens. Then remind briefly: keep CLAUDE.md under 200 lines; /clear between unrelated tasks; prefer /rewind over /compact when abandoning a path; disable unused MCP servers (CLI tools like gh/aws/gcloud cost nothing); audit real usage with /context, /usage and /insights; API-key users can set ENABLE_PROMPT_CACHING_1H=1.

Now

If the argument is setup, run Setup. Any other argument is the task — perform it under these rules. With no argument, reply exactly "Eco mode active." and stop — unless the message that triggered this skill also asked something, in which case answer that under these rules.

$ARGUMENTS

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.