url-to-code
$
npx mdskill add openai/role-specific-plugins/url-to-codeClone live URLs into runnable local frontend apps
- Creates interactive frontends matching source design and behavior.
- Depends on browser tools for scraping HTML/CSS/JS assets.
- Requires confirmed brief from Product Design before execution.
- Delivers a locally hosted replica of the target website.
SKILL.md
.github/skills/url-to-codeView on GitHub ↗
--- name: url-to-code description: "Clone a live URL as a runnable frontend-only local app using Browser/Chrome source evidence after Product Design get-context has confirmed the design brief." --- # URL To Code Clone `<target-url>` as a real interactive, frontend-only local app or website. The clone should look and interact like the source. ## Critical Overrides - Refer to the Plugin router [$index](../index/SKILL.md) before proceeding. - Follow [$critical-overrides](../../references/critical-overrides.md). ## User Context Before starting, load [$user-context](../user-context/SKILL.md) and run its preflight script when local shell access is available. Use saved product URLs, Figma files, screenshots, reference images, codebase paths, Storybook, tokens, design systems, brand assets, component refs, browser preferences, and share targets as grounding material when relevant. Do not inspect every saved reference. Inspect only what the current task needs. ## Workflow 0. Do not start unless `$get-context` has played back and confirmed the design brief for this exact request. If this skill was invoked directly and the current thread does not already contain that confirmed brief, route to [$get-context](../get-context/SKILL.md) first. 1. CRITICAL STEP: Warn the user that they must follow the target website's terms before proceeding. This workflow is only for apps and websites the user owns, or has permission to recreate. 2. Open the source URL using [browser-order](../../references/browser-order.md). 3. Check that the page is correct. - Do not continue if it shows the wrong page, a blocked page, a login page, a promo page, a loading screen, an error page, an app-install page, or an unrelated redirect. - If the page is wrong, try again with another available browser. - If every browser shows the wrong page, stop and tell the user what you can see. 4. Capture the source page carefully. - Start at the top of the page. - Scroll down in small steps. - At each step, capture what is visible. - Note any new sections, controls, sticky elements, animations, or lazy-loaded assets. - Continue until the full page has been seen. - Scroll back to the top and check whether anything changed. - Repeat on mobile at `390 x 844`. 5. Use the browser DOM tools to gather everything needed to recreate the source. - Elements - Components - Text - Links - Buttons and controls - States - Images - Icons - Fonts - Videos - SVGs - Style sheets - Colors - Spacing - Layout sizes - Responsive behavior 6. Find and test the page interactions. - Use the screenshots and browser DOM tools to find visible controls. - Include navigation, buttons, links, inputs, menus, drawers, modals, tabs, carousels, hover states, sticky elements, and anything else the user can interact with. - Test one control at a time. - Return to the starting state before testing the next control. - Save the result when the page visibly changes or the browser tools show a state change. 7. Copy the real assets from the source page. - If the page loads the asset, treat it as available unless the browser cannot access or save it. - If an image, logo, icon, font, video, SVG, sprite, mask, cursor, or background image is used by the page, copy it locally. - If an image asset cannot be copied, generate a replacement with ImageGen using a screenshot of the original. - If a font file cannot be copied, use the closest open source font match. - If an icon or glyph cannot be copied, use the closest matching open source icon set. Do not default to Lucide unless it is the closest match. - Briefly note any asset, font, or icon you replaced and why. 8. Create the local app with [local-prototype-preflight](../../references/local-prototype-preflight.md). 9. Build only from what you captured, copied, or gathered from the source. - Do not add new visual ideas. - Do not use hotlinked source assets. - Do not guess when source proof is available. 10. Run the local app. 11. Compare the local app against the original. - Check desktop. - Check mobile. - Check every interaction you captured. - Fix any obvious mismatch before running final QA. 12. Run [design-qa](../design-qa/SKILL.md) as the blocking build gate. - Save the QA report as `design-qa.md` in the project root. - Fix P0/P1/P2 issues, capture the app again, and repeat until the QA report says `final result: passed`. - Do not keep looping on P3 polish. Include any remaining P3s as follow-up iteration notes. - If source capture, prototype capture, or visual comparison is blocked, stop. `design-qa.md` must say `final result: blocked`. - Do not hand off unless `design-qa.md` exists and says `final result: passed`. 13. Handoff the app or website - Only hand off after [design-qa](../design-qa/SKILL.md) passes. - Keep the prototype running locally. - Provide the clickable local URL. - Briefly describe the work as a designer would. - Include the post-build iteration and share nudge from [critical-overrides](../../references/critical-overrides.md#build-handoff). ## Hard Rules - Capture source evidence first. Do not scaffold, write app code, start a server, or create the local prototype until desktop capture, mobile capture, key states, and every required asset, icon, control mark, and font is captured or replaced. - Do not hand off until every single interaction and state is captured from the target. - Do not build from memory, screenshots alone, guessed CSS, generic assets, or prior chats. - Do not implement a saved state without source screenshot plus the available DOM/style/layout evidence for that state. - Do not use hotlinked source assets in the final app. - Do not create temporary CSS icons, text glyphs, emoji marks, placeholder blocks, or handmade SVGs while "waiting" to resolve assets. Resolve assets first, then build. - If Browser and Chrome fail, ask before using Playwright. If no approved tool can capture valid source and prototype evidence, stop and report the design-qa blocker.
More from openai/role-specific-plugins
- analyze-account-signalsAnalyze fresh signals for a named account, owner portfolio, or watchlist and turn them into evidence-backed account intelligence using active Sales source categories and user-provided context.
- analyze-data-qualityAssess whether tables, query results, files, or dataframes are trustworthy enough for analysis, modeling, dashboards, experiments, or pipelines. Use for grain, freshness, nulls, duplicates, schema drift, broken joins, referential integrity, distribution shifts, leakage, backfills, source mismatches, automated quality checks, and data-quality regressions.
- auditAudit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, placing them in Figma or a local folder, then reporting UX, design, and accessibility findings from that evidence. Use when the user asks to audit, critique, review, inspect, assess, or evaluate a product experience.
- build-business-caseBuild customer-led business cases, ROI narratives, value models, executive summaries, and customer-ready value stories from uneven customer context, metrics, transcripts, notes, and public evidence.
- build-competitive-briefBuild a multi-competitor build-competitive-brief report, comparison matrix, and battlecard-style objection package using user-provided materials, optional connector-assisted research, and public evidence.
- build-dashboardBuild source-backed analytical dashboards that help teams monitor performance, explore drivers, and act on product or business metrics. Use when the user needs a dashboard, scorecard, monitoring view, BI dashboard, MCP artifact dashboard, or Streamlit dashboard with clear metrics, filters, validation, and handoff.
- build-reportBuild polished analytical reports for executive, product, business, and technical audiences, and act as the completion contract for Data Analytics report runs. Use when the final artifact needs an answer-first narrative, evidence-backed findings, charts/tables, caveats, source metadata, and either an MCP app report or an HTML report with Seaborn-generated charts.
- catalyst-calendarUse when building public-equity-investing catalyst calendars. Do not use for full event underwriting; use event-driven-analyzer.
- company-tearsheetUse when creating source-backed public issuer tearsheets. Do not use for private diligence, fund diligence, vendors, or market maps.
- comps-valuationProduce Public Equity Investing comparable-company valuation in report or workbook mode. Use for peer selection, multiple analysis, valuation read-throughs, implied prices, comps dashboards, Excel or Sheets comps, refreshable peer tables, model updates, and comps workbook QA. Do not use for DCF-only, credit-security, or generic market commentary requests.