url-to-code
它能做什么
这项技能把在线的网站或应用页面重建为本地前端代码。适合有权复制自己所拥有或被允许复制的网站设计的人。
适用场景
- ✓当你想要自己拥有的网站的忠实本地副本的时候。
- ✓当你获得授权,可以重建某个页面的布局和行为的时候。
- ✓当你想在电脑上运行一个在线页面的前端版本的时候。
技能链接
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/url-to-code/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想把我自己公司的落地页重建为可在本地运行的前端,匹配其布局和按钮。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会打开页面,截取桌面和移动端视图,并检查其结构、样式和交互。它会把获准使用的资源保存到本地,并在你的项目中构建前端。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
URL to Code
Use this workflow only when the user asks to clone or faithfully recreate a live site they own or have permission to reproduce. For redesign, improvement, or a loosely inspired result, route through ../index/SKILL.md to context and ideation instead.
Read ../index/SKILL.md, ../../references/critical-overrides.md, and relevant saved context before building.
Workflow
- Remind the user that they must have permission and follow the target site's terms.
- Open the source with the browser selected by the index. Stop if it resolves to a wrong page, login wall, error, unrelated redirect, or other surface that cannot ground the requested clone.
- Capture the full desktop page and a representative mobile viewport. Inspect small scroll increments so sticky, lazy-loaded, and animated content is not missed.
- Inspect the DOM and visible behavior for text, links, controls, component states, images, icons, fonts, colors, spacing, dimensions, breakpoints, and interaction behavior.
- Test important interactions one at a time and return to the starting state between tests. Preserve evidence for changed states.
- Save permitted source assets locally. Do not hotlink them in the final result. When an asset cannot be obtained, use an available generation tool or an appropriate open replacement and disclose the substitution.
- Inspect the target repository and use its existing framework and conventions. React is not required. If no app exists, create the smallest suitable frontend supported by the harness; plain HTML/CSS/JavaScript is acceptable.
- Build only from captured evidence. Implement the visible desktop/mobile layouts and primary interactions without inventing unrelated design choices or backend behavior.
- Run and inspect the local implementation with a real browser. Compare the same viewport and states against the source.
- Run
../design-qa/SKILL.md, savedesign-qa.md, fix blocking and high-impact mismatches, and hand off only afterfinal result: passedor a clearly documented verification blocker.
Hard rules
- Capture source evidence before scaffolding or editing.
- Do not infer hidden states when source evidence is available.
- Do not use screenshots alone when DOM/style/interaction evidence can be inspected.
- Do not leave placeholder assets or improvised icon glyphs in the final implementation.
- Build success and server health are not visual verification.
- Publish only when the user asks and the host exposes an authorized deployment tool.
常见问题
我需要先获得许可吗?
需要。这项技能提醒你在复制前必须获得许可,并遵守网站的条款。
如果网站需要登录怎么办?
如果页面位于登录墙之后或显示错误,技能会停止,因为它无法为文案提供依据。
它会复用原网站的图片吗?
它会把获准使用的资源保存到本地,而不是链接到它们,并会说明它所做的任何替换。
详情
作者的原始描述
Recreate an authorized live website or app URL as a faithful, runnable, frontend-only local implementation.
repo: XiaomiMiMo/MiMo-Code
热度
- GitHub 星标
- 14k
- 排名
- #11345
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
effect
14k帮你的智能体通过查看源代码和文档来回答关于 Effect TypeScript 框架的问题,而不是依赖记忆。
arxiv
14k帮你的智能体在 arXiv 上搜索、阅读、引用和跟踪学术论文,包括摘要、BibTeX 引用、PDF 下载和引用关系。
claude-code
14k帮你的智能体把编程任务交给 Claude Code 命令行工具,可以是一次性运行、交互式会话或后台任务。
codex
14k帮你的智能体在没有聊天窗口的情况下运行 OpenAI Codex 命令行工具,用于编程任务、脚本和自动化流程。