From code-practices
UI feedback loop using screenshots. Provide design mock, implement, screenshot result, iterate until matching. Use for visual work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-practices:visual-iterationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use when implementing UI components, layouts, or any visual work where "looks right" matters.
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
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin rahulsub-code-practices-pluginGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.