url-to-code

url-to-code is a skill for Claude Code, Codex from agentlas-ai/agentlas-desktop. It costs 32 tokens per session (428 once invoked), scanned A, original, Apache-2.0.

A tool for turning a live public website into a local, interactive frontend prototype. It copies the page structure, appearance, images, fonts, and responsive behavior, meaning how the layout changes on different screen sizes.

In plain words
What is it for?
Use it to recreate a permitted public website locally for prototyping or visual comparison. It captures desktop and mobile versions and packages the result as runnable frontend code.
Why use it?
It removes much of the manual work involved in reproducing an existing website. It also helps check that menus, pop-ups, tabs, and other controls behave like the original.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/agentlas-ai/agentlas-desktop/url-to-code
Any agent
npx skills add agentlas-ai/agentlas-desktop --skill url-to-code
Clone the repo
git clone --depth 1 https://github.com/agentlas-ai/agentlas-desktop

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 url-to-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentlas-ai/agentlas-desktop/url-to-code.svg)](https://agentmods.dev/skills/agentlas-ai/agentlas-desktop/url-to-code)
Your own site
<a href="https://agentmods.dev/skills/agentlas-ai/agentlas-desktop/url-to-code"><img src="https://agentmods.dev/badge/skills/agentlas-ai/agentlas-desktop/url-to-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 428 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00428
Opus 5 $0.00016 $0.00214
Sonnet 5 $0.00006 $0.00086
Haiku 4.5 $0.00003 $0.00043

Measured 4d ago against content hash a48a77034d48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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.

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

What it actually says

Skill Purpose

Faithfully captures and reproduces the visual appearance, styling tokens, asset hierarchy, and interactions of a live URL into a local runnable frontend prototype.

Preconditions

  • The user must supply a target URL and confirm permission to recreate the site.
  • Browser automation tools (@agentlas-browser or @playwright) must be available.
  • If the user requests a redesign or new style for a URL, redirect to $get-context$ideate.

Steps

  1. Full-Page & Multi-Viewport Capture:
    • Navigate to the source URL and perform top-to-bottom captures across desktop and mobile viewports.
    • Extract DOM structure, typography, color palettes, spacing metrics, and responsive breakpoints.
  2. Harvest Assets & Interactions:
    • Download or map image assets, logos, fonts, and icons into the local project bundle (avoid hotlinking external assets).
    • Test and document states for menus, modals, dropdowns, tabs, and interactive controls.
  3. Construct Prototype Codebase:
    • Write clean, modular frontend code faithfully replicating the captured design.
  4. Local Runtime & Visual QA ($design-qa):
    • Start the local preview server and capture rendered screenshots.
    • Run side-by-side comparison against the original site captures to eliminate visual regressions.
  5. Handoff: Verify design-qa.md reports final result: passed, keep the local server running, and present the prototype.

Outputs

  • Complete standalone local prototype codebase replicating the source website.
  • Localized asset files and project design-qa.md verification report.

Verification

  • Validate visual correspondence between the live URL capture and the local prototype rendering.
  • Confirm zero reliance on external hotlinked assets.
  • Verify that design-qa.md concludes with final result: passed.
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. 4d ago First seen · 36 lines · 32 tokens per session scan A a48a77034d48

Subscribe to this mod's changes

url-to-code is a skill published in the GitHub repository agentlas-ai/agentlas-desktop (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 428 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

ensemblr-hq/ensemblr · 90 tokens

accessibility

Primary accessibility skill for VS Code. REQUIRED for new feature and contribution work, and also applies to updates of existing UI. Covers accessibility help dialogs, accessible views, verbosity settings, signals, ARIA announcements, keyboard navigation, and ARIA labels/roles.

microsoft/vscode · 54 tokens

frame-macos-notification

拟真 macOS 通知 banner + app icon + 标题正文, 适合 video overlay / 产品发布预告.

nexu-io/html-anything · 31 tokens

visualize

Render a polished visual inline in the chat as part of your answer — a diagram, a chart, an interactive explainer, or a UI mockup. Load it proactively whenever an explanation would land better as a picture than as prose. Do not wait to be asked.

vellum-ai/vellum-assistant · 57 tokens

gui-settings-ui

GUI desktop app only. How to build a Settings page in the Warp client (app/src/settingsview) so its widgets and settings search behave correctly — picking a PageType, deciding whether a heading belongs in the page-title slot or inside a widget, gating a widget, and scoping searchterms per widget. Use when adding or…

warpdotdev/warp · 86 tokens

figma-code-connect-components

Connects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For…

warpdotdev/warp · 81 tokens