/corgi:improve-skillfrom corgi
Analyzes recent sessions to identify gaps and improve existing skills or scaffold new ones. Supports retro, edit, and create modes based on user intent.
Ships in corgi. 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.
Read when SKILL.md points to them.
Read ../_shared/conventions.md first.
Done when: the diff or the new skill is previewed and written, free of workspace detail, or the conversation summary of gaps is printed.
Skill improves only from real observed gap - thing an agent (often you, just now) did wrong, slow, or worked around, that sharper wording prevents. This conversation IS the failing test. Don't imagine the gap - you watched it. Close with smallest generic edit, stripped of workspace-specific detail AND of environment-specific assumptions - assert only the lesson that transfers to other apps, not a one-stack quirk as a universal rule.
Evidence, never imagination. No "while I'm here" adds. No session moment (or explicit user ask) behind a change → don't make it.
SKILL.md) → edit mode. Close the gap in
that skill (Edit mode).A skill is one place a lesson can live, and rarely the strongest. Before writing a rule, pick the cheapest layer that stops this for good. Ask in this order:
Removing counts. A line that changes no behaviour is a finding. So is a rule a check now enforces.
A skill that hand-copies a corgi flag list or schema table goes stale: point at corgi vocab <name>,
and run corgi docs commands <the skill> after any edit that names a corgi command.
python3 references/mine_sessions.py --last 30 (every ~/.claude*/projects): tool errors, the same
failing call sent twice, skill use, where the person stepped in. Open the transcript behind any
line you will act on. Its output holds real project data and stays out of the skill. In a corgi
workspace, the unattended runs count too: corgi agent scorecard, corgi agent selfcheck,
corgi agent history --workspace . --json, and a run's own log with corgi agent history log <ref>.
The friction agents wrote down as it happened is in corgi feedback list --json: each note is
evidence already, with the corgi version it was written against.Edit nothing. Return:
[skill?] symptom → root cause.Pinpoint, concrete. No vague "could be tighter."
SKILL.md. Find where it belongs. Already covered? → sharpen
wording / close the loophole, not a duplicate bullet.
Symlink check: target folder, SKILL.md, or its plugin dir a symlink → say so,
resolve the real path, edit the real target. The diff (and any commit) lands in THAT
repo, not the one you're standing in - name it in the preview.description = triggers only, never a
workflow summary (agents follow it instead of reading the body).<svc> / <producer> / "an ORM migration". Real example fine only
after every identifying token gone.Big or discipline-enforcing change (needs baseline / pressure testing) +
superpowers:writing-skills installed → use it. This skill = fast path for a precise
edit from a gap you lived.
The named folder / SKILL.md doesn't exist - the user wants a skill BORN from what just
happened (this session's friction, or a workflow you just drove end to end).
SKILL.md at the path, matching the plugin's voice + density (read a
sibling skill): frontmatter name (the folder name) + a description that is
triggers only (phrases the user will say, never a workflow summary), then a tight
body - Overview, the steps / modes, Guardrails, Red flags - every line grounded in the
lived evidence, no filler. Pair a command file ONLY if the plugin gives each skill one
(match its naming).<svc> / <scheme> / placeholders.
A real example is fine only after every identifying token is gone.Big or discipline-enforcing skill (needs baseline + pressure testing) +
superpowers:writing-skills installed → use it; this create path is the fast scaffold for
a skill you can already describe from lived evidence.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andriiklymiuk/corgi --plugin corgi33 skills in this plugin
/agentUse for corgi agent mode: Remote Control from a phone, the session board ("who is waiting on me"), watching trackers and PRs ("tell me when someone comments"), why a watch fired, and handoffs ("leave a handoff for ABC-7"). NOT compose authoring (corgi), starting a stack (run), debugging (debug)./alignUse when the user says "align", "let's agree first", or a request can be read two ways before any code. Reaches a shared understanding cheaply, then codes. NOT a plan gate or a long interview./autopilotUse for a SUPERVISED loop that drains the ticket queue into draft PRs: "autopilot", "keep shipping the queue", "drain the backlog overnight". One spec gate per batch, never merges. NOT a single batch (/corgi-queue)./before-afterUse to prove a visual change against what it replaced: "before and after", "screenshot comparison", "attach screenshots to the PR". Captures the same screen on the base branch and yours. NOT a design match (design-parity) or store shots (mobile-screenshots)./budgetUse for "how much budget do I have", "can I start another task", "when does the limit reset". Reads `corgi agent usage --json`, answers in numbers, suggests `corgi agent carry` near a limit./ciUse to put a corgi stack in CI or run e2e across repos: "set up CI for this workspace", "wire this to GitHub Actions/GitLab CI", "full-stack e2e on the PR". NOT compose authoring, local runs, broken stacks or PR review.Other plugins' skills for the same job