
- Installs
- 69
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/openai/role-specific-plugins --skill url-to-code- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads url-to-code automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
URL To Code
If the user explicitly invokes this skill, continue.
Only continue when the user asks to clone or recreate the current site.
If the user says like, better, redesign, or improve, return to $index.
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 before proceeding.
- Follow $critical-overrides.
User Context
Before starting, load $user-context 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
-
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.
-
Open the source URL using the Browser Choice rule in $index.
-
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.
- 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.
- 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
- 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.
- 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.
-
Create the local app with local-prototype-preflight.
-
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.
- Run the local app.
Previewing prototypes in ChatGPT Work Mode
Starting sites-preview is not verification. Verification requires opening http://terminal.local:4173/ in the cloud browser, inspecting the rendered page, testing primary interactions, checking browser console errors, and passing design QA.
Do not substitute HTTP health, build success, preview-service status, or deployment success for browser verification. If the cloud browser cannot be used, report verification as blocked.
For local prototype verification in ChatGPT Work Mode:
-
Install dependencies if needed. The project must have an npm
devscript. -
sites-previewrunsnpm run dev -- --host 0.0.0.0 --port 4173 --strictPort. Thedevscript must accept those flags. -
For Vite or Vinext projects, use
"dev": "vite". Do not usevinext dev. Configure Vite withserver.host: "0.0.0.0"andserver.allowedHosts: ["terminal.local"]. -
From the site root, run
sites-preview start "$PWD". -
Open
http://terminal.local:4173/in the cloud browser. Do not uselocalhost,127.0.0.1,0.0.0.0, HTTPS, or another port. -
Verify the rendered site and its primary interactions before reporting completion.
-
Never mention
terminal.localor output that URL to the user. Deploy a checkpoint with@Sitesand give the user only the deployed checkpoint URL. -
Compare the local app against the original.
- Check desktop.
- Check mobile.
- Check every interaction you captured.
- Fix any obvious mismatch before running final QA.
- Run design-qa as the blocking build gate.
- Save the QA report as
design-qa.mdin 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.mdmust sayfinal result: blocked. - Do not hand off unless
design-qa.mdexists and saysfinal result: passed.
- Handoff the app or website
- Only hand off after design-qa passes.
- Keep the prototype running locally.
- In Codex Desktop, provide the clickable local URL. In ChatGPT Work Mode, deploy a checkpoint with
@Sitesand provide only its deployed URL; never outputterminal.local. - After the prototype link, use the shared build handoff from
critical-overrides.md. Do not add a different completion message. - Include the post-build iteration and share nudge from critical-overrides.
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 no approved browser can capture valid source and prototype evidence, stop and report the design-qa blocker.
FAQ
What does the url-to-code skill do?
Clone a live URL as a runnable frontend-only local app.
How do I install url-to-code?
Run npx skills add https://github.com/openai/role-specific-plugins --skill url-to-code in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/url-to-code/ (personal) or .claude/skills/url-to-code/ (project).
Which AI agents can use url-to-code?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is url-to-code safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains url-to-code?
It is published by openai in openai/role-specific-plugins. It has 69 recorded installs.
More from openai/role-specific-plugins
image-to-code
openai/role-specific-plugins
Implement a selected image, screenshot, mockup, or Image Gen reference as a faithful, responsive frontend.
analyze-data-quality
openai/role-specific-plugins
Open the skill to read its SKILL.md instructions.
visualize-data
openai/role-specific-plugins
Design, build, revise, or QA quantitative charts and figures. Use when an analytical answer needs visual judgment, whether for an inline answer, report, dashboard, notebook, or artifact.
validate-data
openai/role-specific-plugins
Validate whether an analysis is accurate, well-supported, and ready to share or use for a decision. Use when reviewing methodology, calculations, comparisons, visuals, caveats, or conclusions.
build-dashboard
openai/role-specific-plugins
Open the skill to read its SKILL.md instructions.
product-business-analysis
openai/role-specific-plugins
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.