agentleFS
Mahiler1909Mahiler1909/burnlog/skills/monitor/SKILL.md

monitor

Skill0 starsChanged 8 months agoMITView on GitHub

Monitor your AI coding token spend using burnlog. Use this skill proactively to check daily spend, budget status, waste patterns, and efficiency before and after working on tasks. Invoke when the user says: '/burnlog:monitor', 'how much have I spent', 'check my spend', 'check my budget', 'am I wasting tokens', 'cuanto llevo gastado', 'revisa mi gasto'.

  • Installs packages

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use spec, debug and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use burnlog to monitor AI coding token spend.

    line 8
  2. Distinctive:

    Start of session: Check today's spend and budget status so the user knows where they stand.

    line 14
  3. Distinctive:

    Before a large task: Check waste patterns to avoid known pitfalls.

    line 15
  4. Very specific:

    IMPORTANT: Run burnlog commands sequentially, not in parallel.

    line 19
  5. Distinctive:

    When waste is found, relay the suggestion to the user — these are concrete actions to reduce spend.

    line 59
  6. Distinctive:

    Use currency format: $X.XX

    line 118
  7. Distinctive:

    If waste is detected, include the suggestion — don't just report the number

    line 120
  8. Distinctive:

    Keep it concise — the user wants a quick status, not a full report

    line 122

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

burnlog monitor

Use burnlog to monitor AI coding token spend. All commands output JSON for easy parsing.

Requires: burnlog installed (npm install -g burnlog) or available via npx burnlog.

When to use

  • Start of session: Check today's spend and budget status so the user knows where they stand.
  • Before a large task: Check waste patterns to avoid known pitfalls.
  • After completing work: Report how much the session/branch cost and its efficiency.
  • When the user asks: Any question about spend, budget, waste, or efficiency.

IMPORTANT: Run burnlog commands sequentially, not in parallel. Parallel execution causes cascading failures due to shared file locks on the JSONL data store.

Commands

Quick daily check

npx burnlog today -f json

Flags: -f

Returns: { date, cost, sessions, commits, efficiencyScore, vsYesterday }. Summarize the spend, session count, and efficiency score. Highlight the vs-yesterday comparison.

Budget status

npx burnlog budget -f json

Flags: -f

Returns current spend vs configured limits (daily/weekly/monthly) with projections. If no budget is configured, suggest the user set one:

npx burnlog budget set --daily 25 --monthly 500

Waste detection

npx burnlog waste -f json
npx burnlog waste -p 7d -f json          # last 7 days only
npx burnlog waste --project ./my-app -f json

Flags: -p, --period <period> (default 30d), --project <path>, -f

Returns waste patterns found in recent sessions with estimated wasted amount and actionable suggestions. The 9 patterns are: retry loop, debugging loop, abandoned session, context rebuild, excessive exploration, error cascade, stalled exploration, wrong approach, high cost/line.

When waste is found, relay the suggestion to the user — these are concrete actions to reduce spend.

Efficiency trends

npx burnlog trends -f json
npx burnlog trends -w 8 -f json          # last 8 weeks

Flags: -w, --weeks <n> (default 4), -f

Returns weekly trends (cost, sessions, efficiency score) for the last N weeks. Highlight whether efficiency is improving or declining. Does NOT accept -p/--period — use -w to control the time window.

Session deep dive

npx burnlog sessions -s cost -l 5 -f json
npx burnlog sessions -a -f json          # all sessions, no limit
npx burnlog sessions -p 42d -f json      # sessions from last 42 days

Flags: -p, --period <period>, -s, --sort <field> (date|cost|tokens, default date), -l, --limit <n> (default 20), -a, --all (no limit), --project <path>, -f

Returns sessions sorted by the chosen field. To drill into a specific one:

npx burnlog session <id> -f json

Branch cost

npx burnlog branch <branch-name> -f json

Flags: --project <path>, -f

Returns cost breakdown for a branch: total cost, $/commit, $/line, session list. Useful after completing a feature to report its total cost.

Compare two branches:

npx burnlog branch <branch-a> <branch-b> -f json

Full report

npx burnlog report -f json
npx burnlog report -p 90d --project ./my-app -f json

Flags: -p, --period <period> (default 30d), --project <path>, -f

Returns dashboard for the given period: spend by project, model, category, outcome, and daily breakdown.

How to present results

  • Lead with the most actionable number (today's spend, budget remaining, waste found)
  • Use currency format: $X.XX
  • Mention efficiency score as X/100
  • If waste is detected, include the suggestion — don't just report the number
  • Compare to yesterday or previous week when data is available
  • Keep it concise — the user wants a quick status, not a full report

Flags

Universal (all commands):

  • -f json — always use this for programmatic parsing

Global option (passed before the subcommand):

  • --offline — skip remote pricing fetch, use bundled data (npx burnlog --offline today -f json)

Per-command only (see each command above for which flags it accepts):

  • -p, --period <period> — time window, e.g. 7d, 30d, 90d (waste, sessions, report)
  • --project <path> — filter by project (waste, sessions, report, branch)
  • -w, --weeks <n> — number of weeks (trends only)
  • -s, --sort, -l, --limit, -a, --all — sorting and pagination (sessions only)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.