DeepSeek Harness Data Lineage and Compliance Scanning Plugin

Introduction

In data governance scenarios, the full lifecycle of data—from collection and processing to utilization—often lacks systematic compliance checks. When mapping data lineage, developers typically rely on manually reading documentation or scripts, which can easily lead to oversights, particularly regarding sensitive aspects such as cross-border transfers, retention periods, and data classification.

DSH (DeepSeek Harness) embraces a “everything is a plugin” philosophy, encapsulating specific capabilities into reusable skills. The feely0208/dsh-data-lineage-scan plugin provides a rule-based static text inspection engine that helps developers identify compliance gaps in data flow at the code and documentation level.

Plugin Overview

feely0208/dsh-data-lineage-scan is a plugin under the admin-security category of DeepSeek Harness, designed to perform static compliance scanning of data lineage and data flow. The plugin depends on @deepwhale-cn/dsh-guard-core and performs rule matching against the text content of files and scripts, rather than executing the programs themselves.

Core Features

The plugin includes 6 built-in check rules, each annotated with legal references and line-number location:

  • DL-LINEAGE-DOC-MISSING: Checks whether a data lineage document exists
  • DL-DICT-CLASSIFY-MISSING: Checks whether classification information in the data dictionary is complete
  • DL-PII-RAW-SCHEMA: Checks whether personal information fields are explicitly identified in the raw data schema
  • DL-RETENTION-UNSTATED: Checks whether data retention periods are clearly documented
  • DL-EXPORT-UNCONTROLLED: Checks whether data export/transfer records are under control
  • DL-CROSSBORDER-REVIEW: Checks whether cross-border data transfers have been assessed and registered

Legal references include Articles 27, 29, and 30 of the Data Security Law; Articles 19, 38, 51, and 55 of the Personal Information Protection Law; and GB/T 36073-2018 (DCMM).

Installation

In an environment where DeepSeek Harness is already installed, install the plugin using the following command:

dsh plugin --profile web add @deepwhale-cn/dsh-data-lineage-scan

You can also install it via npm:

npm i @deepwhale-cn/dsh-data-lineage-scan

Or install from a local repository:

dsh plugin install ./

Usage

After installation, you can run a scan from the project root directory:

npx @deepwhale-cn/dsh-data-lineage-scan --root <project-directory>

Here are some commonly used options:

# Demonstrate rules using built-in samples
npx @deepwhale-cn/dsh-data-lineage-scan --demo

# List all criteria and legal references
npx @deepwhale-cn/dsh-data-lineage-scan --list-rules

# Generate an HTML report
npx @deepwhale-cn/dsh-data-lineage-scan --html r.html

The plugin outputs matched rules along with the corresponding file and line number, making it easy for developers to quickly locate documents and code snippets that need to be supplemented or remediated.

Use Cases and Cautions

  • Suitable for use during data project initiation, data lineage mapping, or compliance remediation phases to identify basic compliance gaps at the documentation and script level.
  • The plugin runs with the permissions of the current DSH process. Before installation, review the source code and license to ensure alignment with your project’s security policies.
  • This plugin performs static text inspection and only covers explicit information in documents and scripts. The accuracy of lineage, the implementation of data masking, and the validity of cross-border filing require manual verification.

Summary

feely0208/dsh-data-lineage-scan provides a reusable rule engine that helps developers quickly identify common compliance points in data flow at the code and documentation level, reducing manual oversights. In data governance and compliance building, it can serve as a foundational scanning tool, complemented by subsequent manual review and process governance.

  • Directory page: https://www.skillhub.cn/plugins/feely0208/dsh-data-lineage-scan
  • GitHub: https://github.com/feely0208/dsh-data-lineage-scan
  • Repository homepage: https://www.deepwhale.org.cn/skills.html
羽毛球分组比赛记分
小程序二维码

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

Xiaoye