npx claudepluginhub hylouis233/mcodeforlegal法律共享骨架:执业画像、guardrails、事项工作台、法条/案例/引用核验、数据源 connector
合同审查旗舰场景:路由器分发、NDA/买卖/借款/租赁/技术/服务六类专项审查、风险条款库、三色分桶 memo
诉讼支持:事项立案、律师函(七项前置门禁)、起诉状要点、证据清单
数据合规(PIPL/DSL/CSL):个保影响评估、数据出境、隐私政策、泄露应对
公司治理(2023 公司法):章程与股东协议审查、决议合规、注册资本实缴
劳动用工:劳动合同审查、解除合规、仲裁材料、规章制度民主程序
知识产权:商标申请准备、技术交底审查、IP 归属条款、软著登记
7-day visitors to each marketplace page

Mainland China-first legal workflow plugins for Claude Code, with framework-level jurisdiction guides for Hong Kong, Macao, Taiwan, and Singapore.
Contract review · litigation support · data compliance · corporate · labor · IP Statute status checks · citation audit · configurable practice playbooks
Quick start · See it work · Capabilities · Plugins · Architecture
mcodeforlegal adapts the plugin-and-playbook architecture of anthropics/claude-for-legal for Chinese legal work. It adds a Mainland China legal baseline, a built-in connector to the official PRC law database, statute status verification, pre-delivery citation gates, and China-specific workflows across six practice areas.
[!IMPORTANT] This project is a legal research and workflow aid — it does not constitute legal advice, and all outputs are drafts. Before relying on, signing, filing, or sending any output, have it reviewed by a qualified legal professional in the relevant jurisdiction. Non-lawyer users face an explicit confirmation gate before any legally consequential action, and receive a one-page brief for counsel instead of a green light.
Requirements: Python 3.11+ and Claude Code.
/plugin marketplace add Hylouis233/mcodeforlegal
/plugin install legal-core@mcodeforlegal
/plugin install contract-review-cn@mcodeforlegal
Then:
1. cold-start-interview # one-time interview → your practice profile (playbook)
2. /contract-review-cn:review contract.docx
3. statute-verify 民法典第153条 # current / amended / repealed / not-yet-effective?
4. citation-audit # pre-send gate: zero unverified [CITE:__] placeholders
You: "帮我审一下这份保密协议,我们是接收方。"
mcodeforlegal:
1. loads your practice profile (blocks service if it's still placeholder text)
2. router confirms: NDA, receiving side → loads nda-review
3. scope check: is it really an NDA, or a disguised non-compete / exclusivity?
4. triage against YOUR playbook positions — 🟢🟡🔴 buckets
(GREEN only from lawyer-reviewed positions, never from defaults)
5. outputs a memo: header by role + reviewer note (sources / read / flagged /
currency / before relying) + dual-axis severity
(legal risk 🔴🟠🟡🟢 × business friction) + next-steps decision tree
6. every statute reference starts as [CITE:__], filled only after statute-verify
7. citation-audit must pass before anything is sent
| Capability | Default | Requires optional source |
|---|---|---|
| PRC statute status verification (flk official DB) | ✅ | — |
| Citation audit & source attribution | ✅ | — |
| Case-number format check | ✅ | — |
| Substantive case verification | ◐ | PKULaw or Jufa token |
| Mainland China jurisdiction frame | ✅ primary | — |
| HK / MO / TW / SG frames | ◐ framework baselines | Local authoritative source + professional review |
| Contract review (6 specialties) | ✅ | — |
| Batch / due-diligence review | ✅ | — |
Anything not covered is stated as a source gap in the output — never silently skipped.
statute-verify against the official database: verified_current / amended / repealed / not_yet_effective / not_found / source_unavailable. not_found never means "doesn't exist".[CITE:__] placeholders and are blocked before delivery — drafting with invented citations is treated as a blocking defect.LEGAL_FRAMES/ holds one baseline per jurisdiction; skills never hardcode jurisdiction branches. Mainland China is the primary implementation; HK/MO/TW/SG are framework baselines pending local-source verification.[法律法规数据库], [北大法宝], [监管官网], [用户提供] only when the tool actually returned it this session; everything else is [模型知识—待核实].Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.