Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)14k · #11345

url-to-code

Skill này làm gì

Skill này xây lại một trang web hoặc trang ứng dụng đang chạy thành mã frontend cục bộ. Skill dành cho người có quyền sao chép thiết kế của một website họ sở hữu hoặc được phép tái tạo.

Khi nào nên dùng

  • ✓Khi bạn muốn một bản sao cục bộ trung thành của một website bạn sở hữu.
  • ✓Khi bạn có quyền tái tạo bố cục và hành vi của một trang.
  • ✓Khi bạn muốn một phiên bản frontend của trang đang chạy để chạy trên máy tính.

Liên kết skill

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/url-to-code/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/url-to-code/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn tái tạo trang đích công ty của mình thành frontend cục bộ có thể chạy, khớp bố cục và các nút bấm.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent mở trang, chụp chế độ xem máy tính và điện thoại, rồi kiểm tra cấu trúc, kiểu dáng và tương tác. Agent lưu các tài nguyên được phép cục bộ và xây frontend trong dự án của bạn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Tôi có cần sự cho phép trước không?

Có. Skill nhắc bạn phải có quyền và tuân theo điều khoản của trang trước khi sao chép.

Nếu trang cần đăng nhập thì sao?

Skill dừng lại nếu trang nằm sau màn hình đăng nhập hoặc hiển thị lỗi, vì nó không thể làm cơ sở cho nội dung.

Nó có tái dùng hình ảnh từ trang gốc không?

Nó lưu các tài nguyên được phép cục bộ thay vì liên kết tới chúng, và thông báo mọi thay thế nó thực hiện.

Chi tiết

Mô tả gốc của tác giả

Recreate an authorized live website or app URL as a faithful, runnable, frontend-only local implementation.

repo: XiaomiMiMo/MiMo-Code

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11345
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự