cachewise SKILL.md skillA

cachewise from duthaho/skillhub is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add duthaho/skillhub/cachewise@git:20260908.9f72705

Pins git:20260908.9f72705 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
duthaho/skillhub
Path
.claude/skills/cachewise/SKILL.md
Versions recorded
1
Latest version
git:20260908.9f72705, committed Sep 8, 2026
Size
6,154 bytes
Repository stars
9
License
MIT

Prompt-cache economics forensics — why your Claude Code tokens burn so fast, with the numbers to prove it. Parses local ~/.claude transcripts (0 tokens, a bundled Python script does the counting) and attributes every cache-miss rebuild to a cause — idle gaps past the 5-min TTL, mid-session model/effort switches, prefix churn (MCP tool-lists, edited CLAUDE.md, dynamic content), and cold re-boots of a session you could have resumed — each priced in real USD, then prescribes the fixes ranked by…

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

# cachewise — where your cache dollars leak

`/cachewise` — analyze the last 30 days across every project
`/cachewise --days N` — widen or narrow the window

Answer one question: **which habits are rebuilding cache you already paid
for, and what would each fix save?** Prompt caching makes a cache read cost
0.1× and a rebuild cost 1.25× — so every avoidable miss is a ~12× markup on
that slice of context. ccusage and `/cost` count the tokens; cachewise says
*why* the expensive ones happened and *what to change*. The evidence is on
disk — the transcripts recorded every cache write; this skill attributes
them so the numbers, not folklore, drive the fix.

## Step 0 — Run the analyzer

The counting is deterministic and token-free — **never read the raw JSONL
yourself** (parsing thousands of transcript lines with the model is the
exact token burn this skill exists to stop). Run the bundled script:

```bash
python3 .claude/skills/cachewise/scripts/analyze.py --days 30
```

It scans `~/.claude/projects/**/*.jsonl` and prints one JSON document.
No `~/.claude` data (fresh machine, or none in the window) → the script
returns zero turns; say so plainly and stop, there's nothing to diagnose.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add duthaho/skillhub/cachewise@sha256:eeb6f0276dbe22ab

The line at the top of this page pins the label git:20260908.9f72705, 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_hffrnpw7vlfuf3eo.svg)](https://markdownregistry.com/a/art_hffrnpw7vlfuf3eo)

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

Versions

The registry has recorded 1 version of this file, committed on Sep 8, 2026.

versioncommittedcommitsizeaudit
git:20260908.9f72705 latest2026-09-08 9f72705 6,154 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 (6154 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

duthaho/skillhub · 9 stars · license MIT · pushed 2026-10-31 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_hffrnpw7vlfuf3eo
GET https://markdownregistry.com/api/v1/resolve?ref=duthaho/skillhub/cachewise
GET https://markdownregistry.com/api/v1/blob/eeb6f0276dbe22abc8829835763535d3aedd7d1b9fdb6e0f76839b62bd094c6c

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 duthaho/skillhub

archdeck SKILL.md skill
duthaho/skillhub · .claude/skills/archdeck/SKILL.md · Animated explainer slides for programming videos — turns one technical problem (backend, database, system design…
git:20261031.6e2d2c5 · audit A · 9 stars
autopilot SKILL.md skill
duthaho/skillhub · .claude/skills/autopilot/SKILL.md · The whole coding loop on one deliberate yes: map, spec, critic-hardened plan, GitHub issues, parallel worktree…
git:20260718.589e792 · audit A · 9 stars
blueprint SKILL.md skill
duthaho/skillhub · .claude/skills/blueprint/SKILL.md · Human-facing documentation, architecture docs, and mermaid diagrams for a codebase, a module, or a feature — "draw me…
git:20260908.b98f098 · audit A · 9 stars
bugfix SKILL.md skill
duthaho/skillhub · .claude/skills/bugfix/SKILL.md · Lightweight bug-fixing loop — reproduce → root-cause → fix test-first → verify — deliberately separate from the…
git:20260811.fdc967e · audit A · 9 stars
daybrief SKILL.md skill
duthaho/skillhub · .claude/skills/daybrief/SKILL.md · Morning work briefing — "what does my day look like, in one scan?" Gathers today's calendar and emails needing…
git:20260719.7789d04 · audit A · 9 stars
done SKILL.md skill
duthaho/skillhub · .claude/skills/done/SKILL.md · End-of-session shipping gate — "prove it works, then ship it." Runs an evidence checklist (full test suite…
git:20260811.fdc967e · audit A · 9 stars
factcheck SKILL.md skill
duthaho/skillhub · .claude/skills/factcheck/SKILL.md · Adversarial citation and claim audit for any document — "do these sources actually say what the text claims?" Takes a…
git:20260710.eb7764e · audit A · 9 stars
feature SKILL.md skill
duthaho/skillhub · .claude/skills/feature/SKILL.md · End-to-end feature workflow around the agent — spec by interview, a plan of 2–5-minute tasks, test-first execution with…
git:20260714.463e996 · audit A · 9 stars
ideate SKILL.md skill
duthaho/skillhub · .claude/skills/ideate/SKILL.md · Structured idea generation for a project or a blank-slate problem — ideas worth pursuing, not the first one that…
git:20260716.ac81253 · audit A · 9 stars
jobfit SKILL.md skill
duthaho/skillhub · .claude/skills/jobfit/SKILL.md · Job-fit evaluation and discovery for job seekers — "find roles that fit me" and "should I apply to this one?" DISCOVER…
git:20260714.dbe7dc7 · audit A · 9 stars
learn SKILL.md skill
duthaho/skillhub · .claude/skills/learn/SKILL.md · Personalized tutor with memory across sessions — "teach me X, at my pace." Builds a syllabus with a pass rubric per…
git:20260817.aedd39a · audit A · 9 stars
map SKILL.md skill
duthaho/skillhub · .claude/skills/map/SKILL.md · Codebase orientation for an unfamiliar or large repo — "map this before I work in it." Fans out read-only Explore…
git:20260729.22fe8ab · audit A · 9 stars

Every file in duthaho/skillhub

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