/install static-site-cloner
Static Site Cloner
Based on a target website URL, accurately reproduce the site's structure, visuals, and interactions using pure HTML, CSS, and JavaScript. Output only front-end code, without involving backend functionality.
Use Cases
- User requests to "reproduce a website," "clone a website," "recreate a website," "copy a web page"
- User provides a website URL and requests code rewrite
- User needs to convert an existing website into pure front-end code
- User wants to learn or understand the front-end implementation of a particular website
Workflow
1. Information Gathering
Use web_fetch to retrieve the HTML content of the target website:
web_fetch(url="target_url", extractMode="markdown")
Analyze and document:
- Page structure (navigation, header, main content, footer)
- Visual elements (colors, typography, spacing, shadows)
- Interactive behaviors (clicks, hovers, animations)
2. Structure Reproduction
Write semantic HTML:
- Use proper HTML5 tags (header, nav, main, section, article, footer)
- Maintain DOM hierarchy consistent with the original site
- Add clear comments explaining the function of each section
3. Style Restoration
Write CSS styles:
- Prefer Flexbox/Grid layout
- Implement responsive design (media queries)
- Pay attention to pseudo-classes and transition effects (:hover, :focus, transition)
- Use CSS variables to manage colors and spacing
4. Interaction Implementation
Use vanilla JavaScript:
- Event listeners (addEventListener)
- DOM manipulation (classList, style, innerHTML)
- Animation effects (requestAnimationFrame or CSS Animation)
5. Output Specification
Generate runnable code:
project_directory/
├── index.html
├── styles/
│ └── main.css
└── scripts/
└── main.js
Or a single-file version (inline CSS/JS).
Code Conventions
\x3C!-- HTML: Semantic + Comments -->
\x3Cheader class="site-header">
\x3C!-- Navigation bar -->
\x3Cnav class="navbar">...\x3C/nav>
\x3C/header>
/* CSS: BEM Naming + CSS Variables */
:root {
--primary-color: #3498db;
--spacing-unit: 8px;
}
.navbar__link--active {
color: var(--primary-color);
}
// JavaScript: Modern ES6+ Syntax
const toggleMenu = () => {
document.body.classList.toggle('menu-open');
};
Limitations
- Pure front-end technologies only: HTML, CSS, JavaScript (no React/Vue/jQuery)
- No backend functionality: No database, API, or server-side rendering
- Image placeholders: Use placeholder services (e.g., placeholder.com, picsum.photos)
- Copyright compliance: Do not copy original site text content, trademarks, or sensitive information
References
For more detailed examples and patterns, refer to:
- references/examples.md - Reproduction examples for common website types
- references/patterns.md - CSS layout and interaction pattern references
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install static-site-cloner - 安装完成后,直接呼叫该 Skill 的名称或使用
/static-site-cloner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Static Site Cloner 是什么?
Static site reproduction expert - Analyze target websites and manually code their structure, visual style, and basic interactions using pure HTML/CSS/JavaScr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。
如何安装 Static Site Cloner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install static-site-cloner」即可一键安装,无需额外配置。
Static Site Cloner 是免费的吗?
是的,Static Site Cloner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Static Site Cloner 支持哪些平台?
Static Site Cloner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Static Site Cloner?
由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。