agentleFS
zedarvateszedarvates/frugal-skills/skills/loop-optimizer/SKILL.md

loop-optimizer

Skill1 starsChanged 30 days agoMITView on GitHub

Instructions for the upstream workflow: Orchestrate a retroactive loop with token economy — a controller that picks the next loop action from extracted features, tracks progress state and stop reasons, and can replay a baseline loop to compare against the optimized one. Use when an iterate-until-done loop must be bounded and its cost measured rather than left to a fixed iteration count. Not for the persistent windows a loop reads — use context-windows; not for distilling what the loop learned — use agent-intel; not for running the loop's sub-agents — use the agent delegation surface.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

loop-optimizer — bounded retroactive loops

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.

Purpose

Decides, from observable features, what the loop should do next and when to stop, and can replay a recorded baseline to quantify the difference.

python -m skills.loop_optimizer.cli <action> ...
python -m skills.loop_optimizer.cli replay
python -m skills.loop_optimizer.cli stats

When NOT to use

  • You need the context a loop carries between steps — use context_windows.
  • You want the loop's knowledge distilled — use agent_intel.
  • You want a single task routed — use nn_router or local_router.

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.