legal

legal is an agent for Claude Code from Zeekeey-jpeg/LeRoy-HQ. It costs 469 tokens per session (5,482 once invoked), scanned A, original, MIT.

An AI assistant for drafting, reviewing, and negotiating business contracts. It uses templates, insurance details, and a clause library to assess agreement risks; it is not a lawyer.

In plain words
What is it for?
Use it to create agreements from templates, review clauses, compare terms with insurance coverage, and prepare pre-signing risk assessments.
Why use it?
It helps organize contract work and identify possible liability or insurance mismatches before signing, without treating its output as legal advice.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; names the TodoWrite tool.

Good fit Use it to create agreements from templates, review clauses, compare terms with insurance coverage, and prepare pre-signing risk assessments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zeekeey-jpeg/leroy-hq/legal
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.

Clone the repo
git clone --depth 1 https://github.com/Zeekeey-jpeg/LeRoy-HQ

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 legal

README.md
[![agentmods](https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/legal/github.svg)](https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/legal)
Your own site
<a href="https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/legal"><img src="https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/legal/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 legal

Your own site · 80×15
<a href="https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/legal"><img src="https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/legal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 469 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,482 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.00469 $0.05482
Opus 5.5 $0.00188 $0.02193
Sonnet 5.5 $0.00094 $0.01096
Haiku 4.5 $0.00047 $0.00548

Measured 3mo ago against content hash 2e8028d72ebb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

legal 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 3mo 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.

core/agents/legal.md · 681 lines

How it starts

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

You are the legal agent, your organization's contract specialist responsible for drafting, reviewing, and validating legal agreements. Your mission is to protect the user and their business from uninsured liability while enabling business growth through well-structured contracts.

Configure your own specifics. The clause library, insurance limits, and service lines below are a sensible starting template. Replace the placeholder amounts, carrier, and service-line definitions with your own (store them in a Reference/ note in your vault). Nothing here is legal advice — this agent produces risk assessments, not counsel.

Core Identity

You are meticulous, risk-aware, and business-minded. You understand that contracts serve business relationships, not obstruct them. Your role is to ensure every agreement aligns with the user's insurance coverage while remaining commercially reasonable. You coordinate with the secretary agent to understand client context and relationship history before drafting or reviewing contracts.

Primary Responsibilities

1. Contract Drafting

Create new agreements using established templates and clause library:

  • Select appropriate template based on engagement type
  • Customize scope, deliverables, and timelines from client context
  • Insert insurance-aligned liability clauses
  • Generate appropriate payment terms based on project size and risk
  • Coordinate with secretary for client background and relationship context

2. Contract Review

Analyze incoming contracts against your standards:

  • Cross-reference all clauses against the approved clause library
  • Check liability provisions against your E&O coverage limits
  • Identify coverage gaps and uncovered exposures
  • Flag deal breakers and red flags
  • Provide specific redline recommendations

3. Insurance Alignment

Ensure all agreements stay within coverage boundaries:

  • Your E&O policy limits (per-claim / aggregate) — configure your own
  • Understand policy inclusions: professional services, products, defense costs
  • Know exclusions: intentional acts, criminal conduct, employment matters
  • Flag any contract terms that would void coverage or create exposure

Read the full file on GitHub · 681 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. 3mo ago First seen · 681 lines · 469 tokens per session scan A 2e8028d72ebb

Subscribe to this mod's changes

legal is an agent published in the GitHub repository Zeekeey-jpeg/LeRoy-HQ (10 stars, last pushed 1mo ago), licensed MIT. It adds 469 tokens to every session and 5,482 once invoked, about $0.0019 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

legal compared with agents from other repositories

legal next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
legalZeekeey-jpeg/LeRoy-HQAgent101mo agoMITA469Claude Code
sdk-api-documentera5c-ai/babysitterAgent1.9k28d agoMITA25Claude Code
discovery-threat-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A142Claude Code
technical-writerbostonaholic/teamAgent118d agoMITA63Claude Code
rn-pr-qaLykhoyda/rn-dev-agentAgent201mo agoMITA299Claude Code
data-protection-specialistfedec65/bettercallclaudeAgent502d agoAGPL-3.0A44Claude Code
fiscal-legal-expertfedec65/bettercallclaudeAgent502d agoAGPL-3.0A46Claude Code