← 返回 Skills 市场
dinghaibin

Hostname Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hostname-tool
功能描述
Display or set the system hostname. Use for identifying the current machine on a network and configuring system identity.
使用说明 (SKILL.md)

Hostname - System Name Utility

Show or modify the system's hostname. The hostname identifies the machine on the network and is used in shell prompts, logs, and network services.

Usage

hostname-tool [options] [new-hostname]

Running without arguments displays the current hostname. Provide a new hostname to change it (requires root privileges).

Examples

# Display current hostname
hostname-tool

# Show fully qualified domain name
hostname-tool --fqdn

# Display IP address associated with hostname
hostname-tool --ip-address
安全使用建议
The package is small and the script just prints Python's socket.gethostname(), so it looks harmless, but the documentation promises additional features that are not implemented. If you need a tool that can set hostnames, compute FQDNs, or resolve IP addresses, do not rely on this skill as-is. Before installing or running it: (1) review the script contents yourself (it's short), (2) run it in a sandbox or non-production environment, and (3) avoid running unknown tools as root. If you expect the documented features, ask the publisher for a corrected version or use an alternative utility that explicitly implements those capabilities.
功能分析
Type: OpenClaw Skill Name: hostname-tool Version: 1.0.0 The skill bundle provides a simple utility to retrieve the system hostname using Python's socket library in scripts/hostname.py. Although the documentation in SKILL.md describes additional features like setting the hostname or retrieving the FQDN that are not actually implemented in the code, the existing script is harmless and contains no indicators of malicious intent, data exfiltration, or security risks.
能力评估
Purpose & Capability
The skill claims to 'Display or set the system hostname' and documents options (--fqdn, --ip-address, changing hostname) but the included script only prints socket.gethostname() and offers no CLI parsing or hostname-setting functionality. This is a clear mismatch between claimed capability and actual implementation.
Instruction Scope
SKILL.md describes commands that would display FQDN, associated IP, and change the hostname (requiring root). The runtime instructions do not appear in the shipped code: there are no flags, no logic to compute FQDN/IP, and no code to change system hostname. The instructions therefore overreach the actual runtime actions.
Install Mechanism
No install spec is provided and only a tiny Python script is included. Instruction-only with a small helper script is low-risk from an installation perspective.
Credentials
The skill requests no environment variables, credentials, or config paths. The code uses only Python's socket.gethostname() and does not access secrets or external network endpoints.
Persistence & Privilege
The skill does not request persistent presence, does not modify other skills or system config, and does not require any special platform flags. The SKILL.md notes that changing hostname would require root, which is accurate but not implemented in the code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hostname-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hostname-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug hostname-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Hostname Tool 是什么?

Display or set the system hostname. Use for identifying the current machine on a network and configuring system identity. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 Hostname Tool?

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

Hostname Tool 是免费的吗?

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

Hostname Tool 支持哪些平台?

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

谁开发了 Hostname Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论