Install any skill in seconds. Free to start, no credit card required.
Get Started Free →检测一个 IP 或住宅/机房代理节点的质量——注册库、地理库一致性、ASN/org、风控信誉、黑名单、住宅真实性、BGP 宣告、目标服务(Grok/Claude/ChatGPT)解锁与延迟三角测量。判定该 IP 能否安全用于 AI 服务(避免被地理库误判到别国导致区域锁)。当用户说"查这个 IP"、"这个节点在哪"、"这个代理能用吗"、"IP 质量检测"、"验收住宅 IP"、"为什么被判定在 X 国"、"check ip"、给出 socks5 代理凭证问归属或解锁时使用。
.claude/skills/majiayu000-ip-check/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 87% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 189% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 120% | 0% |
判定一个 IP(或带凭证的 socks5 代理)是否适合用于 AI 服务(Grok/Claude/ChatGPT),核心是识破"物理在美国、纸面在别国"的租赁 IP 段——这类 IP 会被 ipinfo/MaxMind 等商业地理库判到欧盟,导致 Grok/Claude 区域锁,而风控只看地理库不看物理延迟。
只读检测,不改任何系统配置。脚本只发出站 HTTP/DNS 查询和(带凭证时)通过代理的探测,不写文件、不改代理设置、不动网络配置。
Direct actions:
ipcheck.py,读 JSON,按 4 条硬标准出记分卡。Escalate before:
unreliable(DNS 劫持)时,必须提示用户换网络重跑,不得把未测准当"干净"。error;不得改用 gateway 或跳过代理层继续判定。Evidence-backed pushback:
Feedback loop:
socks5://user:pass@host:port)问归属或某服务解不解锁脚本随 skill 安装位置运行。优先使用当前 runtime 的安装路径:Codex 通常是 ~/.agents/skills/ip-check/scripts/ipcheck.py,Claude Code 通常是 ~/.claude/skills/ip-check/scripts/ipcheck.py,仓库开发时也可用 skills/ip-check/scripts/ipcheck.py。
bashpython3 <script> <IP> # 只查 IP python3 <script> socks5://user:pass@host:port # 带凭证多跑代理实测层 python3 <script> <IP> --proxy socks5://user:pass@host:port # IP 与代理分开给
脚本输出结构化 JSON(9 层),你的工作是读 JSON 做判定,不要只转述字段。可选环境变量 IPQS_KEY(IPQualityScore 免费 5000/月)、ABUSEIPDB_KEY(免费 1000/天)存在时自动多跑两个风控源,没有则该项标 skipped。
| 层 | 数据源 | 看什么 | |---|---|---| | rdap | rdap.org → RIR | 注册库(ARIN=北美好 / RIPE=欧洲需警惕)、org、lease_flag、country | | geo | ipinfo + ip-api + ipwho | 三库判定国家是否一致(consensus)还是分歧(split) | | asn | ipinfo org + rdap | ASN 是否真 ISP、org 是否与 ASN 主体一致 | | reputation | proxycheck + ipapi.is (+IPQS +AbuseIPDB) | proxy/vpn/datacenter 标记、risk 分、欺诈分 | | dnsbl | Spamhaus/Barracuda/SORBS/SpamCop | 垃圾邮件黑名单(自带 DNS 劫持检测) | | ptr | dig -x | 反向 DNS 是否有真住宅域名格式(hsd1/cable/dsl) | | bgp | RIPEstat | 实际由哪个 ASN 宣告该前缀 | | services | 代理直连各服务 | Grok/ChatGPT/Anthropic 是否可达、cf_loc、是否区域锁(需代理) | | exit | 代理查出口 3 次 | 单跳还是轮换池、出口 IP 是否等于服务器 IP(需代理) | | latency | 代理→各洲 AWS TLS 建连 ×3 | 物理最近的大洲(需代理) |
输出一张记分卡,4 条硬标准逐项 ✅/⚠️/❌,再给总判定。
硬标准(4 条,全过才算合格):
rdap.rir == "ARIN" 且 rdap.country == "US"。RIPE/APNIC + 非美 country = ❌(这是西班牙段的死因)。lease_flag=true(mnt 出现 interlir/lease)= ❌ 直接退货。geo.consensus == true 且国家都是 US。geo.split == true(库之间打架)= ⚠️ 强警告,这就是"纸面搬家"信号,分歧本身比任何单库结论更重要。asn.is_real_isp == true 且 asn.org_matches_asn == true → ✅。asn.is_real_isp == true 但 asn.org_matches_asn == false(org 是陌生第三方名,如 Treochoy9/AviationAI)→ ⚠️ 租赁段特征,可用但有漂移风险,不是直接挂。asn.is_real_isp == false(ASN 不在真 ISP 白名单)→ 不单独否决,白名单只覆盖北美主流 ISP,合法的欧洲/亚洲/中小 ISP 会漏判。结合 reputation 综合看:若同时命中 datacenter/hosting → 退货;否则归 ⚠️ 慎用,提示"ASN 非主流 ISP,人工确认是否真住宅"。risk==0、proxy/vpn=no、type 非 hosting;ipapi.is 各 is_ 全 false;有 IPQS 时 fraud_score 低。任一命中 datacenter 或 abuser = ❌。辅助信号(加权,不单独否决):
dnsbl.status=="unreliable" → 必须提示用户:当前网络有 DNS 劫持(多半是 Clash TUN fake-ip),黑名单这项没测准,要在非 TUN 网络重跑才有效。不要把 unreliable 当"干净"。ptr.has_ptr==false → 挂靠段常见特征,弱负面信号(纽约段也没 PTR 但仍合格,所以不单独否决)。bgp.announced_by 与 rdap org 不同主体 → IP 段近期可能易主,记录但不否决。代理实测层(有凭证时,价值最高——直接问风控本人):
services.results.grok.com.region_blocked==true(且是精确短语命中)→ Grok 确实锁了这个出口,最强负面证据。注意 region_blocked 是弱启发信号(首页是 SPA 空壳),http_status 和 cf_loc 才是硬信号——cf_loc != "US" 说明 Cloudflare 也判非美。exit.stable==false → 买静态却拿到轮换池,另一种坑,报告出来。exit.exit_ip != 服务器IP → 多跳,记录。latency.closest 是欧洲/亚洲但地理库判 US,或反之 → 物理/纸面分裂,明确指出"物理在 X,纸面在 Y,风控信纸面"。总判定三档:
给用户一张中文记分卡:先一句话总判定,再逐层列关键证据(标注 ✅/⚠️/❌),最后给行动建议。区分事实(来自 JSON 字段)和推断(如"物理大概率在美东,依据延迟排名")。不要罗列所有原始字段,只挑支撑判定的关键证据。
127.255.255.0/24 查询错误码同样标 unreliable,不计作"未列入"或命中。services 层首页多为 SPA 空壳,region_blocked 是弱信号,以 http_status/cf_loc 为准。| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 9,448 | 6,522 | -31% | 1 | 1 | 0% | 1,867 | 3,115 | +67% | 0 | 0 | — |
case-02 | fail→pass | 10,203 | 6,304 | -38% | 1 | 1 | 0% | 1,802 | 3,371 | +87% | 0 | 0 | — |
case-03 | fail→pass | 16,503 | 5,025 | -70% | 1 | 1 | 0% | 3,137 | 3,099 | -1% | 0 | 0 | — |
case-04 | fail→fail | 17,962 | 5,028 | -72% | 1 | 1 | 0% | 3,103 | 2,720 | -12% | 0 | 0 | — |
case-05 | fail→fail | 14,520 | 13,616 | -6% | 1 | 1 | 0% | 2,429 | 2,741 | +13% | 0 | 0 | — |
case-06 | fail→fail | 20,612 | 5,982 | -71% | 1 | 1 | 0% | 3,270 | 2,676 | -18% | 0 | 0 | — |
case-07 | fail→pass | 6,716 | 8,262 | +23% | 1 | 1 | 0% | 1,340 | 3,874 | +189% | 0 | 0 | — |
case-08 | fail→pass | 9,262 | 8,416 | -9% | 1 | 1 | 0% | 1,713 | 3,762 | +120% | 0 | 0 | — |
case-09 | fail→pass | 9,548 | 7,792 | -18% | 1 | 1 | 0% | 1,684 | 3,559 | +111% | 0 | 0 | — |
case-10 | fail→pass | 6,695 | 7,118 | +6% | 1 | 1 | 0% | 1,186 | 3,596 | +203% | 0 | 0 | — |
case-11 | fail→fail | 9,620 | 9,972 | +4% | 1 | 1 | 0% | 1,750 | 4,033 | +130% | 0 | 0 | — |
case-12 | fail→pass | 9,477 | 9,676 | +2% | 1 | 1 | 0% | 1,755 | 4,021 | +129% | 0 | 0 | — |
case-13 | pass→pass | 11,510 | 7,106 | -38% | 1 | 1 | 0% | 1,991 | 3,557 | +79% | 0 | 0 | — |
case-14 | fail→pass | 9,386 | 9,757 | +4% | 1 | 1 | 0% | 1,683 | 4,041 | +140% | 0 | 0 | — |
case-15 | fail→pass | 5,511 | 6,489 | +18% | 1 | 1 | 0% | 1,094 | 3,579 | +227% | 0 | 0 | — |
case-16 | pass→pass | 11,663 | 7,048 | -40% | 1 | 1 | 0% | 1,980 | 3,515 | +78% | 0 | 0 | — |
case-17 | pass→pass | 8,265 | 8,977 | +9% | 1 | 1 | 0% | 1,399 | 3,859 | +176% | 0 | 0 | — |
case-18 | pass→pass | 32,129 | 7,384 | -77% | 1 | 1 | 0% | 1,365 | 3,694 | +171% | 0 | 0 | — |
case-19 | pass→pass | 14,602 | 11,602 | -21% | 1 | 1 | 0% | 2,241 | 4,218 | +88% | 0 | 0 | — |
case-20 | pass→pass | 18,760 | 11,986 | -36% | 1 | 1 | 0% | 2,816 | 3,971 | +41% | 0 | 0 | — |
case-21 | pass→pass | 12,285 | 6,678 | -46% | 1 | 1 | 0% | 1,970 | 3,426 | +74% | 0 | 0 | — |
case-22 | pass→pass | 13,651 | 9,027 | -34% | 1 | 1 | 0% | 2,442 | 3,942 | +61% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +45 percentage points is the difference between those two pass rates over the 19 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.