Tax package prep

From ShoumikSaha/agent-skill-security · View interactive version

Tax package prep is an AI agent skill from the GitHub repository ShoumikSaha/agent-skill-security. Year-end tax package preparation pipeline for QBO-connected clients. Generates a 9-tab Excel workbook: Tax Summary, Income, Expenses, Depreciation, 1099s, State Nexus, Crypto (Form 8949), Checklist, and CDC. Reads client SOP for entity type, crypto wallet, vehicle, home office, and FBAR flags. Maps

How to use this skill

Skill file

Tax Package Preparation

Prepare a complete year-end tax package for client filing. Pulls full-year financial data from QBO, reads the client SOP for entity configuration, and generates all tax-ready schedules with IRS form mapping.

When To Use

Use when:

NOT for:

Quick Start

# Standard run — pulls full year from QBO
python3 scripts/pipelines/tax-package-prep.py --slug my-client --year 2025

# Skip GL drill (faster, less vendor detail)
python3 scripts/pipelines/tax-package-prep.py --slug my-client --year 2025 --skip-gl

# Custom output directory
python3 scripts/pipelines/tax-package-prep.py --slug my-client --year 2025 --out ~/Desktop/tax-2025

# QBO sandbox
python3 scripts/pipelines/tax-package-prep.py --slug my-client --year 2025 --sandbox

Requirements

pip install openpyxl
# QBO auth token must already be configured

Output: 9-Tab Excel Workbook

| Tab | Contents |

|-----|----------|

| Tax Summary | Entity info, key tax metrics, special flags (crypto/FBAR/vehicle/home office), SOP watch items |

| Income Schedule | Revenue by category with IRS Sch C / 1120 / 1065 line mapping |

| Expense Schedule | Expenses with IRS line mapping, 50% meal limit applied, deductible amounts |

| Depreciation | Fixed assets from GL + BS, MACRS / Section 179 / Straight-Line detection |

| 1099 Vendors | Vendors paid >$600, form type (NEC/MISC), corp exemption flag, W-9 action list |

| State Nexus | Multi-state revenue/expense pattern detection, HIGH/MEDIUM/LOW risk rating |

| Crypto Flag | Form 8949 flag, wallet address, FBAR assessment, action item checklist |

| Checklist | READY / NEEDS INPUT / MISSING for every tax package item |

| CDC Log | Year-over-year income and expense position changes |

SOP Integration

The pipeline reads clients/{slug}/sop.md to auto-configure:

| SOP Signal | What It Triggers |

|------------|-----------------|

| S-Corp / 1120-S | Entity = S-Corp, officer W-2 flag, K-1 checklist item |

| C-Corp / 1120 | Entity = C-Corp, E&P tracking, charitable 10% limit |

| Partnership / 1065 | K-1 prep checklist, partner basis tracking |

| 0x[wallet] (ETH address) | Crypto flag, Form 8949, wallet address in output |

| crypto / bitcoin / defi | Crypto flag, Form 8949 required |

| vehicle / mileage | Vehicle schedule, mileage log requirement |

| home office / Form 8829 | Home office flag, sq footage action items |

| SAFE / convertible note | SAFE treatment watch item |

| foreign / offshore | FBAR flag, FinCEN 114 action |

| NOL / loss carryforward | Carryforward analysis |

| Section 179 carry | Section 179 carryover check |

| interest expense | Watch item: verify deductibility |

IRS Schedule Mapping

Expense Categories (auto-mapped)

Income Categories (auto-mapped)

1099 Vendor Logic

Scans all GL expense accounts and aggregates by vendor name:

State Nexus Detection

Scans GL memos, vendor names, and account names for US state indicators:

Physical nexus (employees, office), economic nexus ($100K revenue threshold), and payroll nexus are all flagged.

Crypto / FBAR Logic

Crypto:

FBAR (FinCEN 114):

CDC Cache

Each run saves a snapshot to .cache/tax-package-prep/{slug}-{year}.json.

The next year's run computes year-over-year deltas for income and expense accounts.

CDC events are shown in the CDC Log tab sorted by absolute dollar change.

Depreciation Detection

Scans GL and Balance Sheet for:

Output includes: account, year-end balance, period activity, detected method, Section 179 flag.

Estimated Tax Payments

Scans GL for estimated tax payment entries:

Checklist Status Definitions

| Status | Meaning |

|--------|---------|

| ✅ READY | Data found in QBO — no client action needed |

| ⚠ NEEDS INPUT | Requires additional documentation from client |

| ❌ MISSING | Not found — QBO pull failed or data doesn't exist |

File Locations

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.