feat: add ip-lookup skill (geolocation + RDAP + PTR + abuse check)#171
Closed
MichaelZhangty wants to merge 3 commits intoopenclaw:mainfrom
Closed
feat: add ip-lookup skill (geolocation + RDAP + PTR + abuse check)#171MichaelZhangty wants to merge 3 commits intoopenclaw:mainfrom
MichaelZhangty wants to merge 3 commits intoopenclaw:mainfrom
Conversation
|
Thanks for the pull request! This repository is read-only and is automatically synced from https://clawhub.ai, so we can’t accept changes here. Please make updates on the website instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Add
ip-lookupskillSummary
Adds a new
ip-lookupskill — a zero-dependency, zero-config network intelligence tool for any IP address or hostname. Built entirely on Python stdlib, so it works out of the box on any machine with Python 3.11+ and nopip installstep required.This fills a real gap in the skills catalog: there's no existing skill that combines IP geolocation, ASN/ISP lookup, reverse DNS, WHOIS/RDAP network block info, and abuse reputation checking in a single, clean CLI tool.
What it does
Given any IP address or hostname, the skill runs up to four lookups in parallel and renders a structured terminal report:
ABUSEIPDB_KEYenv varHostnames are auto-resolved to IP before lookup. RDAP uses ARIN first, falls back to RIPE for European addresses. All panels support
--jsonfor machine-readable output.Real-world use cases
Trigger examples (what a user might say)
CLI usage
All flags:
--json--abuseABUSEIPDB_KEY)--no-rdap--no-ptrSample output
Files changed
Technical notes
urllib,socket,json,argparsefrom stdlib--no-rdapor--jsonfor scriptingTesting
Tested on:
All pass. RDAP confirmed returning CIDR, abuse email, and registration dates.
Checklist
SKILL.mdhas valid YAML frontmatter (name+description+metadata)metadata.openclaw.emojiset to"🔍"metadata.openclaw.requires.bins=["python3"]_meta.jsonpresent withowner,slug,displayName,version,publishedAt{baseDir}placeholder used in SKILL.md (not hardcoded paths)--jsonmode works for scripting and automation8.8.8.8,1.1.1.1,github.compackage_skill.py— all checks passskills/<owner>/<skill-name>/directory convention