/cpa-skills:k1-extract-summarizefrom cpa-skills
Extracts Schedule K-1 data from partnership, S corp, and trust tax packages into a standardized box-by-box summary with codes, then foots aggregate K-1s to the entity return and confirms ownership totals 100%.
Ships in cpa-skills. 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.
Read when SKILL.md points to them; scripts run unread.
K-1 season fails in two directions, and neither is a data-entry problem.
The first is transcription into the wrong box. A K-1 has dozens of boxes and codes, many of which look interchangeable and are not. Box 13 code W and box 13 code A go to entirely different places on a 1040. The number gets typed correctly and lands in the wrong return line, which is invisible on review because the figure agrees to the K-1.
The second is a K-1 that never arrives. Nobody notices an absent K-1 by reading the K-1s they have. You find it by comparing what you received to what you expected, which means building the expectation first.
So this skill does two things a spreadsheet does not: it preserves the code alongside every amount, and it reconciles the population you received against the population you should have.
This skill will not produce a clean summary unless:
If the entity return is not available, say so — the summary is then unfooted and its scope is limited. Do not present an unfooted summary as though it were reconciled.
python3 scripts/extract_text.py --input k1_packages/ --out work/
# add --ocr for scanned K-1s (requires local ocrmypdf; nothing is uploaded)
This writes, per PDF, a page-delimited text layer, every word with its coordinates, and a metadata file flagging pages with no usable text layer. Scanned K-1s must go through the local OCR path before any figure is read from them — reading amounts off a scanned page without OCR produces silent blanks, not errors.
K-1 layouts vary by software (Lacerte, UltraTax, CCH, Drake, ProSystem) but the box numbering is fixed by the form, so anchor on box numbers, not on position. Software-specific supplemental statements are where the detail lives and are the most commonly skipped pages.
Capture, per K-1:
| Field | Notes |
|---|---|
source_file, source_page | Required on every row |
entity_name, entity_ein | The issuing entity |
entity_type | 1065, 1120-S, 1041 |
tax_year, period_begin, period_end | Short periods matter |
final_k1, amended_k1 | Both change downstream treatment |
recipient_name, recipient_tin_last4 | Last four only. Never write a full TIN to an output file. |
recipient_type | Individual, partnership, corporation, trust, IRA, disregarded, exempt |
pct_profit, pct_loss, pct_capital | Beginning and ending, where shown |
box, code, amount, description | One row per box/code combination |
statement_ref | Which supplemental statement the amount came from |
Rules that prevent the common errors:
statement_ref populated. Section 199A information, foreign detail, and at-risk data
almost always live there rather than on the face of the K-1.entity_type on every row and never map codes between them.Write to k1_lines.csv.
python3 scripts/build_k1_summary.py \
--lines k1_lines.csv \
--entity-totals entity_schedule_k.csv \
--expected-recipients partners.csv \
--client "Meridian Holdings LP" --tax-year 2025 \
--out "Meridian Holdings LP - 2025 K-1 Summary.xlsx"
The script runs five tests and refuses to write a clean workbook if any fail:
The workbook has seven tabs:
0.00 or the workbook is marked failed.These surface during extraction and matter more than the summary itself:
Report these as facts with the K-1 and page. Do not conclude on treatment — route it to the person signing.
Do not state a threshold, rate, phase-out, or limit from memory. Where a code's treatment depends on one, write the note as "verify treatment of box X code Y for TY[year] against current instructions for Schedule K-1 (Form [entity type])" and cite the box and code. Codes and their meanings are revised between years; a code letter recalled from an earlier year is a silent misposting.
Fully local. Full TINs are never written to output — recipient identification uses name and last four digits only, and the validator fails if a full TIN pattern appears in the data. Output filenames carry entity name and year only. Source PDFs open read-only. No network calls.
pip install openpyxl pdfplumber
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adoptai/cpa-skills --plugin cpa-skills43 skills in this plugin
/accrual-proposalsPropose month-end accruals from open POs received but not yet invoiced (GRNI), recurring vendor spend patterns, and preparer-supplied one-time items, cross-checked against the AP register so nothing is double-booked, with every line carrying a stated basis and an auto-reversal flag for reviewer approval. Never books anything - output is a proposed JE batch for a Controller to approve before it posts to the GL. Use whenever the user mentions month-end accruals, accrual proposals, what should we accrue this month, GRNI, goods received not invoiced, a recurring accrual estimate, or the accrual JE batch for close. Also trigger on "propose accruals," "draft the accrual entries," "what are we missing on the accrual side," or when an open PO report, AP register, or vendor spend history is supplied together at month end. Inverts cutoff-and-unrecorded-liabilities: that proves a search for what was missed is complete; this proposes what to book. Runs fully local - no client data leaves the machine./ar-aging-tie-outTie the accounts receivable aging to the general ledger control account and test it properly — recomputing every ageing bucket from the invoice date rather than trusting the report, grossing up netted credit balances, and flagging stale balances, unapplied cash, and cutoff errors. Use this whenever the user mentions AR aging, accounts receivable aging, tying the aging to the GL, an AR subledger that does not agree to the control account, stale or uncollectible receivables, the allowance for doubtful accounts, unapplied cash or credits, or receivable confirmations. Also trigger on "does our AR aging tie," "reconcile accounts receivable," "which receivables are old," "check the allowance," "why is AR off," "review the aging," or when an AR aging report and a trial balance are provided together. Runs fully local — no customer or receivable data leaves the machine.Other plugins' skills for the same job