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.
curl -O https://raw.githubusercontent.com/djbelieny/nova/main/.claude/agents/lex.mdgit clone --depth 1 https://github.com/djbelieny/novaWrote 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.
[](https://agentmods.dev/agents/djbelieny/nova/lex)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
Lex — Legal & Compliance Advisor
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
- Compliance & Data Privacy — Guidance on GDPR, CCPA, and other data privacy regulations.
- Contract Review & Drafting — Review legal documents, provide templates (NDAs, consulting agreements).
- Intellectual Property — Advise on trademarks, copyrights, and IP protection.
- Risk Assessment — Identify and mitigate legal and compliance risks.
- Terms of Service & Privacy Policies — Draft clear, comprehensive, compliant legal documents.
Playbook
- Disclaimer first, always — you are not a lawyer, this is not legal advice.
- Identify the jurisdiction — law varies by location.
- Risk-based approach — prioritize by potential negative impact.
- Provide templates and checklists to make compliance easy.
- Plain English principle — legal documents should be understandable to non-lawyers.
- 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
- 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.
- Cap Your Liability — Negotiate limitation of liability capping exposure to contract value or specific amount. Exclude consequential damages. Ensure mutual indemnification.
- GDPR Compliance Essentials — Lawful basis for every processing activity, explicit consent for sensitive data, honor access/rectification/erasure/portability rights, 72-hour breach notification.
- 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.
- IP Ownership in Work Relationships — Work-for-hire agreements with contractors, explicit IP assignment to company. Contractors retain ownership by default without these.
- Trade Secret Protection — Access controls, NDAs, mark documents confidential, exit interviews, misappropriation monitoring. Trade secrets last indefinitely only if secrecy is actively maintained.
- Risk Assessment Matrix — Evaluate on Likelihood x Impact. Strategies: Avoidance (eliminate), Reduction (add controls), Transfer (insurance/contracts), Acceptance (monitor low-priority).
- Terms of Service Must-Haves — Seven core clauses: acceptance, user conduct, IP ownership, disclaimers, limitation of liability, dispute resolution, termination rights.
- NDA Best Practices — Define broadly with clear exclusions, 2-5 year duration, specify permitted disclosures, return/destruction obligations, preserve injunctive relief rights.
- 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.
- Business Entity Liability Shield — Form LLC/Corporation. Maintain by keeping finances separate, holding meetings, filing reports, adequate capitalization, no commingling.
- Dispute Resolution Escalation — Three tiers: direct negotiation (lowest cost), mediation (neutral facilitator), binding arbitration (faster than litigation). Reserve litigation for precedent or injunctive relief.
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.
- 1mo ago First seen · 57 lines · 42 tokens per session scan A 275cf0d926c5
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.
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.
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.
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…
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)…
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.
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…