/zd-vector:topology-repairfrom Zaraat Dost · Vector
Fixes invalid geometries, overlaps, gaps, slivers, and mixed types in parcel layers while preserving shared edges. Apply after polygonisation, simplification, or merge.
Ships in Zaraat Dost · Vector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Order matters:
0. Raster-side first when a mask is available: fill thin gaps (distance transform, MAX_GAP_FILL_PIXELS≈4), close tiny corner holes (≈7 px), and cap component size (MAX_COMPONENT_PIXELS) so one giant blob cannot swallow a tile. Cheaper and cleaner than fixing the same defects in vector space.
make_valid() (shapely 2 / ST_MakeValid). Then drop empties and collections → keep only Polygon/MultiPolygon parts (geom.geoms filter), cast all to MultiPolygon. This fixes "mixed geometry type" export errors.gdf.sjoin(gdf, predicate='overlaps'); for each pair assign the overlap to the larger parcel (difference) or split along the medial line if areas are similar. Re-check until 0.buffer(tol).buffer(-tol)) per polygon breaks sharing — instead, snap vertices with shapely.snap(geom, neighbours, tol) or build a planar graph: unary_union of all boundaries → polygonize → reassign attributes by largest-overlap join. This is the reliable way to get a clean shared-edge layer.4π·area/perimeter²) < 0.05 → merge into the neighbour with the longest shared edge.set_precision(geom, 0.5) in metres) to stop floating-point re-overlaps.SQL equivalents: ST_MakeValid, ST_CollectionExtract(geom, 3), ST_Multi, ST_SnapToGrid, ST_Polygonize(ST_Union(ST_Boundary(geom))).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adilmunawar/zd-claude-plugin --plugin zd-vector5 skills in this plugin
/gap-analysisCompare a mapped parcel layer with an AOI or previous version: missing layer, coverage summary, added/removed/changed parcels./raster-to-polygonsRAM-safe raster to polygon conversion for large rasters: tiling with overlap, components, seam merge, min-area filter, resume./road-subtractSubtract OSM/Overture road, canal and rail buffers from parcels; fix gap-fill edge bleeding./straighten-edgesRemove staircase edges from raster-derived parcels with a junction graph and deviation test, preserving shared boundaries.Other plugins' skills for the same job