/ui-ux-pro-max:cost-report csvfrom ui-ux-pro-max
Generates a local Claude Code cost report from a cost-tracker SQLite database, showing spending by day, project, tool, and session. Also supports CSV export.
Ships in ui-ux-pro-max. Installing the plugin adds it to Claude Code.
Query the local cost-tracking database and present a spending report by day,
project, tool, and session. This command assumes a cost-tracking hook or plugin
is already writing usage rows to ~/.claude-cost-tracker/usage.db.
sqlite3 is available.~/.claude-cost-tracker/usage.db exists.usage table.csv.The database must be populated by a local cost tracker. If the file is missing, tell the user the tracker is not set up and suggest installing or enabling a trusted Claude Code cost-tracking hook/plugin first.
test -f ~/.claude-cost-tracker/usage.db && echo "Database found" || echo "Database not found"
sqlite3 -header -column ~/.claude-cost-tracker/usage.db "
SELECT
ROUND(COALESCE(SUM(CASE WHEN date(timestamp) = date('now') THEN cost_usd END), 0), 4) AS today_cost,
ROUND(COALESCE(SUM(CASE WHEN date(timestamp) = date('now', '-1 day') THEN cost_usd END), 0), 4) AS yesterday_cost,
ROUND(COALESCE(SUM(cost_usd), 0), 4) AS total_cost,
COUNT(*) AS total_calls,
COUNT(DISTINCT session_id) AS sessions
FROM usage;
"
sqlite3 -header -column ~/.claude-cost-tracker/usage.db "
SELECT project, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls
FROM usage
GROUP BY project
ORDER BY cost DESC;
"
sqlite3 -header -column ~/.claude-cost-tracker/usage.db "
SELECT tool_name, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls
FROM usage
GROUP BY tool_name
ORDER BY cost DESC;
"
sqlite3 -header -column ~/.claude-cost-tracker/usage.db "
SELECT date(timestamp) AS date, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls
FROM usage
GROUP BY date(timestamp)
ORDER BY date DESC
LIMIT 7;
"
If the user asks for /cost-report csv, export the most recent usage rows with
an explicit column list:
sqlite3 -csv -header ~/.claude-cost-tracker/usage.db "
SELECT timestamp, project, tool_name, input_tokens, output_tokens, cost_usd, session_id, model
FROM usage
ORDER BY timestamp DESC
LIMIT 100;
"
Format the response as:
Use four decimal places for sub-dollar amounts. Do not estimate pricing from raw
tokens in this command; rely on the precomputed cost_usd values written by the
tracker.
Salvaged from stale community PR #1304 by MayurBhavsar.
What the command file sets; muted values are Claude Code's defaults
cost-report, spending, sqlite, usage-tracking, csv-export, claude-code-costs
7-day visitors to each command page
npx claudepluginhub sriramgandhis/skills --plugin ui-ux-pro-max75 commands in this plugin
/asideAside CommandAnswer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering./auto-updateAuto UpdatePull the latest ECC repo changes and reinstall the current managed targets./build-fixBuild and FixDetect the project build system and incrementally fix build/type errors with minimal safe changes./checkpointCheckpoint CommandCreate, verify, or list workflow checkpoints after running verification checks./code-reviewCode ReviewCode review — local uncommitted changes or GitHub PR (pass PR number/URL for PR mode)/cpp-buildC++ Build and FixFix C++ build errors, CMake issues, and linker problems incrementally. Invokes the cpp-build-resolver agent for minimal, surgical fixes.9 plugins ship this exact command · first indexed May 12, 2026
Showing 6 of 9 plugins, one per repository first
Other plugins' commands for the same job