← ClaudeAtlas

costlisted

Show real-time cost tracking per feature/branch/command with budget alerts
buildproven/claude-kit · ★ 0 · AI & Automation · score 75
Install: claude install-skill buildproven/claude-kit
# /bs:cost - Real-Time Cost Tracking **Arguments received:** $ARGUMENTS ## Usage ```bash /bs:cost # Cost for current branch + top commands /bs:cost --branch feature/login # Cost for specific branch /bs:cost --command /bs:quality # Cost for specific command (all branches) /bs:cost --quota # Weekly quota usage and projections (CS-149) /bs:cost --agents # Per-agent cost breakdown (CS-081) /bs:cost --forecast # Monthly spend forecast /bs:cost --expensive # Most expensive operations /bs:cost --budget # Budget status and alerts (CS-063) /bs:cost --reset # Reset all cost tracking (confirm first) ``` ## Implementation ### Step 1: Parse Arguments ```bash COST_FILE="${HOME}/.claude/cost-tracking.json" SCRIPT_PATH="${HOME}/Projects/claude-kit/scripts/track-cost.sh" CONFIG_FILE=".claude/cost-config.json" DEFAULT_MONTHLY_BUDGET=200 MODE="summary" # summary, branch, command, quota, agents, forecast, expensive, budget, reset TARGET_BRANCH="" TARGET_COMMAND="" # Parse: --branch NAME, --command NAME, --quota, --agents, --forecast, --expensive, --budget, --reset # Default branch to current if --branch with no name ``` ### Step 2: Check for Cost Tracking Data ```bash # Initialize if cost file missing: "$SCRIPT_PATH" init # Verify jq is installed (required) ``` ### Step 2.5: Budget Alert Helper Functions (CS-063) ```bash get_budget_config() { # Read from $CONF