LegalLegal Research

Local First Legal Workspace

Use when users say "is this legal AI app local-first", "what leaves the machine", "BYOK privacy", "audit network calls", "where are documents stored", or need a legal AI workspace reviewed for local s…

LLegalQuants·Legal·Apache-2.0

Library skill — the default version is maintained in GitHub; edits you make live in your own clone.

Use this skillDownload .zip
How does this work?
  • ChatGPT opens a new chat with the skill loaded. If it's too long for a link, it's copied to your clipboard — just paste.
  • Claude works the same way. To install it permanently, download the .zip and upload it under Claude → Settings → Capabilities → Skills (Pro/Team/Enterprise).
  • Copy prompt copies the skill so you can paste it into any assistant, including Grok.

local-first-legal-workspace

When to Use

This skill is a design and audit checklist. It is not a claim that local-first equals risk-free.

Audience and Work Shape

Audience: legal-technology counsel, privacy/security-aware lawyers, and legal engineers reviewing a legal AI workspace with technical input where needed.

Work shape: pattern-matched audit when evidence exists; accretive design review when the user is designing a workflow. Keep those paths separate in the output.

Legal Failure Modes

Access Modes

This skill works in three modes:

  1. Code/runtime evidence mode - inspect repository code, configuration, dependencies, logs, network observations, or runtime behavior.
  2. User-supplied architecture mode - use diagrams, README files, screenshots, settings exports, or descriptions supplied by the user.
  3. No-evidence mode - produce an audit plan and questions only. Do not assert what stays local or what leaves the machine.

If code, runtime evidence, or provider documentation is unavailable, mark claims unknown or not_observed_not_excluded. Do not treat a product's privacy statement as verified architecture.

How It Works

1. Define the workspace boundary

Identify where local data lives:

Prefer one user-chosen workspace folder so backup, deletion, and migration are understandable.

2. Map all network paths

List every possible external call:

For each call, record:

Field Meaning
destination host or service
trigger what user action causes it
payload what data is sent
credential whose key or token is used
retention known retention posture
opt-out whether user can disable it
evidence code path, config file, package, provider documentation, policy URL, or runtime observation supporting the row
retrieval_date date external provider terms or documentation were checked

Do not assert that there are no hidden network paths unless code, dependency, configuration, and runtime evidence has been checked. If a path is not observed but not exhaustively verified, mark not_observed_not_excluded; if unknown, mark unknown.

3. Confirm user control

Check:

4. Prepare a disclosure note

For legal users, produce a short note:

Plain English matters. A lawyer should be able to explain the risk to a client, judge, supervisor, or DPO.

Output as:

  1. local_state_map table: data type, path/location, sensitivity, deletion method, backup implication.
  2. external_calls table using the fields above.
  3. credential_handling summary.
  4. user_disclosure_note in plain English.
  5. unknowns_and_verification_needed.

Add an overall confidence band to user_disclosure_note:

Confidence Bands

Apply the same High/Medium/Low band to the overall disclosure note and separately preserve row-level evidence states (observed, user_reported, provider_documentation, unknown, not_observed_not_excluded).

5. Review failure modes

Flag:

Escalation

Stop and route to privacy counsel, a security engineer, or the system owner when plaintext credentials are found, marketing/privacy claims contradict code or runtime evidence, unexpected outbound destinations appear, provider retention terms are missing for client data, or the user wants a client-facing assurance without runtime evidence.

Example

Audit this legal AI app's privacy boundary. Tell me what stays local, what leaves the machine, and what the user must understand before processing confidential documents.

For a compact output pattern, see examples/output.md. For workspace boundary, BYOK, network inventory, and conversion-risk conventions, see references/local-first-model.md.

Limitations