/v1tamins:v1-refinefrom v1tamins
Refines working code through quality, deslop, or hindsight passes. Improves structure, removes AI residue, or rewrites messy first-pass fixes.
Ships in v1tamins. 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.
Improve working code while preserving intended behavior. Pick a mode from the request (default: quality).
| Mode | When | What it does |
|---|---|---|
quality | Broad cleanup, simplify, DRY, complexity, efficiency | Multi-pass review + in-place fixes |
deslop | AI residue, defensive fluff, narration comments | Removal Gate on branch-introduced slop |
hindsight | Working but messy first-pass fix | Delete exploratory fix; reimplement cleanly |
Use v1-deep-review when the right output is structural review feedback rather than edits.
Typical invocations:
/v1-refine [mode] [target]v1-refine from the skills menu or use $v1-refine [mode] [target]simplify → quality; deslop → deslop; hindsight refactor → hindsight.
Mode (optional): quality (default) | deslop | hindsight
Target (optional):
git diff, or git diff HEAD when staged changes are present); for deslop, prefer the branch diff against the default remote branchfile:function → a single function (useful for cognitive-complexity work)If there is no diff and no target, inspect the files most recently edited or explicitly mentioned.
Review changed code (or named files) for reuse, quality, structure, cognitive complexity, and efficiency, then fix what is worth fixing.
Run the passes on the target directly by default. Use native review workers
only when the user's request or the host's delegation policy authorizes them
and independent review materially improves coverage. Give each worker a bounded
read-only brief with the same target/source snapshot, focus, expected findings,
and stopping point. Workers must not edit, install, publish, or launch more
workers. Collect and verify their findings before the parent applies fixes.
If delegation is unavailable or unauthorized, run the passes sequentially.
External CLI peers follow v1-phone-a-friend's separately authorized selection
and execution contract; native workers do not silently open that workflow.
If the user named a focus, still check the rest of the changed surface.
Search for existing project code that can replace new or expanded logic.
Prefer established local helpers over new abstractions. Only add an abstraction when it removes real duplication or clearly matches project patterns.
Reduce complexity, weak boundaries, and future-change cost. This pass covers KISS, DRY, and cognitive complexity.
KISS:
DRY:
Quality:
Cognitive complexity (use when a function is hard to follow, or on a file:function target):
Apply when restructuring across files, not just tidying a diff.
Look for unnecessary work and avoidable runtime cost.
Add change-detection guards when recurring updates can fire without changing observable state.
Always preserve side effects (logging, error semantics), keep public APIs stable, honor AIDEV-* and other anchor comments, and follow existing repo patterns.
React/TypeScript: prefer small pure utilities, stable hook signatures, typed params/returns; don't break the Rules of Hooks; keep component props stable.
Python: prefer pure functions and dataclasses; keep docstrings and typing intact; prefer guard clauses over unnecessary try/except.
Collect findings from all passes before you edit. Fix each valid issue directly and keep the scope tied to the target. Fix only when you have a concrete reason. Skip false positives and low-value changes. No new tests unless asked.
After edits, run the smallest relevant verification command available in the project.
Finish with a concise summary:
Remove branch-introduced code that adds no behavior, proof, or maintainability — typical agent leftover: defensive wrappers, narration comments, casts, logging, or abstraction created without a concrete need.
Remove a line, block, helper, or wrapper only when at least one condition is true:
any, broad casting, or catch-all fallback.Keep it when it protects a real trust boundary, documents a non-obvious invariant, preserves public API compatibility, or is needed by existing behavior.
any to get around type issuesWhen the user wants a delete-and-reimplement second pass, load references/hindsight.md and follow that process. Do not line-by-line polish the exploratory fix.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-refinement, code-quality, deslop, hindsight-rewrite, code-review
42 skills in this plugin
/v1-address-reviewUse when resolving existing PR review comments or threads. Triggers on "address review feedback", "fix review comments", or "resolve review threads"./v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope".Other plugins' skills for the same job
npx claudepluginhub v1-io/v1tamins --plugin v1tamins