r/ClaudeCode • • 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)

Post image

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

2 Upvotes

12 comments sorted by

•

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/whowasntright 3d ago

thanks for a vid; i saw how you compared midjourney with other genai including in designer tasks and i have not given vectorization too much of a thought before but now i've done a similar thing when vectorizing the whole gta6 map with recraft native models so i guess i get you here

p.s. a fun bug, a classic one, even

1

u/Evening_Hawk_7470 3d ago

yes, but was not too hard to fix and was also kinda expected..... yawn... but the whole process is fun and i like how i also can experiment with my references and save my own styles with this mcp

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/Evening_Hawk_7470 1d ago

love the headless screenshot check next to real css. flat recraft svg icons come out lean (often 10 to 20 path tags with a valid viewBox), though they ship with explicit rgb fills and a metadata tag. one quick svgo pass strips metadata and maps fills to currentColor

1

u/Ok-Distance-6388 1d ago

10 to 20 path tags with a valid viewBox is way cleaner than most vectorizers spit out. I usually bake that SVGO pass straight into a PostToolUse hook on *.svg writes so metadata and hardcoded fills get normalized to currentColor automatically before the file even lands in a component, while skipping multi-color illustrations whenever there are more than 1 or 2 distinct fills.

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/Evening_Hawk_7470 1d ago

yeah turning the style id plus svg post-processing steps into a reusable project skill saves re-explaining palette rules every session. nice setup for sharing skills across claude code and codex too

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.

1

u/Evening_Hawk_7470 1d ago

keeping versions side by side next to targeted edits is huge. once you can point at one broken corner instead of rolling the dice on a full regen, visual loops stop feeling like a slot machine. cool angle for app screens

1

u/Alternative-Hall1719 1d ago

Try getagentdesign.com