legal-project
Skill1 starsChanged 25 days agoApache-2.0View on GitHub
Project door for a legal matter for any legal system: open or resume the matter folder, decompose into work items, run the status board, keep the registers (deadlines, decisions, history, versions, issues), run a closing checklist with conditions precedent and critical path, track post-signing obligations and renewals, integrate deliverables, hand a live matter over to a colleague (handoff.md) and record a closed one (debrief.md). Use when work spans several documents, steps or skills, or the user says matter, project, checklist, status, what's next, closing, CP list, hand off, handover, debrief, close the file, lessons learned (CS: spis, věc, stav věci, co dál, checklist, closing, odkládací podmínky, předání věci, převzetí spisu, shrnutí spisu, uzavření věci, zhodnocení, poučení, retrospektiva, uzavřít spis). Holds project (this file), handoff and debrief as references/modes/*.md. Load alongside the legal engine.
In this repository5 other files it gives its agents.
- legal-disputeSkill
- legal-intakeSkill
- legal-researchSkill
- legal-reviewSkill
- legalSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Read ../legal/SKILL.md first if the legal engine isn't loaded.
- Very specific: line 26
No profile (or a placeholder one): offer setup, or run provisional — mark it [PROVISIONAL — configure for tailored output] …
- Very specific: line 40
When the matter turns on documents or decisions, destructure them: build and print the AST (grammar: …
- Very specific: line 58
Open: create .legal/<slug>/ with matter.md and state.json.
- Very specific: line 71
Execute packets: Keep the critical path in the parent.
- Very specific: line 78
Keep the registers current: after every work item: deadlines.md, decisions.md (human decisions only), history.md (append-only), versions.md …
- Very specific: line 102
Every dated item (renewal, opt-out window, reporting, price review, warranty expiry, claim deadline under the limitation clause) also goes …
- Distinctive: line 121
Coverage: every deliverable on the board is addressed or explicitly deferred.
- Distinctive: line 144
Run another mode's work inline: it names the hand-over and waits for the gate.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
legal-project (project · handoff · debrief)
Object of work. Running, handing over or closing a matter.
Imports. Obey the capability files named in the front-matter
metadata.imports; do not restate them. This file carries only the mode's delta.
The PM door. The object of work is a process: deliverables across documents, stages and skills. Decompose by work item, keep the registers, integrate. This is where delegation is genuinely safe, because items are usually independent.
Read ../legal/SKILL.md first if the legal engine isn't loaded. The folder
layout and register formats are in ../legal/references/matter-folder.md.
No profile (or a placeholder one): offer setup, or run provisional — mark it [PROVISIONAL — configure for tailored output] (../legal/references/capabilities/configure.md).
Modes in this door
Project (this file) is the default. Read the mode's file before doing its work:
| Mode | File | Object of work |
| project | this file | run a multi-deliverable matter: board, registers, closing, obligations |
| handoff | references/modes/handoff.md | brief a colleague taking over a live matter |
| debrief | references/modes/debrief.md | the retrospective record of a closed matter |
AST obligation — non-negotiable
When the matter turns on documents or decisions, destructure them: build and
print the AST (grammar: ../legal/references/ir-and-provenance.md) in one fenced text box, or state in the
first line why not. Read the matter's documents both individually and as one
logical unit; a document you didn't consider is a defect.
Object of work
- Unit of decomposition: a work item (one document, one issue, one step), each owned by one skill.
- Parallelism: real. Fan out read-only per item. Write fan-out only where items are disjoint documents. Never two writers on one document.
- Failure modes: a missed item, a missed date, scope drift, inconsistent positions across documents, a decision nobody recorded. The registers exist to catch these.
Operations
open / resume (default)
- Open: create
.legal/<slug>/withmatter.mdandstate.json. If the engine's intake already opened it, readparties.md,facts.md,deadlines.mdand the gap table. Resume: readmatter.md,state.json,deadlines.md, the last 20 lines ofhistory.mdanddecisions.md, then give the status card (what's due, what's blocked) and close the turn with the closing pair (../legal/references/display.md):FILESlinks, then the Progress box (steps done / current / next). - Triage + Gate Plan (engine). Clustering here is by work item.
- Status board in
matter.md: one row per item, giving skill, owner (parent / sidecar / human), status, blocking?, file. Mirror it instate.json.active_items.
run
- Execute packets. Keep the critical path in the parent. Delegate bounded
read-only items with a packet (
packets/<item>.md: task, inputs, stance, expected output, exit criteria); returns go toresults/<item>.md. - Integrate. Deduplicate findings into
issue-log.md. Check consistency across documents (the failure mode unique to this hat): same term, same definition; same issue, same position; same party, same identifiers; same date, same value. - Keep the registers current after every work item:
deadlines.md,decisions.md(human decisions only),history.md(append-only),versions.md(what went to whom).
closing (transactions)
closing.md: the conditions precedent and completion deliverables:
| # | Item | Type (CP / deliverable / filing / consent / payment) | Responsible party | Depends on | Due | Status | Evidence of satisfaction |Mark the critical path: the chain of dependent items that sets the earliest
completion date. Put regulatory clearances (merger control, FDI screening),
third-party consents, corporate approvals and registrations on it first.
Nothing is done without its evidence (a signed document, a register extract,
a clearance decision).
obligations (post-signing)
obligations.md: what the signed documents oblige each side to do from now on:
| # | Obligation | Party | Source (doc §) | Trigger / frequency | Next due | Notice / renewal window | Consequence of breach | Owner |Every dated item (renewal, opt-out window, reporting, price review, warranty
expiry, claim deadline under the limitation clause) also goes to deadlines.md.
Renewal and termination windows are calculated back from the expiry date using
the contract's notice rule.
close
- Confirm that every deliverable is
doneor explicitlydeferred, and every deadline ismet,n/a, or handed over. - Hand the matter over with the handoff mode (
references/modes/handoff.md,handoff.md) when a successor will take it on, and record the closed matter with the debrief mode (references/modes/debrief.md,debrief.md). Both are views of this folder: outcome, final versions (fromversions.md), open obligations and deadlines with owners, decisions taken, residual risks, and where everything is. - Confirm that
deviations.mdis complete for every playbook-bound document. - Set
matter.mdstatus toclosed, and append tohistory.md.
Checks
- Coverage: every deliverable on the board is addressed or explicitly deferred.
- Cross-document consistency (above), run by the verify capability (
../legal/references/capabilities/verify.md) at the deliverable checkpoint for multi-document suites. - Deadlines: none
openwithout an owner; nothing due within 30 days off the first card. - the challenge capability (
../legal/references/capabilities/challenge.md) is proposed at the deliverable checkpoint forRISK = highmatters.
Fan-out
One read-only packet per independent work item; one write-capable subagent per disjoint document. Decisions, the board and integration stay in the parent. Protocol: ../legal/references/capabilities/orchestrate.md.
Output
Status card + board + assembled deliverables + final-report.md (outcome,
files, open items, residual risk) plus final-report.docx beside it
(../legal/scripts/md2docx.py, after scan.py outbound), all linked in the
closing FILES block. A live handover is the handoff mode
(references/modes/handoff.md, handoff.md); a closed matter is the debrief
mode (references/modes/debrief.md, debrief.md). Keep the final answer shorter
than the report. Screen follows ../legal/references/display.md.
What this mode does not do
- Run another mode's work inline: it names the hand-over and waits for the gate.
- Advance past an unapproved gate, or read one "continue" as authorization for the whole roadmap.
- Close a matter with open obligations, or without recording the decisions and the debrief.
Counter-example (illustration)
Illustration, not law. Four deliverables are tracked on the board; one is quietly written during the status update. Mistake to catch: the project door did the review itself instead of handing over. Correct: name the next mode, keep the board current, wait for the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

