GEO INFER CIV

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER CIV is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. Civic engagement analytics and policy appraisal. Use when analyzing meeting attendance, public comments, voter turnout, participation indices, demographic representation, or cost-benefit / stakeholder / equity analysis of policy proposals.

How to use this skill

Skill file

GEO-INFER-CIV

Instructions

Core Capabilities

Key Imports

from geo_infer_civ import (
    AttendanceTracker,
    PublicCommentAnalyzer,
    VoterTurnoutModel,
    ParticipationAnalyzer,
    ParticipantRecord,
    ParticipationMethod,
    CostBenefitAnalyzer,
    CostBenefitItem,
    StakeholderImpactAnalyzer,
    EquityAnalyzer,
)

The full public surface also includes the enums (MeetingType, CommentCategory, ImpactLevel, PolicyDomain), the record dataclasses (MeetingRecord, PublicComment), and the result dataclasses (AttendanceTrend, CommentAnalysis, EngagementScore, RepresentationReport, CostBenefitResult, StakeholderImpact, EquityScore).

Examples

from geo_infer_civ import (
    CostBenefitAnalyzer,
    CostBenefitItem,
    ParticipantRecord,
    ParticipationAnalyzer,
    ParticipationMethod,
)

# Participation analysis
analyzer = ParticipationAnalyzer()
analyzer.add_records(
    [
        ParticipantRecord("p01", ParticipationMethod.TOWN_HALL, 1705276800.0, "group_a"),
        ParticipantRecord("p02", ParticipationMethod.SURVEY, 1705363200.0, "group_a"),
        ParticipantRecord("p03", ParticipationMethod.PUBLIC_COMMENT, 1705449600.0, "group_b"),
    ]
)
score = analyzer.compute_engagement_score(target_population=5000)
index = analyzer.compute_participation_index(target_population=10_000, baseline_rate=0.10)
report = analyzer.analyze_representation({"group_a": 0.5, "group_b": 0.5})

# Cost-benefit appraisal
cba = CostBenefitAnalyzer(discount_rate=0.05)
cba.add_items(
    [
        CostBenefitItem("construction", 250_000.0, is_benefit=False),
        CostBenefitItem("flood avoidance", 900_000.0, is_benefit=True, time_horizon_years=10),
    ]
)
result = cba.analyze()
print(result.net_present_value, result.benefit_cost_ratio, result.payback_period_years)

Agent interfaces

Use uv run --frozen geo-infer catalog CIV 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.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

Integrations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.