clone-website
Skill này làm gì
Skill này tái tạo các trang web hiện có trong dự án của bạn dưới dạng mã hoạt động. Skill dành cho lập trình viên muốn có một bản cục bộ, chỉnh sửa được của một website, kể cả các trang có hoạt ảnh hoặc được xây bằng Framer.
Khi nào nên dùng
- ✓Khi bạn muốn tái tạo một trang web hiện có thành mã cục bộ chạy được.
- ✓Khi bạn muốn một bản sao đáp ứng được của bố cục và tương tác trang.
- ✓Khi bạn muốn dựng lại nhiều trang của một website trong cùng một ứng dụng.
Liên kết skill
https://github.com/JCodesMore/ai-website-cloner-template/blob/master/.agents/skills/clone-website/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dựng lại trang giá và trang giới thiệu từ website này thành mã hoạt động trong ứng dụng của chúng tôi, khớp với bố cục và hoạt ảnh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lập bản đồ các trang nguồn và tài nguyên của chúng, rồi mở chúng trong trình duyệt để xem chúng trông và hoạt động thế nào. Nó dựng lại từng trang thành mã chỉnh sửa được theo cấu trúc của dự án, thay vì dùng ảnh chụp màn hình hoặc iframe.
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.
Clone a website
Recreate the supplied pages in the current app. Match the source before adding a new design direction. Deliver working, editable code: screenshots, iframes, and downloaded production bundles are references, not the implementation.
1. Map the work
Read project instructions, the actual framework/scripts, and existing routes. Open the source URLs with the available browser. Prefer direct HTTP, asset tools, or APIs for extraction when practical; use the browser to establish appearance and behavior.
Record a short source-to-local route map and the files each page owns. Follow the app's conventions; in this template use src/app/, src/components/sites/<site>/, public/sites/<site>/, and docs/research/<site>/. Give origins, pages, and downloads distinct names; add a port or URL hash when readable names collide.
- A first root clone may replace the untouched template homepage.
- Preserve source pathnames for multiple pages from one origin. Query/fragment variations usually represent states of the same route; reproduce those states.
- Preserve existing authored routes/assets. Update them when requested; resolve unrequested route collisions before replacing anything.
- When adding pages to an existing clone, extend its layout and global styles without replacing the styles used by existing pages.
- Use separate apps for different origins unless the user wants a combined app. Combined sites need distinct route prefixes and scoped fonts, styles, and layout.
- Escape literal URL segments that conflict with framework syntax (
_,@, brackets, parentheses) using its supported mechanism, then verify the actual requested URL.
Existing clones are useful starting points: compare them with the current source and record what was reused. Finish when every requested URL has a destination and file ownership is clear.
2. Observe before building
Inspect the whole page at desktop and mobile widths. Scroll top to bottom to load lazy media and reveal sticky/pinned scenes. Then exercise menus, tabs, accordions, carousels, hover states, and primary links. Distinguish changes driven by scroll, click, hover, or time; a click imitation of a scroll-driven section is a different product.
Treat each observation as one sample of a rule. Read declared values (computed styles, CSS variables, a library's live options) rather than inferring them from one rendering, and vary viewport width (including wider than the design), viewport height, input, and state until you know what drives each change. Drive the page with the inputs visitors use (wheel, touch, keyboard, pointer); scripted scrolling bypasses behavior attached to them, such as smooth scrolling.
Save source screenshots labeled with viewport, scroll position, and interaction state. Capture alternate-state content/assets. Keep one compact page brief: section order, typography, layout measurements, asset mapping, and interactions. Add section briefs only when they help independent builders.
Read the inspection reference for extraction and state comparison. For Framer-generated pages, sticky scenes, reveal animations, or animated media, read Framer and motion.
Use the source's real text and the files it actually loads: fonts, images, SVGs, and video. A same-named substitute from another provider or icon set has different metrics or shapes. Measure important geometry/computed styles. Inspect layered images and media elements before rebuilding a visual as HTML. Track source URL → local asset path and verify content type/dimensions: a .png URL may return AVIF.
Finish when every section and meaningful state has enough evidence to build, with unavailable details identified. A large DOM dump does not replace looking at the page.
3. Build a complete first pass
Establish fonts, page width, colors, assets, routes, page-wide behavior, and shared components first. Build each shared component with every observed state (hover, focus, breakpoints) so builders reuse it as-is. Reuse fitting components. Prefer CSS for layout/simple motion and an animation library when source behavior needs it.
Build coherent sections with real content. Delegate independent pages/sections after shared files have an owner. Give builders screenshots, relevant measurements/state notes, asset paths, destination files, and a concrete finish line. A concise brief with precise file references is enough; no fixed age
Câu hỏi thường gặp
Nó chỉ sao chép ảnh chụp màn hình à?
Không. Ảnh chụp màn hình và iframe chỉ là tham khảo, còn kết quả là mã chỉnh sửa được.
Nó có ghi đè các trang hiện có của tôi không?
Không. Nó bảo toàn các route và tài nguyên hiện có, và giải quyết xung đột trước khi thay thế bất cứ thứ gì.
Nó có hoạt động với các trang có hoạt ảnh không?
Có. Nó bao quát các trang có hoạt ảnh và website Framer, cũng như các trang thông thường.
Chi tiết
Mô tả gốc của tác giả
Rebuild existing web pages as working local code, matching their real content, assets, responsive layout, and interactions. Use for website cloning, replication, or reverse engineering, including Framer sites and animated pages.
Độ phổ biến
- Sao GitHub
- 38k
- Vị trí xếp hạng
- #7491
- Giấy phép
- MIT
- Cập nhật
- 19/10/2026
Bình luận
- …
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.