/victorhahn-skills:skill-use-auditfrom victorhahn-skills
Audit how well an installed skill performed in the current Claude Code session (or in a saved session log) and propose concrete improvements to the skill's SKILL.md. Reads the live session transcript, finds every invocation of the target skill, evaluates effectiveness against signals like trigger accuracy, post-invocation user steering, corrections, re-prompts, abandonment, and whether the user appeared satisfied with the outcome. Produces an assessment, a diff-style proposal for SKILL.md changes, asks for user approval, then writes the changes to wherever the skill lives on disk — and if the skill lives in a git repo, offers to stage and commit. Use this skill whenever the user says "/skill-use-audit", "audit a skill", "evaluate that skill", "how did /<name> do", "review the skill we just used", "evaluate effectiveness of <skill>", "check how <skill> performed", "grade the skill", or names a specific skill they want introspected (e.g. "/skill-use-audit /brainstorming", "audit /post-deploy-signal-check"). Also trigger when the user asks "why didn't X trigger when it should have" or "that skill needed too much hand-holding, what should we change" — those are skill-use-audit questions even without the literal phrase. Do NOT trigger for generic "review my code" requests (that's a code review), for creating new skills (that's /skill-creator), or for description-only triggering optimization (that's a separate flow inside /skill-creator).
Trending skills
7-day visitors to each skill page
Ships in victorhahn-skills. 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; scripts run unread.
You are running a retrospective on a single named skill. The user has invoked it (or several skills, or none of the ones you'd expect) in a real conversation, and they want a grounded read on how the skill actually performed in practice — followed by surgical, evidence-backed improvements to the skill's SKILL.md.
This is not a vibes-only review. The conversation transcript is on disk, and you should read it directly. Speculation about "what the skill probably did" is the wrong move when the actual record is available.
SKILL.md, get explicit user approval, write the changes, and offer to commit if the skill lives in a git repoEach phase has clear inputs/outputs. Do not skip ahead. If a phase fails (e.g. you genuinely can't find the skill on disk), stop and ask the user rather than guessing.
The user typically passes the skill name as an argument: /skill-use-audit /brainstorming, /skill-use-audit brainstorming, /skill-use-audit post-deploy-signal-check. Normalize by stripping the leading /.
Search standard locations in order, stopping at the first definitive hit:
~/.claude/skills/<name>/SKILL.md
~/.claude/plugins/*/skills/<name>/SKILL.md
~/.claude/plugins/*/plugins/*/skills/<name>/SKILL.md
<current-project>/.claude/skills/<name>/SKILL.md
<current-project>/skills/<name>/SKILL.md
If the user works in a multi-repo skills workspace (e.g. the parent directory contains several *-skills folders), also check those. A quick find ~/Documents -maxdepth 6 -path "*/skills/<name>/SKILL.md" 2>/dev/null is fine as a fallback — keep depth bounded so it returns quickly.
If multiple matches: show all candidates to the user and ask which one to audit. Don't silently pick one — different copies may have diverged.
If zero matches: tell the user, list the paths you searched, and ask them to point at the SKILL.md directly.
Read the located SKILL.md in full. You'll need its current description and body to (a) judge whether invocations were appropriate per the stated triggers and (b) propose targeted edits later.
Claude Code persists session transcripts as JSONL under ~/.claude/projects/<sanitized-cwd>/<session-id>.jsonl. The sanitization rule is straightforward: the absolute cwd has / replaced with - and a leading - prefixed. For example, /Users/alice/projects/foo becomes -Users-alice-projects-foo.
Default behavior: audit the current session. The current session's JSONL is the most-recently-modified file in the project's transcript directory. Identify it like this:
# Most recent transcript for the current working directory
PROJECT_DIR=~/.claude/projects/$(pwd | sed 's|/|-|g; s|^|-|; s|-Users-|-Users-|')
ls -t "$PROJECT_DIR"/*.jsonl 2>/dev/null | head -1
If the user explicitly passes a different log path or session id, use that instead. Accepted forms:
.jsonl file~/.claude/projects/*/<session-id>.jsonl)If you can't find any transcript at all, stop and tell the user — don't fabricate invocations from memory of the conversation. The script below depends on the JSONL.
Use the helper script to pull invocations out of the transcript(s):
python3 <skill-dir>/scripts/extract_invocations.py \
--skill <skill-name> \
--transcript <path-to-jsonl> \
[--transcript <path-to-jsonl> ...]
The script emits a JSON document with this shape, one entry per invocation:
{
"skill": "brainstorming",
"transcripts_scanned": 1,
"invocations": [
{
"session_id": "...",
"timestamp": "2026-05-21T15:55:38Z",
"trigger_user_message": "<the user message immediately preceding the invocation>",
"skill_args": "<the args passed to the Skill tool>",
"subsequent_user_messages": ["...", "..."],
"subsequent_tool_uses": ["Bash", "Edit", "Write"],
"ended_with_user_correction": true,
"correction_excerpts": ["no, that's not what I meant", "stop, back up"]
}
],
"near_misses": [
{
"timestamp": "...",
"user_message": "<message that probably should have triggered the skill but didn't>",
"what_was_used_instead": "<the tool/skill that actually ran, or 'nothing'>"
}
]
}
Read the JSON carefully. If invocations is empty AND near_misses is empty, the audit reduces to "the skill didn't run and arguably didn't need to" — say so plainly and stop early rather than manufacturing findings.
For each invocation, the most important signal is what happened after. Read the transcript directly around each invocation timestamp — the script's summary fields are a starting point, not a substitute for the actual exchange. You'll need the raw context to judge whether the skill earned its keep.
Use this rubric. Each axis gets a short verdict (one of: strong, mixed, weak, n/a) and one or two lines of evidence cited from the transcript.
Trigger accuracy — did the skill fire when it should have, and not when it shouldn't? Cross-reference the user messages against the skill's stated triggers in the description. Note both false positives (fired but shouldn't have) and false negatives (should have fired, didn't — these are the near_misses from the extractor).
Steering required after invocation — how much did the user have to redirect, clarify, or correct after the skill kicked in? Count user messages that read as corrections ("no", "that's wrong", "back up", "actually let's…", "stop"). A skill that needs heavy steering is either underspecified, overconfident, or both.
Output acceptance — did the user accept the skill's output, or rewrite/discard it? Look for follow-ups like "ok, do that" (accepted) vs. "let me write that myself" or extended re-prompting on the same task (rejected).
Task completion — did the skill see its work through to a sensible stopping point, or did it stall, loop, or abandon the task? Watch for: long tool-use chains with no resolution, repeated reads of the same file, the user manually finishing what the skill started.
Triggering friction — even when it did fire, was there an awkward handoff? E.g. the user typed /skill-name and the skill started by re-asking for info that was already obvious from context.
Scope creep / scope under-shoot — did the skill stay within its stated remit? Bleeding into adjacent skills' territory is a sign the description (or body) isn't drawing a clear enough boundary.
After scoring each axis, write a one-paragraph overall assessment. Be honest. If the skill performed well, say so and recommend no changes. If it performed poorly, name the specific failure modes.
See references/eval-rubric.md for worked examples of each axis with transcript excerpts and the kinds of edits that follow from each diagnosis.
Based on the evaluation, draft a concrete set of edits to the located SKILL.md. Each edit must be tied to a specific finding from Phase 3. Vague suggestions ("make it clearer") are not acceptable — the user can't approve what they can't picture. Show the exact old_string → new_string you propose.
Common patterns:
If you reach this point and have no concrete edits to propose, say so and end the audit — a skill that's working well doesn't need churn.
Show the user:
SKILL.md edits as a unified diff (old vs new), grouped by findingThen ask explicitly: "Apply these edits to <path-to-SKILL.md>?" Wait for an explicit yes. Don't proceed on ambiguous answers.
After approval, use the Edit tool on the SKILL.md at the path located in Phase 1. Make the edits exactly as proposed — if the user said yes to the diff, the diff is what they approved.
After applying, check whether the SKILL.md lives in a git repo:
git -C <dir-of-SKILL.md> rev-parse --is-inside-work-tree 2>/dev/null
If yes, show the user the diff (git -C <dir> diff -- SKILL.md) and ask: "Stage and commit these changes? If so, on what branch?" Default behavior:
main or master, refuse to commit there directly. Offer to branch off using a conventional name like chore/skill-use-audit-<skill-name> and commit there.chore(skills): refine <skill-name> based on session audit (or fix(skills): if the audit caught a real bug in the skill).SKILL.md (and any reference files you edited). Never git add -A.If not in a git repo, just confirm the file was written and stop.
/unfuck's temperament applied to a skill file. A bad audit produces a bloated SKILL.md full of CYA clauses. A good audit produces three sharp edits that fix the actual observed failure modes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (victorhahn/skills) — no native marketplace selected
npx claudepluginhub p/victorhahn-victorhahn-skills18 skills in this plugin
/ai-engineering-digestFetch a weekly briefing of what's trending and being discussed in the AI engineering landscape — HN, Reddit, GitHub — and synthesize it into a structured digest covering technical signal, notable projects, and the professional/cultural discourse around AI. Use when the user says "/ai-engineering-digest", "run the digest", "what's the ai meta this week", "weekly ai pulse", "what's trending in ai dev", or wants a broad briefing on the current state of AI engineering. Accepts an optional topic arg for on-demand narrower queries ("/ai-engineering-digest mcp")./aws-solutions-architectExpert AWS solutions architect with deep knowledge of AWS services, architecture patterns, best practices, cost optimization strategies, and Terraform AWS provider implementation. Use this skill whenever the user asks about AWS architecture, AWS service selection, infrastructure design, cost optimization, rightsizing, savings plans, Reserved Instances, AWS debugging, CloudWatch, IAM, networking (VPCs, subnets, security groups, Transit Gateway), ECS/EKS, Lambda, DynamoDB, RDS, S3, SQS/SNS, API Gateway, or any AWS service question. Also trigger for Terraform AWS provider questions, terraform-aws module usage, writing or reviewing .tf files that use AWS resources, and any question that starts with "what's the best way to..." in an AWS or infrastructure context. When in doubt about whether this is an AWS question, use this skill — it's better to over-apply than miss a relevant question.
/brainstormingTurn vague ideas into approved designs through collaborative dialogue — one question at a time. Use this whenever the user wants to "build", "design", "add", "explore", or "figure out" something non-trivial, even if they don't explicitly ask to brainstorm. Especially use when scope is unclear, multiple approaches are viable, or the request could mean several different things. Skip only for typo fixes, mechanical refactors with obvious shape, or when the user explicitly says "just do it"./cli-creatorBuild a durable, installable Node/TypeScript CLI that Claude Code can run by command name from any working directory. Use this skill whenever the user wants to create a production-grade command-line tool from API docs, an OpenAPI spec, curl examples, an SDK, an internal web app, or an existing script — and wants it to expose composable commands, return stable JSON, manage auth cleanly, and pair with a companion skill. Trigger on: "build a CLI for X", "create a command-line tool", "turn these curls into a CLI", "wrap this API", "make a durable command I can run from anywhere", "CLI from OpenAPI", "installable tool for X", "package this script as a command", or any request to turn a workflow into a persistent binary. This is for durable tools, not one-off scripts — if a short script in the current repo solves the task, write it there instead. If the same tool also needs a polished interactive surface (multi-panel TUI, live updates, navigation beyond a single table), also invoke `tui-creator` for layout, color, focus, animation, and Ink 7 / React 19 implementation recipes.
/codebase-improvement-auditAudit a codebase for *real* improvement opportunities — security gaps, SOC 2 / HIPAA compliance posture, modernization wins, dead code, test coverage holes, dependency drift, performance hotspots, and agentic-coding readiness — and present a prioritized, regression-safe iteration plan directly in chat. Scales dispatch to match the question: for narrow asks (e.g. "we just did a TS migration, what can we improve") the orchestrator works solo or dispatches a single specialist; for broad asks ("audit everything") it runs the full canonical roster in parallel; for focused asks ("tighten security") it fans out 3-5 sub-specialists within the domain. Output is always inline — no report files written. Use this skill whenever the user says "audit this codebase", "what can we improve", "improvement opportunities", "modernize this", "scan for cleanup work", "find tech debt", "improve our code quality", "is this HIPAA-compliant", "is this SOC 2 ready", "make this code better", "where should we invest", or pastes a repo path and asks what could be improved. Strong bias toward iterative, no-regression work over speculative rewrites — flag only changes with verifiable evidence and real impact, never churn for its own sake.
/contract-first-backendBootstrap and work with contract-first TypeScript/Express backends where openapi.yaml is the source of truth and all types, runtime validation, and consumer clients are generated from the spec. Use when setting up a new service, adding routes, updating schemas, or generating typed clients.