← 返回 Skills 市场
liujintao-2021

Static Server

作者 liujintao-2021 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
452
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install static-server
功能描述
Start a local HTTP server to preview static HTML pages. Use when testing static pages, previewing HTML files, or when browser tools cannot access file:// URL...
安全使用建议
This skill is functionally coherent and contains no credential or install requirements, but take these precautions before using it: - Network exposure: the script binds to all interfaces (0.0.0.0) even though it advertises 'localhost'. If you only want local access, modify the bind to 127.0.0.1 (e.g., socketserver.TCPServer(('127.0.0.1', port), Handler)) or use an equivalent API that allows binding to localhost. - Do not serve directories containing secrets (SSH keys, config files, .env files). The server serves the whole directory tree you point it at. - Run as an unprivileged user and pick a non-conflicting port. Confirm your firewall or NAT does not forward the chosen port to the public internet. - If you cannot change the script, prefer running it from a dedicated temporary directory containing only files you intend to expose. If you accept the small change to bind only to localhost and follow the precautions above, the skill is reasonable for local static previewing. Otherwise, treat it as potentially exposing files on your local network.
功能分析
Type: OpenClaw Skill Name: static-server Version: 1.0.0 The `scripts/serve.py` file uses `os.chdir(directory)` to change the current working directory to a user-provided path before starting an HTTP server. While this is standard for `http.server.SimpleHTTPRequestHandler` to serve content from a specific location, it creates a significant local file disclosure vulnerability. If an attacker can manipulate the `path` argument (e.g., via prompt injection against the agent) to point to sensitive directories like `/` or `/home/user`, local files could be exposed to anyone connecting to the localhost server. There is no evidence of malicious intent (e.g., exfiltration, persistence) in the code or the `SKILL.md` instructions, but the capability for unintended file exposure makes it suspicious.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the included scripts all align: the skill is a small Python static-file server for previewing HTML. However, the code binds to all interfaces (socketserver.TCPServer(('', port))) while the description repeatedly refers to 'localhost' URLs; this is a notable mismatch between the claimed 'local-only' purpose and the actual network binding.
Instruction Scope
Instructions are limited to starting the server, opening a browser, and killing the process—appropriate for the stated purpose. Concern: the examples assume local-only access (http://localhost:PORT) but the server listens on all interfaces, which may expose served files to other hosts on the network. Also the alternative one-liner (python -m http.server) similarly defaults to listening on all interfaces in many environments.
Install Mechanism
No install spec; this is an instruction-only skill with a small included Python script. Nothing is written to disk by an installer and no external downloads are performed.
Credentials
No environment variables, credentials, or config paths are requested; the skill's requirements are minimal and proportionate to a local static server.
Persistence & Privilege
The skill is user-invocable, not always-enabled, and does not request persistent system privileges or modify other skills. Autonomous invocation is allowed by default but is not combined with other concerning privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install static-server
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /static-server 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Python HTTP server for static HTML preview
元数据
Slug static-server
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Static Server 是什么?

Start a local HTTP server to preview static HTML pages. Use when testing static pages, previewing HTML files, or when browser tools cannot access file:// URL... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 452 次。

如何安装 Static Server?

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

Static Server 是免费的吗?

是的,Static Server 完全免费(开源免费),可自由下载、安装和使用。

Static Server 支持哪些平台?

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

谁开发了 Static Server?

由 liujintao-2021(@liujintao-2021)开发并维护,当前版本 v1.0.0。

💬 留言讨论