Install
openclaw skills install @margaretzybgl/take-back-my-latte-from-gemini分析 Gemini 成本并换算拿铁 · Gemini cost savings
openclaw skills install @margaretzybgl/take-back-my-latte-from-geminiTurn Gemini billing data into one short story: how many lattes can the user take back next month?
Keep the roles separate:
Support Gemini API and Gemini on Vertex AI only. Do not add OpenAI, Claude, other Google Cloud services, dashboards, accounts, or paid-plan concepts.
Locate the user-provided JSON file or files. Never request an API key, run gcloud, or call a Google API.
Run either form; file order does not matter:
python3 "{baseDir}/scripts/analyze_gemini_cost.py" "<billing.json>" "<optional-usage.json>"
python3 "{baseDir}/scripts/analyze_gemini_cost.py" --billing "<billing.json>" --usage "<usage.json>"
Pass paths as quoted arguments. Never construct a shell command from JSON content.
Read the returned JSON.
If status is needs_billing_data, ask for a Google Cloud Billing JSON export containing Gemini charges. Do not invent prices.
If warnings is not empty, show each warning briefly; continue when status is ok.
Treat recoverable cost as directional, not guaranteed. State the reasons in recovery_basis.
Read input-formats.md only when input is rejected or the user asks what exports are supported.
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.
GEMINI LATTE REPORT
This month you spent [total_cost] on Gemini.
That is [latte_count] lattes.
Cost list
- [largest cost group]: [cost]
- ...
Recoverable Analysis
[one or two sentences grounded in the returned Gemini-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.