/bork:skills-refinefrom bork
Analyzes session feedback after a skill invocation and proposes edits to fold that feedback into the skill's SKILL.md. Per-proposal approval, nothing auto-applies.
Ships in bork. Installing the plugin adds it to Claude Code.
You are running the /skills-refine command. The job is to look at what happened after a Skill ran in the current session — the corrections, the clarifications, the manual verifications, the "no, do it this way" exchanges — and propose edits to that skill's SKILL.md so the same back-and-forth wouldn't be needed next time.
Per-proposal approval. Nothing auto-applies. Skill files evolve carefully or they bloat into uselessness.
$ARGUMENTS — optional. One of:
writing-commits) — focus on the most recent invocation of that skill in this session.The current session's transcript lives at ~/.claude/projects/<encoded-cwd>/<session-id>.jsonl, where <encoded-cwd> replaces / with - and prepends a -. Take the most recently modified .jsonl in that directory.
If no transcript is found or the session is empty, stop with: "No active session transcript found."
Scan the transcript for tool_use entries where the tool name is Skill. Each carries a skill: argument.
$ARGUMENTS names a skill, find the most recent invocation matching that name.If none exist in this session, stop with: "No Skill invocations found in this session — nothing to refine."
Record:
plugin.json or ~/.claude/plugins/cache/*/skills/**/SKILL.md).Read the target SKILL.md in full. Hold its current rules, workflow, and "Important rules" footer in working memory — every proposal must be checked against what's already there before being raised.
Scan the slice from Step 1. Tag each signal with what it suggests:
| Signal | What it suggests |
|---|---|
| Assistant asked a clarifying question the user answered with a stable preference | Skill should default that preference or check it upfront. |
| User said "no", "don't", "actually" and redirected | Missing rule or wrong default. |
| Assistant produced output that didn't compile / didn't match style / referenced a missing file | Missing precondition check or context-gathering step. |
| User added context that should have been gathered automatically (file paths, conventions, prior decisions) | Missing discovery step. |
| User re-prompted because the output drifted past scope | Missing scope-guard rule. |
| User accepted output unchanged with a brief "yes" or "perfect" | No signal — skip. |
For each tagged signal, capture: the message excerpt (≤120 chars), what the skill currently says (or doesn't), and what would have made the manual step unnecessary.
Throw out signals that won't help future runs. A proposal is only worth raising if you can answer yes to both:
Drop:
If nothing survives the filter, stop with: "Reviewed N exchanges; nothing generalizes into a skill edit. Session-specific context is better handled via memory."
For each surviving signal, draft a concrete edit. Each proposal has:
P1, P2, …Order proposals by impact: rules that prevent re-prompts > rules that add verification > rules that change defaults > new context-gathering steps.
Present proposals one at a time via AskUserQuestion. For each, offer four options:
Don't batch. One question per proposal. The user's reasoning on one often changes how they vote on the next.
For each accepted proposal:
Print to chat:
plugin.json, mention it./skills-suggest and stop.git commit. Edits land in the working tree; let the user review and commit./skills-audit.superpowers:writing-skills is installed, suggest the user run it after applying edits to verify the SKILL.md still parses and triggers correctly.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub borkweb/skills --plugin bork8 commands in this plugin
/commitArgumentsCreate a conventional commit message by analyzing staged changes/laymanArgumentsRestate something in plain, succinct, jargon-free English/pre-pushPre-Push Safety NetImportant-only safety review of the diff a push would send. Runs on request, loads the review checklist and reports only IMPORTANT findings (SQL injection, auth gaps, race conditions, API contract breaks, weakened gates). It reports and never changes or stops a push./session-budgetProcessAssess whether to compact/clear this session and prepare a reinit-ready handoff/skills-auditAudit skills for conflicting instructions, runtime compatibility, invocation, repeated work and selective loading. Recommendations only unless changes are explicitly requested./skills-suggestAudit recent sessions for repeated tasks and AI-output-then-manual-verification patterns. Produces a ranked list of skill candidates and a drafted SKILL.md for the top pick. Use when asked to "what should I turn into a skill", "suggest skills", "audit my prompts", or run periodically (weekly/monthly).