gemini-cost-tracker — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited gemini-cost-tracker (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill when repeated Gemini calls need transparent token and cost accounting. It records usage metadata after each call and prints a simple per-model session summary.
google-genai, Gemini REST responses, or repeated model calls in a batch.User input:
Wrap this three-call Gemini ranking job so I can see model cost by session.Output:
# Copy assets/cost_tracker.py into your project, then:
from cost_tracker import CostTracker
tracker = CostTracker()
# resp = client.models.generate_content(model="gemini-2.5-flash", contents=prompt)
tracker.record("gemini-2.5-flash", resp.usage_metadata)
print(tracker.summary())Example printed output:
Calls: 3 | Total: $0.001242
gemini-2.5-flash-lite: $0.000180
gemini-2.5-flash: $0.001062usage_metadata from the SDK response or usageMetadata from REST.Reference: assets/cost_tracker.py.
Distilled from production use across the author's automation projects. v0.1.0. See also: [[gemini-structured-output]].
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.