xiaohongshu
xiaohongshu
costs
View cost dashboard and spending analytics (project)
Full skill instructions
Display Devflow cost tracking and spending analytics by reading session data directly.
/costs [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 |
You are displaying the Devflow cost dashboard.
Arguments: $ARGUMENTS
Read the configuration file:
tooling/.automation/costs/config.jsonThis 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 ratesFind all session files:
tooling/.automation/costs/sessions/*.jsonFor each session file, extract:
session_id: Session identifierstart_time / end_time: Timestampsstory_key: Associated story (if any)entries[]: Array of cost entries with model, input_tokens, output_tokens, cost_usdtotals: Aggregated totals for the sessionIdentify the most recent session as the "current session".
Calculate:
cost_usd across ALL sessionsBased 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_keyDisplay the dashboard using this format:
=================================================================
DEVFLOW COST DASHBOARD
=================================================================
Plan: [plan] | Tokens: [cumulative]/[limit] ([%]%) | [days] days left
This Session: $[current_cost] | Cumulative: $[total_cost]
=================================================================
PERIOD: [period] SESSIONS: [count]
--- TOKEN USAGE ---------------------------------------------
This Session Cumulative
Input: [current_in] [total_in]
Output: [current_out] [total_out]
Total: [current_total] [total_total]
I/O Ratio: [ratio]:1 (higher = more input-heavy conversations)
--- COST BY MODEL -------------------------------------------
[model] $[cost] ([%]%) [bar]
--- COST BY STORY -------------------------------------------
[story-key] $[cost] ([%]%)
(no story) $[cost] ([%]%)
--- BUDGET STATUS -------------------------------------------
Spent: $[total] / $[budget] ([%]%)
[================================--------------------] [%]%
[WARNING] if > 75%: "Approaching budget limit!"
[CRITICAL] if > 90%: "Near budget limit - consider pausing"
--- PROJECTIONS (based on current usage rate) ---------------
Monthly token projection: [projected] / [limit] ([%]%)
Monthly cost projection: $[projected_cost]
Avg cost per session: $[avg_cost]
Avg tokens per session: [avg_tokens]
--- RECENT SESSIONS -----------------------------------------
[session_id] [date] [tokens] $[cost] [story or "-"]
[session_id] [date] [tokens] $[cost] [story or "-"]
[session_id] [date] [tokens] $[cost] [story or "-"]
(show last 5 sessions)
--- CURRENCIES ----------------------------------------------
$[USD] | E[EUR] | L[GBP] | R$[BRL]
=================================================================
Display warnings based on config thresholds:
warning_percent (75%): Show [WARNING]critical_percent (90%): Show [CRITICAL]xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience