~ / rigs / pugyy / dw-harness

pugyy/dw-harness

A Claude Code engineering template for reliable data warehouse AI development./面向数仓 AI 开发的 Claude Code 工程化模板:hooks、skills、subagents 与八步标准流程。

↗ GitHub ★ 4 MIT updated 5mo ago personal setup Claude Code
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~390 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit pugyy/dw-harness/template/.claude ./rig-dw-harness  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit pugyy/dw-harness/template/.claude/skills/dw-data-comparison .claude/skills/dw-data-comparison
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-dqc .claude/skills/dw-dqc
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-etl .claude/skills/dw-etl
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-performance-optimization .claude/skills/dw-performance-optimization
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-requirement-analysis .claude/skills/dw-requirement-analysis
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-self-test .claude/skills/dw-self-test
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-sr .claude/skills/dw-sr
$ npx degit pugyy/dw-harness/template/.claude/skills/dw-technical-design .claude/skills/dw-technical-design
$ curl -fsSL --create-dirs -o .claude/agents/data-comparator.md https://raw.githubusercontent.com/pugyy/dw-harness/main/template/.claude/agents/data-comparator/data-comparator.md
$ curl -fsSL --create-dirs -o .claude/agents/data-quality-checker.md https://raw.githubusercontent.com/pugyy/dw-harness/main/template/.claude/agents/data-quality-checker/data-quality-checker.md
$ curl -fsSL --create-dirs -o .claude/agents/dw-explorer.md https://raw.githubusercontent.com/pugyy/dw-harness/main/template/.claude/agents/dw-explorer/dw-explorer.md
$ curl -fsSL --create-dirs -o .claude/agents/sql-validator.md https://raw.githubusercontent.com/pugyy/dw-harness/main/template/.claude/agents/sql-validator/sql-validator.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python .claude/hooks/block_dangerous_ddl.py"
          }
        ]
      }
    ]
  }
}

Skills (8)

Subagents (4)

data-comparator
model: opus
>
data-quality-checker
model: opus
>
dw-explorer
model: opus
>
sql-validator
model: opus
>

Hooks (4)

eventmatcherruns
PostToolUseWrite|Edit|MultiEditpython .claude/hooks/validate_sql.py
PreToolUseBashpython .claude/hooks/block_dangerous_ddl.py
SessionStartcompactpython .claude/hooks/inject_context.py
Stop*检查数仓规范执行结果:是否所有 SQL 文件都通过了规范检查?待确认问题清单是否完整?

Similar rigs

copied ✓