AI Legal Assistant
A set of Claude Code skills: contract review, risk scoring, NDA and policy generation, compliance checks and PDF reports
Medium risk
We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.
Why this level
- Reads uploaded contracts and project files
- Runs a Python script to generate PDFs and fetches sites during compliance checks
Install
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/ai-legal-assistantDetects the agents on your machine, checks the risk and pins the version.
Other ways to install
Assembled automatically, review before installing.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a claude-code -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a cursor -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a github-copilot -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a codex -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a gemini-cli -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a cline -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a roo -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
A fork of Roo Code, same .roo folders.
Run in a terminal in the project folder
npx skills add zubair-trabzada/ai-legal-claude --skill legal legal-agreement legal-compare legal-compliance legal-freelancer legal-missing legal-nda legal-negotiate legal-plain legal-privacy legal-report-pdf legal-review legal-risks legal-terms -a opencode -yThe skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.
Install the set with one command: curl -fsSL https://raw.githubusercontent.com/zubair-trabzada/ai-legal-claude/main/install.sh | bash. Then in Claude Code run /legal review <file>.
Other ways from the author
curl -fsSL https://raw.githubusercontent.com/zubair-trabzada/ai-legal-claude/main/install.sh | bashThe script clones the repository and copies 14 skills, 5 agents and the PDF scripts into ~/.claude/. Downloading and running a script from the network is your call to make deliberately.
This is third-party code. Review the repository files before installing.
What it does
The set of 14 skills and 5 agents helps review contracts and prepare legal documents inside Claude Code. The main command /legal review launches five parallel agents and returns a contract score, a clause-by-clause breakdown in plain English, missing protections, an obligations and deadlines map and negotiation priorities. Separate commands generate NDAs, terms of service, privacy policies and business agreements, and check a site against GDPR, CCPA and other rules. The result can be exported to a PDF report through a Python script using the reportlab library. The authors state clearly that this is not legal advice and not a substitute for a lawyer.
Who it is for. For freelancers, small businesses and founders who need to understand a contract before signing.
Good fit when
- You need to review a contract before signing and see risky clauses
- You need to generate an NDA, a privacy policy or terms of service
- You need to check a site for gaps against GDPR, CCPA and similar rules
Not a fit when
- You need legal advice or a licensed lawyer's sign-off, not a draft and analysis
- You do not work in Claude Code
Example request
Review this contract and flag the risky clauses in plain EnglishLimitations
This is not legal advice; every document and analysis must be checked by a qualified lawyer. The repository has no license file, so reuse terms are formally undefined. The PDF report needs Python 3.8 or newer and the reportlab library. The README is largely written as marketing and links to a paid community, which is unrelated to the tool itself.
How to disable. Run uninstall.sh from the repository or via curl, or remove the installed skill folders from ~/.claude/skills/ and the agents from ~/.claude/agents/.
Security check
- Reads uploaded contracts and project files
- Runs a Python script to generate PDFs and fetches sites during compliance checks
README in short
The README describes a set of 14 skills and 5 agents for Claude Code that reviews contracts, generates legal documents, checks compliance and produces PDF reports. The flagship /legal review launches five parallel agents and aggregates a single contract score with a clause breakdown, missing protections and negotiation priorities. It installs with one command via install.sh, which copies skills into ~/.claude/skills/, agents into ~/.claude/agents/ and the PDF generation scripts. It needs Claude Code, plus Python 3.8 and reportlab for PDFs. The disclaimer section stresses that this is not legal advice.
SKILL.md
# AI Legal Assistant — Main Orchestrator You are the AI Legal Assistant, a suite of 14 Claude Code skills that help users review contracts, generate legal documents, check compliance, and produce professional PDF reports. **IMPORTANT DISCLAIMER:** You are NOT a lawyer. You do NOT provide legal advice. You provide legal analysis and document drafting as a starting point. Always recommend users consult a licensed attorney for final review before signing any contract or relying on generated documents. ## Available Commands When the user types `/legal`, present this command menu: CONTRACT ANALYSIS: /legal review <file> Full contract review (5 parallel agents) /legal risks <file> Deep risk analysis with severity scoring /legal compare <file1> <file2> Side-by-side contract comparison /legal plain <file> Translate legalese to plain English /legal negotiate <file> Counter-proposal generator /legal missing <file> Missing protections finder DOCUMENT GENERATION: /legal nda <description> Generate custom NDA /legal terms <url> Generate terms of service /legal privacy <url> Generate privacy policy /legal agreement <type> Generate business agreements /legal freelancer <file> Freelancer/contractor review COMPLIANCE & REPORTING: /legal compliance <url> Compliance gap analysis /legal report-pdf Professional PDF report
FAQ
Does it replace a lawyer?
No. The set gives analysis and document drafts as a starting point, but the authors explicitly ask you to show the result to a qualified lawyer before signing.
Can the code be reused freely?
The repository has no license file, so reuse terms are formally undefined. For commercial use it is best to check with the author.
Related
Microsoft's utility and MCP server that turn PDF, Word, Excel, PowerPoint, HTML and other files into Markdown for models
Anthropic skills
Skills
Anthropic's official skill examples: docx, pdf, pptx and xlsx documents, design, MCP builder and the Agent Skills spec
A skill that builds editable PPTX decks from PDF, DOCX, URLs and Markdown with native shapes, charts and animations
A skill that draws editorial diagrams as standalone HTML and SVG files: architecture, flowcharts, ER, funnels and about forty more types