git:20260523.e3316fc to git:20261116.8587e14

16 added, 28 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: dw-requirement-analysis
- description: 数仓需求分析流程,适用于 PRD 解读、字段口径梳理、上游表结构探索和待确认问题清单输出。直接调用命令:/dw-requirement-analysis。
+ description: >
+ Step 1/8 数仓需求分析:解读 PRD、梳理字段口径草稿、探索上游表结构、
+ 输出待确认问题清单。适用于接到新数仓需求需要结构化拆解时。
+ argument-hint: "[需求文档路径或粘贴的需求描述]"
+ allowed-tools: Read, Grep, Glob, Write
---
# Step 1: 需求分析
## 执行流程
- 1. 用 `dw-explorer` subagent 读取上游表结构
- 2. 分析 PRD/需求文档,提取关键信息
- 3. 生成结构化需求摘要
-
- ## 输出格式
-
- ```markdown
- ## 需求摘要(≤5 行)
- [核心需求描述]
-
- ## 字段口径草稿
- | 字段名 | 口径说明 | 数据来源 |
- |--------|---------|---------|
- | ... | ... | ... |
+ 1. 读 PRD/需求描述,提取核心诉求(≤5 行摘要)
+ 2. 结构探索交给 `dw-explorer` agent(防 DDL 刷屏)
+ 3. 产出字段口径草稿:每个字段标注数据来源
+ 4. 列出待确认问题清单(不能省略)
+ 5. 口径落在契约草稿 `contracts/contract.[json|yaml]`(后续步骤共用)
- ## 待确认问题清单
- 1. [问题 1]
- 2. [问题 2]
- ...
+ ## 交付物(/dw-next 校验)
- ## 字段变更单(草稿)
- | 变更类型 | 表名 | 字段 | 说明 |
- |---------|------|------|------|
- | 新增 | ... | ... | ... |
- ```
+ - `01_requirement.md`:需求摘要 + 字段口径草稿 + 待确认清单
+ - 契约草稿(若需求涉及新表/改口径)
## 规则
- - 需求摘要不超过 5 行
- - 待确认问题必须列出,不能省略
- - 字段口径必须标注数据来源
- - 写入 CLAUDE.md 的 "本次迭代约束" 节
+ - 待确认问题必须显式列出,宁多勿漏
+ - 字段口径必须标来源表;金额必须写清币种与单位(分/元/千元)
+ - 不要在本步写任何 SQL