DSH Arbitration Law Articles 16/17 Element Review Plugin

Preface

When building AI agents for the legal domain, accurately understanding and executing relevant laws and regulations is fundamental. Articles 16 and 17 of the Arbitration Law provide explicit requirements for the formation of an arbitration agreement. However, in practice, identifying and verifying these requirements from contract texts is prone to oversight or misjudgment. DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, allowing developers to integrate domain-specific rules as plugins. This article introduces an arbitration agreement review plugin based on DSH, designed to automatically check whether an arbitration agreement meets the statutory requirements.

Plugin Overview

@deepwhale-cn/dsh-legal-arbitration-agreement is a DSH plugin used to review whether an arbitration agreement complies with the requirements of Articles 16 and 17 of the Arbitration Law. Built on dsh-guard-core, it is part of the DeepWhale Guard series. The plugin is maintained by feely0208 and categorized under Model Inference. It performs rule matching on arbitration agreement texts through static inspection and outputs a compliance analysis report.

Core Features

The core capability of the plugin is to review arbitration agreements against statutory requirements. According to Article 16 of the Arbitration Law, an arbitration agreement must contain three elements: an expression of intent to arbitrate, a selected arbitration commission, and the matters to be arbitrated. Article 17 specifies several circumstances under which an arbitration agreement is invalid. The plugin uses a built-in rule set to check whether the contract text contains these elements and to identify circumstances that may render the agreement invalid.

The plugin supports reading arbitration agreement content from files or HTML text, performing rule matching, and generating review results. The rule table is scheduled for refinement in future versions and is currently in a TODO state. A rule match does not equate to a violation; each rule is annotated with file location and legal reference for easy traceability.

Installation and Activation

The plugin can be installed via DSH’s plugin management command. Before installation, it is recommended to review the source code and license to ensure compliance with usage requirements.

dsh plugin --profile web add @deepwhale-cn/dsh-legal-arbitration-agreement

It can also be installed via npm, or installed directly from this repository:

npm i @deepwhale-cn/dsh-legal-arbitration-agreement
dsh plugin install ./

Once installed, the plugin becomes available as a DSH skill.

Typical Usage

The plugin provides the following command-line options:

npx @deepwhale-cn/dsh-legal-arbitration-agreement --root <project_directory>

This command performs a requirements review on arbitration agreement files under the specified directory.

npx @deepwhale-cn/dsh-legal-arbitration-agreement --demo

This command runs the built-in sample demo, demonstrating the plugin’s review logic and output format.

npx @deepwhale-cn/dsh-legal-arbitration-agreement --list-rules

This command lists the criteria and legal references, helping developers understand the rule basis.

npx @deepwhale-cn/dsh-legal-arbitration-agreement --html r.html

This command performs a review on HTML text and generates an HTML-formatted report.

Applicable Scenarios and Cautions

The plugin is suitable for scenarios requiring automated arbitration agreement review, such as contract auditing systems, legal document generation tools, or intelligent Q&A assistants. The plugin runs with the permissions of the current DSH process; review the source code and license before installation to ensure compliance with usage requirements.

The plugin requires DSH >=0.1.0-rc.6 <0.3.0 and Node >=18. The current rule table is still being refined (TODO) and may have incomplete rule coverage. The plugin performs static inspection only and does not involve semantic understanding of contract clauses; it relies solely on rule matching. Details on applicable scope and inapplicable cases are in the Known Boundaries section (TODO).

Conclusion

This plugin provides a rule engine for reviewing arbitration agreement requirements in legal domain agent development. By integrating arbitration law rules into the DSH ecosystem, developers can more conveniently build compliance-checking capabilities. The plugin directory and source code repository are hosted on the community site, and there is no official affiliation with DeepSeek or High-Flyer.

  • Directory page: https://www.skillhub.cn/plugins/feely0208/dsh-legal-arbitration-agreement
  • GitHub: https://github.com/feely0208/dsh-legal-arbitration-agreement
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye