Skip to content

About

Set Up an AI-Powered Full-Service Law Firm in 90 Seconds

Topics

Resources

Stars

208 stars

Watchers

5 watching

Forks

Latest commit

ย 

History

117 Commits

Folders and files

Repository files navigation

Set Up an AI-Powered Full-Service Law Firm in 90 Seconds

To install Legal AI Skills by Rohas Nagpal, open Claude Code or the Codex app or CLI on your computer and run this prompt. It does not install in Codex on the web (chatgpt.com/codex) or in a claude.ai chat.

Install Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills and say "Hello Rohas".

image

New in 4.3.0: Singapore joins India, the US and the UK as the fourth Jurisdiction Counsel, with 18 local skills across all 17 specialist practice areas. Test Singapore coverage.

Here's What You Get

  • 1 Managing Partner: Receives matters, assigns specialist lawyers, coordinates work and reviews final outputs.

  • 17 Specialist Lawyers: Handle matters across practice areas such as corporate, criminal defence, contracts, family law, real estate, tax and litigation.

  • 4 Jurisdiction Counsel: Identify and verify applicable laws, legal authorities and procedures in India, the US, the UK and Singapore.

  • 244 Legal Skills: Reusable capabilities such as contract review, legal research, due diligence, evidence analysis and legal drafting, including jurisdiction-specific skills for RERA and Section 138 NI Act.

  • 20 Workflows: Step-by-step processes for matters such as M&A due diligence, divorce proceedings, contract negotiation and litigation preparation.

  • 14 Official Legal Research Sources and Connectors: Provide access to legislation, regulations, judgments, court records, official notices, company registries and sanctions lists through official and authoritative legal sources.

  • Built-in Legal Tools: Exact deadline and interest calculators, and private sanctions screening against the US, UK and UN lists, all running on your own machine.

Built in India ๐Ÿ‡ฎ๐Ÿ‡ณ for the world by Rohas Nagpal.


Should I Sue?

Facing a dispute and not sure whether to pursue it? Install with this prompt instead:

Install Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills and say "Should I Sue".

Put your contracts, emails, messages, screenshots and notices in one folder, open a new session in that folder, and ask "Should I sue?" A team of AI lawyers reads every document, examines the claims, evidence, risks, costs, chances and alternatives, and recommends litigation, arbitration, mediation, negotiation, a regulatory or consumer complaint, or walking away, with any urgent deadline first. It reads only the folder you open, and the final decision is yours. More at docs/should-i-sue.md.


How It Works

  1. Managing Partner receives the matter and consults Jurisdiction Counsel to identify applicable laws, jurisdiction, relevant procedures and required expertise.

  2. Managing Partner assigns the most appropriate Specialist Lawyer as Matter Owner and selects a relevant workflow, where available.

  3. Matter Owner develops a matter plan, identifies the required skills, adapts the workflow to the case and delegates tasks to other Specialist Lawyers as needed. The Matter Owner remains responsible for coordinating the matter throughout.

  4. Specialist Lawyers conduct research, analysis, drafting and review using relevant legal skills. Jurisdiction Counsel provides and verifies applicable local laws, procedures and legal authorities.

  5. Matter Owner consolidates findings, resolves inconsistencies, identifies outstanding issues and prepares the final deliverables.

  6. Managing Partner reviews the completed work for completeness, legal reasoning, consistency, supporting evidence, verified authorities and legal risks. Jurisdiction Counsel assists with final local-law verification where required. The Managing Partner requests revisions when necessary.

  7. Final output is delivered to the user, clearly identifying any unresolved issues, unverified information and required human legal review or approval.

Simple questions skip the team: the Managing Partner uses the one relevant skill directly.


Architecture

AI Managing Partner
โ”‚
โ”œโ”€โ”€ Jurisdiction Counsel
โ”‚   โ”œโ”€โ”€ India Counsel
โ”‚   โ”œโ”€โ”€ US Counsel
โ”‚   โ”œโ”€โ”€ UK Counsel
โ”‚   โ””โ”€โ”€ Singapore Counsel
โ”‚
โ”œโ”€โ”€ Specialist Lawyers
โ”‚   โ”œโ”€โ”€ Corporate Lawyer
โ”‚   โ”œโ”€โ”€ Contracts Lawyer
โ”‚   โ”œโ”€โ”€ Litigation Lawyer
โ”‚   โ”œโ”€โ”€ Dispute Resolution Lawyer
โ”‚   โ”œโ”€โ”€ Criminal Defence Lawyer
โ”‚   โ”œโ”€โ”€ Family Lawyer
โ”‚   โ”œโ”€โ”€ Real Estate Lawyer
โ”‚   โ”œโ”€โ”€ Tax Lawyer
โ”‚   โ”œโ”€โ”€ Insolvency Lawyer
โ”‚   โ”œโ”€โ”€ Banking & Finance Lawyer
โ”‚   โ”œโ”€โ”€ Employment Lawyer
โ”‚   โ”œโ”€โ”€ Intellectual Property Lawyer
โ”‚   โ”œโ”€โ”€ Compliance Lawyer
โ”‚   โ”œโ”€โ”€ Consumer Protection Lawyer
โ”‚   โ”œโ”€โ”€ Public Law & Regulatory Lawyer
โ”‚   โ”œโ”€โ”€ Investigations Lawyer
โ”‚   โ””โ”€โ”€ Legal Research Lawyer
โ”‚
โ”œโ”€โ”€ Legal Skills
โ”‚   โ”œโ”€โ”€ Jurisdiction-Neutral Skills
โ”‚   โ””โ”€โ”€ Jurisdiction-Specific Skills
โ”‚
โ”œโ”€โ”€ Matter Workflows
โ”‚   โ”œโ”€โ”€ M&A Due Diligence
โ”‚   โ”œโ”€โ”€ Contract Review & Negotiation
โ”‚   โ”œโ”€โ”€ Litigation Preparation
โ”‚   โ”œโ”€โ”€ Divorce Proceedings
โ”‚   โ”œโ”€โ”€ RERA Complaints
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ Official Legal Research Sources & Connectors (14)
โ”‚   โ”œโ”€โ”€ Legislation & Regulations โ€” legislation.gov.uk, eCFR, Federal Register, GovInfo
โ”‚   โ”œโ”€โ”€ Case Law & Judgments โ€” CourtListener, Find Case Law
โ”‚   โ”œโ”€โ”€ Court, Rulemaking & Official Notices โ€” CourtListener dockets, Regulations.gov, The Gazette
โ”‚   โ”œโ”€โ”€ Company Registries โ€” SEC EDGAR, GLEIF, UK Companies House
โ”‚   โ””โ”€โ”€ Sanctions Lists โ€” US OFAC, UK Sanctions List, UN Consolidated List
โ”‚
โ””โ”€โ”€ Built-in Legal Tools (run on your machine)
    โ”œโ”€โ”€ Deadline & Interest Calculators โ€” deadlines, periods between dates, simple & compound interest
    โ”œโ”€โ”€ Sanctions Screening โ€” private, alias-aware name screening
    โ””โ”€โ”€ Document Production โ€” DOCX, PDF, conversion, OCR & bundle assembly

Continue and update your work

New in 4.2.0: keep matters moving across chats, see exactly what was reviewed, and reassess advice when documents change.

  • โ€œSave my matterโ€ saves a compact handover on request; โ€œresume my matterโ€ loads a selected saved record in a new chat and flags checks that need refreshing.
  • โ€œWhat changed?โ€ compares a revised contract or new evidence with an identified baseline and revisits affected conclusions.
  • Document-based work identifies actual file coverage and material reading gaps. Substantial reports start with the action, nearest deadline, biggest uncertainty and decision required.
  • Deadline records retain trigger and rule sources, calculation details, responsibility and verification status.

Try this sequence after a review:

Save my matter and maintain its record.

In a new chat with access to that folder:

Resume my matter from matters/<actual-matter-id>/matter.yaml.

Then supply a revised document or new evidence:

What changed against the earlier version? Reassess your conclusions
and update my matter record, preserving the earlier conclusions.

See test prompts and expected results. Saved records need to remain available to the new chat; this is not automatic cross-chat memory. To get these features, update the plugin and restart.

Important Considerations

Confidentiality: Before uploading client documents or confidential information, ensure that your AI environment and connected services comply with applicable confidentiality, privacy and professional obligations.

Human Review: AI-generated legal analysis, advice and documents should be reviewed by an appropriately qualified legal professional where required. Court filings, representation and other regulated legal activities remain subject to applicable professional and legal requirements.

Legal Accuracy: The system should verify applicable laws and authorities wherever possible and clearly disclose any information it cannot verify. Its outputs are not guaranteed to be accurate or complete.


For AI Assistants Installing This

If you are Codex or Claude running the install prompt above, follow AGENTS.md. In short:

  • Claude Code: run claude plugin marketplace add rohasnagpal/legal-ai-skills, then claude plugin install legal-ai-skills@rohas-legal in the terminal yourself. (A person can type /plugin marketplace add โ€ฆ and /plugin install โ€ฆ instead.)
  • Codex: run codex plugin marketplace add rohasnagpal/legal-ai-skills, then codex plugin add legal-ai-skills@rohas-legal.
  • Confirm the plugin appears in the installed plugins list, then print the post-install message in AGENTS.md. The new skills load in a new session or after /reload-plugins, so tell the user to do that and then type Hello Rohas.

Node.js 18 or later is needed for the bundled registry, research and document tools. The legal skills work without it.

Upgrading from vCLO: the plugin is now legal-ai-skills. Uninstall the older Rohas plugins (vclo-by-rohas, rohas-legal-ai, navigator, privacy) and install legal-ai-skills@rohas-legal, so skills and connectors don't load twice. In the Codex desktop app, quit and reopen the app after installing so the connectors load. "Hello vCLO" still works for this release.


Updating to a New Version

Paste this into Claude Code or Codex:

Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills

Or run the commands yourself:

# Claude Code
claude plugin marketplace update rohas-legal
claude plugin update legal-ai-skills@rohas-legal

# Codex
codex plugin marketplace upgrade rohas-legal
codex plugin add legal-ai-skills@rohas-legal

Then restart: in Claude Code run /reload-plugins or start a new session; in Codex start a new chat, and in the Codex desktop app quit and reopen it. Say Hello Rohas to check the version is working. See the changelog for what changed.


The 20 Workflows

Workflow Matter Owner
Divorce and matrimonial proceedings Family Lawyer
RERA complaint Real Estate Lawyer
Property purchase due diligence Real Estate Lawyer
Cheque dishonour (Section 138) Litigation or Criminal Defence Lawyer
Criminal defence Criminal Defence Lawyer
Consumer complaint Consumer Protection Lawyer
Tax assessment and appeal Tax Lawyer
Insolvency and CIRP Insolvency Lawyer
Debt recovery Banking & Finance Lawyer
Employment dispute Employment Lawyer
Contract review and negotiation Contracts Lawyer
M&A due diligence Corporate Lawyer
Financing transaction Banking & Finance Lawyer
Dispute viability assessment Litigation Lawyer
Litigation preparation Litigation Lawyer
Commercial dispute lifecycle Litigation Lawyer
Arbitration lifecycle Dispute Resolution Lawyer
Regulatory compliance review Compliance Lawyer
Data breach response Compliance Lawyer
Internal investigation Investigations Lawyer

Each workflow names its Matter Owner, supporting lawyers, branches, review checkpoints and escalation points.


Research Sources, Connectors and Tools

Source Coverage Access
CourtListener US case law and court records Free account
GovInfo US federal statutes, regulations and records Free API key recommended
eCFR (Code of Federal Regulations) US federal regulations, current or as at a date No account
Federal Register US rules and notices No account
Regulations.gov US rulemaking dockets Free API key
legislation.gov.uk UK legislation No account
Find Case Law (The National Archives) UK judgments No account
The Gazette UK insolvency, company and probate notices No account; rate-limited
SEC EDGAR US company filings No account
GLEIF Global legal entity identifiers No account
UK Companies House UK company records Free key may be needed
US OFAC sanctions lists (SDN and consolidated) US sanctions designations and aliases No account; screened locally
UK Sanctions List UK sanctions designations and aliases No account; screened locally
UN Security Council Consolidated List UN sanctions designations and aliases No account; screened locally

India Counsel routes Indian research through official sources such as India Code, eGazette, the Supreme Court, High Courts, tribunals and regulators where accessible. There is no unrestricted eCourts access, paid database or commercial citator. When a source is unavailable, the firm says what it could not check.

Sanctions screening: the firm downloads the official US, UK and UN sanctions lists, keeps them on your machine for 24 hours, and screens names there with fuzzy matching across aliases, so the names you screen are never sent to anyone. Results are potential matches for review, not clearance, and EU, Indian and other national lists are not included. See the sanctions screening guide.

Legal calculators: a local, offline calculator (guide) computes deadlines (days, working days, months or years, with supplied holidays), periods between dates, and simple or compound interest, exactly and with the working shown. It applies only the rules it is given, so statutory periods and rates still come from Jurisdiction Counsel.

The firm also includes a local document-production adapter for DOCX and PDF creation, conversion, OCR and assembly using free local engines, and can use documents, email, calendars and cloud storage that you connect and authorise in your host.


See It in Action

Start with the two-minute guide, then see fictional demonstrations for an Indian divorce, a RERA complaint, contract negotiation, M&A due diligence, an Indian commercial dispute, US privacy applicability and a UK employment issue.


Sample Prompts

  1. Two founders are splitting equity 60/40. Draft a founders' agreement with four-year vesting, a one-year cliff and IP assignment to the company.

  2. A UK employer wants to dismiss a remote worker after a failed performance review. What must be established before we can give advice?

  3. A customer bought a defective laptop online and the seller refuses to replace it. Can they file a consumer complaint in India, and what compensation can they claim?

  4. An employee has reported that her manager is harassing her. As the company, what should we do under India's POSH Act, step by step?

  5. We want to launch an online marketplace for customers in California, Texas and New York. Which US state privacy laws might apply, and what facts do we need to confirm?

  6. Draft a mutual NDA between two Indian companies exploring a joint venture, with a two-year confidentiality period and arbitration in Mumbai.


FAQ

Is my client data sent anywhere? Your documents stay in your Codex or Claude environment. The calculators and sanctions screening run on your machine; research connectors send only the search terms needed to the official source. Check your own AI provider's data terms before sharing confidential material.

Where does it run? Inside Codex or Claude. In Claude Code each lawyer runs as its own subagent. In Codex, lawyers run as subagents where Codex supports it, or their work is performed in turn and kept separate.

What does it cost? $0, plus your ChatGPT or Claude subscription.

Who is it for? Practising lawyers, in-house counsel, startups, businesses and law students.

Languages? It works in the languages your Codex or Claude model supports. The skills and source guides are maintained in English, so verify translations, defined terms and filing-language requirements.

For law firms: need help setting up or customising Legal AI Skills? Contact Rohas Nagpal at rohasnagpal@gmail.com.


The Lawyers and Their Skills

Each skill is listed under the lawyer who owns it. Many are shared: any lawyer can use any skill, and the skill registry records the owner, shared users and jurisdiction of every skill. Jurisdiction-specific skills are marked ๐Ÿ‡ฎ๐Ÿ‡ณ, ๐Ÿ‡บ๐Ÿ‡ธ or ๐Ÿ‡ฌ๐Ÿ‡ง.

Managing Partner and firm operations ยท Corporate Lawyer ยท Contracts Lawyer ยท Litigation Lawyer ยท Dispute Resolution Lawyer ยท Criminal Defence Lawyer ยท Family Lawyer ยท Real Estate Lawyer ยท Tax Lawyer ยท Insolvency Lawyer ยท Banking and Finance Lawyer ยท Employment Lawyer ยท IP Lawyer ยท Compliance Lawyer ยท Consumer Protection Lawyer ยท Public Law and Regulatory Lawyer ยท Investigations Lawyer ยท Legal Research Lawyer ยท India Counsel ยท US Counsel ยท UK Counsel ยท Singapore Counsel

Managing Partner and firm operations

Instructions: managing-partner.md

  • adversarial-reviewer: attacks your own draft the way opposing counsel would
  • ask-vclo: Legacy name for Legal AI Skills by Rohas Nagpal
  • assumption-flagger: surfaces every assumption a draft depends on
  • brief-to-counsel-drafter: focused instructions, facts, issues, record, questions and logistics
  • client-intake: turns a messy client narrative into a structured matter summary, separating facts from assumptions
  • client-update-drafter: plain, honest status updates for a client on a running matter
  • closure-report-drafter: controlled closure, client handoff, obligations, finances and retention
  • conflict-checker: confidential party mapping, searches, escalation and clearance records
  • consistency-checker: checks facts, dates, defined terms and figures across a document set
  • costing-estimator: transparent stage budgets, scenarios, assumptions and change controls
  • engagement-letter-drafter: scope, fees, exclusions and conflict position in a client engagement letter
  • hello-rohas: Your AI law firm: Managing Partner, specialist lawyers and counsel
  • issue-spotter: reads a fact pattern for issues, causes of action and threshold problems
  • learn-law-with-rohas: interactive legal tutor โ€” structured lessons, hypotheticals, quizzes, adaptive difficulty and a final assessment on a law or topic of your choice
  • legal-document-producer: template-aware DOCX and PDF production, conversion, OCR, assembly and final-format quality control
  • legal-exam-prep-with-rohas: exam-focused revision โ€” study plans, mock exams, adaptive quizzes, answer-structure coaching and weak-area tracking for a specific examination
  • legal-explainer: explains a law, clause, judgment, or legal concept in clear plain language, adapted to the reader's level
  • legal-opinion-drafter: structured written legal or tax opinion with question, analysis, conclusion and caveats โ€” tax opinions add a risk-characterisation and exposure step
  • legal-risk-assessor: sets out the options on a decision, with the risk and likely outcome of each
  • should-i-sue: front door for people deciding whether to pursue their own dispute โ€” reads every document in the folder and recommends the best route, including walking away
  • time-narrative-drafter: accurate, specific and privilege-aware legal time entries

Corporate Lawyer

Instructions: corporate-lawyer.md

Contracts Lawyer

Instructions: contracts-lawyer.md

Litigation Lawyer

Instructions: litigation-lawyer.md

Dispute Resolution Lawyer

Instructions: dispute-resolution-lawyer.md

Criminal Defence Lawyer

Instructions: criminal-defence-lawyer.md

Family Lawyer

Instructions: family-lawyer.md

Real Estate Lawyer

Instructions: real-estate-lawyer.md

Tax Lawyer

Instructions: tax-lawyer.md

Insolvency Lawyer

Instructions: insolvency-lawyer.md

Banking and Finance Lawyer

Instructions: banking-finance-lawyer.md

Employment Lawyer

Instructions: employment-lawyer.md

IP Lawyer

Instructions: ip-lawyer.md

Compliance Lawyer

Instructions: compliance-lawyer.md

Consumer Protection Lawyer

Instructions: consumer-protection-lawyer.md

Public Law and Regulatory Lawyer

Instructions: public-law-lawyer.md

Investigations Lawyer

Instructions: investigations-lawyer.md

Legal Research Lawyer

Instructions: legal-research-lawyer.md

India Counsel

Instructions: india-counsel.md

  • india-counsel ๐Ÿ‡ฎ๐Ÿ‡ณ: Indian law, procedure and verification

US Counsel

Instructions: us-counsel.md

  • us-counsel ๐Ÿ‡บ๐Ÿ‡ธ: US federal and State law verification

UK Counsel

Instructions: uk-counsel.md

  • uk-counsel ๐Ÿ‡ฌ๐Ÿ‡ง: UK jurisdiction and law verification

Singapore Counsel

Instructions: singapore-counsel.md

  • singapore-counsel ๐Ÿ‡ธ๐Ÿ‡ฌ: Singapore law, forum, procedure and verification across all 17 practice areas.
  • 18 Singapore-specific skills and practice-area routes cover corporate, contracts, civil litigation, arbitration, criminal, family, property, tax, insolvency, banking, employment, IP, compliance, privacy, consumer, public law, investigations and legal research.

Singapore research uses authoritative websites and authorised supplied records; no dedicated Singapore connector or paid registry access is implied. See test prompts and expected results.


Contributing

Corrections, bug reports and suggestions are welcome: please open an issue.

New skills by discussion first. Open an issue describing the skill before writing it, so we can agree the scope and check it does not overlap something already in the library. Skills are reviewed for legal substance before merging, not just for structure. After adding a skill, run ruby scripts/build-skill-registry.rb and ruby scripts/validate.rb.

Contributions are accepted under the MIT licence.


Licence

MIT. See LICENSE.

About

Set Up an AI-Powered Full-Service Law Firm in 90 Seconds

Topics

Resources

Stars

208 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages