agentleFS
imMamdouhaboammarimMamdouhaboammar/get-fable/skills/fable-context-thrift/SKILL.md

fable-context-thrift

Skill6 starsChanged 3 months agoMITView on GitHub

Use at the start of any multi-step task and during exploration — before reading files, searching, or re-checking completed work, especially when tempted to read whole files, re-verify known facts, or run independent lookups one at a time.

1 other project uses a version of this, 1 of them edited.

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. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    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:

    Before reading files, searching symbols, or checking repository structure.

    line 39
  2. Distinctive:

    When tempted to read entire files rather than targeted slices, symbols, or functions.

    line 40
  3. Distinctive:

    When executing multiple independent lookups or checks that can be batched in parallel.

    line 41
  4. Distinctive:

    Targeted Read Strategy: Read only the symbol or section needed, not the file.

    line 61
  5. Distinctive:

    Tool Confirmation Principle: Never re-read a file to check an edit landed.

    line 64
  6. Distinctive:

    Eliminate Narrative Overhead: Don't narrate options you won't pursue.

    line 66
  7. Distinctive:

    The Enough-to-Act Test: If more exploration would not change your next action, exploration is over.

    line 67
  8. Distinctive:

    If an additional search result would not change your next command or edit, do not make the search.

    line 80
  9. Distinctive:

    When an edit succeeds cleanly, proceed directly to verification without viewing the modified file again.

    line 81
  10. Very specific:

    Use line offsets and targeted slices (StartLine, EndLine) when viewing files.

    line 86
  11. Distinctive:

    Prefer targeted ripgrep queries over file-tree traversal when locating symbols.

    line 88
  12. Distinctive:

    Use single end-state checks (e.g.

    line 93
  13. Distinctive:

    Stop spending immediately when encountering any of these Red Flags:

    line 98

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

Fable Context Thrift

Context is the budget everything else is paid from. Spend it on what changes your next action; nothing else.

Purpose

Prevent context bloat, token exhaustion, unnecessary whole-file reads, redundant verifications, and sequential execution latency. fable-context-thrift treats context tokens and tool calls as a scarce, valuable engineering budget.

When to Use

  • At the start of any multi-step task and during exploratory codebase investigations.
  • Before reading files, searching symbols, or checking repository structure.
  • When tempted to read entire files rather than targeted slices, symbols, or functions.
  • When executing multiple independent lookups or checks that can be batched in parallel.

When NOT to Use

  • Comprehensive codebase discovery requiring structural mapping of unknown subsystems (use fable-discover).
  • External API documentation and primary-source research (use fable-research).
  • Deep vulnerability tracing across distributed trust boundaries (use fable-security).

Inputs

  • exploration_intent: The specific load-bearing question or uncertainty to be resolved.
  • workspace_state: Existing established facts, open files, and previous tool outputs.

Expected Outputs

  • targeted_evidence: Minimal, high-signal code excerpts, line references, and exact facts.
  • decision_readiness: Confirmation that the "enough-to-act" bar is reached with zero extraneous tokens.

Procedure

  1. Targeted Read Strategy: Read only the symbol or section needed, not the file. Widen only when a specific question demands it.
  2. Parallel Block Batching: Multiple greps, reads, or status checks must be dispatched in one parallel block. Sequencing independent reads adds latency, not care.
  3. Delegate Sweeps vs Keep Lookups: Broad questions ("where is X handled", find-all-usages in unfamiliar territory) go to a search subagent if available — keep the conclusion, not the file dumps. Known single lookups stay direct. The subagent is for when you don't know where things live.
  4. Tool Confirmation Principle: Never re-read a file to check an edit landed; the edit tool fails loudly. Verify outcomes with one cheap end-state check (a grep for the old token), not per-file re-reads.
  5. Preserve Established Facts: What the conversation already verified, don't re-derive. What the user already decided, don't reopen.
  6. Eliminate Narrative Overhead: Don't narrate options you won't pursue. Deliberation is for choices you might actually make.
  7. The Enough-to-Act Test: If more exploration would not change your next action, exploration is over. Act.

Decision Rules

ThoughtReality
"I'll read the whole file for context"Read what the change touches. The question you're answering defines the lines you need.
"Let me just double-check my edit landed"The tool reported success; silence is success. One end-state grep beats N re-reads.
"One more search to be safe"If the result wouldn't change your action, it isn't safety — it's stalling with receipts.
"I'll re-verify the repo layout first"It's in your context and was correct an hour ago. Directory trees don't rot mid-session.
"Careful means one call at a time"Careful means right calls. Independent lookups in sequence is the same work, slower.
"I'll dispatch a subagent to be thorough"On a 40-file repo, grep returns line-level truth faster than a subagent returns prose. Match the tool to the territory.
  • If an additional search result would not change your next command or edit, do not make the search.
  • When an edit succeeds cleanly, proceed directly to verification without viewing the modified file again.

Tool Policy

  • Batch all independent read and grep tool calls into a single message/turn.
  • Use line offsets and targeted slices (StartLine, EndLine) when viewing files.
  • Reject whole-file reads where ripgrep already provided exact line numbers.
  • Prefer targeted ripgrep queries over file-tree traversal when locating symbols.

Evidence Requirements

  • Report line-level citations (path/to/file#L10-L25) rather than dumping full function bodies into conversation.
  • Use single end-state checks (e.g. grep for deleted token or exit code) as proof of edit application.
  • Preserve established facts without requiring repeat execution evidence in the same session.

Failure Handling

Stop spending immediately when encountering any of these Red Flags:

  • A Read call for a file you edited this turn.
  • The same fact verified twice in one session.
  • Sequential tool calls with no data dependency between them.
  • An exploration step you can't name the decision for.
  • Whole-file reads where a grep already gave you the line numbers.

Completion Criteria

  • The load-bearing question is answered with minimum tokens spent.
  • The next engineering action is unblocked and clear.
  • Context space is preserved for implementation, verification, and diff review.

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.