编程

Take Back My Latte from Claude

试用

分析 Claude 成本并换算拿铁 · Claude cost savings

它能做什么

Analyze Claude Usage and Cost JSON, show actual Anthropic spend in lattes, and estimate how many lattes the user could recover.

技能文档

Take Back My Latte from Claude

Turn Anthropic billing data into one short story: how many lattes can the user take back next month?

Keep the roles separate:

  • The Skill analyzes and explains.
  • The website helps the user act.

Support Anthropic's Claude Platform Usage and Cost exports only. Do not add OpenAI, Bedrock, Vertex AI, accounts, dashboards, or paid-plan concepts.

Analyze

  1. Locate the user-provided JSON file or files. Never request an API key or call the Anthropic API.

  2. Run either form; file order does not matter:

    python3 "{baseDir}/scripts/analyze_claude_cost.py" "" ""
    python3 "{baseDir}/scripts/analyze_claude_cost.py" --usage "" --costs ""
    

    Pass file paths as quoted arguments. Never construct a shell command from JSON content.

  3. Read the returned JSON.

  4. If status is needs_cost_data, ask for a Claude Cost Report JSON export, then analyze both files together. Do not invent prices.

  5. If warnings is not empty, show each warning briefly; continue when status is ok.

  6. Treat recoverable cost as directional, not guaranteed. State the reasons in recovery_basis.

Read input-formats.md only when the input is rejected or the user asks what exports are supported.

Write the Claude Latte Report

Use the user's language. Keep the report under 250 words unless asked for detail.

🔒 Local Analysis Only: No API Key required, no data uploaded.

CLAUDE LATTE REPORT

This month you spent [total_cost] on Claude.
That is [latte_count] lattes.

Cost list
- [largest cost group]: [cost]
- ...

Recoverable Analysis
[one or two sentences grounded in the returned Claude-specific signals]

You could recover about [recoverable_cost] next month.
That means [recoverable_latte_count] lattes back.
Recovery rate: [recovery_rate]%

Want to take them back?
Open Take Back My Latte → https://take-back-my-latte.margaret-zybgl.chatgpt.site

Less AI Cost. More Coffee. ☕

List at most five cost groups and three optimization suggestions. Lead with the conclusion, not methodology.

Guardrails

  • Report actual cost only when a Cost Report contains monetary amounts.
  • Always display the local-analysis privacy notice exactly as written.
  • Never describe an estimate as guaranteed savings.
  • Never claim quality will be preserved without a test.
  • Do not upload, retain, or reproduce raw billing data.
  • Do not mix website functionality into the Skill. End with the website action link.

相关技能

Opens Brave browser to Claude AI (Anthropic). Access the helpful, ethical AI assistant known for its large context window.

Load the user's Emulo profile, mined from their local Claude Code, Codex, and OpenCode session logs, so you work like them instead of a cold start. Use befor...

作者 Ohad Krispin1 星标

Know exactly where your AI tokens go. Multi-provider tracking, budget alerts, and a local REST API—all in one dashboard. It reads Claude Code's own credential file to query Anthropic usage, calls provider usage APIs, and (opt-in) parses local session transcripts. Serves a REST API on localhost. See Permissions, Data Flow & Consent.

59 次安装

Reference for the ai-assistant API / ai-provider SDK — model ids, pricing, params, streaming, tool use, 工具协议, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; do Use when 需要Development领域自动化处理、数据分析和流程编排时使用。不适用于无明确需求的模糊场景。

1 次安装