Synthèse automatique
Ce skill décrit un monorepo Python de 44 modules appliquant les principes de l'Active Inference à l'analyse géospatiale, avec des modules spécialisés par domaine.
Points forts
- Couvre un large éventail de domaines géospatiaux, de l'agriculture et la santé au risque, au climat, à l'énergie et aux transports.
- Intègre des méthodes bayésiennes et d'Active Inference aux côtés de statistiques spatiales et d'indexation hexagonale H3.
- Organise les modules par usage analytique, domaine métier, simulation, gouvernance et présentation.
- Fournit une structure de découverte claire via des répertoires GEO-INFER-{NAME} et des SKILL.md détaillés par module.
Limites
- La taille du monorepo et le nombre de modules peuvent rendre l'entrée en matière difficile sans connaître le module pertinent.
- Suppose un environnement Python configuré avec les dépendances propres à chaque module, non détaillées ici.
- Les détails opérationnels dépendent fortement des SKILL.md de chaque module, ce document ne les remplace pas.
À utiliser pour une analyse spatiale avancée nécessitant de la modélisation bayésienne, de l'Active Inference, de l'indexation H3 ou un traitement géospatial spécialisé par domaine.
À éviter pour une simple visualisation cartographique ou une opération SIG basique qui ne requiert ni modèle statistique ni infrastructure Python modulaire.
Analyse de sécurité
SûrThe skill declares no tools and only provides a structured index of modules, import names, and an architecture diagram. There are no instructions for executing commands, accessing networks, modifying files, or handling secrets. It is purely descriptive documentation for a geospatial analysis framework.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Using GEO-INFER's WATER and RISK modules, model flood exposure for H3 hexagons in a coastal watershed and summarize the highest-risk cells.Build an Active Inference model with GEO-INFER ACT and SPACE to update beliefs about land-use change across H3 cells from new observations.Use GEO-INFER HEALTH and BAYES to estimate spatial access to clinics by region, compare Bayesian model variants, and report uncertainty.name: geo-infer description: Geospatial Active Inference framework with 44 modules for ecological, civic, and commercial spatial analysis. Use when working with geospatial data, Active Inference, Bayesian modeling, H3 hexagonal indexing, spatial statistics, or any domain-specific geographic analysis (agriculture, health, economics, risk, climate, energy, transport, marine, forestry, water).
GEO-INFER
A 44-module Python monorepo implementing Active Inference principles for geospatial analysis.
Instructions
Module Discovery
Modules are in GEO-INFER-{NAME}/ directories. Each has its own SKILL.md for detailed guidance.
Analytical Core
| Module | Import | Purpose |
|--------|--------|---------|
| MATH | geo_infer_math | Spatial statistics, topology, graph theory |
| ACT | geo_infer_act | Active Inference (free energy, belief updating) |
| BAYES | geo_infer_bayes | Bayesian inference (PyMC, TFP, variational) |
| AI | geo_infer_ai | ML pipelines, model selection, spatial features |
| COG | geo_infer_cog | Cognitive modeling (attention, memory, trust) |
| SPM | geo_infer_spm | Statistical Parametric Mapping (GLM, RFT) |
Spatial-Temporal & Infrastructure
| Module | Import | Purpose |
|--------|--------|---------|
| SPACE | geo_infer_space | H3 v4 hexagonal indexing, spatial backends |
| TIME | geo_infer_time | Time series, temporal analysis, forecasting |
| IOT | geo_infer_iot | IoT sensor ingestion (MQTT, streaming) |
| DATA | geo_infer_data | ETL pipelines, connectors, format loaders |
| API | geo_infer_api | FastAPI REST/GraphQL endpoints |
| SEC | geo_infer_sec | Security, threat detection, access control |
| OPS | geo_infer_ops | Monitoring, alerting, observability |
Domain Modules
| Module | Import | Purpose |
|--------|--------|---------|
| AG | geo_infer_ag | Agriculture, soil health, carbon (IPCC Tier 1) |
| HEALTH | geo_infer_health | Epidemiology, health access, SaTScan |
| ECON | geo_infer_econ | Bioregional markets, call auctions |
| RISK | geo_infer_risk | Catastrophe models, Monte Carlo loss |
| LOG | geo_infer_log | Logistics, routing, supply chain (PuLP) |
| BIO | geo_infer_bio | Biodiversity, habitat connectivity |
| CLIMATE | geo_infer_climate | Climate projections, SPI/PDSI indices |
| ENERGY | geo_infer_energy | LCOE, renewable siting, grid analysis |
| FOREST | geo_infer_forest | Forest cover, carbon stocks, wildfire |
| MARINE | geo_infer_marine | Ocean currents, coastal, MPA planning |
| EMERGENCY | geo_infer_emergency | SAR, disaster response, evacuation |
| TRANSPORT | geo_infer_transport | Traffic (BPR), EWMA forecasting, emissions |
| WATER | geo_infer_water | Watershed, hydrology, flood risk |
Agents & Simulation
| Module | Import | Purpose |
|--------|--------|---------|
| AGENT | geo_infer_agent | Multi-agent systems, telemetry |
| ANT | geo_infer_ant | ACO, PSO, ABC swarm optimization |
| SIM | geo_infer_sim | Agent-based simulation, Monte Carlo |
Community & Governance
| Module | Import | Purpose |
|--------|--------|---------|
| CIV | geo_infer_civ | Civic engagement, STEW-MAP |
| PEP | geo_infer_pep | Public engagement, CRM |
| ORG | geo_infer_org | Organizational modeling |
| COMMS | geo_infer_comms | Messaging, notifications, spatial routing |
| METAGOV | geo_infer_metagov | Polycentric governance, Ostrom |
| NORMS | geo_infer_norms | Compliance, normative inference (Jaccard) |
| REQ | geo_infer_req | Requirements, traceability, P3IF |
Presentation & Operations
| Module | Import | Purpose |
|--------|--------|---------|
| APP | geo_infer_app | Dashboards, agent widgets, map views |
| ART | geo_infer_art | Generative geo-art, cartographic design |
| EDU | geo_infer_edu | Curricula, exercises, assessment |
| PLACE | geo_infer_place | Geocoding, catchment analysis, H3 |
| GIT | geo_infer_git | Spatial data versioning, lineage |
| TEST | geo_infer_test | Unified test runner, fixtures, markers |
| EXAMPLES | geo_infer_examples | Orchestration patterns, workflows |
| INTRA | geo_infer_intra | Documentation hub, integration guides |
Architecture & Data Flow
┌──────────────────────────────────────────────────────────┐
│ Data Sources │
│ (files, DBs, APIs, MQTT sensors) │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ DATA / IOT (Ingestion Layer) │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ SPACE / TIME / PLACE (Indexing Layer) │
│ H3 v4 tessellation, CRS transforms, temporal indexing │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ MATH / BAYES / ACT / SPM (Analysis Layer) │
│ Spatial statistics, Bayesian models, Active Inference │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ AI / AGENT / ANT / SIM (Intelligence Layer) │
│ ML pipelines, agent systems, swarm optimization │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ Domain Modules (Application Layer) │
│ AG, HEALTH, ECON, RISK, LOG, BIO, CLIMATE, ENERGY, │
│ FOREST, MARINE, EMERGENCY, TRANSPORT, WATER │
└───────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────┐
│ API / APP / ART (Presentation Layer) │
│ REST endpoints, dashboards, visualizations │
└──────────────────────────────────────────────────────────┘
Common Patterns
# Graceful dependency imports (every __init__.py)
try:
from .core.engine import Engine
HAS_ENGINE = True
except ImportError:
HAS_ENGINE = False
# H3 v4 API (never use legacy h3.geo_to_h3)
import h3
cell = h3.latlng_to_cell(lat, lng, resolution)
lat, lng = h3.cell_to_latlng(cell)
# Module installation
# uv pip install -e ./GEO-INFER-MATH
Testing
# All modules
uv run python GEO-INFER-TEST/run_unified_tests.py
# Single module
uv run python -m pytest GEO-INFER-MATH/tests/ -v
# With coverage
uv run python -m pytest GEO-INFER-MATH/tests/ --cov=GEO-INFER-MATH/src
Modular Hygiene
uv sync --all-packages --all-extras
uv run python GEO-INFER-TEST/validate_repo_contracts.py --strict-source-language --skip-import-smoke
- Root
pyproject.toml,uv.lock, and.python-versiondefine the uv workspace. - Each module keeps importable behavior under
src/and at least four pytest files undertests/. - Planned work belongs in root
TODO.mdor a tracked issue, not source or test task markers. - Importable modules use
logging.getLogger(__name__); CLI entrypoints configure process-wide logging.
Examples
Source-backed spatial indexing example
from geo_infer_space import cell_to_latlng, latlng_to_cell
cell = latlng_to_cell(37.7749, -122.4194, resolution=9)
latitude, longitude = cell_to_latlng(cell)
print(cell, latitude, longitude)
Cross-module examples belong in GEO-INFER-EXAMPLES/examples/ and must be
checked against the current exports of every participating package before being
described as runnable.
GeoLibre export example
Emit an H3 grid as a .geolibre.json project for the GeoLibre viewer
(mirrors opengeos/GeoLibre's project format, version 0.1.0; one-way
integration — GEO-INFER produces, GeoLibre presents):
from geo_infer_space.core import (
build_h3_grid_project, geojson_layer, write_project,
)
project = build_h3_grid_project(
"H3 grid", grid_geojson, center=[-122.25, 37.65], zoom=9
)
write_project(project, "h3_grid.geolibre.json")
Related optional surfaces: geo_infer_space.core.h3_policy (resolution
suggestion + hard-cap guard), geo_infer_space.core.algorithm_registry,
geo_infer_space.core.whitebox_bridge, geo_infer_data.utils.duckdb_spatial,
and geo_infer_agent.core.llm_proxy. See the runnable example at
GEO-INFER-EXAMPLES/examples/getting_started/geolibre_export/.
Guidelines
- No mock/stub/placeholder code — every function must have real logic
- Active Inference first — ground implementations in free energy minimization
- Type hints everywhere — full annotations on all parameters and returns
- H3 v4 only — use
latlng_to_cell, not legacygeo_to_h3 - Graceful degradation — optional deps via
try/except ImportError - Logger, not print — use structured logging in all modules
- Root task ledger — use
TODO.mdor issues for future work; keep source and tests free of task markers - uv workspace hygiene — keep root
pyproject.toml,.python-version, anduv.lockas the shared environment contract - Check each module's
SKILL.mdfor domain-specific rules and integrations
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/geospatial-active-inference-framework-mt11k94s' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/geospatial-active-inference-framework-mt11k94s/download' --output '.skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md.part' && mv '.skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md.part' '.skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md' && test -s '.skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/geo-infer' && cp -R '.skill-downloads/geospatial-active-inference-framework-mt11k94s' '.claude/skills/geo-infer'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/geospatial-active-inference-framework-mt11k94s'openskills read 'geospatial-active-inference-framework-mt11k94s'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/geospatial-active-inference-framework-mt11k94s/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Créer des cartes interactives avec kepler.gl
Data & IA
Création de cartes interactives et export HTML autonome avec le package Python keplergl, à partir de données géospatiales (DataFrame, GeoJSON, CSV).
Optimisation de paramètres par agent
Data & IA
Guide d'optimisation de systèmes configurables avec objectif mesurable, via des essais bornés et une recommandation fondée sur des preuves.
Relance des visiteurs ICP
Data & IA
Identifiez les utilisateurs inscrits correspondant au profil client idéal mais qui n'ont pas activé, et rédigez des messages de relance personnalisés pour les réengager.