OpenParable
Skip to content
← Back to skills

Ip

DevOps & Security
ip

Ip is an Agent Skill for devops & security published in the x-cmd/x-cmd repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

IP address utilities — geolocation, subnet scanning, port discovery. Zero barrier — use with x-cmd or curl + standard networking tools. Use for "ip", "geolocation", "subnet", "port scan", "network".

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/x-cmd/x-cmd/blob/HEAD/mod/skill0/lib/skill0/skills/ip/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ip, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

ip — skill0

IP address lookup, geolocation, subnet discovery, and port scanning.

Quick Start

# With x-cmd
x ip                        # List all local IPs
x ip geolite 8.8.8.8        # Geolocation lookup
x ip info 192.168.1.0       # IP classification
x ip map 192.168.1.0/24     # Discover active hosts
x ip tps localhost           # Port scan

# Without x-cmd — use curl for geolocation
curl -s "https://ipinfo.io/8.8.8.8/json"
# Use standard tools for local IPs
ifconfig | grep "inet "     # macOS
ip addr show                # Linux

What's Available

CommandDescription
x ip lsList all local IP addresses
x ip geolite <ip>Geolocation via ipinfo.io
x ip info <ip>IP class/type classification
x ip cidr <cidr>CIDR range info
x ip map <subnet>ICMP ping sweep
x ip tps <host>TCP port scan

Standalone Alternatives

  • Geolocation: curl https://ipinfo.io/<IP>/json
  • Local IPs: ifconfig, ip addr, hostname -I
  • Port scan: nc -zv, nmap

This skill0 grows

Starting with the essentials. Will add:

  • Common networking patterns
  • API reference for ipinfo.io
  • Subnet calculation formulas