Agent skill

Cost Tracker

by rohitg00 in rohitg00/pro-workflow

Track session costs, set budget alerts, and optimize token spend.

No licenceAuto-check passedAI & LLM Engineering

Install Cost Tracker

skills CLI
$ npx skills add rohitg00/pro-workflow --skill cost-tracker -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rohitg00/pro-workflow cost-tracker --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rohitg00/pro-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cost-tracker .claude/skills/cost-tracker && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cost-tracker
GitHub stars
2.9k
Token cost
~814 tokens
SKILL.md length
345 words
Files
1
Skills in repo
41
Repo updated
First seen
Licence
None found

At a glance

Track session costs, set budget alerts, and optimize token spend.

  • Works in 10 steps: Scope prompts tightly — "Fix the auth… → Use the right model — Haiku for simple… → Delegate to subagents — Search/explore… → …
  • Check costs mid-session
  • SKILL.md covers Trigger, Cost Awareness, Budget Alerts and Output, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cost Tracker is an agent skill from rohitg00/pro-workflow. Track session costs, set budget alerts, and optimize token spend. Use to check costs mid-session or set spending limits.

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering LLM cost and token optimization. The repository describes itself as: Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested…

When your agent uses it

  • Check costs mid-session
  • Set spending limits

Example prompts

  • “/cost-tracker”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Scope prompts tightly — "Fix the auth bug in src/auth/login.ts" vs "Fix the auth bug"
  2. Use the right model — Haiku for simple lookups, Sonnet for features, Opus for architecture
  3. Delegate to subagents — Search/explore operations in subagents keep main context lean
  4. Compact proactively — Don't wait for auto-compact; compact at task boundaries
  5. Read selectively — Use offset and limit params for large files
  6. Batch operations — Multiple independent tool calls in one message
  7. One-pass discipline — Write complete solution, test once, stop if green
  8. No re-reads — Don't re-read unchanged files; trust cached knowledge
  9. Read before write — Never write a file without reading it first
  10. Kill output bloat — No sycophantic openers, no closing fluff, no prompt restatement

What it can do on your machine

Read from SKILL.md and the folder at commit 86d5f27. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cost Tracker loads about 814 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 345 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~814

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 345 words (~814 tokens).

“Monitor and optimize Claude Code session costs.”

— opening of SKILL.md by rohitg00
name
cost-tracker
user-invocable
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/cost-tracker of rohitg00/pro-workflow.

Open the folder on GitHubat commit 86d5f27

Compare with similar skills

Cost Tracker next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cost Tracker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cost Tracker this skillrohitg00/pro-workflow2.9k—~814Automated safety check: PassNone
Speckit Token Budget Usageharu/redmine_ai_helper106—~1kAutomated safety check: PassMIT
Context Compressionguanyang/open-agent-hub9752 repos~4.6kAutomated safety check: PassMIT
Fleet Auditoralexgreensh/token-optimizer2.5k—~1.7kAutomated safety check: PassCustom licence
Context Auditundefined-ui/second-brain-os1k—~802Automated safety check: PassMIT
HoneyGreen-PT/honey-for-devs311—~3.5kAutomated safety check: PassMIT

Similar skills

  • Speckit Token Budget Usage

    haru/redmine_ai_helper

    Show token usage for every SDD artifact in the active feature, the projected context window for each upcoming phase, and the savings already realized by token-budget (full backups vs current files).

    106 GitHub stars~1k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Context Compression

    guanyang/open-agent-hub

    This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

    975 GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Fleet Auditor

    alexgreensh/token-optimizer

    Cross-system agent token/cost audit (Claude Code, Codex, OpenClaw, Hermes, OpenCode): idle burns, model misrouting, config bloat, with dollar savings.

    2.5k GitHub stars~1.7k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    1k GitHub stars~802 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Honey

    Green-PT/honey-for-devs

    Write less code and say less about it. An agent skill from Green-PT/honey-for-devs.

    311 GitHub stars~3.5k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Mines local Claude Code session transcripts with a deterministic Python pipeline to show what the agent is actually used for, how often it fails and what it costs.

    1.6k GitHub stars~2.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed

More from rohitg00/pro-workflow

All 41 skills in this repo
  • Survey Generator

    rohitg00/pro-workflow

    Compile a structured literature survey on any AI/ML topic. An agent skill from rohitg00/pro-workflow.

    2.9k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Wiki Builder

    rohitg00/pro-workflow

    Start, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base.

    2.9k GitHub stars~1k tokensUpdated 9 days ago
    Auto-check passed
  • Wiki Query

    rohitg00/pro-workflow

    Query pro-workflow wikis via SQLite FTS5 BM25 retrieval. An agent skill from rohitg00/pro-workflow.

    2.9k GitHub starsUsed in 1 repo~554 tokens
    Auto-check passed
  • LLM Council

    rohitg00/pro-workflow

    Provider-agnostic multi-LLM deliberation. An agent skill from rohitg00/pro-workflow.

    2.9k GitHub stars~1.1k tokensUpdated 9 days ago
    Auto-check passed
  • Wiki Research Loop

    rohitg00/pro-workflow

    Auto-grow a pro-workflow wiki by running a budget-capped BFS research loop over pluggable source fetchers (web, arXiv, GitHub).

    2.9k GitHub stars~1.5k tokensUpdated 9 days ago
    Auto-check passed
  • Insights

    rohitg00/pro-workflow

    Show session analytics, learning patterns, correction trends, heatmaps, and productivity metrics.

    2.9k GitHub starsUsed in 1 repo~719 tokens
    Auto-check passed

Questions about Cost Tracker

What does Cost Tracker do?

Track session costs, set budget alerts, and optimize token spend. Cost Tracker is an agent skill from rohitg00/pro-workflow. Track session costs, set budget alerts, and optimize token spend.

When should I use Cost Tracker?

Cost Tracker fits situations like: check costs mid-session; set spending limits.

How do I install Cost Tracker in Claude Code?

Run `npx skills add rohitg00/pro-workflow --skill cost-tracker -a claude-code`. Or copy the skill folder (skills/cost-tracker in rohitg00/pro-workflow) into .claude/skills/cost-tracker in your project. Claude Code loads it when a task matches its description.

How do I install Cost Tracker in Codex?

Run `npx skills add rohitg00/pro-workflow --skill cost-tracker -a codex`. Or copy the skill folder (skills/cost-tracker in rohitg00/pro-workflow) into .agents/skills/cost-tracker in your project. Codex loads it when a task matches its description.

Can I use Cost Tracker in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rohitg00/pro-workflow --skill cost-tracker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cost-tracker, .gemini/skills/cost-tracker, .github/skills/cost-tracker and .opencode/skills/cost-tracker in your project.

What does Cost Tracker need to run?

SKILL.md names no scripts, command-line tools or credentials: Cost Tracker is instructions for the agent only.

Does Cost Tracker access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cost Tracker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cost Tracker use?

No licence was found for Cost Tracker or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Cost Tracker use?

About 814 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cost Tracker?

Skills that share tags, products or a category with Cost Tracker: Speckit Token Budget Usage (haru/redmine_ai_helper, 106 stars), Context Compression (guanyang/open-agent-hub, 975 stars), Fleet Auditor (alexgreensh/token-optimizer, 2.5k stars) and Context Audit (undefined-ui/second-brain-os, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cost Tracker?

rohitg00 (a GitHub user) maintains it in rohitg00/pro-workflow, which has 2,906 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on September 29, 2026.

Source: rohitg00/pro-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.