pugyy

Dw Harness — Data skill for Claude Code

Data community

Claude Code plugin + CLI for data warehouse AI: SQL lint, table contracts, key-level reconciliation, acceptance evidence.

How to install Dw Harness

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pugyy/dw-harness and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Dw Harness does

Claude Code plugin + CLI for data warehouse AI: SQL lint, table contracts, key-level reconciliation, acceptance evidence. MaxCompute/ODPS, StarRocks, Hive, Spark, OneData, MCP, Python.

Alternatives in Data

  • Azure Document Intelligence .net — Document text, table, and data extraction 1.8k ★
  • Token Dashboard — See where Claude Code is burning tokens - turn raw JSONL transcripts into local cost analytics, hotspot views 669 ★
  • Wiki All — Run the full llmwiki pipeline end-to-end: build → graph → export all → lint 375 ★

README

dw-harness

[中文](#中文) | [English](#english)

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) ![Python 3.9+](https://img.shields.io/badge/Python-3.9%2B-green.svg) [![Tests](https://github.com/pugyy/dw-harness/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/pugyy/dw-harness/actions/workflows/tests.yml) [![Release](https://img.shields.io/github/v/release/pugyy/dw-harness)](https://github.com/pugyy/dw-harness/releases) [![Claude Code plugin](https://img.shields.io/badge/Claude%20Code-plugin-blueviolet)](https://github.com/pugyy/dw-harness#install)

中文

**数仓 AI 编程:装得上、管得住、说得清、跑得回。**

**面向 MaxCompute / StarRocks 数仓的 Claude Code 插件 + CLI:SQL 校验、表契约、键级对账、验收证据。**

简介

dw-harness 是面向数仓团队的 Claude Code 插件与 CLI。它把表契约、SQL 规范、危险操作守卫、键级对账和四态验收报告做成可安装、可配置、可验证的工程层,主线是 MaxCompute → StarRocks,流程沿用 OneData 八步。

适合使用 Claude Code 的数仓/数据平台团队,尤其是已经在 MaxCompute、StarRocks、Hive 或 Spark 上做 ETL,并希望把 AI 产出纳入 review 和 CI 的团队。它不替代调度系统、元数据平台或 BI 工具,也不是一个只做 SQL 格式化的插件。

**当前状态**:v2.0.0 已发布;123 个测试和 6/6 CI 矩阵通过;真实 MaxCompute/StarRocks/DataWorks 适配器未连生产实例,`plugin-validate` 需要 secret 手动触发。未验证项和复现步骤见 [docs/e2e-demo.md](docs/e2e-demo.md)。

目录

版本历史

版本 日期 说明
v1.0.0 2026-05-23 初始版本:复制模板、五层防线、3 个 Hook、8 个 Skill、4 个 Subagent
v2.0.0 2026-11-16 Evidence Gate:插件 + CLI、表契约、四态验收、键级对账、证据链

v1.0.0 — 2026-05-23 — 初始版本

首个公开版本,以复制 `.claude` 模板的方式提供一套数仓 AI 开发规范:

  • 概念上的五层:CLAUDE.md、Auto Memory(由 Claude Code 提供)、Hooks、Subagents、Skills
  • 3 个 Hook:validate_sql.py(写后 SQL 规范检查)、block_dangerous_ddl.py(Bash 危险 DDL 拦截)、inject_context.py(设计为 compact 后重注入;v1 因事件名写错实际未生效,v2 修复)
  • 8 个 Skill:需求分析、技术设计、