design-url-to-code

design-url-to-code is a skill for Claude Code, Codex from DKeken/codex-skills-alternative. It costs 99 tokens per session (1,044 once invoked), scanned A, original, MIT.

A workflow for rebuilding a live website as editable local frontend code. It examines the original page's structure and visual styles, then compares the local result with screenshots of the source.

In plain words
What is it for?
Use it to clone a website locally, recreate a page in a chosen frontend technology, or capture the visual style of a reference site.
Why use it?
It provides a way to turn an existing website into a codebase that can be changed while checking how closely it matches the original.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to clone a website locally, recreate a page in a chosen frontend technology, or capture the visual style of a reference site.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dkeken/codex-skills-alternative/design-url-to-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DKeken/codex-skills-alternative --skill design-url-to-code
Clone the repo
git clone --depth 1 https://github.com/DKeken/codex-skills-alternative

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-url-to-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/dkeken/codex-skills-alternative/design-url-to-code/github.svg)](https://agentmods.dev/skills/dkeken/codex-skills-alternative/design-url-to-code)
Your own site
<a href="https://agentmods.dev/skills/dkeken/codex-skills-alternative/design-url-to-code"><img src="https://agentmods.dev/badge/skills/dkeken/codex-skills-alternative/design-url-to-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-url-to-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/dkeken/codex-skills-alternative/design-url-to-code"><img src="https://agentmods.dev/badge/skills/dkeken/codex-skills-alternative/design-url-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01044
Opus 5 $0.00049 $0.00522
Sonnet 5 $0.00020 $0.00209
Haiku 4.5 $0.00010 $0.00104

Measured 9d ago against content hash 1e335ff2e8ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

design-url-to-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-url-to-code/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design — URL To Code

Recreate a live site/page as an editable local frontend — faithful to the original and verified by comparison. Unlike image-to-code, you have the real HTML/CSS to extract from, so fidelity can be higher; the work is rebuilding it clean in your stack rather than copy-pasting markup.

When to use

  • "Clone/rebuild this live site locally", "make it look like {url}".
  • You want a real, editable starting point matching an existing site's design.
  • Capturing a design language from a site you admire (legitimately — see rules).

When NOT to use

  • The source is a static image/mockup, not a live URL → design-image-to-code.
  • You need interactivity/flow wiring after → design-prototype.
  • The goal is critique, not recreation → design-audit.

Inputs

  • Source URL(s).
  • Target stack: ask; default match repo, else React + Vite + Tailwind + TS.
  • Scope: full clone vs "capture the design language only".

Workflow

  1. Capture the page: open it in a browser-automation tool (DOM snapshot + full-page screenshot) and/or pull HTML/CSS via a web-fetch tool. The browser gives you computed styles; the screenshot is your comparison target.
  2. Extract the design system into ./design/url-dna.md: colors, type scale, spacing rhythm, layout structure, components, motion. Capture tokens, not pixel-by-pixel copies.
  3. Rebuild locally in the target stack with your own clean components — not pasted markup. Map extracted tokens → real config (e.g. Tailwind theme extension).
  4. Verify: run locally, screenshot at the source's viewport, compare to the original; iterate to close gaps (layout → type → spacing → color).
  5. Assets: download/extract where permitted; generate missing raster with an image tool; placeholder otherwise.

Worked example

source: https://example.com/landing   stack: React+Vite+Tailwind+TS
capture: browser snapshot (computed CSS) + full-page screenshot
url-dna.md:
  palette: bg #0B0B0F, text #E7E7EA, accent #6366F1
  type: Inter; scale 14/16/20/32/56; tight tracking on display
  spacing: 4px base, section pad 96px
  layout: sticky nav, hero (h1 + sub + 2 CTAs), 3-col feature grid, footer
  motion: fade-up on scroll
rebuild: Tailwind theme = those tokens; components Nav/Hero/FeatureGrid/Footer
verify: screenshot @1440 vs original → hero h1 was 48 not 56, fixed; gap close
done: build clean, tokens in tailwind.config, runs at :5173

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 67 lines · 99 tokens per session scan A 1e335ff2e8ee

Subscribe to this mod's changes

design-url-to-code is a skill published in the GitHub repository DKeken/codex-skills-alternative (15 stars, last pushed 3mo ago), licensed MIT. It adds 99 tokens to every session and 1,044 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

calesthio/OpenMontage · 58 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens

interaction-skill

Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…

code-yeongyu/oh-my-openagent · 104 tokens

openai-frontend-design

Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful…

fcakyon/claude-codex-settings · 71 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens