executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
city2graphUse the city2graph 1.0.0 Python package to construct, validate, transform, and troubleshoot geospatial, spatial-topology, morphology, mobility, transportation, heterogeneous, and GNN-ready graphs.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill for the public city2graph package when a task turns geospatial
features or local mobility/transit data into graph tables, graph libraries, or
PyTorch Geometric objects. The package is GeoDataFrame-first: preserve stable
IDs in indexes, preserve CRS, and inspect typed output dictionaries before
converting representations.
For compound tasks, start with the ingestion or graph-construction route that
matches the input, then hand the resulting GeoDataFrame tables to
urban-morphology, spatial-topology, or graph-conversion as appropriate.
The sibling skills are the detailed operating graph; this file stays a router.
graph_metadata on PyG objects and graph metadata on NetworkX objects when
round-tripping.as_nx compatibility arguments as deprecated where the package says
so; prefer returning GeoDataFrames and then calling the shared conversion
utilities.Install the public package in a fresh environment with the smallest capability set that matches the task:
python -m pip install city2graph
# Add CPU PyTorch Geometric support only when tensor conversion is needed:
python -m pip install 'city2graph[cpu]'
A minimal core import check is:
python -c "import city2graph; print(city2graph.__version__)"
For the PyG route, also import torch and torch_geometric, then run a tiny
CPU conversion before selecting any other device. Probe optional dependencies
before use rather than claiming that every installation supports every backend.
The CPU PyG route is covered by the companion verification artifacts; CUDA,
ROCm, and MPS are optional and must not be inferred from a CPU import.
Cross-cutting installation, CRS, schema, optional-dependency, data-source, and representation failures are summarized in references/troubleshooting.md. Package snapshot and routing metadata are in references/repo-provenance.md and references/repo-routing-metadata.json.
Before handing a result to analysis or a downstream graph library, confirm:
This generated skill is self-contained and does not require the original repository checkout, its notebooks, its test fixtures, or a live external service at runtime.