Skip to content

Add plugin: mcodeforlegal - #9

Open
Hylouis233 wants to merge 1 commit into
MiniMax-AI:mainfrom
Hylouis233:add-mcodeforlegal-plugin
Open

Add plugin: mcodeforlegal#9
Hylouis233 wants to merge 1 commit into
MiniMax-AI:mainfrom
Hylouis233:add-mcodeforlegal-plugin

Conversation

@Hylouis233

@Hylouis233 Hylouis233 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What changes

Adds plugins/Hylouis233/mcodeforlegal — a Mainland China-first legal workflow plugin (43 Skills + flk stdio MCP against the official PRC law database), packaged from https://github.com/Hylouis233/mcodeforlegal (Apache-2.0).

Chinese legal work needs more than generic legal chat: statute currency, citation integrity, jurisdiction differences, and non-lawyer risk all have to be engineered. This plugin adapts the playbook architecture of anthropics/claude-for-legal to Chinese practice: skills ship zero legal positions (the user's prose practice profile supplies them), every statute reference starts as a [CITE:__] placeholder and is filled only after verification, and every deliverable passes a citation gate before it can be sent.

User value

A MiniMax Code user can run playbook-driven contract review with statute verification. Example prompt (copyable):

帮我审一下这份保密协议,我们是接收方。

Expected result: the agent loads the user's practice profile (built once via cold-start-interview), routes the document to the NDA specialty review, performs a scope check (is it really an NDA or a disguised non-compete?), triages clauses into 🟢🟡🔴 buckets against the user's own playbook positions, and outputs a memo with role-appropriate header, reviewer note (sources / read / flagged / currency / before-relying), dual-axis severity (legal risk × business friction), and a next-steps decision tree. Statute checks go through the bundled flk connector (verified_current / amended / repealed / not_yet_effective / not_found / source_unavailable — not_found never means "doesn't exist"). Non-lawyer users hit an explicit confirmation gate before legally consequential actions. Also included: litigation support, data compliance (PIPL/DSL/CSL), corporate (2023 Company Law), labor, IP, due diligence, and tabular batch review.

Plugin submission checklist

  • Plugin lives at plugins/<github-owner>/<plugin-name>.
  • plugin.json name matches the Plugin directory.
  • README.md includes a real example prompt and expected result.
  • LICENSE and plugin.json declare an open-source license (Apache-2.0).
  • Required executables, accounts, paid services, and supported platforms are disclosed (Python 3.11+ for the flk MCP; optional PKULaw/Jufa tokens are opt-in and documented; all scripts stdlib-only).
  • Network destinations and data handled by the plugin are disclosed (flk.npc.gov.cn for statute retrieval; optional apim-gw.pkulaw.com only after the user enables it; this project never scrapes wenshu.court.gov.cn; no telemetry; outputs stay local).
  • No credentials, private endpoints, hidden telemetry, installers, symlinks, or native binaries are included.
  • Every scaffold TODO has been replaced (no TODOs anywhere).
  • npm run check passes.

Evidence

$ node scripts/validate.mjs
OK   plugin Hylouis233/mcodeforlegal   (plus all other hosted plugins and examples)
Validated 9 hosted Plugins and all examples.

Manual checks: flk MCP stdio handshake + live tools verified against the real database (flk_search / flk_detail / flk_check — e.g. 劳动合同法 → 有效/effective, 2013-07-01 施行); PKULaw enablement script handshake-verifies credentials before writing anything and never stores tokens (env reference only).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Mainland China-first legal workflow plugin for MiniMax Code: contract
review, litigation, data compliance, corporate, labor & IP, with
statute status checks and citation gates. 43 skills + flk stdio MCP
(official PRC law database), packaged from
https://github.com/Hylouis233/mcodeforlegal (Apache-2.0).
Copilot AI lite review requested due to automatic review settings August 19, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants