packet-builder
Interactive complaint-packet assembly driven by packet-manifest.yaml — walks through authority, exhibit list, reference appendices, and runs scripts/packet/build.py. Triggers when the user says "build the packet" or when a complaint narrative and exhibit set are ready to compile.
packet-builder
The builder is manifest-driven: everything authority-, case-, or
jurisdiction-specific lives in packet-manifest.yaml. This skill
shepherds that manifest to completeness and then runs the builder.
See templates/packet-manifests/schema.yaml for the authoritative
schema, and examples/maryland-mustang/complaint_packet/packet-manifest.yaml
for a filled-in synthetic reference.
When this skill fires
- User says "build the packet" or "compile the complaint."
- Complaint draft exists under
drafts/and exhibit evidence is in place underevidence/. - After the
authorities-finderrun has identified the forum.
Procedure
-
Locate or scaffold the manifest.
- If
packet-manifest.yamlexists in the packet directory, load it and list which sections are filled. - If not, copy
templates/packet-manifests/example-generic-dispute.yamlinto place and walk through the sections below.
- If
-
Fill the manifest header with the user.
packet.name— a slug likemaryland-mustang-mia.authority— name, short code, mailing address, intake URL. Pulled fromauthorities-finderoutput; do not retype by hand if the skill already found it.complainant— name, mailing address, email. For a public derivative, use the scrubbed synthetic values.respondent— name, role, reference number (claim number, case number, policy number).
-
Complaint narrative.
complaint.sourcepoints at the markdown or docx draft underdrafts/.complaint.titleshows up in the cover page. Write lawyer-mode pertone-modesskill; this is outbound. -
Exhibit list. Each exhibit is
{label, title, description, source(s), date?}. Labels are typically A, B, C, ... in the order they'll be referenced in the complaint. Sources are paths underevidence/ordrafts/. Multiple sources per exhibit are fine — the builder concatenates in order. -
Reference appendices. Optional. For policy / regulatory compilations that aren't exhibits per se but that the complainant wants attached for the reader's reference. Each has
{name, title, sources, note}.Sources may live anywhere in the case folder; common locations:
evidence/policy/...for case-specific governing documents produced by the counterparty (e.g., the insurer's policy form that applies to the insured).references/raw/...orreferences/readable/...for third-party authoritative text (statutes, regulations, ToS) ingested via the trusted-sources skill. If a referenced statute / regulation / ToS isn't already underreferences/, hand off totrusted-sourcesbefore filling this section — drafting against the actual text catches paraphrase drift early.
-
Dry-read the manifest aloud. Before calling the builder, literally read back to the user: "Exhibit A is X, exhibit B is Y, exhibit C is Z." This catches reordered labels and missing sources faster than debugging the PDF.
-
Build.
uv run python -m scripts.packet.build path/to/packet-manifest.yamlThe builder writes a unified
packet.pdfplus per-exhibit standalone PDFs (for filers who upload one at a time) intopacket.output_dir. -
Open the PDF and read it. The script is a scaffold, not an oracle (
tone-modes). A silent build is not the same as a correct packet — check cover page names, exhibit order, and the first page of each exhibit.
Definition of done
packet-manifest.yaml validates against the schema, the builder
ran without errors, the merged packet PDF and per-exhibit standalone
PDFs are in packet.output_dir, and the user has read the cover
page + first page of each exhibit and confirmed nothing is wrong.
If the user's next move is to publish or hand off the packet
externally (anything beyond the regulator's intake portal), do
not declare done — invoke going-public first.
If they're filing only with the regulator, hand back to
pat-workflow; the workflow ends here unless publication safety
applies.
Synthetic example
Maryland-Mustang assembles into an 8-part packet against the
Maryland Insurance Administration: complaint narrative + 6
exhibits (A policy forms, B correspondence compilation, C
valuation report, D photographs, E specialist opinion, F
salvage-transfer record) + 1 reference appendix (compiled policy
reference). The full manifest is at
examples/maryland-mustang/complaint_packet/packet-manifest.yaml.
Do not
- Do not hardcode anything in the build script. The builder has no case-specific branches; if you need something the schema doesn't cover, extend the schema, don't fork the script.
- Do not point a packet source at
evidence/*/raw/. The raw layer is forensic; packets use thereadable/layer for exhibits. - Do not ship without the
going-publiccheck if the packet is being published anywhere beyond the regulator's intake.
No additional documents ship with this skill.
Related Skills
Skill:合法自证与承认事实提问设计
Designs legally compliant, strategically ordered questions to elicit admissions or expose contradictions from opposing parties in chats, calls, media…
Anschlussflug und Reiseplan
Workflow-Skill zu anschlussflug und reiseplan. Nutzt Normtext, Nutzerangaben und verifizierte Quellen; Rechtsprechung nur nach Live-Pruefung mit Geri…
Appeal Document Summarization
Generates structured analytical summaries of appellate documents covering procedural posture, issues on appeal, standards of review, and strategic as…
brief-section-drafter
Draft a brief section in house style, consistent with the case theory — every fact cited, every case checked, every argument tied to the theory. Use …
brief-section-drafter-anthropics
Draft a brief section in house style, consistent with the case theory — every fact cited, every case checked, every argument tied to the theory. Use …