Ohos req proposal to sr

From openharmonyinsight/openharmony-skills · View interactive version

Ohos req proposal to sr is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Use when every proposal associated with an OHOS IR has passed GATE A and a System Requirement baseline is needed before spec and design work begins. Triggers: 生成SR, proposal转SR, SR基线, 系统需求基线, GATE A通过, 05-proposal to SR. Do NOT use for IR generation (ohos-req-feature-to-ir), feature baseline (ohos-r

How to use this skill

Skill file

OHOS Proposal 转 SR

Announce at start: "我正在使用 ohos-req-proposal-to-sr skill 生成 SR.md。"

定位

SR.md 作为 OHOS 电子流 GA 后基线附件提交,SR 的 status=GA-Approved 是 ohos-delivery 启动 Phase 1-9 的前置条件。SR 的维度确认继承自 IR(PIR #152 P0),不重新逐条交互。SR §二责任人表的分析责任人/SE/TSE/测试责任人必须在 handoff 前指定(PIR #152 P2),缺失则阻断 Phase 1-9 启动。

适用边界

输入与硬门禁

以下任一情况必须拒绝生成:

模板说明

流程

  1. 读取 reference/SR.md、reference/proposal.md(了解 proposal 产物结构)、IR、proposal 和 GA 证据。
  2. 从 IR.md frontmatter 继承 rr_id 到 SR.md frontmatter,并在 §二 需求概要表中填写 RR单号行。
  3. 按 proposal 逐个生成 SR:每个 GA-Approved 的 proposal 对应一个独立的 SR 文件。
  4. 记录该 proposal 的 GA 日期、结论、参与人和证据链接(§一)。
  5. 从该 proposal 和 IR 的需求陈述中提取系统需求基线(§二),不添加 proposal 未批准的新范围。提取方法:

Before writing an interface responsibility, ask yourself: am I adding implementation signatures (methods, classes) or just defining responsibility boundaries (direction, type)?

Before writing a traceability matrix row, ask yourself: does this AC trace back to a proposal requirement, or am I creating an untraceable link?

Before writing SR §二 需求基线, ask yourself: 每条系统需求是否可追溯到 proposal §X?是否新增了 proposal 未批准的范围?

Before 维度确认, ask yourself: IR 是否已确认此维度?是否只需继承结论而非重新逐条交互?

  1. 定义接口责任、提供方、消费方和语义约束(§三),不写实现签名。定义方法:
  1. 填写验收标准、系统约束和维度涉及确认(§四)。维度确认继承自 IR.md——直接引用 IR 已确认的维度结论,不再向用户逐条重新确认。仅当 proposal 范围超出 IR 覆盖的新增维度时才补充确认。
  2. 建立 IR -> Proposal -> SR -> AC 追溯矩阵(§五)。
  3. 保存到 {docs_dir}/SR-{NN}.md(编号与 proposal 对应,如 SR-01.md 对应 05-proposal-01.md),状态设为 GA-Approved。

文件命名规则

| proposal 文件 | SR 文件 |

|---------------|---------|

| 05-proposal.md(单一) | SR.md |

| 05-proposal-01.md | SR-01.md |

| 05-proposal-02.md | SR-02.md |

自检

自检清单详见 reference/sr-checklist.md。核心:GA通过证据齐全、1:1 proposal→SR映射、维度继承自IR、责任人表无空值。

NEVER

输出

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.