agentleFS
zedarvateszedarvates/frugal-skills/skills/prefix-pruner/SKILL.md

prefix-pruner

Skill1 starsChanged 31 days agoMITView on GitHub

Instructions for upstream context pruning using recorded usefulness: auto, aggressive and conservative strategies. Validate the records and preserve required instructions; do not assume fixed token savings. Not for context transport deltas or prefix measurement.

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

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Prefix Pruner

Package scope and prerequisites

This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.

Élimine les sections de contexte que l'agent n'utilise jamais.

Stratégies

StratégieDescription
autoPrefix tree + usage tracking
aggressiveSupprime les sections sous le seuil de pertinence déclaré
conservativeNe supprime que les sections sans usage observé

Mesurer les effets et préserver les instructions nécessaires ; aucun gain fixe n'est fourni ici.

Usage

python -m skills.prefix_pruner.cli prune < context.txt
python -m skills.prefix_pruner.cli tree
python -m skills.prefix_pruner.cli stats

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.