Skip to content
Back to skills

Dw Technical Design

ASecurity

Step 2/8 数仓技术设计:OneData 建模、表名粒度/主键/分区设计、 字段类型约束沉淀到表契约。适用于需求分析完成后进入建模阶段。

  • 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-technical-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dw Technical Design?

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

Security grade badge for Dw Technical Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pugyy-dw-technical-design/badge)](https://www.skillsdirectory.com/skills/pugyy-dw-technical-design)

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-technical-design
description: >
  Step 2/8 数仓技术设计:OneData 建模、表名粒度/主键/分区设计、
  字段类型约束沉淀到表契约。适用于需求分析完成后进入建模阶段。
argument-hint: "[表名或主题]"
allowed-tools: Read, Grep, Glob, Write, Bash(dw contract:*)
---

# Step 2: 技术设计

## 执行流程

1. OneData 命名:`[层级]_[域]_[主题]_[粒度]_[周期]`(如 `dws_trade_order_di`)
2. 确定主键、粒度、分区(`partition_dt string yyyyMMdd`)
3. 把 Step 1 的口径草稿固化进契约并校验:

```bash
dw contract validate contracts/contract.json
dw contract compile contracts/contract.json
```

4. 金额列在契约中分开声明 `currency` 与 `unit`(CNY 的分/元/千元是三种不同契约事实)

## 交付物

- `02_design.md`:建模决策(表/主键/粒度/分区/上游依赖)
- 通过校验的契约 + 编译产物 `.contract.json`

## 规则

- 输出 ≤60 行;细节写契约,不写会话
- 禁改表必须登记到 `harness.json` 的 `protected_objects`

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.