Dw sr
A Claude Code engineering template for reliable data warehouse AI development./面向数仓 AI 开发的 Claude Code 工程化模板:hooks、skills、subagents 与八步标准流程。
npx -y skills add pugyy/dw-harness --skill dw-srAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
StarRocks/SR 导入设计流程,适用于根据 ODPS 表结构生成 SR 建表语句、同步任务配置和风险分析。直接调用命令:/dw-sr。
SKILL.md
1.3 KB, as published. Nobody here has run it
Step 6: SR 数据库导入
执行流程
- 基于目标数据库特性生成建表参数
- 分析配置风险,按风险高低排序输出建议
- 生成同步任务配置
风险分析项
| 风险项 | 检查内容 | 风险等级 |
|---|---|---|
| 字段类型精度 | DECIMAL/DOUBLE → DECIMAL(38,18) | 高 |
| Key 选择 | 主键合理性 | 高 |
| 分区数量 | 与源表是否匹配 | 中 |
| 分桶数 | DISTRIBUTED BY HASH 分桶数 | 中 |
| DATETIME 字段 | 存储方式(避免全表扫描) | 中 |
| 字符集 | 编码兼容性 | 低 |
推荐提示词
为 [表名] 生成 SR 数据库建表语句,基于 ODPS 表结构。
分析配置风险,按风险高低排序输出建议(不超过 20 行)。
输出格式
## SR 建表语句
[SQL 语句]
## 风险分析
| # | 风险项 | 等级 | 说明 | 建议 |
|---|--------|------|------|------|
| 1 | ... | 高 | ... | ... |
## 同步任务配置
[配置 JSON/YAML]
规则
- 风险分析不超过 20 行
- 按风险等级排序(高 → 中 → 低)
- 建表语句输出到
ddl_sr_[表名].sql