ces-ltd/lumi/skill-cost-projections
Claude Code and agent skill by ces-ltd/lumi
- community
Checking that the SKILL.md file is still in the repository.
Project remaining workflow cost from per-phase averages — warns on budget ceiling overruns. Use when: AUTOMATICALLY ACTIVATE when user asks about workflow costs:. \"cost projection\", \"estimate remaining cost\". \"budget forecast\", \"how much will this cost\"
Install
npx vskill@latest install ces-ltd/lumi/skill-cost-projectionsSKILL.md
Cost Projections Skill
Overview
Projects remaining workflow cost based on per-phase averages from completed work. Displays cost data in the HUD/statusline and warns when projected totals exceed a configured budget ceiling.
Minimum data requirement: Needs 2+ completed steps before projecting. With fewer than 2 data points, the average is unreliable — display actual spend only and skip projection.
Step 1: Collect Completed Phase Costs
Read cost data from ~/.claude-octopus/metrics/ or from metrics-tracker.sh output. Each completed phase/step should have an associated cost entry.
Data sources (in priority order):
~/.claude-octopus/metrics/session-*.jsonl— structured per-phase cost entriesmetrics-tracker.shoutput — fallback for legacy sessions- HUD accumulated cost counters — last resort
If fewer than 2 completed steps are available, display only actual spend:
Step 2: Compute Average Cost Per Step
Calculate the mean cost across all completed steps.
Formula:
Example: If 3 steps cost $0.30, $0.50, $0.40 → avg = $1.20 / 3 = $0.40/step
Step 3: Project Remaining Cost
Multiply the average cost per step by the number of remaining steps.
Formula:
Step counts by workflow type:
| Workflow | Total Steps | Example Phases | |
|---|---|---|---|
| embrace | 4 | Discover, Define, Develop, Deliver | |
| research | 3-7 | Per-agent probe count | |
| review | 3 | Fleet, Verifier, Synthesis | |
| debate | 3 | Opening, Rebuttal, Synthesis |
Step 4: Display in HUD
Format the cost projection for the HUD/statusline display.
Standard display:
Format rules:
- All dollar amounts to 2 decimal places
- Projected total prefixed with
~to indicate estimate - Use
💰prefix for the cost line - Show in a single compact line for statusline integration
When insufficient data (< 2 steps):
Integration: This display line is emitted by the octopus-hud hook and rendered in the statusline alongside phase progress and provider status.
Step 5: Budget Ceiling Warning
If the OCTO_BUDGET_CEILING environment variable is set, compare the projected total against it and warn on overrun.
Display when over budget:
Display when within budget:
Note: OCTO_BUDGET_CEILING is optional. When unset, no ceiling check is performed.
Step 6: Profile Suggestion
If the projected total is high relative to the task, suggest switching to the budget profile to reduce costs.
Display:
The budget profile (OCTO_PROFILE=budget) routes to cheaper models and reduces agent count to minimize spend.
Complete Display Examples
Normal — within budget, moderate cost:
Over budget ceiling:
Early in workflow (insufficient data):
Low cost — no warnings:
Integration
With octopus-hud hook
The cost projection line is rendered as part of the HUD statusline output, updated after each phase completes.
With metrics-tracker.sh
Reads per-phase cost data written by the metrics tracker. Each completed phase logs cost, token counts, and provider details.
With OCTO_PROFILE
When OCTO_PROFILE=budget is active, the projection accounts for reduced per-step costs from cheaper model routing.
Error Handling
No metrics directory:
Corrupted metrics data: Skip malformed entries and project from valid data only. If no valid entries remain, show unavailable message.
Zero remaining steps: When all steps are complete, show final total only:
Security
- Security scanPassed, 90 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 repositoryCheckingresources/seed/octopus/skills/skill-cost-projections/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/ces-ltd/lumi/skill-cost-projections)