← Back to Skills Marketplace
Sinopec Oil Price
by
15878033657
· GitHub ↗
· v1.0.0
· MIT-0
123
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sinopec-oil-price
Description
中石化油价查询 Skill,用于查询实时油价信息。支持按省份查询汽油和柴油价格,显示价格变动信息。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sinopec-oil-price - After installation, invoke the skill by name or use
/sinopec-oil-price - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Sinopec Oil Price?
中石化油价查询 Skill,用于查询实时油价信息。支持按省份查询汽油和柴油价格,显示价格变动信息。 It is an AI Agent Skill for Claude Code / OpenClaw, with 123 downloads so far.
How do I install Sinopec Oil Price?
Run "/install sinopec-oil-price" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Sinopec Oil Price free?
Yes, Sinopec Oil Price is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Sinopec Oil Price support?
Sinopec Oil Price is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Sinopec Oil Price?
It is built and maintained by 15878033657 (@15878033657); the current version is v1.0.0.
More Skills