legal

legal is an agent for Claude Code from herbert-julio-azion/specialist-agent. It costs 27 tokens per session (869 once invoked), scanned A, original, MIT.

A lightweight code-review agent for spotting privacy and legal-compliance risks related to GDPR, LGPD, and CCPA. GDPR, LGPD, and CCPA are privacy laws covering how organizations collect and use personal data; the agent identifies issues for professional legal review.

In plain words
What is it for?
Reviewing personal-data handling, cookie consent, marketing opt-ins, terms acceptance, audit risks, data mapping, retention policies, deletion mechanisms, and user privacy rights.
Why use it?
Compliance problems can involve data collection, consent, encryption, access, retention, and deletion across many parts of a project. This provides a structured review without replacing a lawyer.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the specialist-agent plugin — 57 agents shipped together

Good fit Reviewing personal-data handling, cookie consent, marketing opt-ins, terms acceptance, audit risks, data mapping, retention policies, deletion mechanisms, and user privacy rights.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/herbert-julio-azion/specialist-agent/legal-lite
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/herbert-julio-azion/specialist-agent

Made for: Claude Code.

Or install specialist-agent, the plugin that ships this one along with the rest of its 57 agents.

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/herbert-julio-azion/specialist-agent/legal-lite/github.svg)](https://agentmods.dev/agents/herbert-julio-azion/specialist-agent/legal-lite)
Your own site
<a href="https://agentmods.dev/agents/herbert-julio-azion/specialist-agent/legal-lite"><img src="https://agentmods.dev/badge/agents/herbert-julio-azion/specialist-agent/legal-lite/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/herbert-julio-azion/specialist-agent/legal-lite"><img src="https://agentmods.dev/badge/agents/herbert-julio-azion/specialist-agent/legal-lite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 869 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.00027 $0.00869
Opus 5 $0.00014 $0.00434
Sonnet 5 $0.00005 $0.00174
Haiku 4.5 $0.00003 $0.00087

Measured 12d ago against content hash bd0129f57ecf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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.

agents/legal-lite.md · 114 lines

How it starts

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

Mission

Review code for legal compliance risks (LGPD, GDPR, CCPA). Identify issues for professional legal review - this agent does NOT replace legal counsel.

Core Principles

  • Security: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
  • Performance: Use your framework's recommended caching/fetching strategy, lazy loading, avoid N+1
  • Code Language: Write code in English (variables, functions, comments). Other languages only on user request

Scope Detection

  • Privacy: personal data handling, LGPD/GDPR compliance → Privacy mode
  • Consent: cookie consent, marketing opt-in, terms acceptance → Consent mode
  • Audit: compliance review, risk assessment, data mapping → Audit mode

Privacy Mode

  1. Ask: jurisdictions (LGPD/GDPR/CCPA), data types, processing purposes
  2. Scan for personal data: registration, payments, analytics, sensitive data
  3. Verify: encryption, access controls, data minimization, purpose limitation
  4. Check data subject rights: access, rectification, erasure, portability, objection
  5. Review retention policies and deletion mechanisms

Rules

  • Personal data MUST be encrypted at rest and in transit
  • NEVER log PII (names, emails, IPs) in plain text
  • NEVER store data longer than necessary
  • ALWAYS provide data export and deletion
  • Sensitive data requires explicit consent
  1. Ask: consent types, jurisdictions
  2. Review: cookie banner, marketing opt-in, terms acceptance
  3. Check: no pre-checked boxes, granular consent, easy withdrawal, consent records
  4. Configure: block tracking until consent, respect DNT

Cookie Categories

Category Consent Required
Strictly Necessary No (but inform)
Functional Yes
Analytics Yes
Marketing Yes

Audit Mode

  1. Data mapping: what data, where stored, who accesses, how long, legal basis
  2. Scan for issues: PII in logs, unencrypted storage, third-party sharing
  3. Review: privacy policy, terms, cookie policy, vendor DPAs
  4. Assess risk: Critical → High → Medium → Low

Read the full file on GitHub · 114 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 · 114 lines · 27 tokens per session scan A bd0129f57ecf

Subscribe to this mod's changes

legal is an agent published in the GitHub repository herbert-julio-azion/specialist-agent (21 stars, last pushed 16d ago), licensed MIT. It adds 27 tokens to every session and 869 once invoked, about $0.0001 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-30.

Related

Other agents, from other repositories

ring:ui-engineer

UI Implementation Engineer specialized in translating product-designer outputs (ux-criteria.md, user-flows.md, wireframes/) into production-ready React/Next.js components with Design System compliance and accessibility standards.

LerianStudio/ring · 46 tokens

god-hipaa-auditor

HIPAA Security Rule auditor. Maps Administrative Safeguards (164.308), Physical Safeguards (164.310), and Technical Safeguards (164.312) to code/process evidence. Produces auditor-ready findings. Spawned by: /god-hipaa-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 75 tokens

god-pci-auditor

PCI-DSS 4.0 auditor. Maps the 12 requirements to code/process evidence. For systems handling cardholder data (CHD). Spawned by: /god-pci-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 55 tokens

god-soc2-auditor

SOC 2 Common Criteria auditor. Maps controls to code/process evidence. Produces auditor-ready findings document. Distinct from god-harden-auditor: this agent is compliance-focused, not vulnerability-focused. Spawned by: /god-soc2-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 68 tokens

saas-legal-advisor

SaaS legal advisor covering international and jurisdiction-specific regulations. Assesses the legal impact of product changes, drafts and reviews privacy policies, terms of service, cookie policies, DPAs, and other compliance documents. Use PROACTIVELY when a feature touches user data, payments, third-party…

addit-digital/addit-harness · 100 tokens

privacy-auditor

Internal dynos-work agent. Audits PII, retention, consent, logging, and data protection behavior in changed code. Spawned only by the dynos-work pipeline during an explicitly invoked /dynos-work:audit; never spawn this agent directly, from conversation, or outside a dynos-work task.

dynos-fit/dynos-work · 67 tokens