← 返回 Skills 市场
15878033657

Sinopec Oil Price

作者 15878033657 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
123
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sinopec-oil-price
功能描述
中石化油价查询 Skill,用于查询实时油价信息。支持按省份查询汽油和柴油价格,显示价格变动信息。
安全使用建议
The skill appears to do what it says: it queries Sinopec's official API, computes price differences, and saves simple JSON history files in the skill directory. Consider the following before installing: 1) It will need network access to https://cx.sinopecsales.com and Node/npm to install dependencies (axios). 2) It writes persistent files (history/*.json and oil-price-history.json) in the skill folder — if you prefer no local persistence run it in a sandbox or remove/redirect the save/read functions. 3) The package-lock refers to a npm mirror (npmmirror.com) — if you require a particular registry, install with your preferred registry and verify package integrity. 4) The skill source/homepage is not provided; however all source files are included so you can audit them yourself. If you want tighter controls, run the skill in an isolated environment or review/modify the file-write and logging behavior before enabling scheduled runs.
功能分析
Type: OpenClaw Skill Name: sinopec-oil-price Version: 1.0.0 The skill is a legitimate utility for querying and monitoring Chinese oil prices from the official Sinopec mobile API (cx.sinopecsales.com). It uses standard Node.js file system operations (fs) to maintain a local history of prices in a 'history' directory for change detection, and its behavior aligns perfectly with the documentation in SKILL.md and index.js.
能力评估
Purpose & Capability
Name/description match the code and docs. The implementation uses axios to call Sinopec's API (base URL: https://cx.sinopecsales.com/yjkqiantai) to fetch price data and exposes getOilPrice and monitorOilPrice as described. Declared dependencies (axios) are appropriate for the task.
Instruction Scope
SKILL.md and references describe querying and monitoring behavior; the code follows that. The runtime performs HTTP GET/POST to the Sinopec domain and reads/writes local history files (./history/<province>.json and ./oil-price-history.json). The SKILL.md doesn't enumerate the exact file locations, so note that the skill persists history in its own directory.
Install Mechanism
There is no install spec bundled (instruction-only in metadata) but code + package.json/package-lock are included. Installing/running will require Node and npm (or equivalent) to fetch axios from the npm registry mirror referenced in package-lock. This is normal but means runtime will install third-party packages if executed.
Credentials
The skill requests no environment variables or credentials and only accesses the Sinopec API and the local filesystem for history — this is proportional to a price-query/monitoring skill.
Persistence & Privilege
The skill creates and updates local files (history/*.json and oil-price-history.json) under the skill directory to persist previous prices and is intended for scheduled runs (cron). It does not request elevated system privileges or modify other skills. always:false (default) — it is not force-included.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sinopec-oil-price
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sinopec-oil-price 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Sinopec Oil Price Skill. - Enables real-time inquiry of Sinopec's oil prices across China. - Supports searching by province ID or province name. - Provides both gasoline (92#, 95#, 98#) and diesel (0#) prices. - Displays oil price fluctuation information. - Returns data sourced from Sinopec's official API.
元数据
Slug sinopec-oil-price
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Sinopec Oil Price 是什么?

中石化油价查询 Skill,用于查询实时油价信息。支持按省份查询汽油和柴油价格,显示价格变动信息。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 123 次。

如何安装 Sinopec Oil Price?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sinopec-oil-price」即可一键安装,无需额外配置。

Sinopec Oil Price 是免费的吗?

是的,Sinopec Oil Price 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Sinopec Oil Price 支持哪些平台?

Sinopec Oil Price 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sinopec Oil Price?

由 15878033657(@15878033657)开发并维护,当前版本 v1.0.0。

💬 留言讨论