Skip to main content
ClaudeWave
Skill570 repo starsupdated today

bernstein-cost

The bernstein-cost skill provides detailed financial tracking for Claude-based operations by executing cost analysis scripts to display total spending against budget allocations, breakdowns by model and agent, and expense projections. Use this skill when stakeholders need cost visibility, budget status checks, per-model expense analysis, or cost forecasting information.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/sipyourdrink-ltd/bernstein /tmp/bernstein-cost && cp -r /tmp/bernstein-cost/packages/cursor-plugin/skills/bernstein-cost ~/.claude/skills/bernstein-cost
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Bernstein Cost Tracker

Show detailed cost analysis and budget status.

## When to Use

- User asks "how much have we spent?" or "what's the cost?"
- User wants per-model or per-agent cost breakdown
- User asks about budget remaining or cost projection
- User says "are we over budget?"

## Instructions

1. Run `scripts/costs.sh` to fetch cost data.
2. Run `scripts/costs.sh projection` for cost forecast.
3. Present a clear cost report:

```
## Cost Report

**Total spent:** $X.XX / $Y.YY budget (Z%)
**Status:** {OK | WARNING | OVER BUDGET}

### Per Model
| Model | Tasks | Cost | Avg/Task |
|-------|-------|------|----------|
| claude-sonnet-4 | 12 | $1.84 | $0.15 |
| gpt-4.1 | 5 | $0.62 | $0.12 |

### Per Agent
| Agent | Role | Tasks Done | Cost |
|-------|------|------------|------|
| claude-backend-01 | backend | 3 | $0.45 |

### Projection
At current rate, this run will cost ~$X.XX total.
Estimated completion: Y tasks remaining, ~Z minutes.
```

4. If budget warning is active, highlight it prominently.
5. If over budget, note that Bernstein has paused new task claims.