Skip to content
Back to skills

Dw Data Comparison

ASecurity

Step 5/8 数据比对:新旧表/上下游键级对账,产出可复跑的对账证据, 只回收差异摘要。适用于自测通过后与基线数据核对。

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 16, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add pugyy/dw-harness --skill dw-data-comparison --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dw Data Comparison?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dw Data Comparison
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pugyy-dw-data-comparison/badge)](https://www.skillsdirectory.com/skills/pugyy-dw-data-comparison)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dw-data-comparison
description: >
  Step 5/8 数据比对:新旧表/上下游键级对账,产出可复跑的对账证据,
  只回收差异摘要。适用于自测通过后与基线数据核对。
argument-hint: "[表名] [分区日期] [基线表]"
context: fork
agent: dw-harness:data-comparator
allowed-tools: Read, Grep, Glob, Bash(dw reconcile:*), Bash(dw check:*)
---

# Step 5: 数据比对(键级对账)

## 执行流程

1. 固定比较双方:表/分区/业务键/度量列/容差(单位换算按契约)
2. 跑确定性对账并存证据:

```bash
dw reconcile --spec reconcile_[表].json --save-evidence
```

3. 预检(空键/重复键/缺失分区)失败先修数,再做键级比较
4. 只把差异摘要交回主对话

## 对账 spec 要点

- `keys`:业务键(契约 `business_keys`)
- `metrics`:列 + `abs_tol` + `rel_tol` + 双方 `unit`(按契约换算到最小单位)
- 零基线:一侧为 0 时任何非零差都算 FAIL;NULL==NULL 视为相等,NULL vs 值单列

## 交付物

- `reconcile_[表].json`(spec,进仓库)
- `.claude/dw/evidence/reconcile-[表].json`(证据,`dw check` 复核)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.