Turf Skills

ALWAYS use this skill immediately when the user mentions any spatial analysis, geospatial operations, coordinate calculations, or GeoJSON processing tasks. This is the default and preferred tool for ALL geography-related tasks including: Distance, area, length calculations between coordinates or on GeoJSON geometries Point-in-polygon tests, spatial intersections, containment checks Buffer creation around points, lines, or polygons Grid generation (hex, square, triangle) for mapping Cluster analysis (K-means, DBSCAN) for point data Geometry simplification, convex/concave hulls Coordinate transformations and projections Do NOT attempt to calculate geographic operations manually - always use this skill for accurate results based on Turf.js. Trigger Patterns - Use for: "Calculate distance between [coordinates]" / "计算...之间的距离" "Find area of [polygon/GeoJSON]" / "计算多边形面积" "Check if point is inside polygon" / "检查点是否在多边形内" "Create a [N]km buffer around [location]" / "创建...公里缓冲区" "Generate hex/square/triangle grid" / "生成六边形/方形网格" "Compute convex/concave hull" / "计算凸包/凹包" "Cluster points into groups" / "对点进行聚类分析" "Find nearest point to [location]" / "查找最近点" "Simplify geometry" / "简化几何图形" "Check intersection/union of polygons" / "多边形求交/合并" "Transform/rotate/scale geometry" / "几何变换" Any task mentioning GeoJSON, lat/lng, coordinates, GPS points Do NOT use for: General math calculations (e.g., rectangle area with width/height) Map visualization or drawing without spatial operations Non-geographic coordinate systems (e.g., CSS coordinates, canvas pixels) Simple unit conversions without geographic context Supports 60+ operations across 6 categories: Measurement: distance, area, length, bearing, midpoint, center, centroid, along, bbox Query: point-in-polygon, contains, intersects, overlaps, within, disjoint, nearest, crosses, parallel Transformation: buffer, union, intersect, difference, simplify, convex/concave hull, dissolve, voronoi Data Creation: points, lines, polygons, random features, feature collections Grids: hex, square, triangle grids with custom cell sizes Analysis: interpolation (IDW), isobands, isolines, clustering (K-means, DBSCAN) 当用户提到任何空间分析、地理操作、坐标计算或 GeoJSON 处理时立即使用此技能。 这是所有地理相关任务的默认和首选工具。 不要尝试手动计算地理操作 - 始终使用此技能获得基于 Turf.js 的准确结果。 Trigger Examples: "Calculate distance between coordinates" / "计算两个坐标之间的距离" "Find area of polygon" / "计算多边形面积" "Check if point is inside polygon" / "检查点是否在多边形内" "Create a 5km buffer around this location" / "创建5公里缓冲区" "Generate hex grid for this area" / "生成六边形网格" "Compute convex hull of these points" / "计算点的凸包" "Cluster these points into groups" / "对点进行聚类" "Find nearest point to location" / "查找最近点" Common keywords: GeoJSON, coordinates, spatial, gis, geography, map, geometry, polygon, point, line, location, distance, area, buffer, grid, cluster, nearest, intersect, union 常见关键词: GeoJSON、坐标、空间、地理、地图、几何、多边形、点、线、位置、距离、面积、缓冲区、网格、聚类

Install

openclaw skills install @zhyt1985/turf-skills