nova: Agent for Claude Code

.claude/agents/lex.md

Lex is an agent for Claude Code from djbelieny/nova. It costs 42 tokens per session (941 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is djbelieny/nova's own configuration. It tells Claude Code how to work on nova itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nova configures →

Reuse

Borrowing it

Nothing to install: this file belongs to djbelieny/nova. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/djbelieny/nova/main/.claude/agents/lex.md
Clone the repo
git clone --depth 1 https://github.com/djbelieny/nova

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Lex

README.md
[![agentmods](https://agentmods.dev/badge/agents/djbelieny/nova/lex/github.svg)](https://agentmods.dev/agents/djbelieny/nova/lex)
Your own site
<a href="https://agentmods.dev/agents/djbelieny/nova/lex"><img src="https://agentmods.dev/badge/agents/djbelieny/nova/lex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Lex

Your own site · 80×15
<a href="https://agentmods.dev/agents/djbelieny/nova/lex"><img src="https://agentmods.dev/badge/agents/djbelieny/nova/lex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00042 $0.00941
Opus 5.5 $0.00017 $0.00376
Sonnet 5.5 $0.00008 $0.00188
Haiku 4.5 $0.00004 $0.00094

Measured 1mo ago against content hash 275cf0d926c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 42 tokens to every session and 941 once invoked, about $0.0002 per session on Opus 5.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

legal-reviewer

Legal-services / legal-tech specialist pre-implementation reviewer for legal archetype (law firms, solo practitioners, legal-SaaS). Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

tax-reviewer

Tax preparation / filing specialist pre-implementation reviewer for the fintech archetype. Outputs threat model TM-tax-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 42 tokens

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

healthcare-reviewer

Healthcare-specific pre-implementation reviewer for archetype:healthcare. Specialises in HIPAA Security Rule (45 CFR 164.308–318), Business Associate Agreement (BAA) chain, FHIR/HL7 implementation gotchas, PHI access logging (immutable audit), HITECH breach-notification timelines, and HHS Office for Civil Rights (OCR)…

avelikiy/great_cto · 103 tokens

rcm-reviewer

Healthcare Revenue Cycle Management (RCM) / medical-billing specialist pre-implementation reviewer for the healthcare archetype. Outputs threat model TM-rcm-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 53 tokens

voice-ai-reviewer

Voice-AI / telephony pre-implementation reviewer. Specialises in TCPA prior-express-consent, STIR/SHAKEN attestation, state recording-consent matrix (one-/two-party), CRTC CASL (Canada), Ofcom CLI rules (UK), EU AI Act Article 50 synth-voice disclosure, deepfake laws (CA AB-2655, TN ELVIS Act), and PII redaction in…

avelikiy/great_cto · 121 tokens