legal-due-diligence

legal-due-diligence is a skill for Claude Code, Codex from LawMotion-AI/Vibe-Lawyering. It costs 162 tokens per session (1,827 once invoked), scanned A, original, MIT.

A workflow for Chinese legal due diligence, which is the process of checking a company before a transaction. It creates working papers and a final report across 10 investigation areas.

In plain words
What is it for?
Use it to start a due-diligence project, write individual sections from supplied materials, check completeness, and generate Markdown working papers and reports.
Why use it?
It gives lawyers a structured way to collect findings, check for missing information, assess legal risks, and turn internal notes into a client-facing report.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to start a due-diligence project, write individual sections from supplied materials, check completeness, and generate Markdown working papers and reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lawmotion-ai/vibe-lawyering/legal-due-diligence
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LawMotion-AI/Vibe-Lawyering --skill legal-due-diligence
Clone the repo
git clone --depth 1 https://github.com/LawMotion-AI/Vibe-Lawyering

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legal-due-diligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence/github.svg)](https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence)
Your own site
<a href="https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence"><img src="https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legal-due-diligence

Your own site · 80×15
<a href="https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence"><img src="https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/legal-due-diligence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00162 $0.01827
Opus 5 $0.00081 $0.00914
Sonnet 5 $0.00032 $0.00365
Haiku 4.5 $0.00016 $0.00183

Measured 12d ago against content hash c17ee1cce0e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

legal-due-diligence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/init_project.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-skills/legal-due-diligence/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

法律尽职调查 Skill v1.0

目标

为中国律师提供系统化的法律尽职调查底稿编写与报告生成工具。

核心价值

  • 调查全面:10大标准板块、200+检查项,不遗漏重要事项
  • 用语规范:标准法律用语,表述专业严谨
  • 两阶段输出:底稿(律师内部记录)→ 报告(客户交付文件)
  • 风险识别:三级风险评估,系统识别法律风险

工作流程

init 初始化  →  draft 写底稿  →  check 检查  →  report 生成报告
(创建项目)    (逐章撰写)      (完整性)       (底稿→报告)
                   ↺ 循环

四种工作模式

模式 1:init(项目初始化)

触发词初始化尽调项目新建尽调init DD

操作步骤

  1. 运行 scripts/init_project.py,在指定路径创建项目目录
  2. 生成项目信息文件 project-info.md
  3. 为10个章节各生成底稿模板文件

必须获取的输入

  • project_path:项目存放路径
  • target_company:目标公司全称
  • client_name:委托人名称

可选输入(有默认值):

  • base_date:调查基准日(默认当日)
  • purpose:调查目的(如"股权收购"、"投资入股")
  • law_firm:律师事务所名称
  • lawyers:经办律师姓名(可多个)

输出:项目目录结构如下:

[项目名称]-DD/
├── project-info.md          # 项目基本信息与进度跟踪
├── working-paper.md         # 完整底稿(10章合一,单一文件)
└── report/
    └── (报告生成后存放于此)

模式 2:draft(撰写底稿)

触发词写底稿撰写第X章draft分析材料并写入底稿

操作步骤

  1. 读取 references/section-guide.md 中对应章节的调查指南
  2. 阅读用户提供的调查材料(支持文件路径或粘贴文本)
  3. 按底稿六段结构撰写该章节内容
  4. 写入项目根目录的 working-paper.md(单一底稿文件,定位至对应章节更新)

必须获取的输入

  • chapter:章节编号(1–10)或章节名称
  • materials:调查材料(文件路径列表 或 粘贴的文本内容)

可选输入

  • project_path:项目路径(若上下文中已有则无需重复提供)
  • append:是否追加模式(默认覆写)

底稿六段结构(每章必须包含):

## [编号]. [章节名称]

### [X].1 调查范围与方法
调查范围:[本章调查覆盖的事项]
调查方法:
- [ ] [方法1]
- [ ] [方法2]

### [X].2 已获取材料清单
| 序号 | 材料名称 | 形式 | 日期/期间 | 备注 |
|------|----------|------|-----------|------|

### [X].3 未获取/待补充材料
| 序号 | 材料名称 | 重要程度 | 状态 | 影响说明 |
|------|----------|----------|------|----------|

### [X].4 调查发现
[纯事实记录,引用具体文件,不含意见判断]

### [X].5 风险提示
| 序号 | 风险事项 | 等级 | 事实依据 | 法律依据 | 处理建议 |
|------|----------|------|----------|----------|----------|

### [X].6 律师备忘
[内部工作记录,不进报告]

风险等级标准

  • 🔴 高:直接影响交易可行性或重大法律后果
  • 🟡 中:需关注,可能影响交易条款或需要整改
  • 🟢 低:轻微瑕疵,一般不影响交易,建议关注

模式 3:check(检查底稿)

触发词检查底稿完整性检查check汇总风险

操作步骤

  1. 读取 working-paper.md 全文
  2. 逐章检查六段结构完整性
  3. 汇总所有风险提示(按等级分类)
  4. 统计未获取材料
  5. 输出检查报告到对话(不修改底稿)

Read the full file on GitHub · 189 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 189 lines · 162 tokens per session scan A c17ee1cce0e7

Subscribe to this mod's changes

legal-due-diligence is a skill published in the GitHub repository LawMotion-AI/Vibe-Lawyering (20 stars, last pushed 4mo ago), licensed MIT. It adds 162 tokens to every session and 1,827 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens