跳到正文
Skillpedia
网站与界面(前端)14k · #11345

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/url-to-code/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Remind the user that they must have permission and follow the target site's terms.
  2. 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.
  3. Capture the full desktop page and a representative mobile viewport. Inspect small scroll increments so sticky, lazy-loaded, and animated content is not missed.
  4. Inspect the DOM and visible behavior for text, links, controls, component states, images, icons, fonts, colors, spacing, dimensions, breakpoints, and interaction behavior.
  5. Test important interactions one at a time and return to the starting state between tests. Preserve evidence for changed states.
  6. 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.
  7. 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.
  8. Build only from captured evidence. Implement the visible desktop/mobile layouts and primary interactions without inventing unrelated design choices or backend behavior.
  9. Run and inspect the local implementation with a real browser. Compare the same viewport and states against the source.
  10. Run ../design-qa/SKILL.md, save design-qa.md, fix blocking and high-impact mismatches, and hand off only after final result: passed or 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能