← 返回 Skills 市场
shogunwin

ip-query

作者 shogunwin · GitHub ↗ · v0.0.1 · MIT-0
cross-platform ✓ 安全检测通过
259
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ip-query
功能描述
查询当前设备的公共IP地址及其地理位置和ISP等相关信息。
使用说明 (SKILL.md)

IP Query Skill

查询当前公共IP地址及相关信息。

描述

这个技能用于查询当前设备的公共IP地址,以及可选的附加信息(如地理位置、ISP等)。

何时使用

当用户提到以下关键词时激活此技能:

  • IP地址
  • 我的IP
  • 公网IP
  • 当前IP
  • 查询IP
  • ip address
  • my ip
  • public ip

使用方法

基本查询

  • "我的IP地址是什么?"
  • "查询当前IP"
  • "公网IP是多少?"

详细查询

  • "显示我的IP和位置信息"
  • "查询IP的详细信息"

功能

  1. 查询公共IP地址 - 使用公共API获取当前设备的公网IP
  2. 获取位置信息 (可选) - 根据IP查询地理位置
  3. 获取ISP信息 (可选) - 查询网络服务提供商

依赖

  • curlwget - 用于HTTP请求
  • jq (可选) - 用于解析JSON响应

实现

技能使用以下公共API:

  • 主要API: https://api.ipify.org?format=json (返回纯IP)
  • 备用API: https://ipinfo.io/json (返回详细信息)

示例输出

🌐 您的公共IP地址: 123.45.67.89

📍 位置信息:
- 城市: 北京
- 地区: 北京市
- 国家: 中国
- 经纬度: 39.9042, 116.4074

🏢 网络信息:
- ISP: 中国电信
- 组织: China Telecom

🔒 隐私提示: 这是您的公网IP地址,请勿随意分享。

安全提示

  • 此技能仅查询公共IP地址,不涉及私人网络信息
  • 使用公共API,数据可能被API提供商记录
  • 建议仅在需要时查询

脚本

主要脚本位于 scripts/ip_query.sh,包含完整的IP查询功能。

安全使用建议
This skill is coherent and low-risk: it simply queries public IP-related APIs and prints results. Two practical considerations before installing: 1) network privacy — your public IP and request metadata are visible to the third-party APIs (ipinfo.io, ipify, etc.), so avoid using it if you don't want that logged; 2) verify you have curl installed and that the test script is run from the correct directory (scripts/test_ip.sh expects ./ip_query.sh). If you prefer not to use third-party services, review and replace the API endpoints with a self-hosted or privacy-preserving alternative before use.
功能分析
Type: OpenClaw Skill Name: ip-query Version: 0.0.1 The IP Query skill is a legitimate utility designed to retrieve the user's public IP address and associated geolocation/ISP information using well-known public APIs (e.g., ipify.org, ipinfo.io). The shell scripts (scripts/ip_query.sh and scripts/test_ip.sh) are transparent, well-documented, and contain no evidence of data exfiltration, unauthorized execution, or malicious intent.
能力评估
Purpose & Capability
Name/description match the implementation: scripts call public IP services (api.ipify.org, ipinfo.io, etc.) to obtain IP, geolocation, and ISP info. Declared dependencies (curl, optional jq) align with the code. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md instructs the agent to use curl/wget and optionally jq to call the listed public APIs; the runtime scripts implement exactly that. The scripts do not read local credentials or unrelated files. Note: the helper test script calls ./ip_query.sh — it must be run from the scripts directory or adjusted to reference the correct path.
Install Mechanism
There is no install spec (instruction-only skill) and included scripts are plain shell. Nothing is downloaded during install and no archives/unknown URLs are used.
Credentials
The skill requires no environment variables, credentials, or config paths. It only needs network access to public APIs, which is appropriate for its purpose.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes or alter other skills. It only contains runnable scripts and does not persist credentials or modify agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ip-query
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ip-query 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.1
Initial release of the IP Query Skill: - 查询并显示当前设备的公共IP地址 - 可选获取IP所属地理位置信息和ISP信息 - 支持通过多种中文及英文关键词自动激活 - 依赖curl或wget发起请求,支持jq解析JSON - 示例输出包括IP、位置信息和网络信息
元数据
Slug ip-query
版本 0.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

ip-query 是什么?

查询当前设备的公共IP地址及其地理位置和ISP等相关信息。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 259 次。

如何安装 ip-query?

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

ip-query 是免费的吗?

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

ip-query 支持哪些平台?

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

谁开发了 ip-query?

由 shogunwin(@shogunwin)开发并维护,当前版本 v0.0.1。

💬 留言讨论