Skip to main content
subagent CX Codex

legal-advisor · voltagent/awesome-codex-subagents — Codex subagent: what it does, how to install

The legal-advisor subagent for Codex, Claude Code, and Cursor spots legal and compliance risks in product flows, UI copy, and data handling before counsel review.

MIT ★ 6,505 updated 2026-10-05

Install into Codex · Manually: put the files in place All methods and platforms ↓
.codex/agents/legal-advisor.toml
Open on GitHub

What legal-advisor does

This subagent compares outward-facing promises with actual backend behavior. It reviews interface microcopy, documentation, user consent flows, data retention limits, and third-party processor handoffs.

Every reported issue ties directly to concrete lines of code or UI strings. The agent scores exposures by user scope and reversibility, then suggests practical mitigations alongside questions that need counsel approval. It provides engineering risk triage rather than binding legal counsel, so decisions still require qualified sign-off.

What it helps with

  • spot discrepancies between published policies and backend logic
  • audit user consent and data deletion flows for compliance gaps
  • catch implied commitments inside UI strings and documentation
  • prepare prioritized risk tickets for internal legal review

Example prompts for the agent

  • Inspect our updated onboarding consent flow for data privacy risks.
  • Check services/retention.py against our documented account deletion terms.
  • Review the incident notification draft in templates/disclosure.txt for liability exposure.

How to install legal-advisor

Manually: put the files in place

.codex/agents/legal-advisor.toml

Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about legal-advisor

How to install legal-advisor in Codex?

Place the agent configuration into .codex/agents/legal-advisor.toml inside your repository.

What does legal-advisor do?

It audits code, UI text, and data pipelines to flag regulatory and contractual exposure before product updates ship.

Does legal-advisor replace qualified legal counsel?

No. The agent handles engineering-level risk triage and explicitly flags areas where formal counsel must make final compliance calls.

Source text

legal-advisor.toml · MIT
# legal-advisor

Use when a task needs legal-risk spotting in product or engineering behavior, especially around terms, data handling, or externally visible commitments.

Own legal-risk spotting as engineering-adjacent risk triage, not formal legal advice.

Identify visible contractual, privacy, and compliance exposure in product behavior or external commitments so policy/counsel review can be targeted.

Working mode:
1. Map externally visible commitments (docs, UI text, terms-like behavior) and data-handling flows.
2. Identify mismatch between implementation reality and implied legal/policy promises.
3. Prioritize risks by potential exposure, affected users/data, and reversibility.
4. Recommend concrete mitigation options to evaluate with legal/policy owners.

Focus on:
- implied commitments in product language, docs, and support guidance
- data collection, retention, deletion, and sharing boundaries
- consent, user-rights, and access-control implications visible in flows
- jurisdiction/compliance-sensitive behaviors (where explicitly in scope)
- third-party processor and subcontractor exposure points
- incident/disclosure wording risks in operational communications
- gaps between policy text and implemented system behavior

Quality checks:
- verify each flagged risk cites concrete text or behavior evidence
- confirm severity reflects exposure and likely impact, not speculation
- check mitigation options for operational feasibility and ownership
- ensure unresolved legal interpretation is explicitly escalated
- call out areas requiring qualified counsel before release decisions

Return:
- prioritized legal-risk areas with evidence references
- behavior/text creating each exposure
- mitigation options and urgency level
- required legal/policy owner decisions
- residual risk after proposed mitigations

Do not present this output as legal advice or final compliance determination unless explicitly requested by the parent agent.

© VoltAgent · MIT · VoltAgent/awesome-codex-subagents

Similar subagents

All subagents for Security →

legal-advisor by other authors comes first.

legal-advisor VoltAgent Community legal-advisor is a Claude Code subagent that reviews contracts, compliance requirements, and legal risks for technology businesses. It also helps draft service terms and IP materials. CX Codex 1,776installs legal-advisor Seth Hobson legal-advisor drafts privacy policies, terms of service, and DPA documents aligned with GDPR and CCPA. Useful when your app needs legal notices and compliance texts. CX Codex 1,776installs legal-advisor rohitg00 legal-advisor creates terms of service, privacy policies, and software licenses matching GDPR or CCPA standards. Connects legal requirements directly to technical safeguards. CX Codex ★ 2,858repo stars legal-advisor Alysson Franklin legal-advisor drafts enterprise B2B legal documentation, RFP compliance responses, and multi-jurisdiction frameworks such as GDPR, PIPEDA, or LGPD. CX Codex ★ 1,013repo stars ciso-advisor Alireza Rezvani ciso-advisor turns security risks into financial estimates and helps plan compliance work. Use it to shape a security program, assess vendors, or coordinate incident response. CX Codex +1 623installs ai-governance-legal official Anthropic ai-governance-legal — a plugin for Claude Code automates AI legal governance workflows, impact assessments, and vendor AI contract reviews. ★ 10,060repo stars legal-compliance-checker Michael Galpert legal-compliance-checker — a subagent for reviewing terms of service, privacy policies, and regulatory compliance requirements when developing applications. ★ 1,013repo stars agency-legal-compliance-checker huytran1120 agency-legal-compliance-checker is a Claude Code skill that audits business workflows and product features against legal and privacy regulations. Evaluates GDPR, CCPA, and HIPAA requirements. CX Codex +1 ★ 85repo stars gdpr-dsgvo-expert Alireza Rezvani gdpr-dsgvo-expert scans code for GDPR and German BDSG privacy risks, builds DPIA reports, and tracks data subject rights deadlines. CX Codex +1 980installs privacy-check haabe privacy-check — a skill for Claude Code and five other platforms that assesses a feature or system against the seven Privacy by Design principles and GDPR. It walks through data collection, storage, access and breach readiness. CX Codex +1 ★ 54repo stars

From the same set176

The whole set →
resume-refiner resume-refiner — a subagent for refining resumes, CVs, and LinkedIn profiles. Maps experience to measurable outcomes, aligns text with target roles, and formats for ATS filtering. CX Codex ★ 6,505repo stars project-manager The project-manager subagent for Codex, Claude Code, and Cursor sequences complex initiatives across workstreams, mapping dependencies and pinpointing delivery bottlenecks without optimistic assumptions. CX Codex ★ 6,505repo stars product-manager The product-manager subagent frames product choices around user impact, engineering constraints, and delivery risk. Use it to shape a feature or decide what should ship first. CX Codex ★ 6,505repo stars license-engineer license-engineer — a subagent for license selection, dependency audit, and compliance pipeline design. Aligns license choice with distribution model, commercial intent, and dependency graph. CX Codex ★ 6,505repo stars growth-loops Maps product growth loops, measures their steps, and suggests experiments for the weakest link. Use it to investigate why acquisition is linear rather than compounding. CX Codex ★ 6,505repo stars customer-success-manager customer-success-manager — a subagent for mapping support patterns and adoption risks based on engineering data. Transforms customer friction signals into actionable onboarding strategy and support-load reduction. CX Codex ★ 6,505repo stars content-quality-editor content-quality-editor strips telltale AI patterns from documentation, release notes, and posts before publishing while keeping code and technical terms intact. CX Codex ★ 6,505repo stars content-marketer content-marketer — a Codex subagent for product messaging grounded in real capabilities. Use it to shape site copy, launch notes, and lifecycle content without inflated claims. CX Codex ★ 6,505repo stars

Project sponsors

Companies that keep this analytics open