current_ip_info
Skill37 starsChanged 33 days agoMITView on GitHub
Use this skill when the user asks for the current public IP address, IP geolocation, network location, city, region, country, ISP, or ASN. Run the bundled Lua script once with lua_run_script. The script uses the Lua capability module from lua_module_call_capability to call the registered http_request capability against https://ipinfo.io/json. The configured search_http_allowlist must allow ipinfo.io or use *. Default action: The script prints a human-readable line and a compact JSON result: Report the IP geolocation values to the user. If the…
In this repository24 other files it gives its agents.
- air_mouseSkill
- bilibili_up_fansSkill
- china_a_share_quoteSkill
- cloudmusicSkill
- current_weatherSkill
- dfrobot_matrix_lidar_8x8_i2cSkill
- dfrobot_stcc4_i2cSkill
- example_skillSkill
- flashbackSkill
- gimbal_color_detectSkill
- gimbal_motion_detectSkill
- github_repo_starSkill
- movement_detectionSkill
- network_radioSkill
- servo_dogSkill
- stock_quotes_displaySkill
- token_usageSkill
- unihiker_buttonSkill
- unihiker_expansion_batterySkill
- unihiker_expansion_irSkill
- unihiker_expansion_motor_controlSkill
- unihiker_expansion_servo_controlSkill
- unihiker_expansion_WS2812Skill
- weather_clockSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this skill when the user asks for the current public IP address, IP geolocation, network location, city, region, country, ISP, or ASN.
- Very specific: line 20
Run the bundled Lua script once with lua_run_script.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Current IP Info
Use this skill when the user asks for the current public IP address, IP geolocation, network location, city, region, country, ISP, or ASN.
Run the bundled Lua script once with lua_run_script. The script uses the Lua
capability module from lua_module_call_capability to call the registered
http_request capability against https://ipinfo.io/json.
The configured search_http_allowlist must allow ipinfo.io or use *.
Script Args Schema
{
"type": "object",
"properties": {
"timeout_ms": {
"type": "integer",
"description": "Optional HTTP timeout in milliseconds. Defaults to 15000."
},
"session_id": {
"type": "string",
"description": "Optional session id passed to capability.call opts."
},
"source_cap": {
"type": "string",
"description": "Optional source capability name. Defaults to current_ip_info."
}
}
}Tool Call Inputs
Default action:
{
"path": "{CUR_SKILL_DIR}/scripts/current_ip_info.lua",
"args": {}
}Behavior
The script prints a human-readable line and a compact JSON result:
[current_ip_info] ip=203.0.113.10 city=Singapore region=Singapore country=SG loc=1.3521,103.8198 org=AS00000 Example Network
{"ok":true,"ip":"203.0.113.10","city":"Singapore","region":"Singapore","country":"SG","loc":"1.3521,103.8198","latitude":1.3521,"longitude":103.8198,"org":"AS00000 Example Network","timezone":"Asia/Singapore"}Report the IP geolocation values to the user. If the script errors, report the error message directly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

