/code-practices:visual-iterationfrom code-practices
UI feedback loop using screenshots. Provide design mock, implement, screenshot result, iterate until matching. Use for visual work.
Ships in code-practices. Installing the plugin adds it to Claude Code.
Use when implementing UI components, layouts, or any visual work where "looks right" matters.
From Anthropic's Claude Code best practices: "Provide design mocks or screenshots. Have Claude implement, screenshot results, and iterate until matching the target. This gives Claude concrete feedback for refinement."
Give Claude a clear visual reference:
Here's the design mock for the new dashboard header:
[drag and drop image or provide path]
Implement this in React with Tailwind CSS.
Ways to provide visual targets:
Claude implements based on the visual reference.
Capture what Claude built:
# Take screenshot of the running app
# On macOS: Cmd+Shift+4 to select area
# Or use browser DevTools device mode
Share the screenshot back with Claude:
Here's what it looks like now:
[screenshot of current implementation]
Compare to the original design. The spacing between cards is too tight
and the shadow is too harsh. Adjust to match the design more closely.
Continue the loop:
Vague (less effective):
"It doesn't look right"
Specific (more effective):
"The button is 20px too far from the edge. The font weight should be semibold not bold. The border radius should match the card above it."
With visual reference:
"See how in the design the cards have subtle shadows? Current implementation has no shadow. Add
shadow-smto match."
## Visual Implementation Task
### Target Design
[Image: design mock or reference screenshot]
### Technical Requirements
- Framework: [React/Vue/etc]
- Styling: [Tailwind/CSS modules/etc]
- Responsive: [breakpoints to support]
### Key Visual Elements
- [ ] [Element 1 - specific requirements]
- [ ] [Element 2 - specific requirements]
- [ ] [Color/spacing tokens to use]
### Iteration Process
1. Implement initial version
2. I'll screenshot and provide feedback
3. Iterate until matching design
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub rahulsub/code-practices-plugin --plugin code-practicesOther plugins' commands for the same job
13 commands in this plugin
/cleanupSystematic code cleanup after completing features. Use after refactoring or periodically to remove dead code, console statements, TODOs, and tech debt./code-reviewReview code like a skeptical senior engineer. Use when reviewing PRs, after generating significant code, or before merging changes./context-managementManage Claude Code sessions effectively. Use during long sessions, multi-step tasks, or when responses start degrading. Covers /clear, checklists, and subagents.