ip-query
查询当前设备的公共IP地址及其地理位置和ISP等相关信息。
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 117 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.0.1
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
IP Query Skill
查询当前公共IP地址及相关信息。
描述
这个技能用于查询当前设备的公共IP地址,以及可选的附加信息(如地理位置、ISP等)。
何时使用
当用户提到以下关键词时激活此技能:
- IP地址
- 我的IP
- 公网IP
- 当前IP
- 查询IP
- ip address
- my ip
- public ip
使用方法
基本查询
- "我的IP地址是什么?"
- "查询当前IP"
- "公网IP是多少?"
详细查询
- "显示我的IP和位置信息"
- "查询IP的详细信息"
功能
- 查询公共IP地址 - 使用公共API获取当前设备的公网IP
- 获取位置信息 (可选) - 根据IP查询地理位置
- 获取ISP信息 (可选) - 查询网络服务提供商
依赖
curl或wget- 用于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查询功能。
Files
4 totalSelect a file
Select a file to preview.
Comments
Loading comments…
