with one click
refine
Code refinement orchestrator. NOT for targeted fixes (use improve).
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Code refinement orchestrator. NOT for targeted fixes (use improve).
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Development wisdom and workflow rules. NOT for project-specific conventions (those live in CLAUDE.md, edit via wisdom).
The `BUGS.md` open-issues queue — entry format, lifecycle, pruning to diary. NOT for the record-don't-fix policy (that's CLAUDE.md Bug Triage Protocol), NOT for resolved-bug history (use /diary), NOT for feature backlog (use TODO.md/specs).
Terminal demo GIF + MP4 recordings for READMEs and social (asciinema + agg + ffmpeg). NOT for general Makefile targets (use software) or GUI screenshots (use visual).
Go development. NOT for non-Go code (use rs, py, ts, tsx, or sh).
Humanize text: strip AI-isms and add real voice. NOT for drafting new copy (use writing).
Python development. NOT for shell scripting (use sh) or non-Python code.
| name | refine |
| description | Code refinement orchestrator. NOT for targeted fixes (use improve). |
| when_to_use | finalizing a finished feature, refine this, polish this |
| user-invocable | true |
Orchestrates code refinement. Runs in main context for full conversation visibility.
Skill(commit, "[checkpoint]")simplify (reuse / dead-code / minimization) or correctness (bugs, logic errors, edge cases).Task(agent="improve", model=<by tag>) per (bucket × lens), report findings only, NO edits. Prompt: "Lens: . Skills: . Files: . Report findings only, NO edits."
4b. Triage findings as they return - drop findings that (a) add abstractions, (b) target unused code (grep first), (c) conflict with the original Intent, (d) can't be verified against the codebase. Pass only survivors to Apply.Task(agent="readme")Skill(commit, "[refined]")for d in .claude/worktrees/*/; do
branch=$(git -C "$d" rev-parse --abbrev-ref HEAD 2>/dev/null)
git worktree remove "$d" --force
[ -n "$branch" ] && git branch -D "$branch" 2>/dev/null
done
Intent: [user's original request, not summary]
Primary: [files to modify]
Context: [read-only reference, if needed]
For readme agent: list what changed (file + one-line each).
model= by lens tag: simplify → sonnet, correctness → opus. NEVER hunt bugs on sonnet; NEVER burn opus on candidate-finding. (improve pins no model — the call site controls it.)