url-to-code
БесплатноБез исполняемых скриптовНе проверенClone a live URL as a runnable frontend-only local app.
от openai★ 8 494 звезды на GitHubОб этом скилле
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 Product Design Vite starters, use
"dev": "vite". Configure Vite withserver.host: "0.0.0.0"andserver.allowedHosts: ["terminal.local"]. Preserve an existing Sites project's supported dev script; do not replace its runtime. - 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. 7
Установить url-to-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл url-to-code?
Clone a live URL as a runnable frontend-only local app.
Как установить скилл url-to-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл url-to-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic