/super-tax-agent:tax-compare <our-pdf> <reference-pdf>from super-tax-agent
Compares two tax return PDFs (e.g., plugin output vs TurboTax) by extracting form fields, mapping them to Form 1040 lines, and saving a structured diff. Useful for verifying accuracy or debugging discrepancies.
Ships in super-tax-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Compare this plugin's output against a reference return (e.g., TurboTax) to identify discrepancies.
pypdf must be available.data/tax-calculation.json must exist (provides the expected tax year).Check prerequisites:
python3 -c "from pypdf import PdfReader; print('pypdf OK')"
ls data/tax-calculation.json
If pypdf is missing:
pip3 install pypdf
Invocation: /tax-compare <our-pdf> <reference-pdf>
<our-pdf> — path to this plugin's generated PDF (e.g., data/output/1040-2025.pdf)<reference-pdf> — path to the TurboTax or other software's PDFIf either argument is missing, ask the user to provide both paths before continuing.
Read data/tax-calculation.json and extract the taxYear field. Use this to name the output file data/comparison-{year}.json.
Run the following Python snippet to extract all form field values from each PDF:
from pypdf import PdfReader
def extract_fields(path):
reader = PdfReader(path)
fields = reader.get_fields() or {}
return {
name: (field.value if hasattr(field, 'value') else str(field))
for name, field in fields.items()
}
our_fields = extract_fields("<our-pdf>")
ref_fields = extract_fields("<reference-pdf>")
If a PDF has no form fields (e.g., it is a printed/scanned PDF rather than a fillable form), warn the user:
"The PDF at
<path>does not contain fillable form fields. Comparison requires a fillable PDF exported directly from TurboTax or this plugin."
Read skills/tax-fill/references/form-1040-fields.md to get the canonical list of Form 1040 lines and their corresponding PDF field names. This mapping is the authoritative list of fields to compare.
The mapping format is:
| Line | Description | PDF Field Name | JSON Key |
|------|------------------------|-------------------------|---------------------------|
| 1a | Total wages | f1_15[0] | income.totalWages |
| 11 | AGI | f1_32[0] | adjustedGrossIncome |
...
Build a list of (line, description, our_field_name, ref_field_name) tuples to compare. When both PDFs use the same fillable IRS form, field names will match. When the reference PDF uses different field names (e.g., TurboTax-generated), attempt to match by line number from the mapping.
For each mapped field:
$, ,, whitespace. Treat empty or missing as 0.Compute delta = our_value - ref_value for numeric fields.
Write data/comparison-{year}.json with the following schema:
{
"taxYear": 2025,
"generatedAt": "2026-04-02T00:00:00",
"ourPdf": "data/output/1040-2025.pdf",
"referencePdf": "<reference-pdf>",
"summary": {
"totalFields": 42,
"matches": 38,
"mismatches": 3,
"missingOurs": 1,
"missingRef": 0
},
"fields": [
{
"line": "1a",
"description": "Total wages",
"ourValue": 120000,
"refValue": 120000,
"delta": 0,
"status": "match"
},
{
"line": "19",
"description": "Child tax credit",
"ourValue": 1648,
"refValue": 2000,
"delta": -352,
"status": "mismatch"
}
]
}
Print a human-readable summary:
Tax Return Comparison — 2025
============================================================
Total fields compared: 42
Matches: 38 ✓
Mismatches: 3 ✗
Missing (ours): 1
MISMATCHES:
Line 19 Child tax credit Ours: $1,648 Ref: $2,000 Δ -$352
Line 25a Estimated tax payments Ours: $0 Ref: $400 Δ -$400
Line 37 Amount you owe Ours: $1,200 Ref: $448 Δ +$752
MISSING IN OUR RETURN:
Line 12b Charitable contribution (no standard ded. limit)
Saved to: data/comparison-2025.json
============================================================
After displaying the diff, ask:
"Would you like to help improve this tax agent for the community? Your personal tax data stays local — only the line-item deltas and any rule fixes are shared. Run
/tax-evolveto analyze and propose fixes."
Do not run /tax-evolve automatically. Wait for the user to decide.
data/tax-calculation.json is missing, tell the user to run /tax-calculate first.What SKILL.md sets; muted values are Claude Code's defaults
super-tax-agent@tax-marketplace is listed by fangyi-chen/tax-marketplace — review the source before installing
npx claudepluginhub fangyi-chen/tax-marketplace --plugin super-tax-agent11 skills in this plugin
/tax-calculateCalculate federal tax return based on collected data. Use when the user wants to calculate taxes, see their refund, or compute what they owe./tax-domain-cryptoDigital asset and cryptocurrency tax rules. Invoked by core skills when a 1099-DA is detected during document import or when the user reports cryptocurrency transactions./tax-domain-harvestTax-loss harvesting and wash sale tax rules. Invoked by core skills when 1099-B contains wash sale adjustments or when unrealized losses are detected in the portfolio./tax-domain-rentalRental property and Schedule E tax rules. Invoked by core skills when the user reports rental income or ownership of income-producing real property./tax-domain-rsuRSU and ESPP income tax rules. Invoked by core skills when W2 box 14 contains RSU codes, 1099-B contains ESPP/RSU lots, or user mentions stock compensation during interview./tax-evolveAnalyze comparison diffs, classify discrepancies, and generate fixes to skill files and references. Logs patterns to evolution-log.json and invokes tax-publish when fixes are ready. Use after running tax-compare.Other plugins' skills for the same job