DeepSeek Harness Plugin

liuhange789/data-asset-inspector#data-quality-scoring

Stars ★ 4 Downloads (30d) 265 Category Tools & Capabilities Added 2026-11-02 npm @liuhange/dsh-data-quality-scoring

Data quality scoring plugin — multi-dimensional scoring (completeness/accuracy/consistency/timeliness).

Install

# from npm (prebuilt)

dsh plugin --profile web add @liuhange/dsh-data-quality-scoring

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:liuhange789/data-asset-inspector#path:/packages/data-asset/data-quality-scoring

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

数据质量评分插件:对数据完整性、准确性、一致性、时效性多维度评分,生成质量报告和改进建议。

安装

dsh plugin --profile web add @liuhange/dsh-data-quality-scoring

Tool 接口

score_data_quality

对数据文件进行多维度质量评分,生成 JSON + Markdown 双格式报告。

参数:

  • filePath (string, 必填): 待评分数据文件路径
  • outputPathDir (string, 可选): 报告输出目录,默认数据文件所在目录

输出:

  • quality_report.json: 质量评分 JSON 报告
  • quality_report.md: 质量评分 Markdown 报告(首行 【数据质量评分报告】)

评分维度

维度 说明 计算方式
完整性 缺失值比例 (非缺失值总数 / 字段值总数) × 100
准确性 格式合规率 + 值域合规率 加权平均 × 100
一致性 跨字段约束满足率 (满足约束记录数 / 受约束记录数) × 100
时效性 数据新鲜度 (1 - 过期比例) × 100

配置节点

business-rules.json → qualityScoring 节点。缺失时使用默认配置(权重各 0.25,阈值 60)。

v1.0 兼容性

本插件为 v2.0 新增,不影响 v1.0 功能。配置缺失时降级到默认评分规则。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.