Mines session transcripts for recurring agent mistakes, permission friction, and violated rules, then proposes ranked one-line fixes like CLAUDE.md rules, allowlist entries, or script replacements. Use after frustrating sessions or via /tune.
Ships in daily. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/tune — audit the current project's harness against recent sessions
/tune all — widen across every project under ~/.claude/projects/
Answer one question: what keeps going wrong across sessions, and what one-line change would make it impossible next time? Correcting the agent fixes one session; correcting the harness fixes every session after it. The evidence is already on disk — the transcripts recorded every correction, every retyped instruction, every permission prompt. This skill reads them so the user doesn't repeat them.
Scope: default is the current project's transcripts — the last ~10
sessions or 2 weeks, whichever is smaller — from
~/.claude/projects/<project-dir>/*.jsonl (the dir name is the project
path with / → -). /tune all widens to every project; mining gets
shallower per project, say so.
Inventory the harness first — findings only mean something against the
baseline. Read: user + project CLAUDE.md, the installed skills (names +
descriptions), settings.json / settings.local.json (permissions,
hooks). Also read out/tune/learnings.md (past accepted/rejected — don't
re-propose what was rejected), out/tune/principles.md if present
(promoted cross-cutting principles — a lens for judging new findings),
and out/dev/bugfix-log.md if present (recurring root causes are harness
findings too).
Bulk transcript reading is a job for a cheap model, not the frontier
one — spawn the miners with model: haiku, one per evidence stream,
concurrently:
CLAUDE.md rule already exists and
the transcript shows it being violated anyway — prose that failed needs
a mechanism, not more prose.Each miner returns findings as: what happened, quoted transcript lines,
session dates, occurrence count. Full evidence goes to
out/tune/.work/<stream>.md; rank from the files, not the summaries.
Present findings one at a time, highest impact first — evidence (quoted, dated), the proposed change as an exact diff or text, where it goes, and the one-line principle the finding generalizes to: the transferable "why" that would prevent the whole incident class, not just this instance. The user approves, rejects, or edits each before the next is shown. Apply only on an explicit yes.
The escalation ladder — always the weakest mechanism that will actually work:
Prove the rules bite — for the mechanical rungs (allowlist, script, hook), applying isn't done: with the change in place, inject the exact violation it exists to catch, observe the block or failure, revert the injection, observe green again. A config that doesn't fail on its violation is a no-op wearing a diff.
After the session, update out/tune/learnings.md:
| Date | Finding | Proposal | Principle | Verdict | Provenance |
|------|---------|----------|-----------|---------|------------|
| 2026-07-06 | `cat` fails (bat alias), 4 sessions | rule: use Read tool, never cat | prefer harness tools over shell equivalents | accepted | sessions 06-28→07-03 |
| 2026-07-06 | user rejects auto-PR-body edits | (rejected — user prefers manual) | — | rejected | — |
The Provenance column is what makes rules retire-able: a future run that sees the incident class gone can propose the deletion.
Promote recurring principles. When two or more accepted rows — from
this run or any earlier one — share a principle (the same idea, not
necessarily the same words) that isn't already in out/tune/principles.md,
propose adding it there: the two-strike rule applied one level up, with
the same explicit-yes gate as every other change:
- Prefer harness tools over shell equivalents — findings 2026-07-06, 2026-07-14
One line per principle, each citing the findings that earned it. Future runs read the file in Step 0 and weigh new findings against it; sessions that author or rewrite skills and rules read it as a pre-write checklist. A principle retires only when its incident class has vanished — pruning its source rows from learnings.md is housekeeping, not evidence — and retire-ability applies one level up too. Keep the file under ~15 lines: a principles file too long to skim is a rules file wearing a new name.
out/tune/ files — ensure that path is gitignored (quotes come from the
user's private sessions) — and are never sent anywhere.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/daily:tunefrom daily
npx claudepluginhub duthaho/skillhub --plugin daily6 skills in this plugin
/archdeckAnimated explainer slides for programming videos — turns one technical problem (backend, database, system design, frontend, infra) into a deck of 1920×1080 HTML scenes that teach the mechanism: requests travel, scans crawl, races interleave, the bottleneck lights up. Picks a story arc, drafts a storyboard with one shared fact sheet (same data, consistent numbers on every slide) for your approval, then renders standalone per-slide HTML plus one single-file deck with step-by-step reveals, speaker notes, and a clean recording mode, to out/archdeck/<slug>/. No codebase needed. Use for "make slides explaining X for my video", "animated architecture slides for a tutorial", "turn this system design problem into a presentation" — e.g. "/archdeck keyset vs offset pagination". For docs and mermaid diagrams of a real codebase use blueprint; to be taught a topic interactively use learn./cachewisePrompt-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 dollars saved. Tracks before/after in out/cachewise/tracker.md so the next run measures whether a fix worked. Use when the user asks why they hit usage limits so fast, wants their cache hit rate or token spend analyzed, or where their tokens are going — e.g. "/cachewise", "analyze my prompt cache", "what's burning my tokens". For recurring behavior mistakes use tune; for today's schedule use daybrief./daybriefMorning work briefing — "what does my day look like, in one scan?" Gathers today's calendar and emails needing attention (via connected Google MCP tools when available), recent git activity and unfinished work across your local repos, your open tasks (TODO file / assigned GitHub issues), and a quick radar check on topics you track — all in parallel — and renders one compact, prioritized brief in chat, carrying over unfinished focus items from yesterday's saved brief. Every source is optional and degrades gracefully; strictly read-only (never sends email, never touches the calendar, never pushes). Use at the start of a workday or when the user asks "what's on today", "morning brief", "daybrief", "catch me up", "what should I focus on today". For deep research on one topic use pulse instead./learnPersonalized tutor with memory across sessions — "teach me X, at my pace." Builds a syllabus with a pass rubric per unit, teaches one unit per session: a recall quiz on what's due (date-based spaced repetition), examples matched to your background, and an active-recall check graded against the rubric with confidence tags. Progress and weak spots persist in out/learn/<topic>.md, so sessions resume and re-drill what was missed; fact-sensitive content is verified by web search, not memory. Keyless. Use to learn or study a topic — e.g. "/learn rust ownership", "teach me kubernetes", "quiz me on X", "continue the SQL lessons"; "/learn" alone lists topics in progress. For community buzz use pulse; for choosing between technologies use verdict./revisitRevisit dashboard — one scan of everything you parked to re-check later, across every skill's memory. Reads out/*/tracker.md and the other memory files skills leave behind (ideate PARK "revive when", verdict/scout revisit-when triggers, refactor WATCH candidates, learn spaced-repetition due dates, jobfit roles to re-check) and surfaces what's due now: date-based items past their date, trigger-based items whose condition may have fired. Renders one prioritized "due to re-check" list in chat — grouped by skill, most overdue first — quoting the exact tracker line and its revive trigger so you can act or defer. Strictly read-only: it never edits a tracker or fires the follow-up skill; it points, you decide. Use for "what do I need to revisit", "what's due to re-check", "anything parked worth reviving", "show my revisit queue" — e.g. "/revisit", "/revisit ideate".