davidcastagnetoa/skills

geoip2_maxmind

Geolocalización por IP con base de datos descargable MaxMind GeoLite2

First seen Mar 3, 2026

Installation

$ npx skills add davidcastagnetoa/skills --skill geoip2_maxmind

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from davidcastagnetoa/skills · top by installs.

npx skills add davidcastagnetoa/skills

Browse all from davidcastagnetoa/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,342 B
  • docs SUMMARY.md 92 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 12 installs

SKILL.md

geoip2_maxmind

GeoIP2 con la base de datos GeoLite2 de MaxMind permite geolocalizar IPs sin depender de APIs externas. La base de datos se descarga localmente y se actualiza periódicamente.

When to use

Usar en el antifraud_agent para verificar coherencia entre la IP del usuario y la nacionalidad del documento. Una IP de un país diferente al del documento es una señal de riesgo (no bloqueante).

Instructions

  1. Instalar: pip install geoip2.
  2. Registrarse en MaxMind y obtener license key para GeoLite2.
  3. Descargar GeoLite2-Country.mmdb: geoipupdate o descarga manual.
  4. Cargar base de datos: reader = geoip2.database.Reader('GeoLite2-Country.mmdb').
  5. Consultar IP: response = reader.country(ip_address).
  6. Comparar: response.country.iso_code vs nacionalidad del documento.
  7. Si no coinciden, agregar flag geo_mismatch con peso moderado en el score de fraude.

Notes

  • GeoLite2 es gratuita pero menos precisa que GeoIP2 comercial (~99.5% vs ~99.8% a nivel país).
  • Actualizar la base de datos semanalmente con geoipupdate en un cron job.
  • No bloquear por geolocalización sola; muchos usuarios legítimos viajan o usan roaming.