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 $0.00234 $0.02741
Sonnet 5 $0.00094 $0.01096
Haiku 4.5 $0.00047 $0.00548

Measured 12d ago against content hash 2e8028d72ebb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 12d 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. 12d 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 19d ago), licensed MIT. It adds 469 tokens to every session and 5,482 once invoked, about $0.0023 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

sdk-api-documenter

Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs.

a5c-ai/babysitter · 25 tokens

eval-judge

Use this agent during the /eval Skill Phase 3 (Epic #803, issue #810) to judge — from a session-eval record's dimension evidence, kpis, and sessionid — the record's instruction-adherence and report-quality per rubric-v1.md's Judge Dimensions section. Dispatched read-only, coordinator-side (never inside a wave) by…

Kanevry/session-orchestrator · 249 tokens

db-specialist

Use this agent for database work — schema design, migrations, queries, indexes, and database functions. Handles SQL, ORMs, and database architecture decisions. Context: New feature requires database schema changes. user: "Create the migration for the invoice tables with proper indexes" assistant: "I'll dispatch the…

Kanevry/session-orchestrator · 166 tokens

project-discovery

Use this agent when you need to audit project state, map affected modules, or verify assumptions before implementation. Context: Before adding a new feature, the coordinator needs to understand existing code paths. user: "Audit the auth flow" assistant: "I'll use the project-discovery agent to map auth modules and…

Kanevry/session-orchestrator · 0 tokens

design-builder

Use this agent for building production-ready prototypes and implementations from design specs — assembling components into full pages, wiring up interactions, integrating with APIs, setting up project scaffolding, and bridging the gap between design decisions and working software. Dispatch after the design-lead has…

Owl-Listener/designpowers · 85 tokens

inspiration-scout

Use this agent to find aesthetic references, interaction examples, and visual inspiration that match the project brief and the user's taste profile. Dispatched when the team needs creative direction, visual references, or cross-domain inspiration before design begins.

Owl-Listener/designpowers · 50 tokens