task-token-usage SKILL.md skillA

task-token-usage from platonai/browser4 is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add platonai/browser4/task-token-usage@git:20260710.5764b6f

Pins git:20260710.5764b6f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
platonai/browser4
Path
coworker/skills/task-token-usage/SKILL.md
Versions recorded
1
Latest version
git:20260710.5764b6f, committed Jul 10, 2026
Size
2,803 bytes
Repository stars
1,164
License
Apache-2.0

Analyzes Claude Code session traces (JSONL) and draft task files to report token usage per task. Use when asked about token usage, session costs, or task efficiency metrics.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Task Token Usage

Analyzes Claude Code conversation traces to report token consumption per task.

## When to Use

- "list tasks with token usage"
- "show me token usage for each task"
- "how many tokens did task X use?"
- "what tasks ran in the last N hours?"
- "compare token usage across tasks"

## How It Works

1. Scans `~/.claude/projects/<project>/` for JSONL session traces
2. Extracts `input_tokens`, `output_tokens`, `cache_read_input_tokens` from each assistant message
3. Optionally matches sessions to draft task files in `coworker/tasks/issues/draft/`
4. Prints a summary table grouped by task

## Usage

Run the bundled script:

```bash
python3 coworker/skills/task-token-usage/scripts/list-tasks.py [OPTIONS]
```

### Options

| Flag | Description |
|------|-------------|
| `--recent N` | Only show sessions from last N hours (default: 24) |
| `-d, --detail` | Per-session breakdown instead of grouped summary |
| `-a, --all` | Show all sessions (no time filter) |

### Examples

```bash
# Summary of last 12 hours
python3 coworker/skills/task-token-usage/scripts/list-tasks.py --recent 12

# Detailed per-session view for all time
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add platonai/browser4/task-token-usage@sha256:30be332fe6d8b8d8

The line at the top of this page pins the label git:20260710.5764b6f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2ntratker43kw3h6.svg)](https://markdownregistry.com/a/art_2ntratker43kw3h6)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 10, 2026.

versioncommittedcommitsizeaudit
git:20260710.5764b6f latest2026-07-10 5764b6f 2,803 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2803 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

platonai/browser4 · 1,164 stars · license Apache-2.0 · pushed 2026-10-18 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2ntratker43kw3h6
GET https://markdownregistry.com/api/v1/resolve?ref=platonai/browser4/task-token-usage
GET https://markdownregistry.com/api/v1/blob/30be332fe6d8b8d8cc4d2898d6a674b74c0b027e19326b9afdb41e88554c14be

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from platonai/browser4

issues-batch-fix SKILL.md skill
platonai/browser4 · .trae/skills/issues-batch-fix/SKILL.md · Fix Browser4 test-issue reports under coworker/tasks/issues/draft via the locate-fix-verify-docs loop. Use when the…
git:20261005.8889a9b · audit A · 1,164 stars
AGENTS.md AGENTS.md file
platonai/browser4 · AGENTS.md
git:20261007.d600238 · audit A · 1,164 stars
CLAUDE.md CLAUDE.md file
platonai/browser4 · CLAUDE.md
git:20260806.5de4fd9 · audit A · 1,164 stars
data-validation SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/data-validation/SKILL.md · Validates data against common and custom rules (required fields, formats, ranges). Use when checking data quality…
v1.0.0 · audit A · 1,164 stars
form-filling SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/form-filling/SKILL.md · Automatically fills web forms using provided field data and can optionally submit the form. Use when automating form…
v1.0.0 · audit A · 1,164 stars
mcp-builder SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/mcp-builder/SKILL.md · Guide for creating advanced-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external…
git:20260526.099a5a1 · audit A · 1,164 stars
pdf SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/pdf/SKILL.md · Extracts text and tables from PDF files, fills PDF forms, and creates/merges/splits PDF documents. Use when users…
git:20260701.bfe8f32 · audit A · 1,164 stars
weather SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/weather/SKILL.md · Fetches current weather conditions and a 7-day forecast for a requested location using Open-Meteo geocoding and…
v1.0.0 · audit A · 1,164 stars
web-scraping SKILL.md skill
platonai/browser4 · browser4-agentic/src/main/resources/skills/web-scraping/SKILL.md · Extracts data from web pages using browser automation and CSS/JavaScript selectors. Use when you need to scrape…
v1.0.0 · audit A · 1,164 stars
script-runner SKILL.md skill
platonai/browser4 · browser4-agentic/src/test/resources/skills/script-runner/SKILL.md · A tiny test skill that runs a safe python script and echoes argv. Use to validate the skill script execution pipeline…
v1.0.0 · audit A · 1,164 stars
coworker SKILL.md skill
platonai/browser4 · coworker/skills/coworker/SKILL.md · Reference for the Coworker file-queue automation system: task lifecycle, directory state machine, PowerShell workers…
git:20260906.987bf9a · audit A · 1,164 stars
maintenance SKILL.md skill
platonai/browser4 · coworker/skills/maintenance/SKILL.md · Orchestrates 30 check scripts across 9 categories (code, tests, docs, SKILLs, deps, infra). Use when asked to run…
git:20260714.a03c08f · audit A · 1,164 stars

Every file in platonai/browser4

Browse by kind, by grade A, or by owner.