← 返回 Skills 市场
520xiaomumu

html-easy-deploy

作者 Xiao Mu · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
75
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install html-easy-deploy
功能描述
Instantly deploy a single self-contained HTML page to htmlcode.fun for quick live URLs of landing, demo, or microsites without complex hosting setups.
使用说明 (SKILL.md)

\r \r

html-easy-deploy\r

\r

Overview\r

\r Use htmlcode.fun when the output can be delivered as one standalone HTML document and speed matters more than full project-hosting features. This skill is designed for agents that need the shortest path from HTML content to a live shareable URL.\r \r Live example and walkthrough:\r

Decision rule\r

\r Use this skill when all of the following are true:\r

  • The deliverable is a single HTML page.\r
  • The page can be self-contained or nearly self-contained.\r
  • Fast sharing matters more than custom domains, CI/CD, or multi-file assets.\r \r Do not use this skill when any of the following are true:\r
  • The project is a React, Vue, Next, or multi-file frontend app.\r
  • The site needs build steps, environment variables, or asset pipelines.\r
  • The user specifically needs their own domain bound to the host.\r
  • The page is likely to exceed the service limit of about 1 MB HTML payload.\r \r

Core workflow\r

\r

  1. Produce one complete HTML document.\r
  2. Inline CSS and JS when practical.\r
  3. Add quality metadata before deploy:\r
    • \x3Ctitle>\r
    • \x3Cmeta name="description">\r
    • \x3Cmeta name="viewport" content="width=device-width, initial-scale=1.0">\r
    • Open Graph tags when the page will be shared\r
  4. Decide whether the page needs a stable short code.\r
    • For one-off pages, deploy without custom code.\r
    • For pages that will be updated in place, set enableCustomCode=true and choose customCode on first deploy.\r
  5. Deploy with JSON to POST https://www.htmlcode.fun/api/deploy.\r
  6. Save the returned code, url, and qrCode.\r
  7. For later edits, update with PATCH https://www.htmlcode.fun/api/deploy/content using the same code.\r
  8. If the API returns 429, wait for retryAfterSeconds before retrying.\r \r

Fastest path\r

\r Prefer the bundled script when working from local files.\r \r Deploy a new page:\r \r

python scripts/htmlcode_deploy.py deploy page.html --title "launch-page" --code launch-page\r
```\r
\r
Update an existing short code in place:\r
\r
```bash\r
python scripts/htmlcode_deploy.py update launch-page page.html --title "launch-page-v2"\r
```\r
\r
Fetch deployed content:\r
\r
```bash\r
python scripts/htmlcode_deploy.py get launch-page --output launch-page.html\r
```\r
\r
Use raw API calls only when the agent already has HTML content in memory and does not need a file-based workflow.\r
\r
## Request format\r
\r
Always send JSON.\r
\r
Required fields:\r
- `filename`\r
- `content`\r
\r
Useful optional fields:\r
- `title`\r
- `enableCustomCode`\r
- `customCode`\r
\r
Example deploy payload:\r
\r
```json\r
{\r
  "filename": "index.html",\r
  "title": "launch-page",\r
  "content": "\x3C!doctype html>\x3Chtml>...\x3C/html>",\r
  "enableCustomCode": true,\r
  "customCode": "launch-page"\r
}\r
```\r
\r
Example update payload:\r
\r
```json\r
{\r
  "code": "launch-page",\r
  "content": "\x3C!doctype html>\x3Chtml>...updated...\x3C/html>",\r
  "title": "launch-page-v2",\r
  "filename": "index.html"\r
}\r
```\r
\r
## Best practices for agents\r
\r
- Prefer one larger deploy over many tiny edits because the service enforces a 10 second cooldown after success.\r
- Do not use multipart upload or `-F file`. Read files into memory and send them as JSON `content`.\r
- Keep the page self-contained. Inline CSS, inline lightweight JS, and avoid many external dependencies.\r
- Keep images small. Large base64 assets can quickly hit the payload limit.\r
- If the page will be revised repeatedly, reserve a meaningful `customCode` at the first deploy.\r
- Save returned `code`, `url`, and `qrCode` immediately after deployment.\r
- When receiving `429`, respect `retryAfterSeconds` instead of retrying aggressively.\r
- Treat htmlcode.fun as a fast publication channel, not a full static hosting platform.\r
- Tell the user clearly when the page is better suited for Vercel or Netlify instead.\r
\r
## What this host is good at\r
\r
- Temporary landing pages\r
- Demo pages\r
- Shareable documentation pages\r
- QR-linked event or campaign pages\r
- AI-generated single-file frontends\r
- Stable short-link pages that need quick overwrite updates\r
\r
## What this host is not good at\r
\r
- Multi-page sites with shared assets\r
- Framework builds\r
- Large production frontends\r
- Team workflows with preview environments and rollback\r
- Confirmed custom-domain hosting workflows\r
\r
## Example live page\r
\r
Reference example:\r
- https://www.htmlcode.fun/s/htmlcode-fun-guide\r
\r
Use that page as a model for how to explain advantages, limitations, and deployment guidance in one self-contained HTML document.\r
安全使用建议
This skill appears to do exactly what it says: upload a single HTML file to htmlcode.fun. Before installing, consider whether you trust the target domain (no homepage/source URL provided here), and never deploy HTML that contains passwords, API keys, or other sensitive data — the service will publish whatever you send. Test with non-sensitive samples first, verify the returned URL/code behavior, and prefer a well-known hosting provider if you need custom domains, access controls, or long-term production hosting.
功能分析
Type: OpenClaw Skill Name: html-easy-deploy Version: 1.1.0 The skill provides a legitimate utility for deploying single-file HTML documents to the htmlcode.fun hosting service. The bundled Python script (scripts/htmlcode_deploy.py) uses standard libraries to perform API requests for deploying, updating, and fetching content as described in the documentation. There is no evidence of data exfiltration, malicious execution, or prompt injection; the code and instructions are consistent with the stated purpose of providing a fast path for sharing HTML content.
能力评估
Purpose & Capability
Name/description, SKILL.md instructions, and the bundled Python script all align: they POST/GET JSON to https://www.htmlcode.fun to deploy, update, and fetch single-file HTML pages. Nothing in the files requests unrelated services, binaries, or credentials.
Instruction Scope
Instructions are scoped to producing one HTML document and sending it as JSON to the htmlcode.fun API. Caution: any HTML you send (including embedded data or credentials) will be published to an external host — do not deploy private or sensitive content. The SKILL.md does not instruct the agent to read unrelated files or secrets.
Install Mechanism
No install spec is provided (instruction-only skill) and the included script is a small, readable Python file using stdlib urllib. No remote downloads or archive extraction are performed by the skill.
Credentials
The skill requires no environment variables, credentials, or config paths. The payloads are JSON fields (filename, content, optional code/title) — no undeclared secrets are requested.
Persistence & Privilege
always is false and the skill does not request elevated or persistent agent/system privileges. The script only communicates with the host domain and reads/writes files the user explicitly passes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install html-easy-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /html-easy-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Alias publish for discoverability. Same htmlcode.fun deployment workflow, script, and live guide as easy-html-deploy
元数据
Slug html-easy-deploy
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

html-easy-deploy 是什么?

Instantly deploy a single self-contained HTML page to htmlcode.fun for quick live URLs of landing, demo, or microsites without complex hosting setups. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。

如何安装 html-easy-deploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install html-easy-deploy」即可一键安装,无需额外配置。

html-easy-deploy 是免费的吗?

是的,html-easy-deploy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

html-easy-deploy 支持哪些平台?

html-easy-deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 html-easy-deploy?

由 Xiao Mu(@520xiaomumu)开发并维护,当前版本 v1.1.0。

💬 留言讨论