cost-optimize

cost-optimize is a skill for Claude Code, Codex from RiggdAI/uniqent. It costs 24 tokens per session (274 once invoked), scanned A, original, Apache-2.0.

A menu-cost checker that adjusts ingredient choices to reach a target share of sales while keeping the dish's flavour and presentation in mind. Food cost is the amount spent on ingredients compared with the menu price.

In plain words
What is it for?
Use it to find expensive dishes, compare ingredient swaps, check seasonal alternatives, recalculate menu costs, and review before-and-after changes.
Why use it?
It shows which dishes are over budget and makes the financial effect of proposed substitutions clear. It also highlights changes that could affect quality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find expensive dishes, compare ingredient swaps, check seasonal alternatives, recalculate menu costs, and review before-and-after changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/riggdai/uniqent/cost-optimize
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 RiggdAI/uniqent --skill cost-optimize
Clone the repo
git clone --depth 1 https://github.com/RiggdAI/uniqent

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-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/riggdai/uniqent/cost-optimize/github.svg)](https://agentmods.dev/skills/riggdai/uniqent/cost-optimize)
Your own site
<a href="https://agentmods.dev/skills/riggdai/uniqent/cost-optimize"><img src="https://agentmods.dev/badge/skills/riggdai/uniqent/cost-optimize/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-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/riggdai/uniqent/cost-optimize"><img src="https://agentmods.dev/badge/skills/riggdai/uniqent/cost-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 274 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.00024 $0.00274
Opus 5.5 $0.00010 $0.00110
Sonnet 5.5 $0.00005 $0.00055
Haiku 4.5 $0.00002 $0.00027

Measured 1mo ago against content hash 31701303f236, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost-optimize 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 1mo 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.

examples/menu-planner/skills/cost-optimize/SKILL.md · 22 lines

What it actually says

Cost Optimize

When asked to optimize a menu for food cost:

  1. Identify over-budget dishes. List every dish whose ingredient cost exceeds the target % (default 30%). Sort by cost descending — tackle the worst offenders first.
  2. Propose concrete swaps. For each over-budget dish suggest one or two specific ingredient swaps with the expected cost saving (e.g. "replace salmon with ocean trout: saves ~22% on protein cost"). Preserve the dish's flavour profile and presentation quality.
  3. Check seasonal alternatives. Fetch current seasonal produce prices if available; seasonal substitutes are the first port of call before changing the dish concept.
  4. Re-run the numbers. After each proposed swap, recalculate the dish food-cost % and the blended menu food-cost % to confirm the target is met.
  5. Flag quality risks. If a swap materially changes texture, flavour, or presentation, note it explicitly so the operator can decide whether the trade-off is acceptable.
  6. Summarise changes in a before/after table: dish name | original cost % | new cost % | swap made.
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. 1mo ago First seen · 22 lines · 24 tokens per session scan A 31701303f236

Subscribe to this mod's changes

cost-optimize is a skill published in the GitHub repository RiggdAI/uniqent (15 stars, last pushed 8d ago), licensed Apache-2.0. It adds 24 tokens to every session and 274 once invoked, about $0.0001 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-08-30.