/exito:refine Describe the code to refine or improvement goalfrom exito
Quality-focused refactoring - analyze existing code with fresh eyes, identify elegant improvements, craft polished solutions
Ships in exito. Installing the plugin adds it to Claude Code.
Welcome to the Refine Command - Where good code becomes great code.
This isn't about adding features. This is about making existing code more:
The workflow:
This workflow asks: "What would be elegant here?" and "What can we remove?"
Understanding current code deeply - what it does, why it exists, where it's going...
Session Setup
Generating unique session ID and creating session directory...
!SESSION_ID="refine_$(date +%Y%m%d_%H%M%S)" !mkdir -p ".claude/sessions/refine/$SESSION_ID" !echo "✓ Session: $SESSION_ID"
refine-analysis
Looking at code with fresh eyes - identifying opportunities for elegance...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_ID/context.md allGenerating elegant refactoring approaches...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_ID/context.md .claude/sessions/refine/$SESSION_ID/philosophy.mdValidating that refactoring is safe and achievable...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_ID/context.md .claude/sessions/refine/$SESSION_ID/alternatives.mdReview the philosophy and choose your path to elegance...
Philosophy Analysis: .claude/sessions/refine/$SESSION_ID/philosophy.md
Refactoring Approaches: .claude/sessions/refine/$SESSION_ID/alternatives.md
Feasibility Assessment: .claude/sessions/refine/$SESSION_ID/feasibility.md
Please select your preferred refinement:
Consider:
{Wait for user selection here. The conversation stops until user responds with their choice.}
Creating detailed refactoring plan for: {USER_SELECTION}
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_ID/context.md .claude/sessions/refine/$SESSION_ID/alternatives.md selected-option:{USER_SELECTION}Refactoring plan ready for review: .claude/sessions/refine/$SESSION_ID/plan.md
Review Checklist:
What to do next:
{Wait for user approval here. The conversation stops until user responds.}
REFINEMENT PRINCIPLES ACTIVE:
Polishing with attention to elegance and simplicity...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_ID/plan.mdsurgical
Validating refinement didn't break anything and improved quality...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_IDrefine-verification
Creating permanent knowledge base...
Session: $SESSION_ID Directory: .claude/sessions/refine/$SESSION_ID .claude/sessions/refine/$SESSION_IDCode Refined: $ARGUMENTS
Philosophy Applied:
Improvement Metrics:
Check the quality report for:
Session Artifacts: .claude/sessions/refine/$SESSION_ID/
context.md - Original code analysisphilosophy.md - Design philosophy opportunitiesalternatives.md - Refactoring approaches exploredfeasibility.md - Safety and risk assessmentplan.md - Refactoring planprogress.md - Implementation logquality.md - Before/after quality comparisonDocumentation: ./documentacion/{YYYYMMDD}-{name}.md
Commits: Check git log for atomic refactoring commits
Next Steps:
Note: This wasn't about adding features—it was about making existing code exceptional. We found complexity to remove, patterns to clarify, and elegance to reveal. 💎
"Perfection is achieved not when there is nothing left to add, but when there is nothing left to take away."
The code is now more elegant, more maintainable, and more clearly expresses its intent.
Thank you for using the Refine command! 🚀
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
15 commands in this plugin
/buildUniversal Senior EngineerUniversal senior engineer that investigates, plans deeply, implements, and validates. Use for complex features or significant changes./craftExcellence CraftsmanGeneral-purpose excellence workflow - Think Different, question assumptions, craft solutions with obsessive attention to detail/executeFast Execution Workflow EngineerFast implementation workflow with multiple solution exploration and surgical implementationnpx claudepluginhub yersonargotev/claude-marketplace --plugin exitoOther plugins' commands for the same job