agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/efficiency/token-efficient-workflow/SKILL.md

token-efficient-workflow

Skill0 starsChanged 18 days agoMITView on GitHub

Reduce repeated context, research, tool calls, and overengineering while preserving verification quality. Use when an agent is rereading the same material or spending heavily on low-value exploration.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Read applicable repository instructions before edits.

    line 20
  2. Distinctive:

    Prefer deterministic local commands for facts such as test discovery, manifests, diffs, and file existence instead of asking an LLM to …

    line 35
  3. Distinctive:

    Stop research when the acceptance decision is supported.

    line 36
  4. Distinctive:

    Keep validation gates even when optimizing.

    line 38
  5. Distinctive:

    Do not omit security/tests or use stale cached facts simply to reduce token/tool counts.

    line 46
  6. Distinctive:

    If uncertainty affects correctness, spend the additional context/tool call and record why.

    line 63

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

Purpose

Optimize total work-to-evidence rather than minimizing tokens at the expense of correctness.

When to activate

A long coding task shows repeated searches/reads, large redundant context, or unnecessary tool invocations.

When not to activate

The task is small or additional context is necessary to resolve a real uncertainty.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Task objective and acceptance criteria
  • Recent tool/search history
  • Known repository map/evidence

Workflow

  1. Define the decision that each next read/search/tool call must inform.
  2. Cache verified facts in a short task ledger with source/path and freshness so they are not repeatedly rediscovered.
  3. Batch independent reads/searches and narrow large files to relevant regions after orientation.
  4. Prefer deterministic local commands for facts such as test discovery, manifests, diffs, and file existence instead of asking an LLM to infer them.
  5. Stop research when the acceptance decision is supported; do not collect sources solely to reach a count.
  6. Choose the cheapest model/tool appropriate for routine transformation only when the surrounding product permits routing and quality remains adequate.
  7. Keep validation gates even when optimizing; remove redundant checks only when no code/evidence changed.

Relevant tools

Task plan, repository index/search, deterministic CLI tools, usage metrics when the platform exposes them.

Safety restrictions

Do not omit security/tests or use stale cached facts simply to reduce token/tool counts.

Validation

  • Repeated identical searches/reads decrease without missing required evidence.
  • The final task still meets all acceptance/verification criteria.
  • Saved context records sources rather than unsupported summaries.

Expected output

  • Reusable context ledger
  • Redundant calls removed
  • Verification retained
  • Remaining expensive dependencies

Failure handling

If uncertainty affects correctness, spend the additional context/tool call and record why; efficiency never overrides required evidence.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P050. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

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.