url-to-code

작성자: openai

라이브 URL을 복제하여, 제품 디자인 get-context가 디자인 브리프를 확인한 후 Browser/Chrome 소스 증거를 기반으로 실행 가능한 프론트엔드 전용 로컬 앱으로 만듭니다.

npx skills add https://github.com/openai/role-specific-plugins --skill url-to-code

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

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

  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 the Browser Choice rule in $index.

  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.
  1. 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.
  1. 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
  1. 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.
  1. 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.
  1. Create the local app with local-prototype-preflight.

  2. 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.
  1. 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:

  1. Install dependencies if needed. The project must have an npm dev script.

  2. sites-preview runs npm run dev -- --host 0.0.0.0 --port 4173 --strictPort. The dev script must accept those flags.

  3. For Vite or Vinext projects, use "dev": "vite". Do not use vinext dev. Configure Vite with server.host: "0.0.0.0" and server.allowedHosts: ["terminal.local"].

  4. From the site root, run sites-preview start "$PWD".

  5. Open http://terminal.local:4173/ in the cloud browser. Do not use localhost, 127.0.0.1, 0.0.0.0, HTTPS, or another port.

  6. Verify the rendered site and its primary interactions before reporting completion.

  7. Never mention terminal.local or output that URL to the user. Deploy a checkpoint with @Sites and give the user only the deployed checkpoint URL.

  8. Compare the local app against the original.

  • Check desktop.
  • Check mobile.
  • Check every interaction you captured.
  • Fix any obvious mismatch before running final QA.
  1. Run design-qa 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.
  1. 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 @Sites and provide only its deployed URL; never output terminal.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.

openai의 다른 스킬

user-context
openai
데이터 분석 플러그인의 지속적인 소스 라우팅 기본 설정, 온보딩 로직, 설정 진행 상황 및 의미 계층 레지스트리를 로드하거나 관리합니다.
official
notion-research-documentation
openai
Notion 콘텐츠를 조사하고 인용문과 함께 구조화된 브리핑, 보고서 또는 비교 자료로 종합합니다. 대상 질의를 사용해 Notion 페이지를 검색하고 가져온 후, 인라인 출처 인용과 참고 문헌 섹션을 포함해 주제별로 결과를 정리합니다. 범위와 사용자 목표에 따라 네 가지 출력 형식(빠른 브리핑, 연구 요약, 비교, 종합 보고서) 중에서 선택합니다. 내장 템플릿을 사용해 Notion 페이지를 생성 및 업데이트하고, 새 정보가 도착하면 출처를 직접 연결하고 변경 사항을 추적합니다...
official
rcsb-pdb-skill
openai
핵심 메타데이터, Search API 쿼리 및 FASTA 다운로드를 위한 간결한 RCSB PDB 요청을 제출합니다. 사용자가 간결한 RCSB 요약을 원할 때 사용하며, 원시 JSON 또는…을 저장합니다.
official
pdf
openai
PDF 읽기, 생성 및 검증 기능을 제공하며, 시각적 렌더링과 프로그래매틱 생성을 지원합니다. Poppler(pdftoppm)를 사용하여 PDF 페이지를 PNG로 렌더링하여 레이아웃, 간격, 타이포그래피를 시각적으로 검사할 수 있습니다. reportlab을 사용하여 프로그래매틱 방식으로 PDF를 생성하여 안정적인 포맷을 보장하며, pdfplumber 또는 pypdf를 통해 텍스트와 메타데이터를 추출합니다. 품질 기준을 준수합니다: 잘린 텍스트, 겹치는 요소, 깨진 표, 렌더링 아티팩트가 없어야 하며, ASCII 하이픈만 사용하고 사람이 읽을 수 있는 인용을 사용합니다.
official
test-coverage-improver
openai
Improve test coverage in the OpenAI Agents JS monorepo: run `pnpm test:coverage`, inspect coverage artifacts, identify low-coverage files and branches, propose…
official
playwright
openai
터미널 기반 브라우저 자동화로 요소 스냅샷 및 대화형 UI 워크플로우 지원. playwright-cli 래퍼 스크립트를 통해 작동하며(npx 필요), 헤드리스 및 헤드 모드 모두 지원하여 시각적 디버깅 가능. 핵심 워크플로우: 페이지 열기, 안정적인 요소 참조를 위한 스냅샷 생성, 참조를 사용한 상호작용, 탐색 또는 DOM 변경 후 재스냅샷. 양식 작성, 클릭, 타이핑, 다중 탭 관리, 스크린샷/PDF 캡처, 흐름 디버깅을 위한 트레이스 기록 포함. 요소 참조(예: e3, e15)...
official
ukb-topmed-phewas-skill
openai
단일 변이에 대한 간결한 UKB-TOPMed PheWAS 요약을 가져오며, rsID, GRCh37 또는 GRCh38 입력을 받아 필요한 GRCh38 쿼리로 변환합니다. 다음과 같은 경우에 사용하세요…
official
code-review-context
openai
모델 가시 컨텍스트
official