cost-analysis

cost-analysis is a skill for Claude Code, Codex from cvander/Maya. It costs 14 tokens per session (309 once invoked), scanned A, original, MIT.

A menu and inventory calculator for drinks, showing the cost of ingredients, cost by drink category, and profit margin percentages.

In plain words
What is it for?
Use it to review beer, spirits, wine, or cocktail pricing and flag drinks with pour costs above 30% or margins below $8.
Why use it?
It makes pricing problems easier to spot, such as drinks whose ingredient costs are too high or whose margins are too low.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to review beer, spirits, wine, or cocktail pricing and flag drinks with pour costs above 30% or margins below $8.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cvander/maya/cost_analysis
View source ↗ cvander/Maya
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 cvander/Maya --skill cost_analysis
Clone the repo
git clone --depth 1 https://github.com/cvander/Maya

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cvander/maya/cost_analysis"><img src="https://agentmods.dev/badge/skills/cvander/maya/cost_analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 309 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.00014 $0.00309
Opus 5.5 $0.00006 $0.00124
Sonnet 5.5 $0.00003 $0.00062
Haiku 4.5 $0.00001 $0.00031

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

Security

Grade A, and why

cost-analysis 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (__init__.py, __main__.py, main.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/cost_analysis/SKILL.md · 50 lines

What it actually says

Cost Analysis

Reads the current menu and inventory files to calculate pour cost per drink, category COGS, and margin percentages. Flags items with high pour costs (>30%) or low margins (<$8).

When to Use

  • When reviewing menu pricing decisions
  • Before adjusting prices on cocktails or spirits
  • Monthly cost analysis for the bar

Procedure

python -m skills.cost_analysis --format json
python -m skills.cost_analysis --format json --category cocktails

Optional: --category all|beer|spirits|wine|cocktails (defaults to all).

Exit Codes

Code Meaning
0 OK, all margins healthy
1 Warnings: high pour cost or low margin items
2 Config error
3 Data error
10 Unexpected error

Verification

  • Exit code is 0 or 1
  • stdout is valid JSON (with --format json)
  • data.items contains analyzed menu items with cost/margin data
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. 2mo ago First seen · 50 lines · 14 tokens per session scan A 3c336a6d7906

Subscribe to this mod's changes

cost-analysis is a skill published in the GitHub repository cvander/Maya (11 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 309 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-31.

Related

cost-analysis compared with skills from other repositories

cost-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cost-analysiscvander/MayaSkill115mo agoMITA14Claude Code, Codex
asc-ppp-pricingrorkai/app-store-connect-cli-skillsSkill1.1kyesterdayMITA45Claude Code
snaplii-cliSnaplii-Inc/agent-to-merchant-paymentsSkill8122d agoApache-2.0A184Claude Code
stripeCraftOS-dev/CraftBotSkill4022d agoMITA79Claude Code, Codex
ai-slopwaybarrios/opencode-power-packSkill5514d agoMITA61Claude Code
stripemagnus919/agent-skillsSkill1662d agoMITA116Claude Code, Codex
asc-ppp-pricinghanamizuki/solopreneurSkill1563d agoMITA45Claude Code