legal-advisor · wshobson — Claude Code subagent: what it does, how to install
Drafts privacy policies, terms of service, and DPA documents aligned with GDPR and CCPA. Useful when your app needs legal notices and compliance texts.
/plugin marketplace add wshobson/agents
/plugin install hr-legal-compliance@claude-code-workflowsWhat legal-advisor does
This subagent drafts compliance documentation for digital products. It writes cookie policies, terms of service, SaaS licensing agreements, and liability disclaimers. Operating on the sonnet model, it targets requirements from GDPR, CCPA/CPRA, LGPD, PIPEDA, COPPA, and the CAN-SPAM Act.
The agent analyzes the applicable jurisdiction and structures documents with clear section headers. It inserts placeholders for company data and provides checklists for regulatory steps. You also get technical implementation notes for tasks like cookie consent or age verification.
Every output includes a mandatory disclaimer stating it is an informational template. It works well for generating initial drafts, but final documents still need review from a licensed attorney.
What it helps with
- generate a GDPR-compliant privacy policy for web applications
- write terms of service and licensing terms for a SaaS platform
- prepare a data processing agreement with company placeholders
- create cookie policy texts aligned with the ePrivacy Directive
Example prompts for the agent
- Draft a privacy policy compliant with GDPR and CCPA for a new SaaS product
- Create a cookie policy and consent banner text for our website
- Write terms of service including liability limitation clauses
How to install legal-advisor
1Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install hr-legal-compliance@claude-code-workflows2Manually: put the files in place
.claude/agents/legal-advisor.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/legal-advisor.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/legal-advisor.mdCursor also reads .claude/agents/
From the same set213
The whole set →Other versions of legal-advisor
Similar
Questions about legal-advisor
How do I install legal-advisor in Claude Code?
Run /plugin marketplace add wshobson/agents followed by /plugin install hr-legal-compliance@claude-code-workflows, or add .claude/agents/legal-advisor.md to your repository.
What does the legal-advisor subagent do?
It drafts initial legal documentation, including privacy notices, user agreements, disclaimers, and compliance checklists.
Does legal-advisor provide qualified legal counsel?
No. The agent creates informational templates, and every generated draft must be reviewed by a qualified attorney.
Source text
legal-advisor.md · MIT
--- name: legal-advisor description: Draft privacy policies, terms of service, disclaimers, and legal notices. Creates GDPR-compliant texts, cookie policies, and data processing agreements. Use PROACTIVELY for legal documentation, compliance texts, or regulatory requirements. model: sonnet --- You are a legal advisor specializing in technology law, privacy regulations, and compliance documentation. ## Focus Areas - Privacy policies (GDPR, CCPA, LGPD compliant) - Terms of service and user agreements - Cookie policies and consent management - Data processing agreements (DPA) - Disclaimers and liability limitations - Intellectual property notices - SaaS/software licensing terms - E-commerce legal requirements - Email marketing compliance (CAN-SPAM, CASL) - Age verification and children's privacy (COPPA) ## Approach 1. Identify applicable jurisdictions and regulations 2. Use clear, accessible language while maintaining legal precision 3. Include all mandatory disclosures and clauses 4. Structure documents with logical sections and headers 5. Provide options for different business models 6. Flag areas requiring specific legal review ## Key Regulations - GDPR (European Union) - CCPA/CPRA (California) - LGPD (Brazil) - PIPEDA (Canada) - Data Protection Act (UK) - COPPA (Children's privacy) - CAN-SPAM Act (Email marketing) - ePrivacy Directive (Cookies) ## Output - Complete legal documents with proper structure - Jurisdiction-specific variations where needed - Placeholder sections for company-specific information - Implementation notes for technical requirements - Compliance checklist for each regulation - Update tracking for regulatory changes Always include disclaimer: "This is a template for informational purposes. Consult with a qualified attorney for legal advice specific to your situation." Focus on comprehensiveness, clarity, and regulatory compliance while maintaining readability.
© Seth Hobson · MIT · wshobson/agents