← 返回 Skills 市场
openlark

Static Site Cloner

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
115
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:

安全使用建议
This skill is internally coherent for generating front-end clones and does not request credentials or install code. Before installing, consider these practical points: 1) Legal/ethical: reproducing the look-and-feel of an existing site can raise copyright, trademark, or terms-of-service issues — avoid copying protected text, logos, or other trademarked assets and confirm you have the right to reproduce the target. 2) Privacy: do not use the skill to fetch pages behind authentication or containing private data. 3) web_fetch behavior: verify how your platform's web_fetch handles cookies, authenticated content, and rate limits so the agent won't inadvertently access restricted resources. 4) Review generated code before use: the skill outputs runnable HTML/CSS/JS — inspect it for correctness and remove any content you don't own. If you need stricter safeguards, require human approval before the agent fetches or reproduces pages.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description, SKILL.md, examples, and template all focus on producing front-end HTML/CSS/JS. There are no unrelated environment variables, binaries, or install steps requested — the resources included (examples, patterns, template) match the stated goal.
Instruction Scope
The runtime instructions explicitly call for using web_fetch to retrieve a target URL's HTML and then recreate structure/styles/interactions as pure front-end code. That stays within the stated purpose. Note: fetching arbitrary URLs can surface copyrighted, sensitive, or private content; the SKILL.md does include a copyright compliance admonition but does not enforce it. This is a behavioral/ethical risk (possible copyright/privacy issues), not an incoherence.
Install Mechanism
Instruction-only skill with no install spec and no code files to execute. This is the lowest-risk install model and is proportionate for a documentation/templating skill.
Credentials
The skill requires no environment variables, credentials, or config paths. That is proportional to its purpose of producing front-end code and matches the SKILL.md (no hidden credential access).
Persistence & Privilege
always is false and the skill does not request any persistent system-wide configuration or modify other skills. Autonomous invocation is allowed by default but is not combined with other concerning privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install static-site-cloner
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /static-site-cloner 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of static-site-cloner. - Reproduce website structure, appearance, and interactions using only HTML, CSS, and JavaScript. - Supports extracting and analyzing target site’s layout, style, and simple behaviors. - Outputs clean, semantic front-end code in standard project structure or single file. - Uses only pure front-end technologies—no backend or frameworks. - Excludes original site content, trademarks, and uses image placeholders to respect copyright.
元数据
Slug static-site-cloner
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论