Skip to main content
skill CX Codex

mileage-tracker — Claude Code skill: business mileage and IRS deduction

Adds up business miles and works out the IRS standard mileage deduction, checking the log against fuel, toll and parking charges.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openaccountant/skills --skill mileage-tracker -a claude-code
Open on GitHub

What mileage-tracker does

This skill keeps a record of business driving and turns it into a deduction figure. You supply the total business miles, since the skill cannot read an odometer, and it multiplies that number by the IRS rate. The rate written into the skill is $0.70 per mile for 2025, with a note to confirm the current figure at irs.gov — the IRS revises it every year, and sometimes partway through one.

Two Wilson tools do the checking. transaction_search pulls up charges at gas stations, tolls and parking lots, while export_transactions saves the vehicle expenses for your records. Those charges are matched against the dates in your mileage log, which shows whether the claimed miles line up with money actually spent.

Pick one method per vehicle per year: the standard rate or actual expenses. Starting with the standard rate in a vehicle's first year of service leaves the door open to switching to actual expenses later. The other direction is closed. Parking and tolls stay deductible on top of the standard rate. Driving from home to a regular office never counts; home office to a client site does. Nothing here is tax advice, so filing decisions belong with a CPA.

What it helps with

  • work out the deduction for a year of business driving
  • match claimed miles against fuel and toll charges
  • choose between the standard rate and actual vehicle expenses
  • build a trip log with dates, route and business purpose
  • export vehicle expenses for recordkeeping alongside the log

Example prompts for the agent

  • Add up my deduction: 4,200 business miles this year at $0.70 per mile
  • Use transaction_search to find every gas station and toll charge in March and check them against my mileage log
  • Export my vehicle expenses with export_transactions and tell me what goes on Schedule C, Line 9

How to install mileage-tracker

1Skills CLI (Vercel)

npx skills add openaccountant/skills --skill mileage-tracker -a claude-code

2Manually: put the files in place

~/.claude/skills/mileage-tracker/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mileage-tracker/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mileage-tracker

How do I install mileage-tracker in Claude Code?

Run npx skills add openaccountant/skills --skill mileage-tracker -a claude-code. The skill file lands at ~/.claude/skills/mileage-tracker/SKILL.md.

What does mileage-tracker do?

It calculates the IRS standard mileage deduction from your business miles and cross-references trips with fuel, toll and parking transactions. The result is reported as a figure for Schedule C, Line 9.

Can I claim the standard rate and actual expenses together?

No — one method per vehicle per year. If you begin with the standard rate, you can move to actual expenses later, but not the other way round.

Source text

SKILL.md · MIT
---
name: mileage-tracker
description: >
  Track business mileage and calculate IRS standard mileage deduction.
---

# Business Mileage Tracker

## Overview

Tracks business miles driven and calculates the IRS mileage deduction. Cross-references fuel, toll, and parking transactions to validate driving activity. You must choose between the standard mileage rate and actual vehicle expenses for each vehicle -- you cannot use both methods for the same vehicle in the same year.

## Wilson Tools Used

- `transaction_search` — Find gas station, toll, and parking transactions to cross-reference against mileage logs
- `export_transactions` — Export vehicle-related expenses for recordkeeping

## Workflow

1. Ask for the total business miles driven (Wilson cannot track odometer readings directly).
2. Multiply business miles by the current IRS standard mileage rate: **$0.70/mile for 2025** (verify the current year rate at irs.gov).
3. Use `transaction_search` to find transactions matching gas stations, toll charges, and parking fees.
4. Cross-reference driving-related transactions against the mileage log dates to validate consistency.
5. Calculate the deduction: `business_miles x rate_per_mile`.
6. Report the deduction amount for Schedule C, Line 9 (Car and truck expenses).

### Standard Mileage Rate vs. Actual Expenses

| Method | What You Deduct | When to Use |
|--------|----------------|-------------|
| Standard mileage | Miles x IRS rate | Simpler; usually better for fuel-efficient or low-cost vehicles |
| Actual expenses | Gas, insurance, repairs, depreciation, registration, lease payments x business-use % | Better for expensive vehicles with high operating costs |

**You must choose one method per vehicle per year.** If you use standard mileage in the first year a vehicle is placed in service, you can switch to actual expenses later. If you start with actual expenses, you cannot switch to standard mileage for that vehicle.

### Required Mileage Log Fields

The IRS requires contemporaneous records. Each entry should include:

- Date of the trip
- Starting location and destination
- Business purpose of the trip
- Miles driven
- Odometer reading (start and end, at minimum annually)

## Without Wilson

1. Create a spreadsheet with columns: Date, From, To, Purpose, Miles.
2. Log every business trip as it happens (the IRS does not accept reconstructed logs).
3. At year end, sum the Miles column.
4. Multiply total business miles by the current IRS rate (e.g., 1,000 miles x $0.70 = $700).
5. Alternatively, total all actual vehicle expenses and multiply by your business-use percentage (business miles / total miles driven).
6. Enter the deduction on Schedule C, Line 9.
7. Keep the mileage log and supporting receipts for at least 3 years from the filing date.

## Important Notes

- The $0.70/mile rate is for 2025. The IRS adjusts this rate annually, sometimes mid-year. Always verify the current rate before filing.
- Commuting miles (home to regular office) are never deductible. Trips from a home office to a client site are deductible.
- If you use the standard mileage rate, you can still deduct parking fees and tolls separately on top of the mileage deduction.
- For vehicles used both personally and for business, only the business-use percentage is deductible.
- This is not tax advice. Consult a CPA or tax professional for filing decisions.

© openaccountant · MIT · openaccountant/skills

Similar skills

All skills for Finance and business →

From the same set44

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor