All

SQL Trace

Ask Claude any finance question about your exports and get an answer where every number comes with the query that produced it.

v1.0 · Last tested 2026-10-09

Get all 8

What it does

SQL Trace changes how Claude answers. Instead of reading your file and writing a number in a sentence, Claude loads the file into a small database, writes a query for each figure, runs it twice and hands you a workbook with the answer and a Trace sheet. Use it on its own for ad-hoc questions, or alongside any other skill in the pack.

When to use it

"Total AP over 90 days by vendor." "How much did we spend with our top 10 vendors this year?" "Which customers paid late more than twice?" Any question where someone will later ask, "Where did that number come from?"

How it shows its work

Every figure in Claude's reply carries a query ID. Open the Trace sheet, find the ID and you have the exact SQL, the rows it returned and the result. The Inputs sheet lists each file with its row count, amount total and a fingerprint (SHA-256 hash), so you can prove which version of the file was used.

Example prompt

Using SQL Trace: from the attached AP aging, give me total balance over 90 days
by vendor, top 10 only, and the share of total AP they represent.

One prompt is shown. The full prompt and the method behind it are in the pack.

Sample output

VendorOver 90 daysQuery
Northline Logistics$42,180.00Q03
Harbor Print Co.$18,940.55Q03
Top 10 total$96,412.20 (23.4% of AP)Q04

Illustrative, from the pack's sample data.

The full SKILL.md is in the pack

The download has the complete instruction file for this skill, the install steps and the sample data to test it against. Enter your email and we send it. No call, no account.

Inside the file

  • Goal
  • Steps
  • Rules

What it won't do

It won't connect to your ERP, fix your data or decide what a number means for your business. It shows you exactly how each number was produced.

FAQ

Does Claude really run SQL?

Yes. With code execution on, Claude runs Python in a sandbox, and Python's built-in sqlite3 module runs the queries.

Can my auditor rerun it without Claude?

Yes. The SQL in the Trace sheet runs in any SQLite tool against the same files.

On live data, every month, with the full trail

Book a 30-min call