cost-aware-llm-pipeline

cost-aware-llm-pipeline is a skill for Claude Code, Codex from frankxai/claude-skills-library. It costs 50 tokens per session (377 once invoked), scanned A, original, MIT.

A model-selection workflow that chooses the smallest language model expected to complete a task and records the task's class.

In plain words
What is it for?
Use it to route different kinds of work to an appropriate model and track the work against a budget.
Why use it?
It helps control model spending, especially for searches, edits across several files, and architecture reviews when a weekly limit is nearly reached.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to route different kinds of work to an appropriate model and track the work against a budget.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frankxai/claude-skills-library/cost-aware-llm-pipeline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add frankxai/claude-skills-library --skill cost-aware-llm-pipeline
Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cost-aware-llm-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline/github.svg)](https://agentmods.dev/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline)
Your own site
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cost-aware-llm-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/cost-aware-llm-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00377
Opus 5.5 $0.00020 $0.00151
Sonnet 5.5 $0.00010 $0.00075
Haiku 4.5 $0.00005 $0.00038

Measured 13d ago against content hash aa513139d6e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost-aware-llm-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

absorbed/harness/cost-aware-llm-pipeline/SKILL.md · 34 lines

What it actually says

Route the model to the job

One chair still runs the session. A cheaper model is a worker for a bounded task, not a second orchestrator.

Work Model class
Search, file lookup, doc summary The faster smaller model
Multi-file edits and tests Sonnet class
Architecture, security review, public or priced copy Opus class

Rules

  • Do not start an unbounded local loop because a weekly cap is close. Cap the iterations in the prompt and stop.
  • Do not install a token proxy or a second memory store as part of routing.
  • Do not send private receipts, reality.md, or the Queen inbox to a worker.
  • If the same mistake is being retried, stop and write the failure down. Another model call is not a fix.
  • Codex on this machine needs --no-daemon when a Claude session calls it. Leave the Stop-hook review gate off.

Note to leave

Write one line: task class, model used, and whether the result was kept. That line is the cost record. Do not invent a dollar figure.

Where this came from

The tiered-model idea follows affaan-m/ECC skills/cost-aware-llm-pipeline at 4eb71d92a39cab44ad40ac9d8a6a5ccb4029d6c2 (MIT). The chair rule, the cap, and the privacy list are estate law.

Built on SIP.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 34 lines · 50 tokens per session scan A aa513139d6e9

Subscribe to this mod's changes

cost-aware-llm-pipeline is a skill published in the GitHub repository frankxai/claude-skills-library (47 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 377 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

Other skills, from other repositories

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

lingxling/awesome-skills-cn · 47 tokens

prompt-refiner

Lints an existing user-supplied prompt for prompt-engineering defects and prompt-injection risks. Produces a diagnostic report with rule IDs, severity, line/column, quoted evidence, rationale, and optional JSON output. Does not rewrite prompts or impose prompt frameworks.

HenrikBrehm/prompt-refiner-skill · 58 tokens

prompt-modeler

Generate structured strategic prompts with diagnostic and multiple options. Triggers on: /modelar-prompt.

chidekina/aria-superpowers · 24 tokens

guidance

Control LLM output with regex and grammars, guarantee valid JSON/XML/code generation, enforce structured formats, and build multi-step workflows with Guidance - Microsoft Research's constrained generation framework.

davila7/claude-code-templates · 38 tokens

prompt-library

Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks.

davila7/claude-code-templates · 57 tokens

outlines

Guarantee valid JSON/XML/code structure during generation, use Pydantic models for type-safe outputs, support local models (Transformers, vLLM), and maximize inference speed with Outlines - dottxt.ai's structured generation library.

davila7/claude-code-templates · 50 tokens