agentsclimarketplace

Dw sr

Skill pugyy/dw-harness/template/.claude/skills/dw-sr

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

Install
npx -y skills add pugyy/dw-harness --skill dw-sr

Assembled 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 数据库导入

执行流程

  1. 基于目标数据库特性生成建表参数
  2. 分析配置风险,按风险高低排序输出建议
  3. 生成同步任务配置

风险分析项

风险项检查内容风险等级
字段类型精度DECIMAL/DOUBLE → DECIMAL(38,18)
Key 选择主键合理性
分区数量与源表是否匹配
分桶数DISTRIBUTED BY HASH 分桶数
DATETIME 字段存储方式(避免全表扫描)
字符集编码兼容性

推荐提示词

为 [表名] 生成 SR 数据库建表语句,基于 ODPS 表结构。
分析配置风险,按风险高低排序输出建议(不超过 20 行)。

输出格式

## SR 建表语句
[SQL 语句]

## 风险分析
| # | 风险项 | 等级 | 说明 | 建议 |
|---|--------|------|------|------|
| 1 | ...    | 高   | ...  | ...  |

## 同步任务配置
[配置 JSON/YAML]

规则

  • 风险分析不超过 20 行
  • 按风险等级排序(高 → 中 → 低)
  • 建表语句输出到 ddl_sr_[表名].sql

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.