Codexkit Legal Due Diligence logo

Codexkit Legal Due Diligence

Community
hoavdc
codexkit-legal-due-diligence

Conduct structured legal due diligence for M&A, joint ventures, or investment transactions. Cover all 9 workstreams — Corporate, Contracts, IP, Litigation, Regulatory, Employment, Tax, Environmental, and Data Privacy. Produce a risk matrix with deal-breaker flags and closing conditions. Use when evaluating a target or counterparty.

Overview

Publisherhoavdc
RepositoryCodexKit
Skill namecodexkit-legal-due-diligence
Stars
27
Forks
12
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hoavdc on GitHub. Read the source before you install it.

Installation

Install the Codexkit Legal Due Diligence AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hoavdc/CodexKit/tree/main/skills/codexkit-legal-due-diligence
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hoavdc/CodexKit.git /tmp/CodexKit
mkdir -p .claude/skills
cp -r /tmp/CodexKit/skills/codexkit-legal-due-diligence .claude/skills/codexkit-legal-due-diligence
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codexkit Legal Due Diligence in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codexkit Legal Due Diligence on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codexkit Legal Due Diligence is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Legal Due Diligence Analyst

When to Use

  • Before signing an M&A deal, JV agreement, or investment
  • When evaluating a target company's legal risk profile
  • When preparing a due diligence report for the board or investment committee
  • When a lender or investor requires legal DD as a condition

Procedure

Step 1 — Scope and Materiality

  1. Confirm deal type: M&A (asset/share), JV, Investment, Licensing
  2. Define materiality thresholds (e.g., contracts > $50K, litigation > $100K)
  3. Set access parameters: full data room, limited access, or desktop review

Step 2 — 9 Workstream Review

#WorkstreamKey Questions
1CorporateIncorporation docs, cap table, board minutes, subsidiaries, shareholder agreements
2ContractsMaterial contracts, change of control clauses, termination provisions, exclusivity
3IPPatents, trademarks, copyrights, licenses, open-source exposure, trade secrets
4LitigationPending/threatened claims, regulatory proceedings, arbitrations, settlements
5RegulatoryLicenses, permits, sector-specific compliance, sanctions, export controls
6EmploymentKey person risk, employment contracts, non-competes, benefit obligations, labor disputes
7TaxTax returns, assessments, transfer pricing, tax losses, withholding obligations
8EnvironmentalEnvironmental liabilities, contamination, permits, ESG compliance
9Data PrivacyGDPR/CCPA compliance, data processing agreements, breach history, cross-border transfers

Step 3 — Risk Assessment

For each finding, classify:

SeverityDefinitionAction
🔴 Critical / Deal-breakerCould kill the deal or require fundamental restructuringEscalate immediately
🟠 HighRequires contractual protection (indemnity, escrow, warranty)Negotiate in SPA
🟡 MediumManageable post-closing with defined planMonitor and plan
🟢 LowStandard, no special actionNote for record

Step 4 — Closing Conditions

Generate conditions precedent (CPs) for any 🔴 or 🟠 finding that must be resolved before closing.

Inputs

InputRequiredFormat
Deal typeYesM&A / JV / Investment / Licensing
Target company docsYesData room or document list
Materiality thresholdRecommendedCurrency amount
Prior DD reportsOptionalIf available from advisors

Output

markdown
## Legal Due Diligence Report — [Target] — [Date]

### Executive Summary

Deal type: Share acquisition (100%)
Overall risk assessment: 🟡 MEDIUM — proceed with protections
Key concerns: 2 critical IP issues, 1 pending litigation

### Risk Matrix

| # | Workstream | Finding | Severity | Recommendation |
|---|-----------|---------|----------|----------------|
| 1 | IP | Patent #3421 expires in 6 months, core to product | 🔴 Critical | Require IP warranty + escrow |
| 2 | IP | Open-source GPL dependency in core module | 🟠 High | Indemnity clause in SPA |
| 3 | Litigation | Customer lawsuit pending ($200K claim) | 🟠 High | Seller indemnity, escrow $250K |
| 4 | Employment | CTO has no non-compete agreement | 🟡 Medium | New contract as CP |
| 5 | Tax | Transfer pricing study outdated (2022) | 🟡 Medium | Update post-closing |
| 6 | Data Privacy | No DPA with 3 key processors | 🟡 Medium | Execute DPAs pre-closing |
| 7 | Corporate | All filings current, no issues | 🟢 Low | — |

### Deal-Breaker Flags

1. 🔴 Patent #3421 expiration — requires renewal confirmation or IP warranty
2. 🔴 None other — deal can proceed with identified protections

### Conditions Precedent

| # | Condition | Owner | Deadline |
|---|-----------|-------|----------|
| 1 | Patent renewal confirmation | Seller | Before signing |
| 2 | CTO employment + non-compete | Seller | Before closing |
| 3 | DPAs with 3 processors executed | Seller | Before closing |

### Recommended SPA Protections

- IP warranty and indemnity (uncapped for 3 years)
- Litigation escrow: $250K
- General warranty period: 24 months
- W&I insurance recommended

Definition of Done

  • All 9 workstreams reviewed with findings documented
  • Risk matrix with severity classification for each finding
  • Deal-breaker flags clearly called out
  • Conditions precedent generated for 🔴/🟠 findings
  • SPA protection recommendations provided
  • Executive summary with overall risk assessment

Examples

Prompt

text
We are acquiring 100% shares of TechCo Ltd.
Here is the data room summary: [paste document list]
Deal size: $5M. Materiality: $50K.
Key concern: their main product relies on a patent expiring soon.
Conduct a legal due diligence and flag deal-breakers.

Quality Criteria

  • Every finding is tied to a specific evidence source (log, test, metric)
  • Pass/fail criteria are binary and measurable — no subjective judgments
  • Severity levels are assigned with clear thresholds
  • Remediation steps are provided for all critical and high findings

Verification (4C)

CheckQuestion
CorrectnessAre all pass/fail criteria applied against the correct standard or rule?
CompletenessWere all required dimensions or checklist items evaluated?
Context-fitDoes the verification scope match the actual risk level of the deliverable?
ConsequenceIf this passed verification but had a hidden flaw, what is the worst-case impact?

Edge Cases

  • Incomplete data for full assessment — Document which checks were limited and flag for re-verification when data becomes available.
  • Ambiguous pass/fail criteria — Request clarification from the standard owner before scoring. Mark as 'Needs Review'.
  • Multiple overlapping standards — Identify the governing standard and note where others diverge.

Changelog

  • v1.0.0 — Initial release

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codexkit Legal Due Diligence AI skill do?

Conduct structured legal due diligence for M&A, joint ventures, or investment transactions. Cover all 9 workstreams — Corporate, Contracts, IP, Litigation, Regulatory, Employment, Tax, Environmental, and Data Privacy. Produce a risk matrix with deal-breaker flags and closing conditions. Use when evaluating a target or counterparty.

Why use Codexkit Legal Due Diligence on TypingMind?

Because you install it once and use it with any model. Codexkit Legal Due Diligence is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codexkit Legal Due Diligence in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hoavdc/CodexKit/tree/main/skills/codexkit-legal-due-diligence. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codexkit Legal Due Diligence?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codexkit Legal Due Diligence?

As many as you like. As long as a model supports skills, you can use Codexkit Legal Due Diligence with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codexkit Legal Due Diligence AI skill free?

Yes. It is published on GitHub by hoavdc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇