- Home
- Skills
- Workflow Automation
- Fuel Economy — Paste Distance and Fuel, Get Consumption
More screenshots
Works with the AI Agents you already use
Fuel Economy — Paste Distance and Fuel, Get Consumption
Paste a CSV with one trip per row (distance in km or mi, fuel in L or US gal). Get one economy line per trip, plus separate means for km/L and mi/US gal. Rows it cannot read are listed by row number.
$5
Fuel Economy — Paste Distance and Fuel, Get Consumption
Example session with this skill installed
Run the fuel-economy skill on examples/sample.csv. The header is label,distance,fuel and each row is one trip: Trip A is 300 km and 20 L, Trip B is 120 mi and 4 US gal, Trip C has a distance that is not a number.
- Read your context and instructions
- Compiled the fuel economy
Summary
2 readable rows and 1 unreadable row. Unit pairs are averaged separately.
Result
| Label | Row | Distance economy |
|---|---:|---:|
| Trip A | 2 | 15 km/L |
| Trip B | 3 | 30 mi/US gal |
| Trip C | 4 | UNREADABLE — distance must include a value and supported unit |
| Mean (km/L; 1 row) | — | 15 km/L |
| Mean (mi/US gal; 1 row) | — | 30 mi/US gal |
2 readable rows; 1 unreadable row.
Distance economy = distance ÷ fuel. Unit pairs are averaged separately.
Next steps
- Fix the distance on row 4 (Trip C) and run it again.
- Add
--format jsonfor JSON output, or--output result.txtto write a UTF-8 file.
Connects securely to your tools. The creator never sees your data.
About this skill
Each row is one trip. Distance uses km or mi; fuel uses L or US gal. The valid pairs are km with L and mi with US gal. Pairs are grouped and averaged separately.
300 km ÷ 20 L = 15 km/L. 120 mi ÷ 4 US gal = 30 mi/US gal.
What it does
- Reads a CSV with a
label,distance,fuelheader, one trip per row. - Prints distance economy per row: distance ÷ fuel.
- Averages km/L rows and mi/US gal rows separately (it never mixes the two).
- Keeps readable rows in the table when another row is unreadable; the bad row is shown with its row number and the reason.
- Output as Markdown (default) or JSON (
--format json), to stdout or a UTF-8 file (--output PATH).
How to use
python3 scripts/fuel_economy.py examples/sample.csv
Input rules
- Distance and fuel must be positive. A row pairs only km with L, or mi with US gal.
- CSV is UTF-8 (a BOM is accepted) or BOM-marked UTF-16.
- Numbers allow up to 18 digits and 6 decimal places; calculations use Decimal.
- Up to 10,000 data rows and 500,000 input bytes.
- If no row is readable, it prints one
error:line and exits with status 2. - No purchase rounding and no fuel-cost estimate is added.
Limits
The result is arithmetic on the values you supply. It does not assess vehicle condition or real-world performance.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.
Requires explicit units in headers. Will not convert between incompatible unit pairs. Fails if headers are unsupported or data is missing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3