agentsclimarketplace

Slingshot

Skill saestrad/slingshot/slingshot

Token, context, and model-cost optimizer with a persistent learning loop. Use when the user wants to save or optimize tokens, context, or cost; when a request is vague and must be translated into precise executable instructions (distillation); when choosing which model tier (Haiku/Sonnet/Opus/Fable) should run a task or subagent; before delegating work to a cheaper model so it performs like a stronger one; when a long session's context is getting heavy; at the end of significant tasks to record reusable learnings; and to install, update, or check this skill itself. Triggers: "optimize tokens", "save context", "which model", "make it cheaper", "distill", "spec this", "optimiza tokens", "ahorra contexto", "qué modelo", "hazlo más barato", "destila esto", "slingshot".From its SKILL.md

Install
npx -y skills add saestrad/slingshot --skill slingshot

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.7 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

Slingshot

Small, precise input; outsized result. The operating principle: spend expensive tokens once — on specification, routing, and learning — so every future token is cheaper. Intelligence placed in the prompt substitutes for intelligence in the runtime: a weaker model with a dense spec beats a stronger model with a vague one.

Two layers

  1. Always-on layer — a managed rule block injected into CLAUDE.md (and AGENTS.md for other agents) between SLINGSHOT:BEGIN/END markers by the installer. It carries the economy rules and auto-triggers on every request with ~20 lines of standing cost. Source of truth: rules/rule-block.md.
  2. Deep layer — this skill: full protocols, loaded only when a move or command actually runs.

An optional SessionStart hook injects the ledgers into every session automatically (see references/manage.md).

Setup gates (non-optional)

GateCheckIf fail
InstalledThe SLINGSHOT:BEGIN marker exists in the active CLAUDE.md (run status if unsure).Offer install once; proceed either way.
ReferenceThe matching reference file is loaded when a command runs.Load it before continuing.
LedgersBefore DISTILL/ROUTE on significant work, both ledgers were consumed this session.Run the RECALL move first.

Ledgers (the skill's memory)

LedgerPathSurvives updates
Generic~/.claude/slingshot/generic.md — portable techniques, any projectYes — lives outside the skill folder
Project.claude/slingshot.md at the project root — this repo's quirksYes — lives in the repo; commit it

The skill ships learnings/seed.md; the installer copies it to the generic ledger path only if none exists. Updates replace the skill folder wholesale and never touch ledgers.

Commands

Invoked as /slingshot <command> [target], or auto-triggered per the rule block. Load the reference before executing the command.

CommandCategoryDescriptionReference
distill [request]OptimizeTranslate vague intent into an executable Spec Blockreferences/distill.md
route [task]OptimizePick minimal sufficient model tier + delegation promptreferences/route.md
budgetOptimizeAudit and correct this session's context economyreferences/budget.md
arsenalOptimizeRecommend vetted external token-saving tools for the user's workflowreferences/arsenal.md
learnFlywheelExtract session learnings into the ledgersreferences/learn.md
recall [topic]FlywheelConsume ledgers; surface entries relevant to a topicreferences/recall.md
teachFlywheelRepo scan + one interview → seed the project ledgerreferences/teach.md
statusManageVersion, install state, rule block, ledger statsreferences/manage.md
install / update / uninstallManageRun the installer scriptreferences/manage.md

Bare /slingshot with no command → run status, then suggest the most relevant command for the current situation.

Move summaries

DISTILL — extract GOAL / SCOPE / CONSTRAINTS / NON-GOALS / DONE WHEN from the user's words plus the repo. Infer before asking; at most one batched question. The Spec Block is the payload: it becomes the prompt for whoever executes.

ROUTE — capability gap is compensated by specification density, and routing is two-dimensional: tier × effort (frontier low often beats prior-gen xhigh — down-effort before down-tier). Haiku for mechanical pattern-following with exact examples; Sonnet for implementation from a full spec; Opus/Fable for ambiguity, architecture, and verification. The compound pattern: strong model distills → cheap model executes → fresh-context script or strong model verifies. One failure → fix the spec; two → escalate; never loop.

BUDGET — control what enters the window, what stays, and what always loads. Files are durable memory; the window is scratch.

LEARN / RECALL — after significant tasks, distill 0–2 one-line learnings into the right ledger; before significant tasks, consume them. Capped, deduped, falsified entries deleted on sight.

Anti-goals

  • Never trade correctness for tokens. A wrong answer is the most expensive output there is.
  • No ceremony on trivial tasks. Distilling "fix this typo" burns more than it saves.
  • No visible bureaucracy. Apply the moves silently; surface them only when the user asks about cost or model choice.

What ships with it: 13 files

48.3 KB alongside SKILL.md, 2 of them executable

.claude-plugin/

learnings/

references/

rules/

scripts/

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.