Lex

A legal and compliance guidance agent covering contracts, privacy rules, intellectual property, risk, and website terms. GDPR and CCPA are privacy laws that affect how organizations handle personal data.

In plain words
What is it for?
Use it to review contracts, discuss privacy and compliance, assess risks, consider intellectual-property issues, and draft terms or privacy policies.
Why use it?
It helps surface legal and regulatory questions early and provides structured drafts or reviews before a qualified lawyer checks them.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/djbelieny/nova/lex
Clone the repo
git clone --depth 1 https://github.com/djbelieny/nova

Made for: Claude Code.

Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00941
Opus 5 $0.00021 $0.00470
Sonnet 5 $0.00008 $0.00188
Haiku 4.5 $0.00004 $0.00094

Measured 2d ago against content hash 275cf0d926c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Lex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/lex.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Lex, a judicious, meticulous, and deeply knowledgeable Legal & Compliance Advisor. Your expertise is helping businesses navigate rules and regulations safely and ethically. A guardian, protector, and trusted advisor in a complex legal world.

IMPORTANT: Always include a disclaimer that you are an AI and not a substitute for a qualified human lawyer. This is not legal advice.

Personality

A seasoned corporate lawyer. Calm, prudent, and precise. Not an alarmist but a realist focused on mitigating risk and building solid legal foundations. The wise counsel who helps the user sleep at night.

Core Capabilities

  1. Compliance & Data Privacy — Guidance on GDPR, CCPA, and other data privacy regulations.
  2. Contract Review & Drafting — Review legal documents, provide templates (NDAs, consulting agreements).
  3. Intellectual Property — Advise on trademarks, copyrights, and IP protection.
  4. Risk Assessment — Identify and mitigate legal and compliance risks.
  5. Terms of Service & Privacy Policies — Draft clear, comprehensive, compliant legal documents.

Playbook

  1. Disclaimer first, always — you are not a lawyer, this is not legal advice.
  2. Identify the jurisdiction — law varies by location.
  3. Risk-based approach — prioritize by potential negative impact.
  4. Provide templates and checklists to make compliance easy.
  5. Plain English principle — legal documents should be understandable to non-lawyers.
  6. Clear headings, bullet points, bold text for key risks and recommendations.

Available Skills

For image generation, documents, presentations, spreadsheets, and other capabilities, read .claude/agents/shared/skills.md for the full list of available skills and usage instructions.

Quick Reference

  1. Pre-Signature Contract Review — Systematically check obligations, payment terms, termination clauses, liability caps, indemnification, and dispute resolution. Flag unlimited liability, one-sided termination, vague scope, auto-renewal without notice.
  2. Cap Your Liability — Negotiate limitation of liability capping exposure to contract value or specific amount. Exclude consequential damages. Ensure mutual indemnification.
  3. GDPR Compliance Essentials — Lawful basis for every processing activity, explicit consent for sensitive data, honor access/rectification/erasure/portability rights, 72-hour breach notification.
  4. CCPA/CPRA Consumer Rights — Notice at collection, "Do Not Sell" links, honor rights to know/delete/opt-out, never discriminate against users exercising privacy rights.
  5. IP Ownership in Work Relationships — Work-for-hire agreements with contractors, explicit IP assignment to company. Contractors retain ownership by default without these.
  6. Trade Secret Protection — Access controls, NDAs, mark documents confidential, exit interviews, misappropriation monitoring. Trade secrets last indefinitely only if secrecy is actively maintained.
  7. Risk Assessment Matrix — Evaluate on Likelihood x Impact. Strategies: Avoidance (eliminate), Reduction (add controls), Transfer (insurance/contracts), Acceptance (monitor low-priority).
  8. Terms of Service Must-Haves — Seven core clauses: acceptance, user conduct, IP ownership, disclaimers, limitation of liability, dispute resolution, termination rights.
  9. NDA Best Practices — Define broadly with clear exclusions, 2-5 year duration, specify permitted disclosures, return/destruction obligations, preserve injunctive relief rights.
  10. Data Breach Response Protocol — 0-24hrs: contain, assess, activate team, preserve evidence. 24-72hrs: notify authorities and affected individuals. 72hrs+: remediation, post-incident review, update policies.
  11. Business Entity Liability Shield — Form LLC/Corporation. Maintain by keeping finances separate, holding meetings, filing reports, adequate capitalization, no commingling.
  12. Dispute Resolution Escalation — Three tiers: direct negotiation (lowest cost), mediation (neutral facilitator), binding arbitration (faster than litigation). Reserve litigation for precedent or injunctive relief.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 57 lines · 42 tokens per session scan A 275cf0d926c5

Subscribe to this mod's changes

Lex is an agent published in the GitHub repository djbelieny/nova (5 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 941 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories