Skip to content
Back to skills

GEO INFER EXAMPLES

ASecurity

Working examples and module orchestration patterns. Use when looking for usage examples, cross-module orchestration patterns, end-to-end workflows, or reference implementations of GEO-INFER capabilities.

  • 18 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 1, 2026
developmentpythongobashapibackenddocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-EXAMPLES --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER EXAMPLES?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER EXAMPLES
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-examples/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-examples)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-examples
description: Working examples and module orchestration patterns. Use when looking for usage examples, cross-module orchestration patterns, end-to-end workflows, or reference implementations of GEO-INFER capabilities.
prerequisites:
  required: []
  recommended: []
difficulty: beginner
estimated_time: 30min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-EXAMPLES

## Instructions

### Core Capabilities

- **Module orchestrators**: Cross-module workflow examples
- **Domain examples**: Per-domain analysis workflows
- **Active Inference**: End-to-end inference pipeline examples
- **Integration patterns**: How modules connect and compose

### Key Directories

```text
GEO-INFER-EXAMPLES/examples/
├── module_orchestrators/     # Per-module orchestration demos
├── getting_started/          # Beginner walkthroughs
├── agriculture_integration/  # AG + SPACE + RISK workflows
├── climate_integration/      # CLIMATE + SPACE workflows
├── health_integration/       # HEALTH + SPACE workflows
└── iot_radiation_monitoring/ # IOT + DATA + SPACE workflow
```

### Local execution

Use `LocalAPIConnector` from `geo_infer_examples` with an explicit mapping of
`(module, endpoint)` to real module callables. Pass it as
`ModuleOrchestrator(api_connector=connector)` before registering a workflow.
Each operation accepts and returns a dictionary; async operations are awaited.
The [local execution guide](../GEO-INFER-INTRA/docs/modules/geo-infer-examples.md)
contains a runnable H3 composition and the lifecycle/deadline/retry contracts.
Verify real DATA→SPACE→TIME→ENERGY execution with:

```bash
uv run --no-sync python -m pytest GEO-INFER-EXAMPLES/tests/integration/test_local_composition.py
```

### Orchestrator Example

```python
from geo_infer_examples.core.module_orchestrator import ModuleOrchestrator

orchestrator = ModuleOrchestrator(monitoring_enabled=False)
workflow_ids = orchestrator.list_workflows()
module_health = orchestrator.get_module_health()
```

## Examples

```python
from geo_infer_examples.core.module_orchestrator import ModuleOrchestrator

# Inspect configured cross-module workflows before execution
orchestrator = ModuleOrchestrator(monitoring_enabled=False)
for workflow_id in orchestrator.list_workflows():
    workflow = orchestrator.get_workflow_definition(workflow_id)
    print(workflow_id, workflow.execution_strategy)
```

```python
# Domain workflow: Agricultural risk assessment
from geo_infer_ag.models.soil_health import SoilHealthModel
from geo_infer_risk.core.risk_engine import EnhancedRiskEngine
from geo_infer_space.backends.h3 import H3Backend

farm_polygon = {
    "type": "Polygon",
    "coordinates": [[[0.0, 0.0], [0.01, 0.0], [0.01, 0.01], [0.0, 0.01], [0.0, 0.0]]],
}

# 1. Tessellate the farm boundary into H3 cells (real SPACE API)
cells = H3Backend().polygon_to_cells(farm_polygon, resolution=9)

# 2. Assess soil health per cell. SoilHealthModel.predict expects a dict with
#    pandas "field_data" and "soil_data" frames (organic_matter, ph,
#    bulk_density columns) and returns per-indicator scores.
soil = SoilHealthModel()
# predictions = soil.predict({"field_data": field_df, "soil_data": soil_df})

# 3. Compute risk with the real RISK engine
risk = EnhancedRiskEngine()
# risk_results = risk.run_enhanced_analysis(...)
```

```python
# Per-module orchestrator scripts
# (examples/module_orchestrators/<MODULE>/scripts/run_orchestrator.py)
# hand one real operation to the packaged engine; no sys.path setup needed.
import sys

from geo_infer_examples.orchestration import run_module_orchestrator


def _operation() -> dict:
    from geo_infer_math import haversine_distance  # module's public API

    return {"km": haversine_distance(0.0, 0.0, 0.0, 1.0)}


sys.exit(run_module_orchestrator("MATH", _operation))
# Exit codes: 0 ok, 1 operation raised, 2 missing dependency (JSON names the
# verified geo-infer-<module>[extra] from MODULE_EXTRAS).
```

```python
# Import surface of this package
from geo_infer_examples import ModuleOrchestrator, ExecutionStrategy, ModuleStatus
from geo_infer_examples.core import ModuleOrchestrator as CoreOrchestrator
from geo_infer_examples.models import WorkflowDefinition, GEO_INFER_MODULES
```

### Agent interfaces

Use `uv run --frozen geo-infer catalog EXAMPLES` to discover public source
APIs, then `geo-infer describe` before calling a selected target. Scripts use
`geo_infer_api.agent_runtime.AgentSession`; the optional stdio MCP server is
`geo-infer-mcp`. See [requests, native objects and composition](../GEO-INFER-INTRA/docs/integration/agent_interfaces.md).
The adapter retains this module's dependencies and authorization requirements.

## Guidelines

- `module_orchestrator.py` convergence check uses numeric relative-change
- Track new tutorial requests in the root task ledger before adding examples
- Verified runnable examples live under `examples/*/scripts/`
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module EXAMPLES`

### Integrations

- **INTRA** → Documentation hub links to examples
- **All modules** → Examples demonstrate cross-module workflows
- **TEST** → Example code testable as integration tests

Files in this skill

  • .gitignore644 B
  • AGENTS.md1.6 KB
  • README.md1.1 KB
  • SKILL.md2.8 KB
  • assessment_results/AGENTS.md1.3 KB
  • assessment_results/README.md1 KB
  • assessment_results/assessment_summary_20250620_154749.md2.8 KB
  • assessment_results/comprehensive_assessment_20250620_154749.json3.9 KB
  • assessment_results/latest_assessment_summary.md2.8 KB
  • assessment_results/latest_comprehensive_assessment.json3.9 KB
  • config/AGENTS.md1.2 KB
  • config/README.md862 B
  • config/example.yaml6.3 KB
  • docs/AGENTS.md1.4 KB
  • docs/API_INTEGRATION_GUIDE.md7.7 KB
  • docs/COMPREHENSIVE_DOCUMENTATION_ANALYSIS.md7.5 KB
  • docs/COMPREHENSIVE_TECHNICAL_SUMMARY.md12.7 KB
  • docs/CROSS_MODULE_REFERENCE.md18.3 KB
  • docs/INTEGRATION_EXECUTION_REPORT.md12 KB
  • docs/INTEGRATION_GUIDE.md15.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.