r/ClaudeCode • u/Evening_Hawk_7470 • 3d ago
Tips & Workflows wired recraft mcp into claude code so it can generate and fix visual assets + do vector graphics in one loop, tested it vs gemini/antigravity on short prompts (showcase of a real project i do now)
so claude code is already solid for layout code and design tokens, just useless the second a project needs custom illustrations, character sheets, or a quick poster without jumping across four browser tabs. hooked up recraft mcp inside claude code this week to see if it holds up as a real agentic image maker when you only feed it short plain prompts instead of five-paragraph "8k octane" prompt soup.
my vid that i've added to comments also shows the full loop on a quick bicycle courier set. started with one short prompt through recraft v4.1 for a front, side, and back turnaround sheet. outfit, beanie, bag, and ink weight held steady across all three angles, and it even dropped four clean color swatches along the bottom without being asked twice.
caught one annoying bug right away though but fixed it fairly easily
on the middle profile view, the model stuck the courier's legs straight behind the silver bike top tube. old way meant regenerating the whole sheet twenty times and losing the good faces. instead i had claude code pass that image straight back through recraft's targeted edit to fix only the legs and handlebar grip. kept every other part of the sheet pixel-identical. also ran a fast poster test ("NIGHT SADDLE") through v4.1 flash and the tiny date line at the bottom came out crisp instead of melted ai lettering
ran the exact same short prompt through gemini at the end just to compare. gemini invented an unprompted "MARC - URBAN COURIER" header, duplicated the side and back view labels top and bottom, collided the bike wheels, and printed gibberish ("URBAN MOSCAGER CCI") straight onto the messenger bag. keeping recraft mcp wired into claude code has been way cleaner for repeatable design assets that still match a tight visual system
•
u/AutoModerator 3d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Evening_Hawk_7470 3d ago
this vid i've made explains the process that was behind this, how the bugs were fixed and how it compares to gemini based flow. ai for designers may be a thing to look for and i'm searching for some additional tools or mcp's to complete my agentic workflows in design and creation. though this one is very decent
1
u/Ok-Distance-6388 3d ago
The targeted edit loop is honestly the part that makes this usable in real projects. Regenerating from scratch always drifts the stroke weight or color palette slightly off the rest of the UI, so being able to fix just the bad legs while locking the rest of the frame saves a ton of back and forth.
One small check that saved me a bunch of headaches when wiring image generation into a coding flow: run a tiny script to verify actual alpha transparency on PNGs and valid viewBox/dimensions on SVGs before dropping them into the repo. A lot of image models happily hand back a baked white box or a fake checkerboard when you ask for transparent cutouts, and you don't notice until it lands on a dark surface.
On the other tools side, hooking up a headless browser screenshot step right after the asset gets placed in the page has been the biggest upgrade for me. Seeing the generated graphic next to real CSS typography catches sizing and contrast mismatches way faster than looking at the raw file alone. Does Recraft's SVG output stay clean enough to style with CSS currentColor, or do you still have to run it through SVGO?
1
u/Far_Reindeer8428 3d ago
keep that loop as a project skill so the next session gets it for free. oah 1.1.0 added install and update for these, you review the skill, pick claude code or codex, then confirm https://oah.rodeo
1
u/Alternative-Hall1719 2d ago
the targeted edit is the right move, point at the one spot and leave the rest alone. i do the same with app screens. the agent draws the screen first, i point at what to change and approve, then it builds, and every version stays next to the last so a good one never gets lost. i built AgentDesign (I'm the developer) around that loop.