地震信息查询

v1.0.2

查询指定时间和区域内的地震信息,支持按震级、时间、深度排序,并返回地震时间、地点、震级和深度等详情。

1· 69·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wangpeng258/earthquake-info-query.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "地震信息查询" (wangpeng258/earthquake-info-query) from ClawHub.
Skill page: https://clawhub.ai/wangpeng258/earthquake-info-query
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install earthquake-info-query

ClawHub CLI

Package manager switcher

npx clawhub@latest install earthquake-info-query
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md, and scripts/main.js all describe the same behavior (querying CENC earthquake catalog). No unrelated credentials, binaries, or capabilities are requested.
Instruction Scope
SKILL.md limits runtime behavior to calling execute(input) with filtering parameters. The code performs input validation and issues an HTTP GET to the documented CENC endpoint; it does not read files, environment secrets, or other system state.
Install Mechanism
No install spec is provided and there are no downloads or archive extracts. This is an instruction + single JS file skill, so no additional installation risk is present.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not access environment variables or secrets.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system settings. Autonomous invocation is allowed (platform default) but not combined with elevated privileges or broad credential access.
Assessment
This skill appears safe and does what it says: it makes outbound HTTP requests to https://www.cenc.ac.cn to fetch earthquake catalog data and requires no credentials. Before installing, confirm you are comfortable with the agent making network calls to that external domain and that your runtime provides fetch (the script uses fetch). If you require offline or internal-only usage, or need a different data source, consider reviewing or replacing the endpoint in scripts/main.js.

Like a lobster shell, security has layers — review code before you run it.

latestvk97fsr0z8dwrmgca85xh375efd84y9f8
69downloads
1stars
3versions
Updated 1w ago
v1.0.2
MIT-0

地震信息查询 Skill

查询中国地震台网中心(CENC)的地震目录数据,支持按震级、时间、地区范围筛选,结果可按时间、震级、深度排序。

触发方式

当用户提到以下内容时,调用此 Skill:

  • 询问最近/近期/今天的地震信息
  • 询问某个地区是否有地震发生
  • 询问某次地震的震级、震源深度、位置等详情
  • 询问震级大于某个值的地震
  • 询问全球中国范围内的地震情况
  • 查询特定时间段内的地震记录

关键词:地震、震级、震源、震动、地震台网、地震信息

参数说明

调用 execute(input) 时,input 为对象,支持以下字段:

参数类型默认值说明
startMgnumber0最小震级,范围 0-10
endMgnumber10最大震级,范围 0-10
locationRangenumber1地区范围:1=中国范围,2=全球范围
orderBystringid排序字段:id(时间)、magnitude(震级)、depth(深度)
isAscbooleanfalse是否升序排列,false=降序
startTimestring3天前起始日期,格式 YYYY-MM-DD HH:mm:ss
endTimestring今天结束日期,格式 YYYY-MM-DD HH:mm:ss

所有参数均为可选。不传任何参数时,默认查询最近 3 天中国范围内的全部地震,按时间降序。

返回值格式

成功时:

{
  "status": "success",
  "count": 3,
  "data": [
    {
      "id": 12345,
      "oriTime": "2024-04-15 08:30:00",
      "locName": "四川宜宾市珙县",
      "magnitude": 4.5,
      "focDepth": 10,
      "epiLat": 28.45,
      "epiLon": 104.72
    }
  ]
}

每条记录字段说明:

字段说明
id地震 ID
oriTime发震时间
locName参考位置名称
magnitude震级 (M)
focDepth震源深度 (km)
epiLat纬度
epiLon经度

失败时:

{
  "status": "error",
  "type": "param_error",
  "message": "参数 startMg 超出范围 [0, 10],收到: 12"
}

type 取值:param_error(参数校验错误)、request_error(网络或服务端错误)

使用用例

用例 1:查询最近3天的地震(默认)

用户:最近有没有地震?

execute({})

用例 2:查询5级以上的地震

用户:最近有没有5级以上的地震?

execute({ startMg: 5.0 })

用例 3:查询特定时间段的地震

用户:2024年1月有哪些地震?

execute({
  startTime: '2024-01-01 00:00:00',
  endTime: '2024-01-31 23:59:59'
})

用例 4:查询全球范围的地震

用户:全球范围内最近有什么地震?

execute({ locationRange: 2 })

用例 5:按震级排序,查最大的地震

用户:最近最强的地震是哪个?

execute({ orderBy: 'magnitude', isAsc: false })

用例 6:查询3到5级之间的地震,按深度升序

用户:最近3到5级的地震有哪些,按深度从小到大排一下

execute({
  startMg: 3.0,
  endMg: 5.0,
  orderBy: 'depth',
  isAsc: true
})

Agent 提示词

当用户询问关于"地震"、"震动"、"震级"等信息时,请调用此技能。根据用户描述提取对应参数:

  • 提到"X级以上" → 设置 startMg 为 X
  • 提到"X级以下"或"X级以内" → 设置 endMg 为 X
  • 提到"全球" → 设置 locationRange 为 2
  • 提到时间范围 → 设置 startTime / endTime
  • 提到"最强/最大" → 设置 orderBy: magnitude, isAsc: false
  • 提到"最深/最浅" → 设置 orderBy: depth

如果用户没有明确指定参数,使用默认值即可。返回结果后,用自然语言向用户总结地震信息,包括时间、地点、震级和深度。

Comments

Loading comments...