Legal

Use legal to prepare the legal documents a project needs, based on its source and confirmed facts. You review exact changes and proposed results before approving their write and commit.

Flow

Workflow diagram for Legal
View full-size diagram

Start the command

Codex → $legal    Claude → /legal

Use your client’s command prefix. Legal checks for clean main or master before source and document discovery. Legal document commits need explicit content and commit approval, even with auto-commit enabled.

A Git, ownership, path or state-validation blocker ends the run before further investigation or proposals. Missing facts for an individual document remain distinct from those workflow prerequisites.

Prepare the useful documents

Helm reviews the service, data flows, integrations, payments and existing policies. You can request or exclude document types; it recommends the smallest useful set.

Document What it explains
Privacy policy How personal data is processed.
Terms Approved rules for using the service.
Cookie policy Tracking/storage not already covered.
Refund policy Confirmed sales and refund responsibilities.
EULA An approved compatible licensing arrangement.
Disclaimer Relevant content or advice limitations.

Terms, refund policies and EULAs need your request or an existing approved policy. Legal assesses the supported types within your scope, then previews only files it proposes to create, update or remove. Unchanged documents need no individual status entries. Excluded types stay out of scope; held documents and important gaps receive a short note. If no useful change is needed, it reports that directly.

Draft from confirmed facts

Legal keeps approved clauses, language, file formats and established URLs for existing documents. It asks essential questions together and uses the site’s conventions to propose where new files belong.

Legal prefers Markdown for new documents. When the site can render it, one Markdown file produces a readable HTML page. A page linked from the site uses its shared layout. A page intended for direct sharing outside the site’s navigation uses the same theme and a text link back.

Requested web integration reuses the site’s components and link styles, with consistent back-link placement. Longer documents can have a contents menu that tracks your section and adapts to smaller screens. Short pages need no extra navigation.

Legal starts from local and supplied evidence. Online legal, provider or store research needs your explicit request or agreed scope. Unverified external requirements remain identified limits, and indispensable missing evidence keeps the affected conclusion pending.

A known material gap holds the affected document while other complete drafts may proceed. Missing facts do not become invented promises. Drafting and owner approval do not establish legal compliance; consent controls, routing and other implementation work remain separate.

Review before writing

For existing documents, you see a diff and the clean proposed result for affected passages. Each new document appears once in full. For web pages, the preview includes the intended URL and layout. It also shows proposed dates, removals and record and commit effects before any document write.

Choose Write and commit or Cancel. You can type exact corrections, select particular files or request write without committing. That draft-only request leaves files proposed for removal untouched and does not advance assessment dates or source records. Cancel leaves pending document changes unapplied; earlier approved work or verified record repairs remain preserved.

Your result

You get document links, remaining gaps and the actual commit or draft status, on the same branch.

Confirmed document moves or deletions can update saved records automatically; uncertain whereabouts need clarification. Record repair never deletes actual files or counts as a new legal assessment. Unchanged source alone does not prove business or legal freshness.

Use ship separately for publication.