agentleFS
AL-JANEFAL-JANEF/janefskills/skills/engineering/context-efficiency/SKILL.md

context-efficiency

Skill1 starsChanged 54 days agoMITView on GitHub

Tactics for large repositories, noisy tool output, long sessions, and token pressure: search before reading, read ranges not files, keep logs and generated output out of context, never reread unchanged files or rerun unchanged passing checks, prefer deterministic scripts. Use when context volume materially affects execution quality; never reduces necessary reasoning, security, or verification.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with repository instructions, the target symbol, its callers, and its focused tests.

    line 19
  2. Distinctive:

    Search filenames, symbols, call sites, and Git history before opening files.

    line 20
  3. Distinctive:

    Keep dependencies, lockfile bodies, generated output, build artifacts, and large logs out of context unless directly required.

    line 22
  4. Distinctive:

    Do not reread unchanged files or rerun unchanged passing checks.

    line 26
  5. Distinctive:

    Avoid duplicate agents, duplicate reviews, and overlapping skills.

    line 27
  6. Distinctive:

    Prefer deterministic local scripts for repeatable parsing, discovery, counting, and validation.

    line 28
  7. Distinctive:

    Run targeted tests first; broaden only when change risk requires it.

    line 29
  8. Distinctive:

    Keep API contracts, security boundaries, migrations, concurrency, and failures visible.

    line 33
  9. Distinctive:

    Stop exploring when acceptance criteria, affected boundaries, and a falsifiable implementation path are clear.

    line 37

≈ “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

Context Efficiency

Efficiency removes waste, never evidence. It must not reduce necessary reasoning, security review, or verification.

Load by decision

  • Start with repository instructions, the target symbol, its callers, and its focused tests.
  • Search filenames, symbols, call sites, and Git history before opening files; read narrow ranges around matches rather than entire files.
  • Load one capability or reference when it changes the next decision. Do not preload the catalog.
  • Keep dependencies, lockfile bodies, generated output, build artifacts, and large logs out of context unless directly required. Store large raw outputs as files and inspect slices or summaries.

Avoid repeated work

  • Do not reread unchanged files or rerun unchanged passing checks.
  • Avoid duplicate agents, duplicate reviews, and overlapping skills.
  • Prefer deterministic local scripts for repeatable parsing, discovery, counting, and validation.
  • Run targeted tests first; broaden only when change risk requires it.

Spend context where risk lives

Keep API contracts, security boundaries, migrations, concurrency, and failures visible. Compress boilerplate and settled facts, not unresolved evidence.

Stop conditions

Stop exploring when acceptance criteria, affected boundaries, and a falsifiable implementation path are clear. Re-open context when a test contradicts the model, a hidden caller appears, or scope changes.

Character-based token estimates are useful for regressions but are not provider billing measurements or quality evidence. Delegation (delegation-discipline) is justified only when isolation or parallelism saves more than coordination costs.

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.