[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJBH0Z91NDY3TY6Q3CZ7ZG":3,"skill-same:01M6KJBH0Z91NDY3TY6Q3CZ7ZG":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6KJBH0Z91NDY3TY6Q3CZ7ZG","plate-boundary-data-processing",null,"Work with tectonic plate boundary datasets (PB2002 format) to identify plate regions, extract specific plate boundaries, and perform spatial filtering. Load plate boundary and plate polygon data, identify specific plates like the Pacific plate, and extract relevant boundaries. Use this skill when parsing plate tectonics datasets, identifying plate regions from boundary lines, or filtering spatial data by plate membership.","cxcscmu\u002FSkillLearnBench","cxcscmu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142838272?v=4","01M6KCQDFQWPDSN0MKZY96MSQP","01M6KCQDM7G70TKJ28NTSQC0RZ",93,"MIT","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb4-skill-creator-claude-haiku-4-5\u002Fearthquake-plate-calculation\u002Fplate-boundary-data-processing\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"boundary","plate boundary data processing","processing","data processing","data","format","work","extract","filtering","use","Spatial","datasets","polygon","plate tectonics","parsing","relevant","with","tectonic","load","spatial filtering","2026-11-10 10:12:30",false,"---\nname: plate-boundary-data-processing\ndescription: Work with tectonic plate boundary datasets (PB2002 format) to identify plate regions, extract specific plate boundaries, and perform spatial filtering. Load plate boundary and plate polygon data, identify specific plates like the Pacific plate, and extract relevant boundaries. Use this skill when parsing plate tectonics datasets, identifying plate regions from boundary lines, or filtering spatial data by plate membership.\n---\n\n# Plate Boundary Data Processing\n\n## PB2002 Dataset Overview\n\nThe PB2002 (Plate Boundaries 2002) dataset contains:\n- **Boundaries file**: LineStrings representing plate boundaries (ridges, trenches, transforms)\n- **Plates file**: Polygon features representing individual plate boundaries and characteristics\n\n### Data Structure\n\n**PB2002_boundaries.json**\n- Contains LineString geometries for each plate boundary segment\n- Properties typically include:\n  - `type`: Boundary type (ridge, trench, transform, etc.)\n  - `plate1`, `plate2`: Names of adjacent plates\n  - `age`, `length`: Metadata about boundary\n\n**PB2002_plates.json**\n- Contains Polygon geometries for complete plates\n- Properties typically include:\n  - `plate_name`: Name of the plate (e.g., \"Pacific\")\n  - `area`: Plate area\n  - Other identifying characteristics\n\n## Loading and Exploring Data\n\n### Basic Loading\n\n```python\nimport geopandas as gpd\nimport json\n\n# Load plate boundaries\nboundaries_gdf = gpd.read_file('\u002Froot\u002FPB2002_boundaries.json')\nprint(f\"Loaded {len(boundaries_gdf)} boundary segments\")\nprint(boundaries_gdf.head())\nprint(boundaries_gdf.columns)\nprint(boundaries_gdf.crs)\n\n# Load plate definitions\nplates_gdf = gpd.read_file('\u002Froot\u002FPB2002_plates.json')\nprint(f\"Loaded {len(plates_gdf)} plates\")\nprint(plates_gdf['plate_name'].unique())\n```\n\n### Understanding Data Types\n\n```python\n# Check geometry types\nprint(boundaries_gdf.geometry.type.value_counts())\n# Should mostly show LineString\n\nprint(plates_gdf.geometry.type.value_counts())\n# Should show Polygon\n```\n\n## Identifying the Pacific Plate\n\n### Method 1: Extract from Plates GeoDataFrame\n\n```python\n# Find Pacific plate polygon\npacific_plate = plates_gdf[plates_gdf['plate_name'] == 'Pacific']\n\nif len(pacific_plate) > 0:\n    print(f\"Found Pacific plate\")\n    print(f\"Area: {pacific_plate.iloc[0].geometry.area}\")\n    pacific_boundary_polygon = pacific_plate.iloc[0].geometry\nelse:\n    print(\"Pacific plate not found - check plate_name values\")\n    print(plates_gdf['plate_name'].unique())\n```\n\n### Method 2: Extract Boundaries Belonging to Pacific\n\n```python\n# If using plate1\u002Fplate2 columns, filter boundaries of the Pacific plate\npacific_boundaries = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]\n\nprint(f\"Found {len(pacific_boundaries)} Pacific plate boundary segments\")\n```\n\n## Filtering Earthquakes Within a Plate\n\n### Using Spatial Join\n\n```python\n# Earthquake GeoDataFrame already loaded in WGS84\nearthquakes_in_pacific = gpd.sjoin(\n    earthquakes_gdf,\n    pacific_plate,\n    how='inner',\n    predicate='within'\n)\n\nprint(f\"Found {len(earthquakes_in_pacific)} earthquakes within Pacific plate\")\n```\n\n### Manual Point-in-Polygon\n\n```python\n# Alternative if spatial join has issues\npacific_polygon = pacific_plate.iloc[0].geometry\n\nearthquakes_in_pacific = earthquakes_gdf[\n    earthquakes_gdf.geometry.within(pacific_polygon)\n]\n```\n\n## Extracting Boundaries for Distance Calculation\n\n### Get All Pacific Plate Boundary Lines\n\n```python\n# Collect all boundary LineStrings for the Pacific plate\npacific_boundary_lines = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]['geometry'].tolist()\n\nprint(f\"Pacific plate has {len(pacific_boundary_lines)} boundary segments\")\n```\n\n### Important Consideration: Boundary vs Plate Polygon\n\n- **Boundaries GeoDataFrame**: Individual line segments that make up the plate edge\n- **Plates GeoDataFrame**: Complete polygon representing the full plate area\n- For distance calculation, use boundary lines (not the polygon boundary)\n- The polygon exists but distance should be to actual plate boundary data\n\n## Handling Data Issues\n\n### Case Sensitivity\n\nPlate names may vary in case:\n\n```python\n# Make case-insensitive if needed\nplates_gdf['plate_name_lower'] = plates_gdf['plate_name'].str.lower()\npacific = plates_gdf[plates_gdf['plate_name_lower'] == 'pacific']\n```\n\n### Missing or Inconsistent Naming\n\n```python\n# Explore actual values\nprint(plates_gdf.columns.tolist())\nprint(plates_gdf['plate_name'].value_counts())\n\n# Check if 'Pacific' exists in plate1 or plate2 columns\nif 'plate1' in boundaries_gdf.columns:\n    print(boundaries_gdf['plate1'].unique())\n    print(boundaries_gdf['plate2'].unique())\n```\n\n### CRS Harmonization\n\n```python\n# Ensure consistent CRS before spatial operations\nif boundaries_gdf.crs != plates_gdf.crs:\n    boundaries_gdf = boundaries_gdf.to_crs(plates_gdf.crs)\n\nif earthquakes_gdf.crs != plates_gdf.crs:\n    earthquakes_gdf = earthquakes_gdf.to_crs(plates_gdf.crs)\n```\n\n## Common Workflow\n\n```python\n# 1. Load all data\nboundaries_gdf = gpd.read_file('\u002Froot\u002FPB2002_boundaries.json')\nplates_gdf = gpd.read_file('\u002Froot\u002FPB2002_plates.json')\nearthquakes_gdf = load_earthquake_data()  # Your function\n\n# 2. Harmonize CRS\nfor gdf in [boundaries_gdf, plates_gdf, earthquakes_gdf]:\n    if gdf.crs != 'EPSG:4326':\n        gdf = gdf.to_crs('EPSG:4326')\n\n# 3. Identify Pacific plate\npacific_plate = plates_gdf[plates_gdf['plate_name'] == 'Pacific']\npacific_boundaries = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]\n\n# 4. Filter earthquakes\nearthquakes_pacific = gpd.sjoin(\n    earthquakes_gdf,\n    pacific_plate,\n    how='inner',\n    predicate='within'\n)\n\n# 5. Calculate distances and find maximum\n# (See geospatial-earthquake-analysis skill)\n```\n\n## Verification Checklist\n\n- ✓ Loaded boundaries and plates with same CRS\n- ✓ Located Pacific plate in plates_gdf\n- ✓ Identified Pacific boundaries in boundaries_gdf\n- ✓ Found earthquakes within Pacific polygon\n- ✓ Boundary lines are LineStrings, not just points\n- ✓ Earthquake count reasonable (not 0 or unreasonably high)\n","# Plate Boundary Data Processing\n\n## PB2002 Dataset Overview\n\nThe PB2002 (Plate Boundaries 2002) dataset contains:\n- **Boundaries file**: LineStrings representing plate boundaries (ridges, trenches, transforms)\n- **Plates file**: Polygon features representing individual plate boundaries and characteristics\n\n### Data Structure\n\n**PB2002_boundaries.json**\n- Contains LineString geometries for each plate boundary segment\n- Properties typically include:\n  - `type`: Boundary type (ridge, trench, transform, etc.)\n  - `plate1`, `plate2`: Names of adjacent plates\n  - `age`, `length`: Metadata about boundary\n\n**PB2002_plates.json**\n- Contains Polygon geometries for complete plates\n- Properties typically include:\n  - `plate_name`: Name of the plate (e.g., \"Pacific\")\n  - `area`: Plate area\n  - Other identifying characteristics\n\n## Loading and Exploring Data\n\n### Basic Loading\n\n```python\nimport geopandas as gpd\nimport json\n\n# Load plate boundaries\nboundaries_gdf = gpd.read_file('\u002Froot\u002FPB2002_boundaries.json')\nprint(f\"Loaded {len(boundaries_gdf)} boundary segments\")\nprint(boundaries_gdf.head())\nprint(boundaries_gdf.columns)\nprint(boundaries_gdf.crs)\n\n# Load plate definitions\nplates_gdf = gpd.read_file('\u002Froot\u002FPB2002_plates.json')\nprint(f\"Loaded {len(plates_gdf)} plates\")\nprint(plates_gdf['plate_name'].unique())\n```\n\n### Understanding Data Types\n\n```python\n# Check geometry types\nprint(boundaries_gdf.geometry.type.value_counts())\n# Should mostly show LineString\n\nprint(plates_gdf.geometry.type.value_counts())\n# Should show Polygon\n```\n\n## Identifying the Pacific Plate\n\n### Method 1: Extract from Plates GeoDataFrame\n\n```python\n# Find Pacific plate polygon\npacific_plate = plates_gdf[plates_gdf['plate_name'] == 'Pacific']\n\nif len(pacific_plate) > 0:\n    print(f\"Found Pacific plate\")\n    print(f\"Area: {pacific_plate.iloc[0].geometry.area}\")\n    pacific_boundary_polygon = pacific_plate.iloc[0].geometry\nelse:\n    print(\"Pacific plate not found - check plate_name values\")\n    print(plates_gdf['plate_name'].unique())\n```\n\n### Method 2: Extract Boundaries Belonging to Pacific\n\n```python\n# If using plate1\u002Fplate2 columns, filter boundaries of the Pacific plate\npacific_boundaries = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]\n\nprint(f\"Found {len(pacific_boundaries)} Pacific plate boundary segments\")\n```\n\n## Filtering Earthquakes Within a Plate\n\n### Using Spatial Join\n\n```python\n# Earthquake GeoDataFrame already loaded in WGS84\nearthquakes_in_pacific = gpd.sjoin(\n    earthquakes_gdf,\n    pacific_plate,\n    how='inner',\n    predicate='within'\n)\n\nprint(f\"Found {len(earthquakes_in_pacific)} earthquakes within Pacific plate\")\n```\n\n### Manual Point-in-Polygon\n\n```python\n# Alternative if spatial join has issues\npacific_polygon = pacific_plate.iloc[0].geometry\n\nearthquakes_in_pacific = earthquakes_gdf[\n    earthquakes_gdf.geometry.within(pacific_polygon)\n]\n```\n\n## Extracting Boundaries for Distance Calculation\n\n### Get All Pacific Plate Boundary Lines\n\n```python\n# Collect all boundary LineStrings for the Pacific plate\npacific_boundary_lines = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]['geometry'].tolist()\n\nprint(f\"Pacific plate has {len(pacific_boundary_lines)} boundary segments\")\n```\n\n### Important Consideration: Boundary vs Plate Polygon\n\n- **Boundaries GeoDataFrame**: Individual line segments that make up the plate edge\n- **Plates GeoDataFrame**: Complete polygon representing the full plate area\n- For distance calculation, use boundary lines (not the polygon boundary)\n- The polygon exists but distance should be to actual plate boundary data\n\n## Handling Data Issues\n\n### Case Sensitivity\n\nPlate names may vary in case:\n\n```python\n# Make case-insensitive if needed\nplates_gdf['plate_name_lower'] = plates_gdf['plate_name'].str.lower()\npacific = plates_gdf[plates_gdf['plate_name_lower'] == 'pacific']\n```\n\n### Missing or Inconsistent Naming\n\n```python\n# Explore actual values\nprint(plates_gdf.columns.tolist())\nprint(plates_gdf['plate_name'].value_counts())\n\n# Check if 'Pacific' exists in plate1 or plate2 columns\nif 'plate1' in boundaries_gdf.columns:\n    print(boundaries_gdf['plate1'].unique())\n    print(boundaries_gdf['plate2'].unique())\n```\n\n### CRS Harmonization\n\n```python\n# Ensure consistent CRS before spatial operations\nif boundaries_gdf.crs != plates_gdf.crs:\n    boundaries_gdf = boundaries_gdf.to_crs(plates_gdf.crs)\n\nif earthquakes_gdf.crs != plates_gdf.crs:\n    earthquakes_gdf = earthquakes_gdf.to_crs(plates_gdf.crs)\n```\n\n## Common Workflow\n\n```python\n# 1. Load all data\nboundaries_gdf = gpd.read_file('\u002Froot\u002FPB2002_boundaries.json')\nplates_gdf = gpd.read_file('\u002Froot\u002FPB2002_plates.json')\nearthquakes_gdf = load_earthquake_data()  # Your function\n\n# 2. Harmonize CRS\nfor gdf in [boundaries_gdf, plates_gdf, earthquakes_gdf]:\n    if gdf.crs != 'EPSG:4326':\n        gdf = gdf.to_crs('EPSG:4326')\n\n# 3. Identify Pacific plate\npacific_plate = plates_gdf[plates_gdf['plate_name'] == 'Pacific']\npacific_boundaries = boundaries_gdf[\n    (boundaries_gdf['plate1'] == 'Pacific') |\n    (boundaries_gdf['plate2'] == 'Pacific')\n]\n\n# 4. Filter earthquakes\nearthquakes_pacific = gpd.sjoin(\n    earthquakes_gdf,\n    pacific_plate,\n    how='inner',\n    predicate='within'\n)\n\n# 5. Calculate distances and find maximum\n# (See geospatial-earthquake-analysis skill)\n```\n\n## Verification Checklist\n\n- ✓ Loaded boundaries and plates with same CRS\n- ✓ Located Pacific plate in plates_gdf\n- ✓ Identified Pacific boundaries in boundaries_gdf\n- ✓ Found earthquakes within Pacific polygon\n- ✓ Boundary lines are LineStrings, not just points\n- ✓ Earthquake count reasonable (not 0 or unreasonably high)\n",{"name":5,"description":7},"main","726e1f79b96b0cb3d729d0e55a1c847e0b5353ae","skills\u002Fb4-skill-creator-claude-haiku-4-5\u002Fearthquake-plate-calculation\u002Fplate-boundary-data-processing",8,"https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench","https:\u002F\u002Fcxcscmu.github.io\u002FSkillLearnBench","https:\u002F\u002Fgithub.com\u002Fcxcscmu","2026-10-02 22:55:36",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add cxcscmu\u002FSkillLearnBench --skill plate-boundary-data-processing",{"tool":57,"command":58},"bunx","bunx skills add cxcscmu\u002FSkillLearnBench --skill plate-boundary-data-processing",{"tool":60,"command":61},"pnpm","pnpm dlx skills add cxcscmu\u002FSkillLearnBench --skill plate-boundary-data-processing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb4-skill-creator-claude-haiku-4-5\u002Fearthquake-plate-calculation\u002Fplate-boundary-data-processing\u002FSKILL.md",true,[],[66,79,101,119,138,149],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6KM5KH175P5ABP5JMX2SBDQ","object_counter","Count occurrences of an object in the image using computer vision algorithm.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Fvideo-object-counting\u002Fobject_counter\u002FSKILL.md",[],[73,74,75,76,77,78],"object counter","object","vision","computer","Computer Vision","image",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":38},"01M6KM51TMVXG79MMPCS6Y8G86","travel-planning-workflow","Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Ftravel-planning-workflow\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"workflow","planning","planning workflow","travel","travel planning","travel planning workflow","structured","performing","plan","for","user","it","requirements","essential","itineraries",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M6KM4DY820XHS9YTSK5QP5HD","bundled-dataset-search-tool","invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Fbundled-dataset-search-tool\u002FSKILL.md",[],[108,109,110,111,112,113,114,89,115,116,90,117,95,118,87],"search","tool","dataset","bundled dataset search tool","restaurants","Tools","up","look","flights","you","database",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":38},"01M6KM465BB9PQ0B548HQSVAWZ","glm-output","Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final \u002Froot\u002Fmetrics.json.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-output\u002FSKILL.md",[],[126,127,128,95,129,130,131,132,133,134,135,20,117,136,137],"glm output","output","glm","tasks","metrics","json","basics","guidance","matching","verifier","root","calibration",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":38},"01M6KM40KY3QWDW5W97S39R2BC","glm-calibration","Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-calibration\u002FSKILL.md",[],[145,137,128,127,133,132,129,146,147,95,148],"glm calibration","setup","companion","metric",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"01M6KM3VHHVSGMGHJQB3PPT6YG","glm-basics","A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-basics\u002FSKILL.md",[],[156,128,132,157,145,137,95,127,33,158,159,27,160,161,129],"glm basics","inspect","files","good","how","Evaluation"]