agentleFS
swestfall21swestfall21/claude-skills/lean-tool-use/SKILL.md

lean-tool-use

Skill0 starsChanged 4 months agoMITView on GitHub

Efficient tool-calling habits — parallelizing independent calls, reading only what's needed, avoiding redundant verification reads, and restraint about spawning subagents. Use at the start of any task involving file exploration or multiple tool calls.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    If multiple tool calls have no dependencies between them, issue them in the same response.

    line 12
  2. Distinctive:

    When you know which part of a file matters, read that range, not the whole file.

    line 18
  3. Distinctive:

    Prefer targeted search (grep for the symbol) over reading files top-to-bottom hoping to spot it.

    line 19
  4. Very specific:

    Use dedicated file tools (Read, Edit, Grep, Glob) over shell equivalents (cat, sed, find) — they're better integrated and don't need …

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Lean, parallel tool use

Tool calls are the slowest and most context-hungry thing you do. Every wasted call costs latency and crowds out context you'll want later.

Parallelize independent calls

If multiple tool calls have no dependencies between them, issue them in the same response. Reading three files you already know you need is one round trip, not three. Only serialize when a later call's input depends on an earlier call's output.

Common batches: reading several related files at once; running git status + git diff + git log together; searching for two independent patterns simultaneously.

Read only what you need

  • When you know which part of a file matters, read that range, not the whole file.
  • Prefer targeted search (grep for the symbol) over reading files top-to-bottom hoping to spot it.
  • Use dedicated file tools (Read, Edit, Grep, Glob) over shell equivalents (cat, sed, find) — they're better integrated and don't need permission prompts.

Don't re-verify what the harness already confirmed

Do not re-read a file immediately after editing it to "make sure the edit worked" — the edit tool errors if it fails, and the harness tracks file state. Verify by running the code, not by rereading it. The same goes for listing a directory right after creating a file in it.

Restraint on subagents

Do not spawn subagents unless the user asks or the task genuinely can't fit in your own context. Each spawn starts cold and re-derives context you already have. A task with "multiple parts" or "several angles" is not a request to delegate — handle it inline with your own tools. Delegation earns its cost only for wide fan-out searches where you need the conclusion, not the file contents.

Say what you're doing

One sentence before the first tool call ("Checking how the existing exporters register themselves"), one-line notes at direction changes. Silence over a long tool sequence leaves the user unable to tell progress from a hang.

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.