agentleFS
YahyaLendaniYahyaLendani/opus-tuner-claude-skill/skills/claude-skill/SKILL.md

claude-skill

Skill14 starsChanged 16 days agoMITView on GitHub

Portable token discipline for long conversations where hooks cannot run - Claude Desktop, claude.ai, or a locked-down machine. Use when a chat is getting long, when the user mentions context limits or cost, or when resuming from a handoff brief.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. feiskyer/codex-settings★ 248same name
    2. myysophia/codex-config★ 195same name
    3. accelizero/claude-skill★ 0same 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 repository7 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 14

    Distinctive

    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:

    Every request re-reads the whole conversation.

    line 28
  2. Distinctive:

    Answer the question asked: No preamble, no summary of what you are about to do, no recap of what you just did unless it changed the plan.

    line 39
  3. Distinctive:

    Read narrowly: Ask for the file, function, or error — not the repository.

    line 41
  4. Distinctive:

    If you have tools, grep for the symbol before reading a whole file.

    line 42
  5. Distinctive:

    Do not re-verify by re-reading: If a fact is in the conversation, use it.

    line 44
  6. Distinctive:

    Consider it at a task boundary, or at 70% of the ceiling, whichever comes first.

    line 52
  7. Distinctive:

    When asked, write exactly this, under ~400 words.

    line 63
  8. Distinctive:

    When a message begins with a handoff brief:

    line 97
  9. Distinctive:

    Treat it as the working state.

    line 99
  10. Distinctive:

    Start from Next step.

    line 100
  11. Distinctive:

    Ask one question only if a decision it records is genuinely ambiguous.

    line 101
  12. Distinctive:

    No measurement: you cannot see the real token count, only estimate it.

    line 105
  13. Distinctive:

    No enforcement: nothing stops a turn at the ceiling.

    line 106
  14. Distinctive:

    No automatic re-seed: the user pastes the brief.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

claude-skill — portable token discipline

This is the advisory companion to opus-tuner. It needs no hooks, no scripts and no filesystem: everything here is a habit the model can keep in any Claude client. Where opus-tuner measures and enforces, this only reminds. Say so if the user expects the automated version.

The budget

Track the conversation against two soft ceilings:

TierCeilingMeaning
routine~150k tokensdefault; most work fits
deep~250k tokensone hard problem, explicitly chosen

At 70% of the ceiling, finish the current unit and hand off. At the ceiling, stop starting new work. A turn near the ceiling re-reads everything, so the last 10% of a long chat is the most expensive part of it.

What actually costs tokens

Every request re-reads the whole conversation. That makes these the levers, in order:

  1. Conversation length. The dominant cost. A 300k chat costs roughly six times a 50k chat per turn, for the same answer.
  2. Output. Small share of tokens, large share of price. Do not pad.
  3. Restating. Repeating the plan, the diff, or the user's request back to them buys nothing and is re-read on every later turn.

Rules

  • Answer the question asked. No preamble, no summary of what you are about to do, no recap of what you just did unless it changed the plan.
  • Read narrowly. Ask for the file, function, or error — not the repository. If you have tools, grep for the symbol before reading a whole file.
  • Batch. One message with the independent questions, not five round trips.
  • Do not re-verify by re-reading. If a fact is in the conversation, use it. Verification is for claims that could be wrong, not for memory.
  • Do not re-explain for the user's benefit. They can scroll.
  • Never trade verification for tokens. Skipping a test to save context is how a cheap session becomes an expensive debugging session.

When to hand off

Consider it at a task boundary, or at 70% of the ceiling, whichever comes first. A fresh chat starts without the history, so each turn re-reads less, but it has to rebuild whatever the brief leaves out.

Offer this, in one line, and let the user decide:

This chat has grown long. If you would like to continue in a fresh one, I can write a handoff brief for it.

Handoff brief

When asked, write exactly this, under ~400 words. Every line is re-read in the new chat, so no filler:

# Handoff — <task>

## Goal
<one sentence: what done looks like>

## State
<what exists now: files, decisions, what passes>

## Decisions
<what was chosen and why — only the non-obvious ones>

## Dead ends
<what was tried and failed, so it is not retried>

## Unverified
<believed but not proven>

## Next step
<one concrete action>

## Files
<the handful that matter, with paths>

Then tell the user: start a new chat, paste this, and say "continue from Next step". In a client with projects or memory, put it in the project instructions instead of the first message.

Resuming

When a message begins with a handoff brief:

  1. Treat it as the working state. Do not re-explore what it already records.
  2. Start from Next step.
  3. Ask one question only if a decision it records is genuinely ambiguous.

Limits, stated honestly

  • No measurement: you cannot see the real token count, only estimate it.
  • No enforcement: nothing stops a turn at the ceiling.
  • No automatic re-seed: the user pastes the brief.

For measurement and enforcement, use opus-tuner in Claude Code: https://github.com/YahyaLendani/opus-tuner-claude-skill

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.