def find_furthest_earthquake(earthquakes_with_distance):
"""
Find the earthquake furthest from Pacific plate boundaries.
Args:
earthquakes_with_distance: GeoDataFrame with distance_km column
Returns:
Dictionary with result earthquake data
"""
if len(earthquakes_with_distance) == 0:
raise ValueError("No earthquakes found within Pacific plate")
# Find earthquake with maximum distance
furthest_idx = earthquakes_with_distance['distance_km'].idxmax()
furthest_earthquake = earthquakes_with_distance.loc[furthest_idx]
# Extract coordinates (convert back to lat/lon from geometry)
lat = furthest_earthquake.geometry.y
lon = furthest_earthquake.geometry.x
result = {
'id': furthest_earthquake['id'],
'place': furthest_earthquake['place'],
'time': furthest_earthquake['time'],
'magnitude': furthest_earthquake['magnitude'],
'latitude': lat,
'longitude': lon,
'distance_km': round(furthest_earthquake['distance_km'], 2)
}
return result
Find Earthquake Furthest from Pacific Boundary
Identify the earthquake with the maximum distance to the Pacific plate boundary from the earthquakes within the Pacific plate. Use this skill to locate the target earthquake for final output.
Find Earthquake Furthest from Pacific Boundary by cxcscmu · 5590257
npx get-skill add cxcscmu/find-earthquake-furthest-from-pacific-boundary File contents
---name: find-earthquake-furthest-from-pacific-boundarydescription: Identify the earthquake with the maximum distance to the Pacific plate boundary from the earthquakes within the Pacific plate. Use this skill to locate the target earthquake for final output.metadata: source: https://skillmd.com/skills/cxcscmu/find-earthquake-furthest-from-pacific-boundary---```pythondef find_furthest_earthquake(earthquakes_with_distance): """ Find the earthquake furthest from Pacific plate boundaries. Args: earthquakes_with_distance: GeoDataFrame with distance_km column Returns: Dictionary with result earthquake data """ if len(earthquakes_with_distance) == 0: raise ValueError("No earthquakes found within Pacific plate") # Find earthquake with maximum distance furthest_idx = earthquakes_with_distance['distance_km'].idxmax() furthest_earthquake = earthquakes_with_distance.loc[furthest_idx] # Extract coordinates (convert back to lat/lon from geometry) lat = furthest_earthquake.geometry.y lon = furthest_earthquake.geometry.x result = { 'id': furthest_earthquake['id'], 'place': furthest_earthquake['place'], 'time': furthest_earthquake['time'], 'magnitude': furthest_earthquake['magnitude'], 'latitude': lat, 'longitude': lon, 'distance_km': round(furthest_earthquake['distance_km'], 2) } return result```
cxcscmu/SkillLearnBench commit 5590257744
Frequently asked questions
Run npx get-skill add cxcscmu/find-earthquake-furthest-from-pacific-boundary in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Identify the earthquake with the maximum distance to the Pacific plate boundary from the earthquakes within the Pacific plate. Use this skill to locate the target earthquake for final output. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cxcscmu (@cxcscmu) published this skill. Their other Agent Skills are listed on their SkillMD profile.