Civ6lib
Civilization 6 district mechanics library. Use when working with district placement validation, adjacency bonus calculations, or understanding Civ6 game rules.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill civ6libgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/civ6-adjacency-optimizer/environment/skills/civ6lib ~/.claude/skills/civ6libPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Understanding Civ6 District Mechanics
Complete reference for Civilization 6 district placement and adjacency bonus systems (Gathering Storm).
## Modules
- **placement_rules.py** - District placement validation rules
- **adjacency_rules.py** - Adjacency bonus calculation engine
For hex grid utilities (neighbors, distance, etc.), use the `hex-grid-spatial` skill or import from `src.hex_utils`.
## Usage
```python
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
## City Placement Rules
### Minimum Distance Between Cities
| Condition | Min Distance | Tiles Between |
|-----------|--------------|---------------|
| Same landmass | 4 tiles | 3 tiles |
| Different landmasses | 3 tiles | 2 tiles |
### Invalid Settlement Tiles
- Water (Coast, Ocean, Lake)
- Mountains
- Natural Wonders
### Note on City Center FeaturesDetails
- Skill name
civ6lib- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/civ6-adjacency-optimizer/environment/skills/civ6lib/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Civ6lib skill do?
Civilization 6 district mechanics library. Use when working with district placement validation, adjacency bonus calculations, or understanding Civ6 game rules.
How do I install the Civ6lib skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill civ6lib. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Civ6lib popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Discover Important Function
49UCSB-NLP-Chang/Skill-Usage
When given a project codebase, this skill observes the important functions in the codebase for future action.
Zarr Python
43lifangda/claude-plugins
Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.
Erlang Distribution
49UCSB-NLP-Chang/Skill-Usage
Use when erlang distributed systems including node connectivity, distributed processes, global name registration, distributed supervision, network partitions, and building fault-tolerant multi-node applications on the BEAM VM.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.