🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

civ6lib

by @wu-uk

Civilization 6 district mechanics library. Use when working with district placement validation, adjacency bonus calculations, or understanding Civ6 game rules.

Versionv0.1.0
πŸ’‘ Examples

from civ6lib import (
    # Placement
    DistrictType, Tile, PlacementRules, get_placement_rules,
    validate_district_count, validate_district_uniqueness,
    # Adjacency
    AdjacencyCalculator, get_adjacency_calculator,
)

Validate a placement

rules = get_placement_rules(tiles, city_center=(21, 13), population=7) result = rules.validate_placement(DistrictType.CAMPUS, 21, 14, {}) if result.valid: print("Valid placement!")

Calculate adjacency bonus

calculator = get_adjacency_calculator(tiles) total, per_district = calculator.calculate_total_adjacency(placements)


Part 1: Placement Rules

View on ClawHub
TERMINAL
clawhub install civ6-adjacency-optimizer-civ6lib

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’