r/ClaudeCode • u/muhsumon • 23h ago
Tutorial / Guide A Claude Code workflow for reusing an approved design on a new page
Once you have one page you’re happy with, give Claude Code that page’s source and a clear boundary for what it can change. A screenshot shows the spacing and hierarchy, but it can’t tell Claude which button component to import or which CSS owns the page gutter.
Say you have an approved product page and need a page for one integration. Give Claude the two route paths, the real integration copy, and the desktop and mobile screenshots of the approved page. Then try this:
“Read the approved route and trace where its layout, primary button, and spacing come from. Before editing, list the exact files or components you’ll reuse and the files you expect to touch. Build the integration page using the same layout and button. Keep the page gutter and heading scale. Replace the product screenshot with the integration steps. If a shared component needs a change, stop and show me why before editing it.”
For the review pass, render both pages at 390px and 1440px. On the new page, try a longer integration name and the longest step label you actually expect. Check that the button is still visible, the heading wraps without clipping, and the steps fit the gutter. Then look at the Git diff. If the task was to add one route and the diff also changes your base styles or the approved page, ask Claude to explain those changes before merging.
If you only have an approved mockup, build and review one section first. That gives the next prompt an actual component to point at.Once you have one page you’re happy with, give Claude Code that page’s source and a clear boundary for what it can change. A screenshot shows the spacing and hierarchy, but it can’t tell Claude which button component to import or which CSS owns the page gutter.
Say you have an approved product page and need a page for one integration. Give Claude the two route paths, the real integration copy, and the desktop and mobile screenshots of the approved page. Then try this:
“Read the approved route and trace where its layout, primary button, and spacing come from. Before editing, list the exact files or components you’ll reuse and the files you expect to touch. Wait for my approval, then build the integration page using the same layout and button. Keep the page gutter and heading scale. Replace the product screenshot with the integration steps. If a shared component needs a change, stop and show me why before editing it.”
For the review pass, render both pages at 390px and 1440px. On the new page, try a longer integration name and the longest step label you actually expect. Check that the button is still visible, the heading wraps without clipping, and the steps fit the gutter. Then look at the Git diff. If the task was to add one route and the diff also changes your base styles or the approved page, ask Claude to explain those changes before merging.
If you only have an approved mockup, build and review one section first. That gives the next prompt an actual component to point at.
•
u/AutoModerator 23h 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/Far_Reindeer8428 23h ago
this is close to how the design record works in oah 1.4, the grilling skill asks one question at a time and only an approved revision gets connected to the implementation request https://oah.rodeo
1
u/leo_heo 22h ago
the longest label check is the one that gets skipped most. mockups always use the short happy copy, then the real one wraps on day one