majiayu000/claude-skill-registry-data/costs
Claude Code and agent skill by majiayu000/claude-skill-registry-data
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
View cost dashboard and spending analytics (project)
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/costsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/costs.
Cost Dashboard Skill
Display Devflow cost tracking and spending analytics by reading session data directly.
Usage
Options
| Option | Description | |
|---|---|---|
| --period day | Show today's costs only | |
| --period week | Show this week's costs | |
| --period month | Show this month's costs (default) | |
| --history N | Show last N sessions | |
| --story KEY | Filter by story key |
Prompt
You are displaying the Devflow cost dashboard.
Arguments: $ARGUMENTS
Step 1: Read Configuration
Read the configuration file:
- Path:
tooling/.automation/costs/config.json
This contains:
budget_dev: Development budget (USD)subscription_plan: Current plan (free/pro)subscription_token_limit: Monthly token limitsubscription_billing_period_days: Days in billing perioddisplay_currencies: Currencies to showcurrency_rates: Exchange rates
Step 2: Find Session Files
Find all session files:
- Path pattern:
tooling/.automation/costs/sessions/*.json
Step 3: Read and Aggregate Session Data
For each session file, extract:
session_id: Session identifierstart_time/end_time: Timestampsstory_key: Associated story (if any)entries[]: Array of cost entries withmodel,input_tokens,output_tokens,cost_usdtotals: Aggregated totals for the session
Identify the most recent session as the "current session".
Step 4: Calculate Metrics
Calculate:
- Current session tokens/cost: From the most recent session
- Cumulative tokens: Sum of all tokens across ALL sessions this billing period
- Cumulative cost: Sum of all
cost_usdacross ALL sessions - Cost by model: Group costs by model (opus, sonnet, haiku)
- Cost by story: Group costs by story_key
- Budget usage: (cumulative_cost / budget_dev) * 100
- Subscription usage: (cumulative_tokens / subscription_token_limit) * 100
- Average cost per session: cumulative_cost / session_count
- Average tokens per session: cumulative_tokens / session_count
- Input/output ratio: total_input_tokens / total_output_tokens
- Days remaining: Calculate from billing period start
- Projected monthly cost: (cumulative_cost / days_elapsed) * 30
- Projected token usage: (cumulative_tokens / days_elapsed) * 30
Step 5: Apply Filters
Based on $ARGUMENTS:
--period day: Filter sessions from today only--period week: Filter sessions from last 7 days--period month: Filter sessions from last 30 days (default)--history N: Show only last N sessions--story KEY: Filter sessions matching story_key
Step 6: Format Output
Display the dashboard using this format:
Budget Warnings
Display warnings based on config thresholds:
- If budget usage >
warning_percent(75%): Show [WARNING] - If budget usage >
critical_percent(90%): Show [CRITICAL] - If subscription usage > 80%: Show token limit warning
Notes
- Format large numbers with K/M suffixes (e.g., 1.5K, 2.3M)
- Round costs to 2 decimal places
- Show percentages to 1 decimal place
- Use text-based progress bars with = and - characters
- Current session = most recent session file by timestamp
- Cumulative = sum of ALL sessions in the billing period
- If no sessions found, display a message indicating no cost data available
- Calculate days remaining: billing_period_days - days since first session of period
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/costs/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 4
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/costs)