criminal-defense-ops

v1.0.0 MIT legal updated 2026-09-27

Turn a charges JSON object (charge name, severity, tier) into a flat-fee menu by severity plus a per-charge quote and payment-plan math — down payment plus a month-by-month installment schedule. Fee figures come from the firm's editable menu in the script. Use at the initial criminal-defense consultation to quote fees and payment terms on the spot. Practice-management tooling, not legal advice.

$ skillbank install criminal-defense-ops@1.0.0
# pins exactly 1.0.0 · README + changelog included

Criminal Defense Ops

Overview

"What's this going to cost?" is the first question at every criminal- defense consultation. This skill takes a JSON object listing the charges — each with a name, severity (infraction, misdemeanor, felony), and tier (class A/B/C, class 1–4, etc.) — and writes one Markdown file with (1) the firm's flat-fee menu by severity and tier, (2) a per-charge quote with the total, and (3) payment-plan math: the down payment plus a month-by-month installment schedule with due dates.

> Practice-management tooling, not legal advice. Verify all deadlines, fees, and procedures against your jurisdiction's current rules.

Installation

1. Copy the criminal-defense-ops/ directory anywhere convenient. 2. Make the script executable (Unix):


   chmod +x scripts/fees.py

No pip install needed — standard library only.

Configuration

Input is a JSON object with these fields:


{
  "client_name": "Anthony Reyes",
  "charges": [
    {"name": "DUI — first offense", "severity": "misdemeanor", "tier": "class_b"},
    {"name": "Reckless driving", "severity": "misdemeanor", "tier": "class_b"},
    {"name": "Possession of a controlled substance", "severity": "felony", "tier": "class_4"}
  ],
  "notes": "Client has no prior record; arraignment set for 2026-10-15."
}

| Field | Required | Notes | |---------------|----------|-----------------------------------------------------------------------| | charges | yes | Non-empty list of {"name", "severity", "tier"} objects. | | severity | yes | infraction, misdemeanor, or felony. | | tier | yes | Free-form tier label, e.g. class_a, class_2, summary. A tier not in the menu falls back to the severity default, flagged in the quote. | | client_name | no | Carried into the quote header. | | down_pct | no | Down-payment fraction (0–1); overrides --down-pct. | | months | no | Installment count 1–36; overrides --months. | | notes | no | Carried into the output. |

The fee figures live in FEE_MENU at the top of scripts/fees.py — edit them to your firm's actual rates before use. Missing or malformed input prints a clear error to stderr and exits nonzero — never a traceback.

Inputs

| Command | Arguments | Returns | |------------|----------------------------------------------------------------|------------------------------------------------| | fees.py | --in <json> --out <markdown> [--down-pct 0.34] [--months 6] | Writes the fee menu, quote, and payment plan. |

No arguments prints usage to stderr and exits 2. --help prints usage and exits 0.

Worked example

> Practice-management tooling, not legal advice. Verify all deadlines, fees, and procedures against your jurisdiction's current rules.

Tested with three charges — two class-B misdemeanors and one class-4 felony — on a 34%-down, 6-month plan:


$ ./scripts/fees.py --in charges.json --out quote.md --down-pct 0.34 --months 6
Wrote criminal-defense fee quote to quote.md

$ cat quote.md
# Criminal Defense Fee Quote

Prepared: 2026-09-27

> **Practice-management tooling, not legal advice. Verify all deadlines, fees, and procedures against your jurisdiction's current rules.**
>
> Fee figures come from the firm's editable menu in the script.
> The attorney must confirm the final fee before any engagement
> letter is signed; figures here are not legal advice.

**Client:** Anthony Reyes

## Flat-fee menu (per charge)

| Severity | Tier | Flat fee | Scope |
|----------|------|----------|-------|
| infraction | (severity default) | $500.00 | through disposition |
| misdemeanor | class a | $4,000.00 | through trial or plea |
| misdemeanor | class b | $2,500.00 | through trial or plea |
| misdemeanor | class c | $1,500.00 | through trial or plea |
| misdemeanor | (severity default) | $2,500.00 | through trial or plea |
| misdemeanor | summary | $1,500.00 | through trial or plea |
| felony | class 1 | $30,000.00 | through trial or plea |
| felony | class 2 | $17,500.00 | through trial or plea |
| felony | class 3 | $10,000.00 | through trial or plea |
| felony | class 4 | $6,000.00 | through trial or plea |
| felony | (severity default) | $10,000.00 | through trial or plea |

## Quote for this matter

- **DUI — first offense** (misdemeanor, class_b): $2,500.00 — through trial or plea
- **Reckless driving** (misdemeanor, class_b): $2,500.00 — through trial or plea
- **Possession of a controlled substance** (felony, class_4): $6,000.00 — through trial or plea

**Total flat fee:** $11,000.00
**Notes:** Client has no prior record; arraignment set for 2026-10-15.

## Payment plan

- **Down payment (34%):** $3,740.00 due at engagement
- **Balance:** $7,260.00 in 6 monthly installments

| # | Due date | Amount |
|---|----------|--------|
| 1 | 2026-10-27 | $1,210.00 |
| 2 | 2026-11-27 | $1,210.00 |
| 3 | 2026-12-27 | $1,210.00 |
| 4 | 2027-01-27 | $1,210.00 |
| 5 | 2027-02-27 | $1,210.00 |
| 6 | 2027-03-27 | $1,210.00 |

**Client acknowledgment:** I understand this quote is an estimate the
attorney will confirm in the written fee agreement before representation
begins.

Signature: ______________________  Date: ____________

Safety notes

The script reads your charges JSON and writes a local Markdown file — it never uploads or transmits anything. Fee quotes contain privileged client information: store them where your firm's confidentiality rules say they belong, and never paste client facts into a public AI service. All data stays local — nothing is uploaded.

Version history

Changelog

1.0.0 — 2026-09-27

  • Initial release: scripts/fees.py builds a flat-fee menu by charge severity, a per-charge quote, and payment-plan math (down payment + monthly installment schedule) from a charges JSON object.

← back to catalog