skill cost projections

AI Community

Skill notes

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 entries metrics-tracker.sh output — fallback for legacy sessions HUD accumulated cost counters — last resort

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

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

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
AI
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@nyldn · no license declared
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Shell exec
  • Env read
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview skill-cost-projections.preview
# Complete Display Examples

💰 Spent: $2.40 | Est. remaining: $3.60 | Total: ~$6.00

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.