油价查询

v1.0.0

获取全国各省市油价信息。无需 API Key。Use when: user asks about gas prices, fuel costs in China.

0· 213·1 current·1 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 chenzihao0731/oil-price.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "油价查询" (chenzihao0731/oil-price) from ClawHub.
Skill page: https://clawhub.ai/chenzihao0731/oil-price
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: curl, jq
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 oil-price

ClawHub CLI

Package manager switcher

npx clawhub@latest install oil-price
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, required binaries (curl, jq), manifest, SKILL.md, and the shell script all align: the skill fetches oil prices from https://v2.xxapi.cn and formats them. Nothing requested appears unrelated to the stated purpose.
Instruction Scope
Runtime instructions and the shell script confine activity to calling the documented API and parsing JSON. They do not read local secrets or other files. Note: SKILL.md documents field names like p92/p95/p98/p0 while the script extracts n92/n95/n98/n0 — this is a small inconsistency that could cause confusion if the API field names differ from what the docs state.
Install Mechanism
No install spec; the skill is instruction-only with a small local shell script. Nothing is downloaded or written to disk by an installer. This is low-risk.
Credentials
No environment variables, credentials, or config paths are requested. The single external network call is proportional to the stated purpose of fetching public price data.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system privileges or modify other skills or system configs. Autonomous invocation is permitted by default (normal for skills) but is not combined with other concerning privileges.
Assessment
This skill appears low-risk: it only makes a single HTTPS request to https://v2.xxapi.cn and parses the JSON with jq. Before installing, consider: 1) Verify you trust the API host (v2.xxapi.cn) and its privacy/usage terms, since data is fetched from that third party. 2) Test the script manually (./oil_price.sh) to inspect the API response and confirm the field names (SKILL.md mentions p92/p95 but the script uses n92/n95). 3) Be aware of the API's rate limits and do not run it in contexts where outbound network calls to unvetted domains are disallowed. No credentials are requested and the script does not access local secrets.

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

Runtime requirements

Clawdis
Binscurl, jq
chinavk9754eh6n3g1ab6qhv0ye9ky75835ks6energyvk9754eh6n3g1ab6qhv0ye9ky75835ks6fuelvk9754eh6n3g1ab6qhv0ye9ky75835ks6gas-pricevk9754eh6n3g1ab6qhv0ye9ky75835ks6latestvk9754eh6n3g1ab6qhv0ye9ky75835ks6oilvk9754eh6n3g1ab6qhv0ye9ky75835ks6
213downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

油价查询技能

获取全国各省市最新油价信息。无需 API Key

使用方法

直接调用

./oil_price.sh

输出格式

每行一个地区,格式为:地区 |92 号 |95 号 |98 号 |0 号

北京|8.5|9.1|10.2|7.8
上海|8.6|9.2|10.3|7.9
...

在脚本中使用

OIL_DATA=$(./oil_price.sh)

# 获取北京油价
BEIJING=$(echo "$OIL_DATA" | grep "北京")

# 提取 92 号油价
P92=$(echo "$BEIJING" | cut -d'|' -f2)

API 说明

  • 接口: https://v2.xxapi.cn/api/oilPrice
  • 认证: 无需 API Key
  • 返回: JSON 格式,包含 data 数组
  • 字段:
    • name: 地区名称
    • p92: 92 号汽油价格
    • p95: 95 号汽油价格
    • p98: 98 号汽油价格
    • p0: 0 号柴油价格

注意事项

  • 有 API 调用频率限制
  • 建议每日调用一次即可
  • 需要安装 curljq

Comments

Loading comments...