Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

turfjs

النجوم٠
التفرعات٠
آخر تحديث١٦ مايو ٢٠٢٦ في ٠٣:٤٧

Navigate the Turf.js (turfjs.org) geospatial library to pick the right function for a task. Use this skill whenever the user writes code touching Turf.js, the @turf/* npm packages, GeoJSON manipulation, or geospatial computations like distance, area, buffer, point-in-polygon, intersection, or clustering — even if "Turf" isn't named. Trigger on imports from @turf/turf or any @turf/ package, on tasks involving lon/lat coordinates and computation (not just rendering), and on v6 to v7 migration questions. ALSO trigger when the user is working with a map library (Leaflet, Mapbox GL, MapLibre, Google Maps, OpenLayers, deck.gl) AND drawing or editing shapes — Leaflet.draw, Mapbox GL Draw, react-leaflet-draw, terra-draw, OpenLayers Draw interaction — because Turf is the canonical pair for "user drew a polygon, now compute on it." Do NOT trigger for pure map-rendering, tile-loading, marker-placement, or basemap-styling questions where no geometric computation, drawing, or editing is involved.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

مستكشف الملفات
10 ملفات
SKILL.md
readonly