bankruptcy-ops
Screen a household's annualized income against a state median income figure YOU supply for the Chapter 7 means-test first step, plus a document checklist. The script never hardcodes median figures — medians change, so you verify current figures before use. Practice-management tooling, not legal advice.
$ skillbank install bankruptcy-ops@1.0.0 # pins exactly 1.0.0 · README + changelog included
Bankruptcy Ops
Overview
Practice-management tooling, not legal advice. Verify all deadlines, fees, and procedures against your jurisdiction's current rules.
The first screen of the Chapter 7 means test compares the debtor's annualized current monthly income to the state median income for the household size. Median figures change regularly, so this tool **contains no median data at all** — you supply the current figure yourself (from the current Census/DOJ figures for the state and filing date), and the script refuses to run without it. It prints a pass/fail indicator for that screen, a document checklist for the consultation, and reminders — in stdout, stderr, and the output file — that figures change and must be verified before relying on them. This covers only the median-income screen; the full means test (Official Form 122A-2), with its deductions and exceptions, is outside this tool's scope. All data stays local — nothing is uploaded.
Installation
1. Copy the bankruptcy-ops/ directory anywhere convenient. 2. Make the script executable (Unix):
chmod +x scripts/means.py
No pip install needed — standard library only (Python 3.9+).
Configuration
No config files and no bundled figures. Every run requires --median: the current state median income for the household size, which you verify against current sources.
Inputs
| Command / flag | Arguments | Returns | |---|---|---| | means.py --income N --size N --median N --state "Name" [--out report.md] | --income: annualized income figure (dollars); --size: household size (int ≥ 1); --median: current state median for that size (dollars — you verify it); --state: state name for labeling | PASS / ABOVE MEDIAN indicator, difference, document checklist, verify-before-relying notes |
Non-numeric or non-positive figures produce a clear stderr message and a nonzero exit — never a traceback.
Worked example
Practice-management tooling, not legal advice. Verify all deadlines, fees, and procedures against your jurisdiction's current rules.
The median figures below are sample placeholders for demonstration only — they are not current figures for any state. Verify the real current median before any real use.
Below the sample median ($98,500 for a household of 3):
$ ./scripts/means.py --income 72000 --size 3 --median 98500 --state "Pennsylvania"
***** PRACTICE-MANAGEMENT TOOLING, NOT LEGAL ADVICE *****
Median income figures change regularly. The script does not contain any
median figures — you supplied this one. Verify it against the current
Census/DOJ figures for your state and filing date before relying on it.
...
## Result: PASS — income is below the supplied median: the presumption of abuse does not arise at this screen.
Difference: $26,500.00 (below the supplied median).
Above the sample median:
$ ./scripts/means.py --income 110000 --size 3 --median 98500 --state "Pennsylvania" --out /tmp/means.md
wrote means-test screening -> /tmp/means.md
/tmp/means.md contains:
## Result: ABOVE MEDIAN — the presumption screen is not cleared: the full means test (Official Form 122A-2) and applicable deductions/exceptions must be completed.
Difference: $11,500.00 (above the supplied median).
…followed by a 10-item document checklist (pay stubs, tax returns, account statements, ID/SSN, credit counseling certificate, debt and asset lists, expenses, titles/deeds, pending claims) and a "Verify before relying" section repeating: figures change, verify current medians, fees, and rules; this tool is practice-management tooling, not legal advice.
Version history
Changelog
1.0.0 — 2026-09-27
- Initial release: scripts/means.py — Chapter 7 means-test median-income screen with user-supplied median (never hardcoded) + document checklist.