/vibe-coder-local:improvefrom vibe-coder-local
Scans project transcripts for repeated mistakes, groups friction into root-cause patterns, and proposes one fix per pattern (rule edit, hook, skill lesson, or CLAUDE.md) — applies only on user approval.
Ships in vibe-coder-local. 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.
Find the mistakes Claude keeps making in this project and fix the cause, so they do not happen again. Proposes; never applies without a yes.
~/.claude/projects/<slug>/improve-log.md, where <slug> is the project's absolute path with every non-alphanumeric character turned into - (the folder that holds this project's transcripts). Read its Scanned through: time and its Rejected: lines. Never re-propose a rejected item unless new evidence shows it again twice.~/.claude/CLAUDE.md, the repo's CLAUDE.md / AGENTS.md / .claude/rules/, .claude/settings.json hooks, and ~/.claude/skill-lessons/ plus .claude/skill-lessons/.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/session_digest.py" --since "<Scanned through, if any>"
| Option | Effect |
|---|---|
--project PATH | another project (default: current directory) |
--since ISO | only moments after the last run |
--max-sessions N | newest N sessions (default 10); the footer says how many were left out |
--include-latest | also scan the newest session, which is skipped because it is usually this one |
--json | machine-readable, with scanned_through |
It prints only friction moments, each with the end of Claude's message before it: correction (the user pushed back), rejected (a denied tool call, with the user's reason), interrupted, and tool-error with a repeat count. Read the whole transcript around a moment only when the digest line is not enough to name the cause.
Group moments by root cause, not by symptom. For each pattern write: what Claude did, what the user wanted or what broke, and the evidence (session id + timestamp, quoted words).
x3) on the same tool error mean Claude retried without changing approach; the lesson is about what to check first.First pass: removals. Flag rules that are duplicated, contradicted, stale (name a file or command that no longer exists) or already enforced by a hook. Removing a rule is a fix too.
Then, for each pattern, take the first home that works:
CLAUDE.md for facts and conventions of this repo (commands, paths, gotchas).~/.claude/CLAUDE.md for working habits across all repos. Last resort: it loads in every session, so every line costs.Each fix is one or two lines, written as an instruction with its reason: <do X> because <Y>.
One card per finding, numbered, most costly first:
F1 <pattern, one line>
Evidence: <session>@<time> "<quoted words>"; <session>@<time> ...
Home: <file> (edit | add | remove | hook plan)
Change: <exact line(s), or a short diff>
Then ask once: "Which to apply? (e.g. 1 3, all, none)". Wait.
Scanned through: <scanned_through from the digest>, a dated line per applied card, and Rejected: <pattern> for each card the user turned down.CLAUDE.md touched.CLAUDE.md by more than 10 lines, say so and suggest what to merge.Lessons from earlier runs live in two files: ~/.claude/skill-lessons/improve.md (any repo) and .claude/skill-lessons/improve.md at the repo root (this repo only).
- <YYYY-MM-DD>: <do or avoid X> because <Y>. (seen: 1). When a line already says the same thing, raise its seen count and date instead of adding one. Facts about this repo go in the repo file, everything else in the user file. Keep each file under 30 lines by merging or dropping stale lessons.seen: 3: if the ashish-claude-skills source repo is open, propose the edit to plugins/vibe-coder/skills/improve/SKILL.md as a diff and wait for a yes, then delete the lesson once it lands; otherwise say Lesson ready to promote: <line> in the report.Learned: <the line written | nothing>.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ashishyd/ashish-claude-skills --plugin vibe-coder-local