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.
mdr add crisandrews/clawcode/usage@git:20260410.9e0af4fPins 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
mdr add crisandrews/clawcode/usage@sha256:0fec1abcb6626032The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260410.9e0af4f latest | 2026-04-10 | 9e0af4f | 2,457 B | A | view · diff |
| git:20260410.dbd18db | 2026-04-10 | dbd18db | 1,734 B | A | view · diff |
| git:20260410.af53a96 | 2026-04-10 | af53a96 | 1,422 B | A | view |
Audit of the latest version
- 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
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
Every file in crisandrews/clawcode