agentleFS
KakhramonKakhramon/usage-analyzer/skills/usage/SKILL.md

usage

Skill0 starsChanged 51 days agoMITView on GitHub

Show usage from the team dashboard - who spent the most tokens, how efficiently people are working, or just the user's own numbers. Use when the user asks about their usage, the team's usage, who is burning the shared plan, or how well they are using their sessions.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. jdx/usage★ 1.1ksame name
    2. crisandrews/ClawCode★ 64same name
    3. eltonylfgi-blip/claude-code-usage-guard★ 4same name
    4. sachingulati/claude-statusline★ 2same name
    5. Miyamura80/MCP-Template★ 1same name
    6. wlodarczyk-pawel/claude-usage-monitor★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    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:

    Read ~/.usage-analyzer.json for url and the user's own name.

    line 11
  2. Very specific:

    Add at most two lines of reading, and only where the numbers support it: cache hit under 40% means context is rebuilt every turn, usually a …

    line 34
  3. Distinctive:

    Do not guess numbers for someone whose row is absent — they have simply not synced.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 4 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

Report usage from the team dashboard. Arguments, possibly empty: $ARGUMENTS

  1. Read ~/.usage-analyzer.json for url and the user's own name. If that file is missing, tell them to run the setup skill first and stop.
  2. Fetch the window they asked for, defaulting to 30 days:

    python3 - <<'PY'
    import json, urllib.request
    from datetime import date, timedelta
    from pathlib import Path
    cfg = json.loads((Path.home() / ".usage-analyzer.json").read_text())
    days = 30  # replace with what the user asked for
    since = (date.today() - timedelta(days=days)).isoformat()
    with urllib.request.urlopen(cfg["url"].rstrip("/") + f"/api/stats?since={since}", timeout=30) as r:
        print(json.dumps(json.load(r)["by_user"], indent=2))
    PY
  3. Answer in a short table, biggest consumer first. One row per person, merging their claude and codex rows unless the user asked to split by tool. Derive:
    • total tokens = input + output + cache read + cache write
    • tokens/prompt = total tokens / prompts
    • cache hit = cache read / (cache read + input + cache write), as a percent
    • prompts/session, tools/prompt
  4. Add at most two lines of reading, and only where the numbers support it: cache hit under 40% means context is rebuilt every turn, usually a session that should have been /cleared. Very high tokens/prompt with few tool calls means a big context is being carried for little work.
  5. End with the dashboard URL, since it has the sortable version.

Do not guess numbers for someone whose row is absent — they have simply not synced.

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.