# Cost Analysis

> Calculate pour costs and margins from menu and inventory data.

- **Type:** Skill
- **Install:** `agentstack add skill-cvander-maya-cost-analysis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [cvander](https://agentstack.voostack.com/s/cvander)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [cvander](https://github.com/cvander)
- **Source:** https://github.com/cvander/Maya/tree/main/skills/cost_analysis

## Install

```sh
agentstack add skill-cvander-maya-cost-analysis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [cvander](https://github.com/cvander)
- **Source:** [cvander/Maya](https://github.com/cvander/Maya)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-cvander-maya-cost-analysis
- Seller: https://agentstack.voostack.com/s/cvander
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
