usage SKILL.md skillA

usage from crisandrews/clawcode is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add crisandrews/clawcode/usage@git:20260410.9e0af4f

Pins git:20260410.9e0af4f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
crisandrews/clawcode
Path
skills/usage/SKILL.md
Versions recorded
3
Latest version
git:20260410.9e0af4f, committed Apr 10, 2026
First version recorded
Apr 10, 2026
Size
2,457 bytes
Repository stars
64
License
MIT

Show usage cost summary — session, today, last 30 days. OpenClaw-compatible format. Works from CLI or messaging. Triggers on /usage, /agent:usage, "cuanto gasté", "agent usage", "cost".

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

# /usage — Cost Summary

Show usage costs in the OpenClaw-compatible format. Works from CLI or messaging channels.

## Output format (matches OpenClaw exactly)

```
💸 Usage cost
Session <cost> · <tokens> tokens
Today <cost>
Last 30d <cost>
```

## Subcommands

- `/usage` — show the cost summary (default)
- `/usage tokens` — compact token display
- `/usage full` — verbose token + cost
- `/usage cost` — same as default

## Steps

1. **Detect surface** (CLI vs messaging channel).

2. **Try to read session cost data** from Claude Code's session store:
   ```bash
   ls ~/.claude/projects/*/\*.jsonl 2>/dev/null | head -3
   ```
   
   NOTE: Claude Code stores session data in `~/.claude/projects/<slug>/*.jsonl`. The plugin cannot reliably read these because:
   - The session slug depends on the current cwd
   - The format is internal to Claude Code
   - Token counts per session are not always available to skills

3. **Fall back to estimate from memory/dreams**:
   - Call `agent_status` MCP tool → get file/chunk counts
   - Bash: `du -sh memory/ | awk '{print $1}'` → memory dir size
   - Bash: `wc -l memory/.dreams/events.jsonl 2>/dev/null | awk '{print $1}'` → event count
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add crisandrews/clawcode/usage@sha256:0fec1abcb6626032

The line at the top of this page pins the label git:20260410.9e0af4f, 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_g2barkevd5chqgjp.svg)](https://markdownregistry.com/a/art_g2barkevd5chqgjp)

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

Versions

The registry has recorded 3 versions of this file, all committed on Apr 10, 2026.

versioncommittedcommitsizeaudit
git:20260410.9e0af4f latest2026-04-10 9e0af4f 2,457 BA view · diff
git:20260410.dbd18db2026-04-10 dbd18db 1,734 BA view · diff
git:20260410.af53a962026-04-10 af53a96 1,422 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 (2457 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

crisandrews/clawcode · 64 stars · license MIT · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_g2barkevd5chqgjp
GET https://markdownregistry.com/api/v1/resolve?ref=crisandrews/clawcode/usage
GET https://markdownregistry.com/api/v1/blob/0fec1abcb6626032908a4a194dec1067274c0e99178f5c29ee117e6d6c2d0dc3

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 crisandrews/clawcode

AGENTS.md AGENTS.md file
crisandrews/clawcode · AGENTS.md
git:20260913.24ad02a · audit A · 64 stars
about SKILL.md skill
crisandrews/clawcode · skills/about/SKILL.md · Show the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version…
git:20260420.6c737f0 · audit A · 64 stars
channels SKILL.md skill
crisandrews/clawcode · skills/channels/SKILL.md · Show messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load…
git:20260913.24ad02a · audit A · 64 stars
compact SKILL.md skill
crisandrews/clawcode · skills/compact/SKILL.md · Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on…
git:20260410.3244338 · audit A · 64 stars
create SKILL.md skill
crisandrews/clawcode · skills/create/SKILL.md · Create a new agent in the current directory with personality files and bootstrap ritual. Triggers on /agent:create…
git:20260418.178e637 · audit A · 64 stars
crons SKILL.md skill
crisandrews/clawcode · skills/crons/SKILL.md · Manage scheduled reminders (crons) — list, add, delete, pause, resume, reconcile, or import from OpenClaw. Triggers on…
git:20260611.9d7ac6a · audit B · 64 stars
doctor SKILL.md skill
crisandrews/clawcode · skills/doctor/SKILL.md · Run diagnostic checks on the agent workspace. Triggers on /agent:doctor, "diagnóstico", "diagnostico", "doctor"…
git:20260611.9d7ac6a · audit A · 64 stars
heartbeat SKILL.md skill
crisandrews/clawcode · skills/heartbeat/SKILL.md · Run agent heartbeat — periodic checks, memory consolidation, proactive work. Triggers on /agent:heartbeat, "heartbeat"…
git:20260611.9d7ac6a · audit A · 64 stars
help SKILL.md skill
crisandrews/clawcode · skills/help/SKILL.md · List available commands the user can invoke. Works from CLI or messaging channels. Triggers on /help, /commands…
git:20260413.55f2d8e · audit A · 64 stars
import SKILL.md skill
crisandrews/clawcode · skills/import/SKILL.md · Import an existing OpenClaw agent from its workspace directory into the current project. Triggers on /agent:import…
git:20260609.3799ece · audit B · 64 stars
live SKILL.md skill
crisandrews/clawcode · skills/live/SKILL.md · Set up, check, reconfigure or disable ClaudeLive conversations for this existing ClawCode agent. Use for /agent:live…
git:20260913.75c1cc1 · audit A · 64 stars
messaging SKILL.md skill
crisandrews/clawcode · skills/messaging/SKILL.md · Set up a messaging channel (WhatsApp, Telegram, Discord, iMessage, Slack) to reach this agent from outside Claude Code…
git:20260419.493ffc9 · audit A · 64 stars

Every file in crisandrews/clawcode

Other files named usage

usage SKILL.md skill
alsk1992/cloddsbot · src/skills/bundled/usage/SKILL.md · Token usage tracking, cost estimation, and usage analytics
git:20260210.cd0fc2e · audit A · 3,076 stars
usage SKILL.md skill
inkatze/planwright · tests/fixtures/script-invocation/clean/skills/usage/SKILL.md
git:20261102.20da3ae · audit C · 4 stars

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