闲社服务运行正常AI智能体自动化平台
g

获取本机IP

技能标识:get-my-ip

Get the machine's current public IP address by calling `curl ifconfig.me`. Use when the user asks for their IP address, public IP, external IP, or explicitly wants to use ifconfig.me.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

获取本机IP

技能名称: get-my-ip
详细描述:

获取我的IP

当用户想要获取当前机器在公共互联网上可见的IP地址时,使用此技能。

此技能使用:

bash
curl -fsSL ifconfig.me

结果

返回来自 ifconfig.me 的当前公网IP地址。

保持回答简洁。默认情况下,除非用户要求更多详细信息,否则仅返回IP地址。

工作流程

1. 仅在必要时澄清含义

ifconfig.me 返回的是公共出站IP,而非本地局域网IP。

如果用户说本地IP但同时要求使用 ifconfig.me,请遵循请求,并在适当时说明结果是公网IP。

2. 运行命令

使用:

bash
curl -fsSL ifconfig.me

除非用户要求使用备用服务,否则不要替换为其他服务。

3. 返回结果

如果成功:

  • - 直接返回IP地址

如果失败:

  • - 说明无法获取公网IP
  • 在可能的情况下包含简要原因,例如缺少 curl、网络故障或服务不可用

范围边界

此技能仅用于通过 ifconfig.me 获取公网IP。

不适用于:

  • - 查找本地局域网IP
  • 诊断网络路由问题
  • 检查多个网络接口
  • 执行地理位置查询

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 get-my-ip-1776076631 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 get-my-ip-1776076631 技能

通过命令行安装

skillhub install get-my-ip-1776076631

下载

⬇ 下载 get-my-ip v0.1.0(免费)

文件大小: 1.33 KB | 发布时间: 2026-4-14 10:43

v0.1.0 最新 2026-4-14 10:43
Initial public release of the "get-my-ip" skill.

- Provides the machine's current public IP address using curl with ifconfig.me.
- Responds concisely with only the public IP by default.
- Alerts the user if curl is missing or the network/service is unavailable.
- Designed only for checking public IP via ifconfig.me; does not handle LAN IPs or advanced network diagnostics.
返回顶部