DeepSeek Harness Terms of Service Compliance Checker Plugin

Introduction

When developing agents or plugins based on DeepSeek Harness (DSH) that need to integrate third-party service terms and privacy policies, the text is often lengthy and clause-dense, making it difficult for developers to manually review each item. If high-risk content exists within standard-form clauses (such as unilateral right of interpretation or bundled authorization), it may introduce compliance risks.

What Is This

feely0208/dsh-cn-agreement-check is a DSH plugin designed to perform clause-level red-line scanning on texts such as user agreements and privacy policies. Built on top of dsh-guard-core, the plugin identifies 7 categories of common standard-form clause issues and provides legal references, making it easier for developers to verify items one by one.

Maintained by feely0208, categorized under admin-security.

Core Features

The plugin provides the following 7 rules, each tagged with a risk level and matching content:

  • AGR-EXPLAIN-RIGHTS: Matches unilateral interpretation clauses such as “The final right of interpretation belongs to this platform,” level: high
  • AGR-LIABILITY-EXEMPT: Matches full disclaimer expressions such as “shall not be held responsible in any way,” level: high
  • AGR-PI-BUNDLE: Matches bundled authorization where a user cannot register without agreeing to all terms, level: high
  • AGR-AUTO-RENEW-NOTICE: Matches auto-renewal agreements with no advance notice or cancellation mechanism, level: high
  • AGR-JURISDICTION: Matches unilateral designation of the merchant’s local court for jurisdiction, level: medium
  • AGR-UNILATERAL-TERMINATE: Matches unilateral modification or termination of the agreement without any notification obligation, level: medium
  • AGR-TERMINATE-NO-REFUND: Matches service termination without a balance refund arrangement, level: medium

Use --list-rules to view the criteria and legal references.

Installation & Activation

Install in the DSH environment:

dsh plugin --profile web add @deepwhale-cn/dsh-cn-agreement-check

You can also install via npm or directly from the repository:

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

Typical Usage

After installation, run a scan in your project directory:

npx @deepwhale-cn/dsh-cn-agreement-check --root <project directory>

Built-in sample demo:

npx @deepwhale-cn/dsh-cn-agreement-check --demo

View rules and legal references:

npx @deepwhale-cn/dsh-cn-agreement-check --list-rules

Generate an HTML report:

npx @deepwhale-cn/dsh-cn-agreement-check --html r.html

Use Cases & Notes

Suitable for DSH plugin developers who need to integrate third-party service agreements or privacy policies, enabling quick screening of high-risk standard-form clauses.

Note: The current version only scans .md/.txt/.html text files. Agreements in images or texts behind a login wall cannot be recognized. A rule match only indicates a potential compliance risk; each item should be verified in the context of your specific use case. See --list-rules for detailed legal references.

Conclusion

This plugin helps developers reduce compliance risks when integrating third-party agreements through clause-level scanning and legal citations. For more details, visit the plugin catalog page or the GitHub repository.

  • Plugin catalog: https://www.skillhub.cn/plugins/feely0208/dsh-cn-agreement-check
  • GitHub repository: https://github.com/feely0208/dsh-cn-agreement-check
羽毛球分组比赛记分
小程序二维码

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

Xiaoye