Skip to content
Marketing
Command

/cost-report

Show API cost breakdown for the current month's production

shell
$ npx -y skills add indranilbanerjee/socialforge --agent claude-code

Ships with socialforge. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cost-report

Context preview

What this command does when you run it.

Show API cost breakdown for the current month's production

Command definition

cost-report.md
description: Show API cost breakdown for the current month's production
argument-hint: "--brand <name> --month <YYYY-MM>"

Cost Report

Display the API cost breakdown from cost-log.json.

Contract

Both `--brand` and `--month` are required. The skill runs:

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/cost_tracker.py" --action report --brand <name> --month <YYYY-MM>

The script returns JSON — `total_cost_usd`, `total_api_calls`, `by_operation`, and `by_post` (top 10). Render it for the user as below.

Output

Cost Report — AcmeCorp / April 2026
  Total: $3.47 across 96 API calls

  By Operation:
    gemini_image_generation: $1.80
    gemini_image_edit: $0.75
    gemini_vision_analysis: $0.47
    <operation>: $<amount>
    carousel_render: $0.00 (local Playwright, free)

  By Post (top 10):
    P01: $0.85
    P07: $0.45
    ...

Operation names come straight from the cost log. Only operations with a built-in estimate are priced automatically (vision analysis, image generation, image edit, fal.ai, Replicate; local compositing, background removal, and carousel rendering are $0.00). Video generation through WaveSpeed has no built-in estimate — log its actual cost with `--action log --cost <usd>`.

Read it on GitHub ↗
Ships withsocialforge

Your client wants 30 days of social content across six platforms with brand-faithful imagery, AI-generated video, and provenance signed for EU markets. You have five days.

Get the whole plugin, auto-invoked
Stats
24
Stars
0
Views
6
Forks
Active
Maintenance
Python
Language
MIT
License
2d ago
Last commit
4mo ago
Created

Repo: indranilbanerjee/socialforge